From ea7bd9c7daee2d363d063a4a5bc558b5847ae142 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Tue, 18 Dec 2007 11:37:47 +0000 Subject: [PATCH] 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 --- .../thirdparty/authorizedotnet/AIMPaymentServices.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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() {