After building, testing, and deploying your webhook to production, set up the endpoint so Stripe knows where to send live mode events. It’s also helpful to go through the development checklist to ensure a smooth transition when taking your integration live.
Add your webhook endpoint to your account
Add endpoints in the Dashboard
In the Dashboard’s Webhooks settings section, click Add endpoint to reveal a form to add a new endpoint for receiving events. You can enter any URL as the destination for events. You can find a full list of event types in the API docs.
Add endpoints with the API
You can also programmatically create webhook endpoints. As with the form in the Dashboard, you can enter any URL as the destination for events and which event types to subscribe to. To receive events from connected accounts, use the connect parameter.
The following example creates an endpoint that notifies you when charges succeed or fail.
Manage webhook endpoints
Existing webhook endpoints can be updated or deleted in the Dashboard’s Webhooks settings section. You also have the option of disabling a webhook endpoint temporarily. Stripe does not retry any notifications that are generated while the endpoint is disabled. Alternatively, you can manage webhook endpoints programmatically.