Hi All,
I am using amazon address & wallet widget to render address & payment methods.
After address & payment selection from widget ,
I call - Get order reference detail API.
Then comes order confirmation page.
Here I call - Set order reference detail API
Then - Confirm Order Reference API
Then - Authorize API followed by Capture API
If card gets declined, I stop the order processing, but the order with Authorization with Total charged value $0 is already posted in amazon account.
I don’t want the order to get posted, If the payment has failed or transaction has declined in any case.
Please let me know how this can be done.
Thanks in advance.