CSV export of temperature history is a subscription feature billed through Stripe. Checkout creates a customer portal link; webhooks flip a flag in Supabase so export buttons unlock without manual admin work.
User flow
- Signed-in user opens billing from the dashboard.
- Stripe Checkout completes payment method capture.
- Webhook marks subscription active; user downloads CSV from history.
Export contents
Files mirror stored history columns—see CSV analysis guide. Live data path remains separate: data flow.
Implementation peers
Webhook handling patterns overlap with Express webhooks. Auth prerequisite: Supabase auth.