In Magento 2.2.5, after payment failure cart is going empty. I want to keep this, that if payment failed cart will not be empty, that will show last cart items.
I'm using the PayUMoney Payment Method. How can I do this?
I get a lot of example of this problem on Magento 1.9 version but didn't get any suitable solution for Magento 2.2.5.
Please help me, how I solve this issue.
Thank you
Best Answer
This is a sample code for reactivate quote when payment is failed. This is a controller where it redirect after payment failure. You need to use it in your payment module and update the code according to your requirement or module structure.