From d731d70eec4ed43cf262505f4e7ef69d67fa6487 Mon Sep 17 00:00:00 2001 From: Boris Zentner Date: Tue, 17 Apr 2012 14:42:40 +0200 Subject: [PATCH] Release ccfd-api-java 1.48 --- Changes | 4 ++++ Example.java | 3 +++ README | 2 +- com/maxmind/ws/CreditCardFraudDetection.java | 2 +- com/maxmind/ws/HTTPBase.java | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index c49d22d..bb28a90 100644 --- a/Changes +++ b/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 diff --git a/Example.java b/Example.java index 12258ed..a9b6cec 100644 --- a/Example.java +++ b/Example.java @@ -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(); diff --git a/README b/README index 6c7cb83..b8853a5 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Maxmind minFraud Java API Version 1.45 +Maxmind minFraud Java API Version 1.48 ================ Example programs diff --git a/com/maxmind/ws/CreditCardFraudDetection.java b/com/maxmind/ws/CreditCardFraudDetection.java index 1078513..ca46397 100644 --- a/com/maxmind/ws/CreditCardFraudDetection.java +++ b/com/maxmind/ws/CreditCardFraudDetection.java @@ -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"; diff --git a/com/maxmind/ws/HTTPBase.java b/com/maxmind/ws/HTTPBase.java index 9f3b0e4..47dc0e9 100644 --- a/com/maxmind/ws/HTTPBase.java +++ b/com/maxmind/ws/HTTPBase.java @@ -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