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-java 1.48
Browse files Browse the repository at this point in the history
  • Loading branch information
borisz committed Apr 17, 2012
1 parent 6e1c8d1 commit d731d70
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes
@@ -1,4 +1,8 @@
Revision history for MaxMind minFraud Java API
1.48 October 3th 2008
- Add new fields user_agent and accept_language for CCFD ( Boris Zentner )

1.47 skipped

1.46 October 4th 2007
- Replaced www.maxmind.com and www2.maxmind.com with minfraud1.maxmind.com and minfraud2.maxmind.com
Expand Down
3 changes: 3 additions & 0 deletions Example.java
Expand Up @@ -57,6 +57,9 @@ public static void main(String args[]) {
h.put("txnID","1234");
h.put("sessionID","abcd9876");

h.put("user_agent", "Mozilla/4.0");
h.put("accept_language", "de-de");

ccfs.input(h);
ccfs.query();
h = ccfs.output();
Expand Down
2 changes: 1 addition & 1 deletion README
@@ -1,4 +1,4 @@
Maxmind minFraud Java API Version 1.45
Maxmind minFraud Java API Version 1.48

================
Example programs
Expand Down
2 changes: 1 addition & 1 deletion com/maxmind/ws/CreditCardFraudDetection.java
Expand Up @@ -28,7 +28,7 @@ public class CreditCardFraudDetection extends HTTPBase {
static String[] allowedfields = {"i","domain", "city", "region", "postal", "country", "bin", "binName",
"binPhone", "custPhone", "license_key", "requested_type", "forwardedIP", "emailMD5",
"shipAddr", "shipCity", "shipRegion", "shipPostal", "shipCountry", "txnID", "sessionID",
"usernameMD5", "passwordMD5"};
"usernameMD5", "passwordMD5", "user_agent", "accept_language"};
char[] hexchar = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
public CreditCardFraudDetection() {
url = "app/ccv2r";
Expand Down
2 changes: 1 addition & 1 deletion com/maxmind/ws/HTTPBase.java
Expand Up @@ -266,7 +266,7 @@ boolean querySingleServer(String server) {
query_data[n] = new NameValuePair(key,value);
n++;
}
query_data[n] = new NameValuePair("clientAPI","Java/1.46");
query_data[n] = new NameValuePair("clientAPI","Java/1.48");
// scheme already has the name of the proctol
// append the domain name of the server, url of the web service
// and the query string to the string named url2
Expand Down

0 comments on commit d731d70

Please sign in to comment.