Stripe Env Vars

Store Stripe test keys and webhook secret in .env.local.

Environment variables

VariableDescriptionTypeSource
STRIPE_SECRET_KEYStripe test secret key*
server
secret
Stripe Dashboard → Developers → API keys
STRIPE_PUBLISHABLE_KEYStripe test publishable key*
public
safe
Stripe Dashboard → Developers → API keys
STRIPE_WEBHOOK_SECRETWebhook 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.
Stripe Env Vars | VibeCodeMax Docs