Stripe Webhooks
Use Stripe CLI to forward webhooks to your local endpoint and capture the test webhook secret.
Local webhook
stripe listen --forward-to http://localhost:3000/api/webhooks/stripeCopy the generated webhook secret (starts with whsec_).
Production webhooks
For production, create a webhook endpoint in the Stripe dashboard using
https://yourdomain.com/api/webhooks/stripe.