Billing

This page creates a Stripe Checkout session using your configured Stripe test keys. If you have not set a real `STRIPE_PRICE_ID`, the checkout flow will fail until you configure one.

Setup notes

  • Make sure `STRIPE_SECRET_KEY` and `STRIPE_PRICE_ID` are configured in `.env.local` and in production env.
  • Set your Stripe webhook endpoint to `https://your-site.com/api/stripe-webhook`.
  • Use the Stripe webhook secret in `STRIPE_WEBHOOK_SECRET`.