diff --git a/Changes b/Changes index 7af70c1..2868883 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,7 @@ Revision history for MaxMind minFraud Java API +1.50 Mar 13th 2012 + - Check countryMatch instead of score for successful results. Score is + only avail for minfraud_version 1.3 ( Boris Zentner ) 1.49 Februar 19th 2009 - Add minfraud3.maxmind.com to the serverlist 1.48 October 3th 2008 diff --git a/com/maxmind/ws/CreditCardFraudDetection.java b/com/maxmind/ws/CreditCardFraudDetection.java index ca46397..e8e6181 100644 --- a/com/maxmind/ws/CreditCardFraudDetection.java +++ b/com/maxmind/ws/CreditCardFraudDetection.java @@ -41,7 +41,7 @@ public CreditCardFraudDetection() { } public CreditCardFraudDetection(boolean s) { url = "app/ccv2r"; - check_field = "score"; + check_field = "countryMatch"; allowed_fields = new HashMap(); for (int i = 0; i < allowedfields.length; i++) { allowed_fields.put(allowedfields[i],new Integer(1)); diff --git a/com/maxmind/ws/HTTPBase.java b/com/maxmind/ws/HTTPBase.java index 78a19f8..4880d37 100644 --- a/com/maxmind/ws/HTTPBase.java +++ b/com/maxmind/ws/HTTPBase.java @@ -40,7 +40,7 @@ public class HTTPBase{ public boolean isSecure = true; public float timeout = 10; // default timeout is 10 seconds public boolean debug = false; - public String check_field = "score"; + public String check_field = "countryMatch"; public boolean useDNS = false; public long wsIpaddrRefreshTimeout = 18000; private static Pattern ippattern = Pattern.compile("(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3};)*\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"); @@ -266,7 +266,7 @@ boolean querySingleServer(String server) { query_data[n] = new NameValuePair(key,value); n++; } - query_data[n] = new NameValuePair("clientAPI","Java/1.49"); + query_data[n] = new NameValuePair("clientAPI","Java/1.50"); // 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