Hi there.
We are using Paypal Website Payments Pro to do cc processing with the Able Auth Patch and using the authorize method.
When we submit a test credit card with invalid details that passes the able validation check, we get this response:-
"This transaction cannot be processed. Please enter a valid credit card number and type. (10759)
Your order has been placed, but it will not be processed until payment is completed"
The problem with this is, that the order is still processed and removed from the basket with a void payment. Is this correct? If so, is there anyway to revert the order to a basket collection until a valid cc is input? I would rather revert the order as it will put less strain on the administrators of the site.
Thanks very much in advance.
Credit Card Auth Failure - Can i revert an order to basket?
Re: Credit Card Auth Failure - Can i revert an order to basket?
It is the default behavior of the AbleCommerce. You can HandleFailedPayments for the receipt page so that if the payment fails then it show the customer information that the payment is failed and the customer can retry the payment. But the order will be placed even if the payment fails and this behavior has advantages. For example if at some time there is some problem with payment gateway itself and customer is trying to place order. It means that you are losing sales if you are only allowing the customer to place order for successful payment.
Re: Credit Card Auth Failure - Can i revert an order to basket?
My personal opinion is that it would be great in a future patch that this is optional.mazhar wrote:It is the default behavior of the AbleCommerce. You can HandleFailedPayments for the receipt page so that if the payment fails then it show the customer information that the payment is failed and the customer can retry the payment. But the order will be placed even if the payment fails and this behavior has advantages. For example if at some time there is some problem with payment gateway itself and customer is trying to place order. It means that you are losing sales if you are only allowing the customer to place order for successful payment.
Imagine a scenario where someone accidentally enters the wrong expiry date for the card. Instead of telling them that the card expiry was invalid, we have already gone straight to an order and only then can we retry payment. What if the card was declined and the user didn't have another card to hand?
I have a possible solution, but before i spend some time implementing it, can you verify if it would be possible?
- Do the authorization. If i get checkoutResponse.WarningMessages from checkoutResponse.Success then:-
- Create a new basket for the user
- for each through the order items and add each item back to the basket.
- Delete the order programmatically.
- Display the appropriate message to the user based on the WarningMessages.
Thanks very much.
Re: Credit Card Auth Failure - Can i revert an order to basket?
Well i think you can do this but you can will not be able to create basket for the order that contains kits as currently with reorder option available. The place where you can put custom code for this change may be Checkout/PaymentForms/CreditCardPaymentForm where there is a success or failure response check. You can get the reorder code from Website/Reorder.ashx and CobLib/RepeatOrderDialog control.