svn commit: r603767 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java

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

svn commit: r603767 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java

sichen
Author: sichen
Date: Wed Dec 12 15:00:47 2007
New Revision: 603767

URL: http://svn.apache.org/viewvc?rev=603767&view=rev
Log:
Fix another captureRefNum problem in AIMPaymentServices

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

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java?rev=603767&r1=603766&r2=603767&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java Wed Dec 12 15:00:47 2007
@@ -704,11 +704,11 @@
         results.put("captureResult", new Boolean(authResult.booleanValue()));
         results.put("captureFlag",ar.getReasonCode());
         results.put("captureMessage",ar.getReasonText());
+        results.put("captureRefNum", ar.getResponseField(AuthorizeResponse.TRANSACTION_ID));
 
         if(authResult.booleanValue()) { //passed
             results.put("authCode", ar.getResponseField(AuthorizeResponse.AUTHORIZATION_CODE));
             results.put("authRefNum", ar.getResponseField(AuthorizeResponse.TRANSACTION_ID));
-            results.put("captureRefNum", ar.getResponseField(AuthorizeResponse.TRANSACTION_ID));
             results.put("cvCode", ar.getResponseField(AuthorizeResponse.CID_RESPONSE_CODE));
             results.put("avsCode", ar.getResponseField(AuthorizeResponse.AVS_RESULT_CODE));
             results.put("processAmount", new Double(ar.getResponseField(AuthorizeResponse.AMOUNT)));