Going Live
elements man payments/live Read as markdownThe owner, at dashboard.stripe.com, with live mode on:
- Activate the account for live payments: business details and a bank account.
- Developers, API keys: copy the live secret key (
sk_live_...).
The owner puts it in config/env/production.env, which is gitignored:
config/env/production.envSTRIPE_SECRET_KEY=sk_live_...
Then elements deploy (elements man deploy). A deploy without the key fails
its build, and an empty key stops the app at startup. The first checkout
registers the production webhook (payments/webhook). There are no prices to
recreate in live mode; they come from the app, and there is nothing to open
or click after the deploy.
Sandbox and live never mix: a sandbox key cannot see live payments, and the
payments rows from development stay in the development database.