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

Commit 01e7b62

Browse files
committed
Release ccfd-api-php 1.48
1 parent 5b95244 commit 01e7b62

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Revision history for MaxMind CreditCardFraudDetection PHP API
2+
1.48 October 3th 2008
3+
- Add new optional fields user_agent and accept_language for CCFD requests ( Boris Zentner )
24

35
1.47 April 25th 2008
46
- Changed license from GPL to LGPL

CreditCardFraudDetection.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ function CreditCardFraudDetection() {
5353
$this->allowed_fields["sessionID"] = 1;
5454
$this->allowed_fields["usernameMD5"] = 1;
5555
$this->allowed_fields["passwordMD5"] = 1;
56+
$this->allowed_fields["user_agent"] = 1;
57+
$this->allowed_fields["accept_language"] = 1;
58+
5659

5760
$this->num_allowed_fields = count($this->allowed_fields);
5861

@@ -61,7 +64,7 @@ function CreditCardFraudDetection() {
6164
$this->check_field = "score";
6265
$this->server = array("minfraud1.maxmind.com", "minfraud2.maxmind.com");
6366
$this->numservers = count($this->server);
64-
$this->API_VERSION = 'PHP/1.43';
67+
$this->API_VERSION = 'PHP/1.48';
6568
}
6669

6770
function filter_field($key, $value) {

Example.php

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
$h["txnID"] = "1234"; // Transaction ID
4444
$h["sessionID"] = "abcd9876"; // Session ID
4545

46+
$h["accept_language"] = "de-de";
47+
$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";
48+
4649
// If you want to disable Secure HTTPS or don't have Curl and OpenSSL installed
4750
// uncomment the next line
4851
// $ccfs->isSecure = 0;

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Maxmind Credit Card Fraud Detection Service PHP API Version 1.43
1+
Maxmind Credit Card Fraud Detection Service PHP API Version 1.48
22

33
===============
44
Example scripts

0 commit comments

Comments
 (0)