Get the webhook endpoint URLs to configure in your Stripe dashboard
Open Stripe Dashboard
Create Test Endpoint
test_webhook_url. Make sure you’re in Test mode.Select Events
checkout.session.completedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.paidinvoice.payment_failedGet Signing Secret
whsec_).Save Webhook Secret
| Event | Purpose |
|---|---|
checkout.session.completed | Track successful checkouts |
customer.subscription.created | New subscription created |
customer.subscription.updated | Subscription plan changed |
customer.subscription.deleted | Subscription cancelled |
invoice.paid | Payment received |
invoice.payment_failed | Payment failed |
| Parameter | Description |
|---|---|
project_id | Your project’s UUID |
mode | test or live |
| Status | Description |
|---|---|
401 | Unauthorized - Invalid or missing authentication |
403 | Forbidden - You don’t own this project |
404 | Project not found |