From 01e7b62d9e922621a3b11531dc492fa1c9285e56 Mon Sep 17 00:00:00 2001 From: Boris Zentner Date: Tue, 17 Apr 2012 14:27:31 +0200 Subject: [PATCH] Release ccfd-api-php 1.48 --- Changes | 2 ++ CreditCardFraudDetection.php | 5 ++++- Example.php | 3 +++ README | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 4feddb8..ef46ff2 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,6 @@ Revision history for MaxMind CreditCardFraudDetection PHP API +1.48 October 3th 2008 + - Add new optional fields user_agent and accept_language for CCFD requests ( Boris Zentner ) 1.47 April 25th 2008 - Changed license from GPL to LGPL diff --git a/CreditCardFraudDetection.php b/CreditCardFraudDetection.php index 579bc62..8c670ef 100644 --- a/CreditCardFraudDetection.php +++ b/CreditCardFraudDetection.php @@ -53,6 +53,9 @@ function CreditCardFraudDetection() { $this->allowed_fields["sessionID"] = 1; $this->allowed_fields["usernameMD5"] = 1; $this->allowed_fields["passwordMD5"] = 1; + $this->allowed_fields["user_agent"] = 1; + $this->allowed_fields["accept_language"] = 1; + $this->num_allowed_fields = count($this->allowed_fields); @@ -61,7 +64,7 @@ function CreditCardFraudDetection() { $this->check_field = "score"; $this->server = array("minfraud1.maxmind.com", "minfraud2.maxmind.com"); $this->numservers = count($this->server); - $this->API_VERSION = 'PHP/1.43'; + $this->API_VERSION = 'PHP/1.48'; } function filter_field($key, $value) { diff --git a/Example.php b/Example.php index da0d3a3..9ca9539 100644 --- a/Example.php +++ b/Example.php @@ -43,6 +43,9 @@ $h["txnID"] = "1234"; // Transaction ID $h["sessionID"] = "abcd9876"; // Session ID +$h["accept_language"] = "de-de"; +$h["user_agent"] = "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; de-de) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1"; + // If you want to disable Secure HTTPS or don't have Curl and OpenSSL installed // uncomment the next line // $ccfs->isSecure = 0; diff --git a/README b/README index 6a20ba0..93e39ec 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Maxmind Credit Card Fraud Detection Service PHP API Version 1.43 +Maxmind Credit Card Fraud Detection Service PHP API Version 1.48 =============== Example scripts