In my Drupal 7 site I have inserted an extra page in the checkout process (using a custom module), after the review page, where the customer can choose between 2 custom payment methods. My problem is that if the customer decides to leave the checkout process after reaching the custom payment page, all line items are cleared from the cart.
If he/she only goes one step back to the review page the cart is still intact. Also if he/she leaves the checkout process from the review page, the cart is not emptied, even after going back from the custom payment page. So it does not seem as though the cart is emptied when clicking Continue on the review page, after all.
Now, I need to change this behaviour so that the cart is not cleared if the visitor leaves the checkout process when on my custom payment page.
What do I need to do?