Connecting to Stripe enables secure payment processing for your application, supporting both one-time payments and subscription billing.Bolt’s Stripe integration provides:
Automatic synchronization of products from your Stripe dashboard
Built-in support for one-time payments and subscriptions
Secure server-side payment processing through Supabase edge functions
Automatic webhook handling for payment events
Test mode support for safe development
The integration requires Supabase as your database provider and handles all the complex payment processing logic automatically.
You can add Stripe payments to any Bolt project that uses Supabase for its database, authentication, and edge functions.If you prefer learning by video, here’s a short video tutorial.
A Supabase project connected to your Bolt account. Refer to Supabase for guidance.
User authentication set up in your project.
A Stripe account (individual or business).
Stripe integration requires Supabase edge functions and doesn’t work with Firebase. Existing custom Stripe implementations cannot migrate to this built-in integration but will continue to function.
Ensure your project has user authentication configured. If not, prompt Bolt to set up user authentication first.
In your Bolt project, select Integrations > Stripe.
Bolt guides you through the integration setup process:
When prompted to by Bolt, click Add Stripe API Key.
Paste your test key into the modal.
Click Retrieve my products.
Select the products you want to use in your Bolt application.
Click Apply selection. Bolt imports your Stripe products, and automatically creates the Supabase edge functions to handle:
Secure checkout session creation
Payment webhook processing
Subscription management
Bolt prompts you to apply the changes to Supabase. Click Apply changes.
Always use Stripe’s test environment during development. Use test card numbers to simulate payments. Never use real payment details in test mode.
Bolt automatically handles webhook endpoint registration and signature verification. You don’t need to manually configure webhook endpoints in your Stripe dashboard.