# Stripe payments in a Bolt app: from test mode to real money

> Bolt’s Stripe integration needs sign-in and a Bolt database or Supabase; it then builds checkout, webhooks and subscriptions in edge functions. If a payment succeeds but the app doesn’t update, check the webhook deliveries in Stripe, and test declines and cancellations before going live.

Canonical: https://shipfast.online/rescue/bolt/payments/
Last updated: 2026-10-25

By [Prayag Dalal](https://shipfast.online/about/). Checked against Bolt's documentation on 2026-10-25.

## Symptoms

- The Stripe setup asks for things your project doesn’t have yet, like sign-in or a database.
- Checkout succeeds, but the user’s plan or order isn’t updated.
- Payments work in test mode and you’re not sure how to switch to live.

## Why it happens

Bolt’s Stripe integration needs a project with a Bolt database or Supabase, and user authentication. When you connect it, Bolt imports the products you choose from your Stripe dashboard and creates edge functions that create checkout sessions, process webhooks and manage subscriptions.

Because the app learns about payments from Stripe’s webhooks, a payment that succeeds but doesn’t update the app usually means the webhook isn’t arriving, or that event isn’t being handled.

## What Bolt already handles

- **Product import:** Pulls in the products you select from your Stripe dashboard.
- **Server-side checkout and subscriptions:** One-time payments and subscriptions processed in edge functions, not the browser.
- **Webhook handling:** Edge functions that process Stripe’s payment events.
- **Test mode:** Build with a Stripe test key and test cards before going live.

## Fix it yourself

1. **Add sign-in and a database first.** If your project has no authentication yet, ask Bolt to add it, so every payment links to a user.
2. **Connect with a test key.** In Stripe test mode, create a secret key, add it in Bolt’s Stripe settings, retrieve your products and apply the changes.
3. **Test every path.** Use Stripe’s test cards for a successful payment, a decline and a card that needs authentication, and test cancelling and renewing a subscription.
4. **Check webhook deliveries in Stripe.** In the Stripe dashboard, confirm events reach your endpoint and succeed. Failed deliveries are the usual reason an account doesn’t update.
5. **Go live carefully.** Switch to live keys only after your Stripe account is verified, then make one low-value real purchase yourself.

## Where it still goes wrong

- Refund rules, failed-renewal emails, taxes and invoices are your decisions. Set them up in Stripe.
- If prices or plan names are checked in the browser, a user can tamper with them. Keep prices and access checks on the server.
- A Stripe secret key pasted anywhere other than Bolt’s key field, such as a prompt or a file, should be treated as exposed and rotated.

## FAQ

### Does Bolt’s Stripe integration need Supabase?

It needs a Bolt database or Supabase, plus user authentication, because payments are processed in edge functions and linked to users.

### Why isn’t my user’s subscription updating after payment?

Usually the webhook. Check the event deliveries for your endpoint in the Stripe dashboard and make sure that event type is handled.

### Can I test without real money?

Yes. Use Stripe test-mode keys and Stripe’s test card numbers; no money moves.

### Where should my Stripe key go?

Only into Bolt’s Add Stripe API Key field. Payments run in server-side edge functions, so the secret key never needs to be in your frontend code.

## Sources

- [Bolt help: Stripe for payments](https://support.bolt.new/integrations/stripe)
- [Stripe: test card numbers and test mode](https://docs.stripe.com/testing)
- [Stripe: receive events with webhooks](https://docs.stripe.com/webhooks)

## Get it fixed

App rescue, From $1,000, fixed price: [send your app](https://shipfast.online/contact/?service=app-rescue).

## Related

- [All Bolt guides](https://shipfast.online/rescue/)
- [Free production readiness check](https://shipfast.online/tools/production-readiness-check/)
