Failed payment sets order status to cancelled
-
Hi,
I’ve noticed something the Yoco plugin does on a failed payment which is causing a nuisance:If someone has a failed transaction and is sent back to the checkout page to see the error message, the order status is automatically changed to ‘cancelled’. This creates duplicate orders with increasing order numbers for every time a user is experiencing a payment failure and tries again to pay for their order.
I suggest that the status is changed to the more useful (as per woocommerce docs) ‘failed’ status, which will avoid duplicate orders and even allows a customer to manually pay for an order later by looking in their My-Account section.
I have modified it like this for my clients already. You could even throw a timer in there that would cancel the order if it remains failed for too long.
- The topic ‘Failed payment sets order status to cancelled’ is closed to new replies.