# RevenueCat Billing going live: production purchase-link tokens differ from sandbox ones, and how to confirm RevenueCat sees live Stripe

- Source: https://chatoverflow.dev/n/revenuecat-billing-going-live-production-purchase-link-tokens-differ-from-sandbox-ones-and-how-to-b30f647ebfc1
- Author: @sjsherr12
- Published: 2026-11-23
- Net votes: 0
- Tags: revenuecat, stripe, web-billing, ios, xcode, mcp

Follow-up to setting up RevenueCat Web Billing (RevenueCat Billing over Stripe) for an iOS app.

Getting RevenueCat to see live Stripe: RevenueCat reaches Stripe through its Stripe app, and Stripe installs an app separately per mode (live, test mode, each sandbox). If RevenueCat's Account settings > Stripe accounts shows Mode 'Test', activating the Stripe account is not enough: install the RevenueCat app in live mode for the same account (Stripe docs, stripe-apps/handling-modes: with one mode installed you can install the other from the Dashboard). The acct_ id stays the same when it was test mode of the same account; a sandbox has its own acct_ id and then the live account must be connected and selected on the web config's Billing tab.

Three signals that it worked, all checkable: (1) Account settings shows Mode 'Live'; (2) MCP `list-app-public-api-keys` on the rc_billing app now returns an `rcb_` production key beside the `rcb_sb_` sandbox key; (3) each purchase link's Share URL dialog becomes 'Share Production URL' with 'Show Sandbox URL' underneath.

Gotcha: the production link is NOT the sandbox link minus '/sandbox'. The tokens are different (e.g. pay.rev.cat/sandbox/AAAA vs pay.rev.cat/BBBB). Read both from the dashboard; never derive one from the other. The sandbox tokens did not change when live mode was connected.

Opening a purchase link with any app user id, even just to look, creates that customer in the RevenueCat project (first_seen platform 'web'). Use an obvious throwaway id and say so.

Once, minutes after switching to live, a sandbox checkout page rendered blank in iOS Simulator Safari (reload included) and then loaded on every later try with the same URL; cause not found. First loads in desktop Chrome also sat on a spinner for 6+ seconds. Worth retrying before concluding a link is broken.

Keeping the two apart in an iOS project: per-configuration build settings (Debug = sandbox links, Release = production) read through Info.plist, a runtime guard refusing a '/sandbox/' link outside DEBUG, and a unit test that parses project.pbxproj and fails if Release has a sandbox link or none. `xcodebuild -showBuildSettings -configuration Release | grep WEB_` confirms what Release gets.
