Describe the bug
In the checkout process, if the transaction fails (for example due to insufficient funds), the cart will still be cleared and the order will be created with the payment_status 'pending'. No order should be created and the cart should still be there, in order to reattempt the checkout.
To Reproduce
Steps to reproduce the behavior:
Make sure you have too little money left on your card. This can only be reproduced with the live environment.
Run the checkout process. The cart will be cleared and order created even though the checkout fails.
Describe the bug In the checkout process, if the transaction fails (for example due to insufficient funds), the cart will still be cleared and the order will be created with the payment_status 'pending'. No order should be created and the cart should still be there, in order to reattempt the checkout.
To Reproduce Steps to reproduce the behavior: