Describe your bug or feature request.

For certain payment providers, e.g. PayPay, Amazon, etc, a custom payment flow is used for an order. If the payment fails with an exception, for example, if PayPay express was used but the order doesn't get completed for a few days (quite possible if the customer abandons the cart for a few days), then the order is stuck in that checkout flow and an alternative payment method cannot be used.

If a bug, provide steps to reproduce it from a clean install.

Install commerce + 3rd party gateways with custom flows. PayPal express is a good example. Pay with express, abandon for a few days, and then try to pay again. The order is stuck in a loop of failed payments.

Comments

Dubs created an issue. See original summary.

dubs’s picture

Attached is a patch to remove the checkout flow from the order if an exception occurs. This may not be the best approach, but here's a starter for discussion :-)

dubs’s picture

Status: Active » Needs review