Verify third-party payment before Order submit
Summary:
We are using generic payment gateway integration to implement a third-party payment method for a client. Here, the user is redirected to a third-party payment page to make the payment. To implement this, 3D Secure Support. This requires order submission to invoke a generic payment webhook.
The client noticed that if a coupon is added to an order with limited usage, then on order submission, the coupon usage is burned without verifying whether the payment was successful. Similarly, when order submission is done by a user, the order is removed from an active cart. So if the payment is not completed, the user won't be able to see the items of the order in the cart(because the order status is SUBMITTED).
Tagged:
0