Stripe
Accept payments in your Rocket.new app with Stripe to handle one-time checkout, recurring subscriptions, and donation flows from a single prompt.
Connect Stripe and describe the payment flow you want in chat. Rocket generates the complete checkout experience: pricing pages, payment forms, webhook handlers, and subscription management.
What you can do
SaaS subscription billing
Monthly or yearly plans with automatic billing, upgrades, downgrades, and cancellation.
One-time product checkout
Sell digital products, courses, templates, or physical goods with a simple checkout flow.
Accept donations
One-time or recurring donations with preset or custom amounts.
Multi-product checkout
Cart-based checkout with multiple line items, quantities, and a single Stripe payment session.
Before you connect
You need your Secret key and Publishable key from the Stripe Dashboard.
Open your Stripe API keys in the Stripe Dashboard
| Key type | Prefix | Usage |
|---|---|---|
| Publishable key | pk_ | Safe to use on the client side |
| Secret key | sk_ | Server side only - keep this confidential |
Keys come in two modes. Always start with Test keys and switch to Live keys only when you are ready to accept real payments.
Never paste your Stripe keys directly into chat. Always use the secure connection popup. If your Secret key has been exposed, revoke or rotate it immediately.
Stripe works best paired with Supabase for user accounts. Rocket links Stripe customers to authenticated Supabase users automatically.
Connect Stripe
You can connect from two places - both open the same popup.
Option 1: From chat
Type a prompt that mentions Stripe - for example, Connect Stripe and add a $49 one-time checkout. Rocket detects the intent and shows a Connect button inline. Click it and the popup opens.


Option 2: From the Connectors tab
Click the ... button in the preview toolbar, then select Connectors.


Click the Stripe card, then click Connect.


After clicking Connect
A popup opens. Paste your Secret key and Publishable key, then click Save. A green dot appears next to Stripe when the connection is active.


Update or disconnect
Go to Connectors > Stripe. Update your keys or click Disconnect to remove the integration.


Example prompts
| Use case | Prompt |
|---|---|
| Simple checkout | Add a Stripe checkout for my $49 product with a success page. |
| Subscription plans | Create a pricing page with Free, Pro ($19/mo), and Enterprise ($99/mo) tiers using Stripe. |
| Donations | Add Stripe donation buttons with $5, $10, $25, $50 options and a custom amount field. |
| Free trial | Add a 14-day free trial to the Pro plan. Charge $19/month after the trial ends. |
| Invoices | Generate and email a PDF invoice to the customer after each Stripe payment. |
| Coupon codes | Add a coupon code field to the checkout page that applies a Stripe discount. |
| Refund flow UI | Add a "View Orders" page with order history and a link to the Stripe customer portal. |
| Usage-based billing | Track API calls per user and charge $0.01 per call using Stripe metered billing. |
Tips
- Always start with Test mode keys. Switch to Live keys only when you are ready to accept real payments. Test card:
4242 4242 4242 4242. - Connect Supabase first. Rocket links Stripe customers to Supabase user accounts. Connect Supabase before connecting Stripe.
- Webhooks are handled automatically. Rocket sets up the necessary webhook handlers for events like
checkout.session.completedandcustomer.subscription.updated. - Refunds and disputes live in Stripe. Manage refunds, disputes, and financial reporting directly from the Stripe Dashboard.
- One set of keys per task. Each Rocket task connects to a single set of Stripe API keys. You can use the same Stripe account across multiple tasks.
Revoke or rotate your API key
Disconnecting in Rocket only stops using the keys in this task. To invalidate a Secret key itself, expire or rotate it in the Stripe Dashboard.
- Open the Stripe API keys page.
- Find the Secret key you connected to Rocket.
- Click the overflow menu (⋯), then choose Expire key to revoke it immediately, or Rotate key to create a replacement (you can keep both keys working for up to 7 days).
- If you still need Stripe in Rocket, connect the new Secret key with Edit on the connector card.
- If Edge Functions still fail after you update Rocket, or Rocket cannot save the new key, update the secret manually in Supabase. The typical secret name is
STRIPE_SECRET_KEY.
Publishable keys cannot be expired. See Stripe's API keys docs for details.
Manage API keys in the Stripe Dashboard
Expire or rotate your Secret key from Developers, API keys.
After you expire or rotate a Secret key, any Rocket task still using the old key will fail until you connect a new one. Edge Functions that call Stripe also need the updated secret in Supabase if Rocket cannot push it for you.
What's next?
Supabase
Stripe requires Supabase for user accounts. Set it up if you have not already.
Resend
Send order confirmation and receipt emails automatically after Stripe payments.
Google Analytics
Track checkout conversion rates and revenue with GA4 e-commerce events.
Build a SaaS app
Full recipe: Supabase + Stripe + Resend + Netlify to build a complete SaaS product.

