magentno 2 I want user to keep its shopping cart after payment failure. Cart becomes empty when cancel the payment transaction in checkout.
How should I change the Failure.php in Magento checkout module?
checkoutmagento2
magentno 2 I want user to keep its shopping cart after payment failure. Cart becomes empty when cancel the payment transaction in checkout.
How should I change the Failure.php in Magento checkout module?
Best Answer
This is what I did:
In
Magento\Quote\Model\QuoteManagement
at line 550 the quote is being made inactive. So I commented out the following code:This would also help you to maintain cart state if the user goes back from the payment page back to checkout page.