Payments (Stripe)
Setup
1. Create a new Stripe project
Go to Stripe ↗, sign up, and create a new account. Under the Test mode toggle, tap activate your account and follow the instructions to begin accepting payments.
2. Configure Webhook
In your Stripe dashboard, go to Developers → Webhooks, and add a new endpoint with the following URL:
https://<your-domain>/payments/webhook
3. Connect to Vercel
In your Vercel project, go to Settings → Environment Variables, and add the following:
STRIPE_SECRET_KEY=... # Stripe → Developers → API keys → Secret keySTRIPE_WEBHOOK_SECRET=... # Stripe → Developers → Web hooks → Endpoint secret