Simulacrum

Stripe

Stripe keys, Checkout, Customer Portal, webhooks, and subscription price IDs in Simulacrum apps.

Keys

bash
STRIPE_SECRET_KEY="sk_..."
STRIPE_WEBHOOK_SECRET="whsec_..."
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_..."

Price IDs

Map product and price IDs in simulacrum.config.ts or a dedicated billing config module. Keep test and live IDs in separate env files.

Webhooks

Expose a signed webhook route that handles checkout.session.completed, subscription updates, and invoice events. See Webhooks.

Customer Portal

Configure the portal in the Stripe dashboard and link the generated billing settings button to the portal session URL.

Verify webhook signatures on every request and return quickly; offload heavy work to background tasks.