submitted 27 days ago by Tunde37
I’m building a shop for a friend. Every time I tested checkout, I paid, waited to return to the shop and saw my order there.
She tried it this morning and closed the tab as soon as the payment page said “Payment successful”. Her payment is in the dashboard. There's no order for it in my database. Which step am I missing?
Is the order being saved on the return page? If she closes the tab before reaching it, that code never runs. Save a pending order before sending her to pay. Then use the payment provider's webhook — a message sent directly to your server — to confirm payment and update that order. Verify the message and match its reference and amount to the order before marking it paid.