Author: sichen
Date: Fri Sep 21 11:52:07 2007
New Revision: 578226
URL: http://svn.apache.org/viewvc?rev=578226&view=rev
Log:
slight improvement to auth.net error message
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=578226&r1=578225&r2=578226&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
Fri Sep 21 11:52:07 2007
@@ -138,6 +138,10 @@
Map reply = processCard(request, props);
processCaptureTransResult(reply,results);
+ // if there is no captureRefNum, then the capture failed
+ if (results.get("captureRefNum") == null) {
+ return ServiceUtil.returnError((String)
results.get("captureMessage"));
+ }
return results;
}
@@ -319,6 +323,10 @@
//now we need to process the result
processAuthCaptureTransResult(reply, results);
+ // if there is no captureRefNum, then the capture failed
+ if (results.get("captureRefNum") == null) {
+ return ServiceUtil.returnError((String)
results.get("captureMessage"));
+ }
return results;
}