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:
Jacques Le Roux
2007-12-18 11:37:47 +00:00
parent 4d2fab81e3
commit ea7bd9c7da
@@ -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() {