NAME
Business::MaxMind::CreditCardFraudDetection - Access free and paid MaxMind credit card fraud detection services
ABSTRACT
This module queries the MaxMind credit card fraud scoring service and returns the results. The service uses a free e-mail database, an IP address geography database, a bank identification number, and proxy checks to return a risk factor score representing the likelihood that the credit card transaction is fraudulent.
SYNOPSIS
This example queries the credit card fraud scoring service and displays the results:
my $ccfs = Business::MaxMind::CreditCardFraudDetection->new(isSecure => 1, debug => 0, timeout => 10);
$ccfs->input( i => '24.24.24.24',
domain => 'yahoo.com',
city => 'New York',
region => 'NY',
postal => '10011',
country => 'US',
bin => '549099', # optional
license_key => 'LICENSE_KEY_HERE' # optional
);
$ccfs->query;
my $hash_ref = $ccfs->output;
METHODS
- new
-
Class method that returns a Business::MaxMind::CreditCardFraudDetection object. If isSecure is set to 1, it will use a secure connection. If debug is set to 1, will print debugging output to standard error. timeout parameter is used to set timeout in seconds, if absent default value for timeout is 10 seconds.
- input
-
Sets input fields. The input fields are
- i: Client IP Address (IP address of customer placing order)
- domain: E-mail domain (e.g. hotmail.com, aol.com)
- city, region, postal, country: Billing City/State/ZipCode/Country
- bin: BIN number, first 6 digits of credit card that identifies the issuing bank (optional)
- license_key: License Key, for registered users (optional)
Returns 1 on success, 0 on failure.
- query
-
Sends out query to MaxMind server and waits for response. If the primary server fails to respond, it sends out a request to the secondary server.
- output
-
Returns the output returned by the MaxMind server as a hash reference.
- error_msg
-
Returns the error message from an input or query method call.
SEE ALSO
http://www.maxmind.com/app/ccv
AUTHOR
TJ Mather, <tjmather@maxmind.com>
COPYRIGHT AND LICENSE
Copyright 2004 by MaxMind LLC
All rights reserved. This package is free software and is licensed under the GPL. For details, see the COPYING file.