StackMatch

How to add Stripe payments to a Bolt app (2026)

Prices and facts checked on each tool's official site. Plans change often, so confirm before you pay.

You built an app on Bolt.new and now you want people to pay for it: a one-time purchase or a monthly subscription. Bolt has a built-in Stripe integration that does most of the hard work for you. Here's how it works, step by step, based on Bolt's own help center and Stripe's docs.

Quick answer

Make sure your Bolt project has a database (Bolt Database or Supabase) and user sign-in. Then click the gear icon at the top of your project, choose Stripe, paste your Stripe test secret key, pick your products and click Apply changes. Bolt creates the server functions for checkout, webhooks and subscriptions for you. Test with Stripe's card 4242 4242 4242 4242, then go live. Bolt's docs don't list a paid plan for this, and Stripe charges 2.9% + 30¢ per successful US card payment, with no monthly fee.

Bolt.new: referral link. We may earn a commission at no extra cost to you, and it never changes our picks.

Two ways to take payments in a Bolt app

Bolt's built-in Stripe integrationA Stripe Payment Link
What it isBolt connects your Stripe account, imports your products and writes the checkout codeA no-code Stripe checkout page; you ask Bolt to add a Buy button that opens it
NeedsA Bolt Database or Supabase database, user sign-in and a Stripe accountJust a Stripe account
One-time and subscriptionsBothBoth
Does your app know who paid?Yes: Bolt sets up the webhooks that tell your app about payments and subscription changesNot by itself. You see sales in the Stripe Dashboard (or log them with Make, see below)
Best forPaid features, member areas and subscriptions inside the appSelling one thing fast, like a template, a pre-order or a donation
Stripe fees2.9% + 30¢ per successful US card payment, no monthly feeSame

Before you start

  • A database. Bolt's Stripe integration needs Bolt Database or Supabase, because the payment code runs in server functions (also called edge functions). It doesn't work with Firebase. Bolt Database is included on every plan, including Free, and Bolt usually creates one when your app needs it. Supabase needs a Pro or Teams plan.
  • User sign-in. If your app has no sign-up and log-in yet, ask Bolt to add them first, for example: Create user accounts via email sign-up and login.
  • A Stripe account (individual or business) in test mode, which Stripe calls a sandbox.
  • Already wrote your own Stripe code? Bolt says existing custom Stripe setups can't be moved into the built-in integration, but they keep working.

Step by step: add Stripe to your Bolt app

  1. Create your products in Stripe. In the Stripe Dashboard, while in test mode, add the products and prices you want to sell (for example "Pro plan, $9 a month"). Bolt imports them in a later step.
  2. Copy your test secret key. In Stripe, open Developers, then API keys, and copy the secret key. Test keys start with sk_test_. Don't paste it into the chat, your code or a screenshot: you'll add it in a secure box in the next steps.
  3. Open Bolt's Stripe setup. In your Bolt project, click the gear icon at the top center of the screen, then click Stripe.
  4. Add the key. When Bolt asks, click Add Stripe API Key and paste your test key into the window.
  5. Pick your products. Click Retrieve my products, tick the ones you want in this app and click Apply selection.
  6. Apply the changes. Bolt imports the products and creates the server functions for checkout sessions, payment webhooks and subscription management. When it asks to apply the changes to your database, click Apply changes. Bolt registers the Stripe webhook and verifies its signatures for you, so there's nothing to set up in the Stripe Dashboard.
  7. Test every path. Buy something in your app's preview with Stripe's test cards: 4242 4242 4242 4242 should succeed, 4000 0000 0000 0002 is declined, and 4000 0025 0000 3155 asks for extra authentication. Use any future expiry date and any CVC. Check that subscriptions start, renew and cancel the way you expect. Never use real card details in test mode.
  8. Publish. Click Publish in the top-right corner. The Publish button doesn't use tokens; asking Bolt in the chat to publish does. After later changes, open the Publish menu and click Update, because changes aren't live until you do. Full walkthrough: how to publish a Bolt app.

Going live with real payments

Bolt's guide stops at test mode, so here's what Stripe says about the switch, plus what we'd check:

  • Swap test keys for live keys. Stripe says moving to live is mostly a matter of swapping keys. Live secret keys start with sk_live_. Bolt's docs don't show exactly where the live key goes, so if you're not sure, ask Bolt support before you take real money.
  • Recreate your products in live mode. Products and prices made in a sandbox can't be used in live mode.
  • Work through Stripe's go-live checklist before you announce your launch.
  • Don't test with real cards. Stripe's terms forbid testing in live mode with real card details, so do all testing in the sandbox and watch your first real orders in the Stripe Dashboard.

Gotchas beginners hit

  • Keys belong in secrets, not code. Bolt's server functions read keys from your project's Secrets (database icon, then Secrets), so they never reach your users' browsers. Stripe says only the publishable key is safe outside your server. Worried one slipped into your live site? Run the 3-minute exposed API key check.
  • Free hosting has a hard limit. Free Bolt sites get up to 10 GB of bandwidth and 333,333 requests a month across your account, then go offline until the next billing cycle. Pro raises that to 30 GB and 1 million requests, with optional pay-as-you-go so a busy launch day doesn't take your checkout down.
  • Your own domain and no badge need Pro. Free sites show a Made in Bolt badge and use a bolt.host address. Pro is $25/mo, or $18/mo billed yearly ($216 a year), and also starts at 10M tokens a month. See Is Bolt Pro worth it?
  • Building your own webhook later? Stripe's webhook calls don't carry a user login, so a custom Bolt server function will reject them until you ask Bolt to turn off JWT verification for that function and add another way to validate the request.
  • Paid but nothing unlocked, or a webhook error? See Stripe payments not working: fix webhooks and checkout.
  • International customers cost more. Stripe adds 1.5% for international cards and 1% if currency conversion is needed. Subscriptions also use Stripe Billing: 0.7% of billing volume on pay-as-you-go.
  • Running low on tokens? Plan the payment flow in Plan mode first and test with the buttons instead of repeated fix prompts. Our Bolt tokens running out? guide has 8 more tips.

Next step: automate what happens after each sale

Once payments work, you'll want each sale logged and each buyer thanked without spending Bolt tokens on every change. Make can watch your Stripe account and do it with no code (its Free plan includes 1,000 credits a month). Stripe lets one account send events to up to 16 destinations, so Make sits next to the webhook Bolt set up.

Bolt.new and Make: referral links. We may earn a commission at no extra cost to you, and it never changes our picks.

Built with Lovable instead? See how to take Stripe payments in a Lovable app. Still choosing a builder? Compare Lovable vs Bolt or Bolt vs v0.

Sources

FAQ

Do I need Bolt Pro to take Stripe payments?

Not according to Bolt's docs. Its Stripe guide works with any project that uses Bolt Database or Supabase, and Bolt Database is included on every plan, Free too. Supabase needs Pro or Teams. You'll probably want Pro ($25/mo, or $18/mo billed yearly) before real customers arrive anyway: it adds your own domain, removes the Made in Bolt badge and raises hosting limits.

How much does Stripe charge?

Stripe has no setup or monthly fees. For US businesses it's 2.9% + 30¢ per successful domestic card payment, plus 1.5% for international cards and 1% more if currency conversion is needed. Subscriptions also use Stripe Billing, which costs 0.7% of billing volume on the pay-as-you-go plan.

Do I have to set up Stripe webhooks myself?

Not with Bolt's built-in Stripe setup. Bolt says it registers the webhook endpoint and verifies the signatures for you, so there's nothing to add in the Stripe Dashboard. If you later ask Bolt to build a custom server function that receives Stripe webhooks and it fails with an authorization error, Bolt's troubleshooting guide says to ask Bolt to turn off JWT verification for that function and add another way to check the request.

How do I switch from test mode to real payments?

Bolt's Stripe guide covers setup in test mode but doesn't describe the switch to live keys. Stripe says going live is mostly swapping your test keys for live keys (they start with sk_live_), and that products you made in a sandbox don't work in live mode, so create them again there. Run through Stripe's go-live checklist, and ask Bolt support if you're unsure where your project's live key goes.

Stuck on your Lovable or Bolt app? Paste your error into our free decoder or let us finish it for you.

Some links are referral links; we may earn a commission at no extra cost to you. It never changes our recommendations.

Newsletter

Get the monthly "which AI tool" email

One short, beginner-friendly email a month. No spam.

Form not showing? Subscribe here