Getting StartedSolveBuildIntelligenceLearnHelpWhat's New
CONNECTORSPayments & Ads

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 typePrefixUsage
Publishable keypk_Safe to use on the client side
Secret keysk_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.

Stripe connection prompt in the Rocket chat panel.Stripe connection prompt in the Rocket chat panel.
Stripe connection prompt in chat

Option 2: From the Connectors tab

Click the ... button in the preview toolbar, then select Connectors.

Toolbar dropdown with Connectors option highlighted.Toolbar dropdown with Connectors option highlighted.
Open Connectors from the toolbar

Click the Stripe card, then click Connect.

Connectors tab showing the Stripe card with a Connect button.Connectors tab showing the Stripe card with a Connect button.
Stripe card in the Connectors panel

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.

Stripe API key input popup.Stripe API key input popup.
Paste your Stripe keys in the popup

Update or disconnect

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

Stripe integration showing connected state with a Disconnect button.Stripe integration showing connected state with a Disconnect button.
Disconnect Stripe

Example prompts

Use casePrompt
Simple checkoutAdd a Stripe checkout for my $49 product with a success page.
Subscription plansCreate a pricing page with Free, Pro ($19/mo), and Enterprise ($99/mo) tiers using Stripe.
DonationsAdd Stripe donation buttons with $5, $10, $25, $50 options and a custom amount field.
Free trialAdd a 14-day free trial to the Pro plan. Charge $19/month after the trial ends.
InvoicesGenerate and email a PDF invoice to the customer after each Stripe payment.
Coupon codesAdd a coupon code field to the checkout page that applies a Stripe discount.
Refund flow UIAdd a "View Orders" page with order history and a link to the Stripe customer portal.
Usage-based billingTrack 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.completed and customer.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.

  1. Open the Stripe API keys page.
  2. Find the Secret key you connected to Rocket.
  3. 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).
  4. If you still need Stripe in Rocket, connect the new Secret key with Edit on the connector card.
  5. 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?

On this page