Guide
Customers can't pay on my app: the pay button does nothing, or the order never shows up
How this guide was made: Written with AI assistance and checked against the sources linked on this page.
Updated
Short answer: when customers can't pay, either the function that creates the Stripe checkout fails on the live site (missing or test-only secret key), live keys are mixed with test price IDs, or the payment went through but your app never got the webhook. Check your host's logs, your keys and Stripe's event deliveries, in that order.
A customer writes: "I tried to pay and nothing happened." Or you find a payment in Stripe but no order, no upgrade, no confirmation email. It worked when you tested it.
Why it happens
Payment on a live app breaks in one of three places, and each has a different cause.
Possible causes
- The pay button does nothing: the function that creates the checkout fails on the live site, often because a key was set only for testing or never added to the live environment.
- Checkout opens but the payment fails: test and live are mixed, for example live keys with test product or price IDs. Stripe says objects in one mode are not available in the other.
- They paid but nothing happened: your app learns about a payment from a webhook, and it was set up for test mode only, or uses the wrong signing secret.
How to fix each one
The pay button does nothing
- Open the browser console on the live site and press the button. A red error on the request that creates the checkout means the server function failed.
- Open that function's logs at your host. "No API key provided" or "Invalid API Key" means the live environment has no Stripe secret key, or still has a test one (sk_test_).
- Add the live secret key (sk_live_) as an environment variable on the live environment, then redeploy. Never put it in the browser code.
Checkout opens but the payment fails
- Stripe says API objects in a sandbox are not accessible in live mode: a test price ID cannot be part of a live payment.
- In the Stripe Dashboard, switch to live mode, open each product, and copy its live price ID (price_...).
- Replace the test price IDs in your app's settings or code with the live ones, and redeploy.
They paid but nothing happened
- In the Stripe Dashboard (live mode) open Developers, Webhooks (event destinations). A live endpoint must exist for your live URL; one created in a sandbox does not receive live events.
- Make sure it listens for checkout.session.completed, plus checkout.session.async_payment_succeeded if you accept delayed payment methods.
- Copy that endpoint's signing secret (whsec_...) into your live environment. Each endpoint has its own secret, so the sandbox one fails signature checks.
- Open the endpoint's Event deliveries tab. Failed deliveries show the status your app returned; Stripe retries live events for up to three days, so fix the app and the missed orders can still arrive.
- Do not mark an order paid from the success page alone; Stripe recommends fulfilling from the webhook.
How do I check it's fixed?
- On the live site, buy the cheapest item with a real card, then refund it in the Stripe Dashboard.
- The order, upgrade or confirmation email appears in your app within a minute.
- The webhook endpoint shows the event as delivered with a 200 response.
You can't see it yourself
You're signed in, your customers aren't. You pay with a test card, in test mode, or as the owner. Real customers use real cards on the live site.
Related: Stripe payments work in test mode but fail on the live site · A button on my app does nothing after I published it · My builder says the app is tested, but my customers hit problems
Sources (official documentation)
- Stripe: Sandboxes and live mode
- Stripe: Receive Stripe events in your webhook endpoint
- Stripe: Fulfill orders
VibeFix is independent. Lovable, Bolt, Replit, Base44, v0, Supabase, Firebase, Stripe and Vercel are trademarks of their owners.
More guides · Shopify store accessibility · About · Your privacy choices