You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2007/09/20 21:42:09 UTC
svn commit: r577893 -
/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
Author: sichen
Date: Thu Sep 20 12:42:08 2007
New Revision: 577893
URL: http://svn.apache.org/viewvc?rev=577893&view=rev
Log:
Support CVV in authorize.net
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=577893&r1=577892&r2=577893&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 Thu Sep 20 12:42:08 2007
@@ -525,6 +525,7 @@
String amount = ((Double)params.get("processAmount")).toString();
String number = UtilFormatOut.checkNull(cc.getString("cardNumber"));
String expDate = UtilFormatOut.checkNull(cc.getString("expireDate"));
+ String cardSecurityCode = (String) params.get("cardSecurityCode");
AIMRequest.put("x_Amount",amount);
AIMRequest.put("x_Currency_Code",currency);
@@ -532,6 +533,9 @@
AIMRequest.put("x_Type", props.getProperty("transType"));
AIMRequest.put("x_Card_Num",number);
AIMRequest.put("x_Exp_Date",expDate);
+ if (UtilValidate.isNotEmpty(cardSecurityCode)) {
+ AIMRequest.put("x_card_code", cardSecurityCode);
+ }
}
private static void buildCaptureTransaction(Map params, Properties props, Map AIMRequest) {