Author: sichen
Date: Thu Sep 20 12:42:08 2007
New Revision: 577893
URL:
http://svn.apache.org/viewvc?rev=577893&view=revLog:
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) {