Deprecated.
NAME
WebService::MinFraud::Record::CreditCard - Contains data for the credit card record associated with a transaction
VERSION
version 1.010000
SYNOPSIS
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;
DESCRIPTION
This class contains the credit card data associated with a transaction.
This record is returned by the Insights web service.
METHODS
This class provides the following methods:
issuer
Returns the WebService::MinFraud::Record::Issuer object for the credit card.
brand
Returns the brand of the credit card, e.g. Visa, MasterCard, American Express etc.
country
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.
is_issued_in_billing_address_country
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.
is_prepaid
Returns a boolean indicating whether the credit card is prepaid.
is_virtual
Returns a boolean indicating whether the credit card is virtual.
type
Returns the type of the card if known: charge, credit or debit
PREDICATE METHODS
The following predicate methods are available, which return true if the related data was present in the response body, false if otherwise:
has_issuer
has_country
SUPPORT
Bugs may be submitted through https://github.com/maxmind/minfraud-api-perl/issues.
AUTHOR
Mateu Hunter <mhunter@maxmind.com>
COPYRIGHT AND LICENSE
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.