Intermediate - 30 minutes
Add a paid upgrade path
Wire Stripe checkouts, configure platform plans, and handle billing webhooks for multi-app subscriptions.
- Step 1: Log into your Stripe developer account and create product keys matching the Starter, Studio, and Premium plans.
- Step 2: Copy the pricing token keys and set the STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, and product IDs in your .env.local.
- Step 3: Deploy your webhook listener or start local port forwarding using the Stripe CLI to direct events to /api/stripe/webhook.
- Step 4: Trigger a test upgrade transaction from the Pricing page to confirm credentials, fulfillment webhooks, and billing limits.