A webhook is an HTTP endpoint that receives events from Stripe.
Webhooks allow you to be notified about payment events that happen in the real world outside of your payment flow such as:
- Successful payments (
- Disputed payments (
- Available balance in your Stripe account (
While the Dashboard is great for one-off actions like refunding a payment or updating a customer’s information, webhooks are essential for scaling your payments integration by helping you process large volumes of business-critical events.
Build your own webhook
You can build a webhook handler on your own server to manage all your offline payment flows. Start by exposing an endpoint that can receive requests from Stripe and use the CLI to locally test your integration. Each request from Stripe contains an Event object with a reference to the object on Stripe that was modified.