svn commit: r473078 - in /incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet: AIMPaymentServices.java AuthorizeResponse.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r473078 - in /incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet: AIMPaymentServices.java AuthorizeResponse.java

jleroux@apache.org
Author: jleroux
Date: Thu Nov  9 13:33:31 2006
New Revision: 473078

URL: http://svn.apache.org/viewvc?view=rev&rev=473078
Log:
A patch from Jean-Sébastien Hederer correcting "Static access to variables" (https://issues.apache.org/jira/browse/OFBIZ-440)
Thanks Jean-Sébastien

Modified:
    incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
    incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java

Modified: incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java?view=diff&rev=473078&r1=473077&r2=473078
==============================================================================
--- incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java (original)
+++ incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java Thu Nov  9 13:33:31 2006
@@ -223,7 +223,7 @@
             AuthorizeResponse ar = new AuthorizeResponse(httpResponse);
             String resp = ar.getResponseCode();
 
-            if (resp.equals(ar.APPROVED)) {
+            if (resp.equals(AuthorizeResponse.APPROVED)) {
                 result.put("authResult", new Boolean(true));
             } else {
                 result.put("authResult", new Boolean(false));

Modified: incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java?view=diff&rev=473078&r1=473077&r2=473078
==============================================================================
--- incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java (original)
+++ incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java Thu Nov  9 13:33:31 2006
@@ -135,7 +135,7 @@
 
         if (this.version.equals("3.0"))
         {
-            if (posNum == this.CID_RESPONSE_CODE)
+            if (posNum == CID_RESPONSE_CODE)
                 return "M";
         }
         if(posNum < 1 || posNum > maxPos) {