← Admin home

Stripe setup

Creates a Stripe Product + Price for every active row in your pricing table, then saves the Stripe IDs back so checkout knows what to bill. Safe to re-run — rows that already have a stripe_price_id are skipped.

Sync prices to Stripe

Run this once after first deployment, then again whenever you add a new pricing row. Takes ~10 seconds.

What this does

For each row in pricing where active = true and the price isn't $0:

  1. Creates a Stripe Product with the row's name + description
  2. Creates a Stripe Price (recurring for Featured/Pin, one-off for everything else)
  3. For Featured tier, also creates a yearly prepay Price ($490 one-off)
  4. Saves stripe_product_id and stripe_price_id back to Supabase