Author: jleroux
Date: Sat Apr 12 06:59:06 2008
New Revision: 647452

URL: http://svn.apache.org/viewvc?rev=647452&view=rev
Log:
A first step for "POS: CVV2 code is not always deleted from the DB" 
(https://issues.apache.org/jira/browse/OFBIZ-1716) - OFBIZ-1716
I think the same should be done for PAYMENT_DECLINED but I have more than a 
doubt, please have a look at 
https://issues.apache.org/jira/browse/OFBIZ-1716?focusedCommentId=12588237#action_12588237
 *this could be a serious issue*

Thanks

Modified:
    
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Modified: 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?rev=647452&r1=647451&r2=647452&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
 (original)
+++ 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
 Sat Apr 12 06:59:06 2008
@@ -1775,6 +1775,8 @@
                 orderPaymentPreference.set("statusId", "PAYMENT_DECLINED");
             } else {
                 orderPaymentPreference.set("statusId", "PAYMENT_ERROR");
+                orderPaymentPreference.set("securityCode", null);
+                orderPaymentPreference.set("track2", null);                
             }
             
             boolean needsNsfRetry = needsNsfRetry(orderPaymentPreference, 
context, delegator);


Reply via email to