Skip to main content
Stripe handles credit cards, subscriptions, invoices, and one-time payments. Connect it to Rocket and describe the payment flow you want in chat. Rocket generates the complete checkout experience: pricing pages, payment forms, webhook handlers, and subscription management.
Stripe works best paired with Supabase for user accounts and Resend or SendGrid for order confirmation emails. Rocket links Stripe customers to authenticated Supabase users.

What you can use it for

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.

Quick start

1

Get your Stripe keys

Go to the Stripe Dashboard and copy your Secret key and Publishable key. Start with Test mode keys for development.
2

Connect in chat

Open any Rocket project and type:
Connect Stripe and add a $49 one-time checkout for my product.
Paste your keys when prompted. Rocket builds the checkout flow instantly.
3

Test the payment

Use Stripe’s test card number 4242 4242 4242 4242 with any future expiration date and any 3-digit CVC.

Detailed setup

Get your Stripe keys

Open Stripe’s Keys documentation to learn how to create and manage your API keys.
Stripe provides two types of keys:
Key typePrefixUsage
Publishable keypk_Safe to use on the client side
Secret keysk_Must be kept confidential, used on the server side
Keys exist in two modes:
ModePurpose
Test modeSafe development and testing
Live modeProduction, real payments
Always start with your Test keys, then switch to Live keys before going live.
Never paste your Stripe keys directly into Rocket chat. Always use the secure integration flow or the API key input in settings. If you believe your Secret key has been exposed, rotate it immediately from the Stripe Dashboard.

Connect Stripe to Rocket

There are two ways to connect Stripe:Method 1: Use Rocket chat (fastest)In any project, open the chat panel and type:
  • Connect my Stripe account to create a one-time checkout for my $29 eBook.
  • Connect Stripe and add a monthly Premium plan for $10.
A popup appears where you can paste and save your keys.
Stripe integration popup in chatStripe integration popup in chat
Method 2: From ConnectorsIn the preview toolbar, click the ... button and select Connectors. Click the Stripe card.
Integrations tabIntegrations tab
Click Stripe integrationClick Stripe integration
When you connect Stripe from Connectors, Rocket does not automatically create payment flows. After saving your keys, describe the payment flow you want in chat.
Paste your Secret and Publishable keys into the fields and click Save. A green dot appears next to Stripe when the connection is active.Update or disconnectClick the Stripe integration again. Replace the existing keys or click Disconnect to remove it.
Remove Stripe API keyRemove Stripe API key

Prompt cookbook

Copy-paste these prompts after connecting Stripe to build common payment flows:
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. Include a link to the Stripe customer portal where users can manage billing.
Usage-based billingTrack API calls per user and charge $0.01 per call using Stripe metered billing.

Tips and limitations

  • 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.
  • Supabase is required. Rocket links Stripe customers to Supabase user accounts. Connect Supabase before connecting Stripe.
  • Webhooks are handled automatically. When you describe a payment flow in chat, Rocket sets up the necessary webhook handlers for events like checkout.session.completed and customer.subscription.updated.
  • Stripe dashboard for refunds and disputes. Refunds, disputes, and detailed financial reporting must all be managed from the Stripe Dashboard. Rocket does not process refunds directly.
  • One set of Stripe keys per project. Each Rocket project connects to a single set of Stripe API keys. You can use the same Stripe account across multiple projects.

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.