Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
Release ccfd-api-php 1.48
Browse files Browse the repository at this point in the history
  • Loading branch information
borisz committed Apr 17, 2012
1 parent 5b95244 commit 01e7b62
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion CreditCardFraudDetection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 01e7b62

Please sign in to comment.