NAME
WebService::MinFraud::Record::CreditCard - Contains data for the credit card record associated with a transaction
VERSION
version 0.001002
SYNOPSIS
use 5.010;
use WebService::MinFraud::Client;
my $client = WebService::MinFraud::Client->new(
user_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.
country
Returns the ISO 3166-1 alpha 2 country code representing the country that the card was issued in.
is_issued_in_billing_address_country
Returns a boolean indicating whether the issuer of the credit card is in the same country as the billing address.
is_prepaid
Returns a boolean indicating whether the credit card is prepaid.
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
AUTHOR
Mateu Hunter <mhunter@maxmind.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 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.