S
Stripe
LiveSubscriptions, Customer Portal, and an idempotent webhook.
Three-tier subscription billing wired end-to-end — Checkout for the upgrade flow, Customer Portal for self-serve cancel/upgrade, and a webhook that dedupes events via the StripeEvent table.
Category
Billing
Setup time
15 minutes
Highlights
- Three pre-wired tiers — Free / Pro / Business
- Idempotent webhook (deduped via StripeEvent)
- RLS guard: only the webhook writes billing columns
Wire Stripe into your fork
The detailed walkthrough lives in the docs. Each step lists the env vars to set and the file to edit.