This repository was archived by the owner on Jun 3, 2022. It is now read-only.
File tree 4 files changed +10
-2
lines changed
4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
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 )
2
4
3
5
1.47 April 25th 2008
4
6
- Changed license from GPL to LGPL
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ function CreditCardFraudDetection() {
53
53
$ this ->allowed_fields ["sessionID " ] = 1 ;
54
54
$ this ->allowed_fields ["usernameMD5 " ] = 1 ;
55
55
$ this ->allowed_fields ["passwordMD5 " ] = 1 ;
56
+ $ this ->allowed_fields ["user_agent " ] = 1 ;
57
+ $ this ->allowed_fields ["accept_language " ] = 1 ;
58
+
56
59
57
60
$ this ->num_allowed_fields = count ($ this ->allowed_fields );
58
61
@@ -61,7 +64,7 @@ function CreditCardFraudDetection() {
61
64
$ this ->check_field = "score " ;
62
65
$ this ->server = array ("minfraud1.maxmind.com " , "minfraud2.maxmind.com " );
63
66
$ this ->numservers = count ($ this ->server );
64
- $ this ->API_VERSION = 'PHP/1.43 ' ;
67
+ $ this ->API_VERSION = 'PHP/1.48 ' ;
65
68
}
66
69
67
70
function filter_field ($ key , $ value ) {
Original file line number Diff line number Diff line change 43
43
$ h ["txnID " ] = "1234 " ; // Transaction ID
44
44
$ h ["sessionID " ] = "abcd9876 " ; // Session ID
45
45
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
+
46
49
// If you want to disable Secure HTTPS or don't have Curl and OpenSSL installed
47
50
// uncomment the next line
48
51
// $ccfs->isSecure = 0;
Original file line number Diff line number Diff line change 1
- Maxmind Credit Card Fraud Detection Service PHP API Version 1.43
1
+ Maxmind Credit Card Fraud Detection Service PHP API Version 1.48
2
2
3
3
===============
4
4
Example scripts
You can’t perform that action at this time.
0 commit comments