Author: sichen
Date: Wed Oct 25 11:34:33 2006
New Revision: 467725

URL: http://svn.apache.org/viewvc?view=rev&rev=467725
Log:
Changed authorize.net capture to use the PRIOR_AUTH_CAPTURE instead of 
CAPTURE_ONLY

Modified:
    
incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.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=467725&r1=467724&r2=467725
==============================================================================
--- 
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
 Wed Oct 25 11:34:33 2006
@@ -87,8 +87,10 @@
         buildCustomerBillingInfo(context,props,request);
         buildEmailSettings(context,props,request);
         request.put("x_Invoice_Num","Order " + 
orderPaymentPreference.getString("orderId"));
-        //props.put("transType","PRIOR_AUTH_CAPTURE");
-        props.put("transType","CAPTURE_ONLY");
+        // PRIOR_AUTH_CAPTURE is the right one to use, since we already have 
an authorization from the authTransaction.
+        // CAPTURE_ONLY is a "force" transaction to be used if there is no 
prior authorization 
+        props.put("transType","PRIOR_AUTH_CAPTURE");
+        //props.put("transType","CAPTURE_ONLY");
         props.put("cardtype", (String)creditCard.get("cardType"));
         buildCaptureTransaction(context,props,request);
 


Reply via email to