A patch from BJ Freeman "Allows better testing of testmode from propties file of authorize.net" (https://issues.apache.org/jira/browse/OFBIZ-1450) - OFBIZ-1450
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@605186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vendored
+9
-1
@@ -376,7 +376,15 @@ public class AIMPaymentServices {
|
||||
}
|
||||
|
||||
private static boolean isTestMode() {
|
||||
return ("TRUE".equals((String) AIMProperties.get("testReq")));
|
||||
boolean ret = true;
|
||||
String testReq = (String)AIMProperties.get("testReq");
|
||||
if(testReq != null) {
|
||||
if(testReq.equals("TRUE"))
|
||||
ret = true;
|
||||
else
|
||||
ret = false;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static String getVersion() {
|
||||
|
||||
Reference in New Issue
Block a user