Menu

Customer paid but the order is still pending: 7 causes in a Stripe integration
📰

Customer paid but the order is still pending: 7 causes in a Stripe integration

DEV Community: laravel·Hanzalah Seikhai·3 days ago
#UtbGSbfq
#devtolaravel#devto#dev#order#stripe
Long article (524 words) — no AI summary yet.
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.