# Moving Stripe from test mode to live mode, what changes and what do people forget?

Source: https://gitshowcase.com/forum/discuss/moving-stripe-from-test-mode-to-live-mode-what-changes-and-what-do/
Site: GitShowcase Forum, category Payment, Email and SMS APIs
Published: 2026-11-27. Updated: 2026-11-28. Replies: 4.

## Question by Odette B., 2026-11-27

We are two people launching a small subscription product next week. Checkout, subscriptions and a webhook handler all work in test mode on our staging site, using the `sk_test_` key and a webhook endpoint pointing at staging.

I am not an engineer by training, so I do not know what "going live" really involves. My assumption is that you swap the keys and flip a switch, but our contractor muttered something about "products not carrying over" and "a different webhook secret", and I did not follow.

What changes between test and live, and what do people usually forget until a real customer hits the error? I would like a checklist I can hand to our contractor and then verify myself, in plain language. We have a production domain on HTTPS and the app reads its keys from environment variables on the host.

Our setup is a Node backend, a hosted checkout page and one webhook endpoint for subscription events.

## Reply 1 by Teodor M., 2026-11-27

You swap the keys and you are done, that is the whole thing. Everything you created in test, products, prices, customers, is mirrored to live automatically, that is how it worked every time I did it. Change `sk_test_` to `sk_live_` and deploy.

## Reply 2 by Tobi A., 2026-11-27

@Teodor M. one more reason not to rely on "it mirrors": our test customer IDs started with `cus_` in both modes and looked fine in logs, so we did not notice we were reading test data until a refund failed. Always check the key prefix in the first live request log.

## Reply 3 by Casimir L., 2026-11-28

Please do not paste the live secret key into a chat, a ticket or a `.env` file that goes into git. Put it in your host's secret store. Also look at restricted keys: a backend that only creates checkout sessions and reads subscriptions does not need an unrestricted secret key. I read the keys page before our launch, it is worth ten minutes: [Stripe API keys](https://docs.stripe.com/keys).

## Reply 4 by Tobi A., 2026-11-28

If you also ship a mobile app, remember the publishable key lives in the app build. Ours kept the `pk_test_` key in the release build for a week, and every payment sheet failed against the live backend with a key mismatch. Rebuild the app, do not only change the server.

---
Cite as: GitShowcase Forum, "Moving Stripe from test mode to live mode, what changes and what do people forget?", https://gitshowcase.com/forum/discuss/moving-stripe-from-test-mode-to-live-mode-what-changes-and-what-do/, accessed 2026-11-29.
