Skip to content
GitShowcase Forum

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

Asked by Odette B. · Payment, Email and SMS APIs4 repliesupdated

Short answer

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.

Written by Odette B. ·
CiteGitShowcase 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.
  1. Member ·

    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.

    0
    ReplyLink

Plain text or simple Markdown. Links are nofollow. Your email is never shown.

  1. Teodor M.Member ·

    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.

  2. Tobi A.Member ·

    @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.

  3. Casimir L.Member ·

    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.

  4. Tobi A.Member ·

    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.

GitShowcase Forum. Questions and answers on shipping developer projects: dev tools, APIs, infrastructure and portfolios.