VibeFix

Guide

Customers can't pay on my app: the pay button does nothing, or the order never shows up

Published by Yosef D., founder of VibeFix

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.

Fixed in your code, then tested live. Get it fixed: a free check first confirms the problem on your live app, usually in 4 to 10 minutes.

Free. No account needed. It usually takes 4 to 10 minutes.

Want it fixed? For Lovable apps or code on GitHub, our AI agent fixes it in your code for $79 and tests your live app again. If we can't complete your re-check, you get your money back.

Why it happens

Payment on a live app breaks in one of three places, and each has a different cause.

Possible causes

How to fix each one

The pay button does nothing

  1. 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.
  2. 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_).
  3. 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

  1. Stripe says API objects in a sandbox are not accessible in live mode: a test price ID cannot be part of a live payment.
  2. In the Stripe Dashboard, switch to live mode, open each product, and copy its live price ID (price_...).
  3. Replace the test price IDs in your app's settings or code with the live ones, and redeploy.

They paid but nothing happened

  1. 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.
  2. Make sure it listens for checkout.session.completed, plus checkout.session.async_payment_succeeded if you accept delayed payment methods.
  3. Copy that endpoint's signing secret (whsec_...) into your live environment. Each endpoint has its own secret, so the sandbox one fails signature checks.
  4. 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.
  5. Do not mark an order paid from the success page alone; Stripe recommends fulfilling from the webhook.

How do I check it's fixed?

  1. On the live site, buy the cheapest item with a real card, then refund it in the Stripe Dashboard.
  2. The order, upgrade or confirmation email appears in your app within a minute.
  3. 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)

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