WebService::MinFraud::Record::CreditCard - Contains data for the credit card record associated with a transaction
version 1.010000
use 5.010; use WebService::MinFraud::Client; my $client = WebService::MinFraud::Client->new( account_id => 42, license_key => 'abcdef123456', ); my $request = { device => { ip_address => '24.24.24.24' } }; my $insights = $client->insights($request); my $credit_card = $insights->credit_card; say $credit_card->is_prepaid; say $credit_card->issuer->name;
This class contains the credit card data associated with a transaction.
This record is returned by the Insights web service.
This class provides the following methods:
Returns the WebService::MinFraud::Record::Issuer object for the credit card.
Returns the brand of the credit card, e.g. Visa, MasterCard, American Express etc.
Returns the two letter ISO 3166-1 alpha 2 country code associated with the location of the majority of customers using this credit card as determined by their billing address. In cases where the location of customers is highly mixed, this defaults to the country of the bank issuing the card.
Returns a boolean indicating whether the country of the billing address matches the country of the majority of customers using this credit card. In cases where the location of customers is highly mixed, the match is to the country of the bank issuing the card.
Returns a boolean indicating whether the credit card is prepaid.
Returns a boolean indicating whether the credit card is virtual.
Returns the type of the card if known: charge, credit or debit
The following predicate methods are available, which return true if the related data was present in the response body, false if otherwise:
Bugs may be submitted through https://github.com/maxmind/minfraud-api-perl/issues.
Mateu Hunter <mhunter@maxmind.com>
This software is copyright (c) 2015 - 2020 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::MinFraud, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::MinFraud
CPAN shell
perl -MCPAN -e shell install WebService::MinFraud
For more information on module installation, please visit the detailed CPAN module installation guide.