By Hanzalah Seikhai, Stripe developer. 1 December 2026
Customer paid but the order is still pending: 7 causes in a Stripe integration
The customer has a receipt from Stripe. Your app still shows the order as pending. The money arrived, but your app never recorded it. These are the causes I check, in order.
1. The app waits for the success page, not the webhook
If the order is marked paid only when the customer lands on your success URL, every customer who closes the tab early, loses signal or pays with a slow method stays pending. The success page is for showing a thank you. The webhook is what should mark the order paid.
2. The webhook endpoint returns an error
Open the Stripe Dashboard, Developers, Webhooks, and look at the recent deliveries for your endpoint. Anything other than a 2xx response means your app did not accept the event. Common ones: 400 from a failed signature check, 419 from Laravel's CSRF protection, 404 from a wrong URL, 500 from a bug in the handler.
3. The right event is not handled
For Stripe Checkout, handle checkout.session.completed. For payment methods that confirm later, such as bank debits, also handle checkout.session.async_payment_succeeded and checkout.session.async_payment_failed. An app that only handles one event will miss some payments.
4. The event cannot be matched to an order
The handler receives the event but cannot tell which order it belongs to. Pass your order id when you create the session and read it back in the webhook.
// when creating the session
'client_reference_id' => $order->id,
'metadata' => ['order_id' => $order->id],
// in the webhook
$order = Order::find($session->client_reference_id);
5. Test and live are mixed
Live payments are sent to the live webhook endpoint and signed with the live signing secret. If production has the test secret, or the endpoint was only registered in test mode, live events never arrive or fail verification.
6. The work is queued and the worker is not running
Many Laravel apps accept the webhook, queue a job and return 200. If the queue worker stopped after a deploy, Stripe shows every delivery as successful and nothing happens in your app. Check php artisan queue:work is running under a process manager, and look at the failed_jobs table.
7. The event arrives before the order exists, or arrives twice
Webhooks can arrive before your own code has saved the order, and Stripe retries events, so the same one can arrive more than once. Save the order before redirecting to Stripe, store each event.id, and skip any event you have already processed.
Fixing the orders that are already stuck
After the cause is fixed, resend the failed events from the Dashboard, or run a one-off script that lists recent paid Checkout Sessions from the Stripe API and updates the matching orders. Then compare a day of Stripe payments with a day of orders to confirm they match.
I fix this as a fixed-price job: Stripe webhook or payment bug fix. Or tell me what you see.
Written by Hanzalah Seikhai, Stripe developer. Hire me on Upwork.