PLAYBOOK

A customer paid and got nothing. What to do in the next hour

Stripe took the money, your app never let them in — here's the order to do things in, starting with the person who's waiting.

8 min read
ON THIS PAGE
SHORT ANSWER

A customer paid through Stripe but didn't get access. What do I do?

Unlock their account by hand in your database right now, then email them a short apology. Next, open Stripe's record of the messages it sent your app to see whether one payment failed or all of them did. Then fix the cause, and sweep every payment since the failures began.

What should I do in the first ten minutes?

Do not debug yet. Right now there is a person who gave you money and got nothing, and every minute they spend wondering is a minute they spend deciding whether you are real.

Open your app's database — in Supabase that's the Table Editor, in most other tools it's whatever screen shows you rows of users. Find their row and set it to whatever "paid" looks like in your app: a plan field, a true/false switch, a role, a subscription row. Whatever the free users don't have, give them.

Then email them. Short, and with no explanation of causes. Something close to this works:

That's it. People forgive breakage. They do not forgive silence.

How do I tell if it's one customer or all of them?

In the Stripe dashboard, go to the Developers area and find the list of messages Stripe has sent to your app. Every time someone pays, Stripe tries to tell your app about it, and it keeps a record of whether your app answered properly — each attempt marked accepted or failed, with a timestamp.

Mostly green with one red means one customer and one blip. You've already fixed their account by hand; get on with your day.

All red starting at a specific time means every customer who paid since then has the same problem as the person who emailed you. They just haven't emailed yet. Scroll to where the red starts and write down that date and time.

Nothing in the list at all means Stripe isn't being told to tell your app anything. Usually the connection was never fully set up, or it was set up in Stripe's test mode while your real payments run in live mode — a trap that catches a lot of people the first time they go from preview to production.

What actually went wrong?

When someone pays, Stripe sends your app a message saying "this person paid, let them in." Your app is supposed to receive that message, confirm it really came from Stripe, and flip the switch on that user's account. There are four well-worn places this breaks.

What went wrongWhat you'd seeWhere to look
Access is granted on the thank-you page, not by Stripe's confirming messageWorks every time you test it, fails for people on phones who close the tabYour success page code
Your app demands a login before it will listen to StripeA failure marked 401 — the code for "you're not signed in" — and your own logs are completely emptySupabase function settings
The shared secret doesn't match, or you're in the wrong modeA failure mentioning signatures; checkout succeeds but nothing happens afterLive versus test keys
The message arrived and the database refused the writeStripe says accepted, your code ran, the row never changedYour database permission rules
The four usual causes, and how each one looks from the outside

Why is the thank-you page the wrong place to unlock access?

Because in real life people pay on a phone, the payment succeeds, and then they close the tab, lose signal in a lift, or get a call. Stripe's own documentation is blunt about this: it describes exactly the scenario where someone pays successfully in Checkout and then loses their connection, and says the confirming message is required for handing over what they bought1

There's a second, worse half. If access is granted by visiting the success page, anyone who types that address into their browser gets the paid version free. So this bug usually comes in a matched pair: paying customers locked out, non-paying visitors let in.

Why would my own logs be completely empty?

If your app was built on Supabase — and if you used Lovable, Bolt or Base44, it very likely was — the little functions that run on Supabase's servers check for a logged-in user before your code even runs. Supabase documents this directly: every request passes through two layers of sign-in checking, and a platform-level one runs before your code executes4

Stripe is not a logged-in user of your app. It has no account. So the check rejects the message before anything of yours sees it, which is why this one is so confusing to chase. Supabase's docs show how to switch that check off for one specific function, and use payment confirmations from Stripe as the example. Others have hit the same wall and stayed stuck even after changing the setting, because it had to go in the right file and be redeployed5

What if the secret or the mode is wrong?

Your app checks that the message genuinely came from Stripe using a secret string the two share. If that string is wrong — most often because yours came from Stripe's test mode while the payments are real — your app correctly refuses a message that was, in fact, genuine.

People writing up the Lovable version of this describe the same symptom every time: checkout opens, the payment succeeds, the user never gets access, and the connection is still pointing at the test setup7

How do I fix it if I didn't write the code?

If you're on Lovable, Bolt, Replit or Cursor, you don't need to write any of this yourself. You need to describe the problem accurately.

PASTE THIS INTO YOUR AI TOOL
Payments are being taken by Stripe but users aren't being upgraded. Check that access is granted when Stripe confirms the payment, not on the success page. Make sure the function that receives Stripe's confirmation does not require a logged-in user. Verify it's using the live secret, not the test one, and that it writes to the database with server-level permissions. Also make it safe to receive the same payment confirmation twice without double-charging or duplicating rows.

That last sentence matters more than it looks. Stripe may deliver the same message more than once, and its docs tell you to handle being called multiple times with the same Checkout Session ID2 Without that, your fix creates duplicate subscriptions.

If you sell a subscription rather than a one-off payment, there's a monthly version of this too. Stripe sends a completion event after signup and then a payment event each month that you should keep granting access from3 A setup that only handles the signup will quietly stop renewing people.

How do I find everyone else who paid and got nothing?

  1. Open Stripe's payments list
    Filter to successful payments since the timestamp you wrote down when the failures started.
  2. Check each one against your users table
    Anyone who shows as paid in Stripe but locked in your app is in the same boat as the person who emailed you.
  3. Unlock and email them the same way
    Do it before they contact you. One of them was about to ask for a refund and now won't.
  4. Check the opposite direction too
    Stripe can mark a payment as still processing rather than complete, because bank-based methods settle slowly. Stripe's own guidance is to check the payment status before handing over access1 Don't unlock accounts that haven't actually paid yet.

How do I find out before the customer does?

Some of this you can only catch by looking. Nothing watching from outside your app can read your Stripe dashboard, and a payment that silently fails to unlock an account can happen while your site loads perfectly. So put a recurring reminder in your calendar: once a week, compare Stripe's successful payments against your paid users. Five minutes, and it catches everything.

But a good share of these failures aren't silent at all. The reason the confirming message failed was that your app was erroring, asleep, or redeploying at the moment Stripe knocked. In that case the app was visibly unwell and nobody was looking.

That's the part worth automating, and it's what Fomio does. You paste a link to your app, it checks from outside, and it tells you one of three things: Working, Having trouble, or Down. There's nothing to set up and nothing to configure. When something breaks it says in plain English what likely went wrong, and on the Builder plan it writes the prompt to paste straight into Lovable or Bolt or whatever you built with.

What it won't do: read your Stripe account, or notice that a payment didn't land while your app was otherwise fine. Nothing watching from the outside can. For that, the weekly five-minute check is still the answer.

The free plan watches one app, checks every five minutes, emails you when it breaks and keeps seven days of history — no card needed. Builder adds the fix prompts, checks every minute, and covers three apps. Current prices are at fomio.ai/pricing.

So: unlock the customer, email them, read the list in Stripe, work through the four usual suspects, sweep for everyone else who paid. Then go set up something that tells you before the next customer has to.

Questions people also ask

WHERE THIS COMES FROM

  1. Fulfil orders — Stripe Docs
  2. Fulfill orders (Checkout Sessions API) — Stripe Docs
  3. Build a subscriptions integration with Checkout — Stripe Docs
  4. Authorization headers — Supabase Docs
  5. Edge Function Always Returns 401 Unauthorized Despite "auth": false Config — Supabase GitHub Discussions
  6. Stripe Checkout Succeeds but Your App Never Records the Payment: How to Fix It — DEV Community
  7. Lovable app works in preview but breaks after deploy? Seven fixes — DEV Community
KEEP READING
Read this as markdown