Stripe integration in Coderick AI: From test mode to live mode
In our How to connect Stripe in Coderick AI article, we showed you how the integration works. But you may now want to switch Stripe from test to live mode or vice versa, swapping one key (rk_test_) for another (rk_live_) in Coderick AI. And this quick guide will walk you through the process.
Test mode vs live mode: what’s the difference
Stripe has two workspaces – test mode and live mode.
| Mode | Restricted Key prefix | What it does |
| Test mode | rk_test_ | Simulated payments only. No real money transactions. Safe for building and verifying your checkout flow. Enables the use of Stripe test cards. |
| Live mode | rk_live_ | Ready to accept real payments. Charges go to actual cards. Payouts are sent to your connected bank account. |
Two ways a test key can exist
Keep in mind that a test key doesn’t always mean your Stripe account is new or unactivated. There are two distinct ways in which you’d be using a test key, and they require different steps to implement.
Case A: Your Stripe account is not yet activated
By default, your new Stripe account will start in test mode and you can only generate test keys. You will have to complete the account activation process (including providing accurate business details and banking information) before you can accept real payments.
In this situation, you can still build and test the full checkout flow in Coderick AI using your test Restricted Key (rk_test). Once you’ve completed Stripe’s activation, live keys will become available in your Stripe Dashboard and you can swap in a live Restricted Key (rk_live) to start accepting real payments.
To complete your Stripe account activation and verify your business, check out the full article here.
Case B: Your Stripe account is already activated
Once a Stripe account is activated, it operates in live mode. However, Stripe will let you create sandbox test keys in an account that’s already activated. With Sandboxes, you can simulate transactions without managing real payments. To create a Sandbox:
- Select the account picker > Switch sandbox > Create sandbox.

- Provide a name.
- Either choose Copying your account or Create an account from scratch. Stripe copies these settings by default.
- Click Create sandbox again.
To learn how to manage Sandboxes in detail, read the full Stripe documentation.
How to swap test key for a live key in Coderick AI
- Go to your Coderick AI project, open the left-hand sidebar and click Integrations. Your Stripe integration will appear as CONNECTED.

- Click on the kebab menu (the three dots) and choose Update Keys.

- Enter the rk_live key in the designated field and press UPDATE.

Once the live key is saved, all new transactions through your Coderick AI project will be processed as real payments through Stripe.
What changes when you go live
In essence, switching to a live Stripe key keeps your checkout logic intact (including product records, payment links, and confirmation flow built by Coderick). What changes is how Stripe processes the transactions.
Here’s what to expect after switching to live mode:
- Real charges apply. Cards are billed for real and test card numbers will no longer work.
- Bank authentication may trigger. In test mode, most flows go through seamlessly. In live mode, cards with 3D Secure enabled may prompt customers for additional verification (an SMS code or a bank app confirmation).
- Payouts begin. Funds from successful payments will be scheduled for payout to the bank account connected to your Stripe account in accordance with your Stripe payout schedule.
How to avoid common mistakes
Test and live are completely separate environments in Stripe and that’s why you need to remember the following:
- If you create something in a test, it won’t exist in live mode.
- The environment your integration runs in is determined by which key you use and not by what you see in the Stripe Dashboard.
- The “View test data” toggle in the Dashboard is a display filter only.
- When you switch the toggle to live, you have to replace your test keys in your environment variables with the corresponding live keys.
Managing your Stripe connection after going live
Your Stripe integration is always visible from the Integrations page in your Coderick AI sidebar. From there, you can verify the connection is active, disconnect and reconnect with a different key, or review other active integrations in the project.