Experian-IDAuth
view release on metacpan or search on metacpan
lib/Experian/IDAuth.pm view on Meta::CPAN
1;
Then use this module.
use My::Experian;
# search_option can either be ProveID_KYC or CheckID
my $prove_id = My::Experian->new(
search_option => 'ProveID_KYC',
);
my $prove_id_result = $prove_id->get_result();
if (!$prove_id->has_done_request) {
# connection problems
die;
}
if ($prove_id_result->{deceased} || $prove_id_result->{fraud}) {
# client flagged as deceased or fraud
}
if ($prove_id_result->{deny}) {
# client on any of PEP, OFAC, or BOE list
# you can check $prove_id_result->{PEP} etc if you want more detail
}
if ($prove_id_result->{fully_authenticated}) {
# client successfully authenticated,
# DOES NOT MEAN NO CONCERNS
# check number of credit verifications done
print "Number of credit verifications: " . $prove_id_result->{num_verifications} . "\n";
}
# CheckID is a more simpler version and can be used if ProveID_KYC fails
my $check_id = My::Experian->new(
search_option => 'CheckID',
);
if (!$check_id->has_done_request) {
# connection problems
die;
}
if ($check_id->get_result()) {
# client successfully authenticated
}
=head1 METHODS
=head2 new()
Creates a new object of your derived class. The parent class should contain most of the attributes required for new(). But you can set search_option to either ProveID_KYC or CheckID
=head2 get_result()
Return the Experian results as a hashref
=head2 save_pdf_result()
Save the Experian credentials as a PDF
=head2 defaults()
Return default value
=head2 get_192_xml_report()
Return 192 xml report
=head2 has_done_request()
Check the request finished or not
=head2 has_downloaded_pdf
Check the file is downloaded an is a pdf file
=head2 set
set attributes of object
=head2 valid_country
Check a country is valid
=head1 AUTHOR
binary.com, C<perl at binary.com>
=head1 BUGS
Please report any bugs or feature requests to C<bug-experian-idauth at rt.cpan.org>,
or through the web interface at
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Experian-IDAuth>.
We will be notified, and then you'll automatically be notified of progress
on your bug as we make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Experian::IDAuth
You can also look for information at:
=over 4
=item * RT: CPAN's request tracker (report bugs here)
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Experian-IDAuth>
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Experian-IDAuth>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/Experian-IDAuth>
( run in 0.996 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )