diff --git a/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java b/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java index de28292ba6..92216d70a8 100644 --- a/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java @@ -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() {