You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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).

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!