A customer pays through a gateway, but the browser returns an error. Should they try again? The store might have a genuinely failed payment, or it might have received the money while the confirmation response was lost. A generic “Place order again” button can create a second order and a support problem.
WooCommerce's payment error guide distinguishes failed and pending states. Its Payment Gateway API guidance explains that order status determines whether an order remains payable and advises gateway developers to handle retries of the same order safely. Start with the order and gateway transaction record, not the customer's screenshot alone.
Show a useful result when payment does not complete
Give the buyer the order number and a plain status message. If the payment definitely failed, show a route to pay the existing payable order. If confirmation is still pending, say that the store is checking the result and avoid asking for immediate payment again. Provide a support contact with the order reference for an uncertain state.
Do not expose internal gateway errors, card information or callback secrets in the message. Preserve the cart details and delivery address so the customer does not have to start over. If the gateway offers several methods, a buyer may reasonably choose a different one on retry.
Reconcile before retrying
For one test order, compare the WooCommerce order status, gateway transaction status and any webhook or callback log. The same order must not be marked paid twice or fulfilled twice when a callback is retried. Where the gateway provides a stable transaction identifier, save and check it. A payment-complete transition should be idempotent at the integration boundary.
Check both a decline and a lost browser response. They require different messages. Also test a shopper who returns later using their order link, and an order whose stock hold has expired. A stale payment link should not promise availability that no longer exists.
Fix the path, then measure it
Record how many payable orders later complete, how many paid transactions remain Pending payment and how many support tickets mention a retry. These are operational measures from your own store, not assumed industry benchmarks. Review them after each gateway or checkout update.
If your store has payment-success screenshots alongside unpaid WooCommerce orders, I can trace the gateway callback, repair the status transition and test a safe retry path. My guide to Razorpay payment and pending orders covers that specific symptom in more detail.





