envs

Stripe — server-side integration

stripe/backend · version 1

envs add stripe/backend

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
STRIPE_SECRET_KEY required secret Server-side API key. Never reaches the browser.. Shape ^sk_(test|live)_[A-Za-z0-9]{24,}$. Rotate every 90 days. where to get it
STRIPE_PUBLISHABLE_KEY required config Safe to ship to the browser.. Shape ^pk_(test|live)_[A-Za-z0-9]{24,}$. where to get it
STRIPE_WEBHOOK_SECRET optional secret Verifies that a webhook came from Stripe.. Shape ^whsec_[A-Za-z0-9]{32,}$. where to get it

The JSON the CLI reads