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/stripe

Copy the generated webhook secret (starts with whsec_).

Production webhooks
For production, create a webhook endpoint in the Stripe dashboard usinghttps://yourdomain.com/api/webhooks/stripe.
Stripe Webhooks | VibeCodeMax Docs