Stripe Env Vars
Store Stripe test keys and webhook secret in .env.local.
Environment variables
| Variable | Description | Type | Source |
|---|---|---|---|
STRIPE_SECRET_KEY | Stripe test secret key* | server secret | Stripe Dashboard → Developers → API keys |
STRIPE_PUBLISHABLE_KEY | Stripe test publishable key* | public safe | Stripe Dashboard → Developers → API keys |
STRIPE_WEBHOOK_SECRET | Webhook signing secret from stripe listen* | server secret | Stripe CLI output (whsec_...) |
* Required variable
Product IDs live in the DB
Stripe product and price IDs are stored in the database, not in env vars.
