By Hanzalah Seikhai, Stripe developer. 3 December 2026

Stripe payment works but the user stays on free in a Lovable or Supabase app: what to check

AI builders get you to a working Checkout quickly. The part that usually breaks is the step after payment, where the app is supposed to upgrade the user. These are the checks I run in Supabase based apps built with Lovable, Bolt or similar tools.

1. Is there a webhook at all?

Many generated apps upgrade the user on the success page only. If the customer closes the tab, nothing happens. You need a Supabase Edge Function, or another server endpoint, that receives the Stripe webhook and updates the database.

2. The Edge Function rejects Stripe

Supabase Edge Functions check for a Supabase JWT by default. Stripe does not send one, so the request is rejected before your code runs. Deploy the webhook function with JWT verification turned off, and rely on the Stripe signature check instead.

supabase functions deploy stripe-webhook --no-verify-jwt

3. The signature check uses the wrong body or method

Read the raw body with await req.text() and verify it before parsing. In Deno use stripe.webhooks.constructEventAsync, since the synchronous version relies on crypto that is not available there.

4. The function cannot write to the table

The webhook runs without a logged in user, so Row Level Security blocks the update if the function uses the anon key. Use the service role key inside the function, stored as a secret, never in the frontend.

5. The payment cannot be matched to a user

Pass the Supabase user id when creating the Checkout Session, as client_reference_id or in metadata, and read it back in the webhook. Matching by email breaks as soon as a customer pays with a different address.

6. Test and live are mixed

Generated apps often keep the test secret key or test webhook secret after going live. Check the secrets in the Supabase dashboard match the live endpoint in Stripe.


If you want this fixed or built in your app, see Stripe fixed in an AI-built app, hire me on Upwork, or get in touch.

Written by Hanzalah Seikhai, Stripe developer. Hire me on Upwork.

More notes