Webhooks
Handle events from external services.
Stripe Webhooks
DevOur automatically handles the following Stripe webhook events:
customer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.payment_succeededinvoice.payment_failed
Setting Up Webhooks
- In Stripe Dashboard, go to Developers > Webhooks
- Add an endpoint:
https://your-domain.com/api/webhooks/stripe - Select the events you want to receive
- Copy the webhook signing secret to your environment variables
Webhook Security
All webhooks are verified using the signing secret to ensure requests come from Stripe.