Stripe CSV subscription

Subscribe for CSV export access via Stripe Checkout, webhooks, and the member group.

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

  1. Signed-in user opens billing from the dashboard.
  2. Stripe Checkout completes payment method capture.
  3. 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.