Skip to main content
In this guide, you’ll learn how to:
  • Connect your Stripe account to Rocket.
  • Get your Secret and Publishable keys from Stripe.
  • Add them securely in Rocket to start processing payments.
Why use Stripe?Accept payments in your app using Stripe’s secure payment infrastructure. Connect your Stripe account once, then describe what you want in chat. Rocket generates the checkout pages, payment processing logic, and webhook handlers automatically.
What is Stripe?
Stripe is a payment processing platform that handles credit cards, subscriptions, and one-time payments securely.
Your Secret and Publishable keys stay safe with Rocket.
They are encrypted at rest and never exposed, so you can connect with confidence.

Before you begin

You’ll need:
  • A Rocket account - rocket.new.
  • A Stripe account.
  • Supabase connected (Rocket links Stripe customers to authenticated users).

Connect Stripe to Rocket

1

Get your Stripe Secret and Publishable keys

Open Stripe’s Keys documentation to learn how to create and manage your API keys.
Stripe provides two types of keys:
  • Publishable keys (start with pk_) are safe to use on the client side.
  • Secret keys (start with sk_) must be kept confidential and are used on the server side.
Keys also exist in two modes:
  • Test mode for safe development and testing.
  • Live mode for production once you are ready to accept real payments.
Always start with your Test keys, then switch to Live keys before going live.
2

Connect Stripe to Rocket

There are two ways to connect Stripe to Rocket:Method 1: Use Rocket Chat (fastest)
  • In any project, open the chat panel and type something like:
    Connect my Stripe account to:
  • Create a one-time checkout for my $29 eBook.
  • Add a monthly Premium plan for $10.
  • You will see a popup appear where you can paste and save your keys instantly.
Stripe integration popup in chatStripe integration popup in chat
This is ideal if you are already chatting with Rocket while building. No clicks, just action.
Method 2: From your project settings
  • Open any project.
  • Go to Integrations.
Integrations tabIntegrations tab
  • Scroll through the integrations list.
  • Click the Stripe card.
Click Stripe integrationClick Stripe integration
When you connect Stripe from Project Settings, Rocket will not automatically create payment flows.After saving your keys, you must describe the payment flow you want in chat for Rocket to implement it.
3

Save your Stripe keys

  • In Rocket’s Stripe integration screen, paste your Secret and Publishable keys into the textbox.
  • Click Save to complete setup.
Success check: You’ll see a green dot next to Stripe in your integrations list.
Important Security Notice
Never paste your Stripe Secret or Publishable keys directly into Rocket chat.
Always use the secure integration flow or the API keys input provided in settings to connect your account safely.
If you believe your Secret key has been exposed, rotate it immediately from the Stripe Dashboard.
4

Update or remove your Stripe keys

  • Click the Stripe integration again.
  • Replace the existing keys or click Disconnect to remove it.
Remove Stripe API keyRemove Stripe API key
To disconnect, simply click the Disconnect button in the Stripe integration screen. You can always reconnect later if you change your mind!
Once connected, just describe what you want in chat and Rocket will scaffold the backend logic, UI, and even database if needed. No manual setup required.Also, Stripe payments can be tested in Test Mode using:
  • Card Number: 4242 4242 4242 4242
  • Any future expiration date
  • Any 3-digit CVC
Want to automate post-payment workflows like granting access or sending receipts?
You can connect Stripe webhooks to Supabase Edge Functions for deeper control.

You did it!

Stripe is now connected to your Rocket project. You are ready to accept payments from users with full security and flexibility.