#aliheym_85658

1 messages · Page 1 of 1 (latest)

lavish stirrupBOT
formal sorrel
#

👋 happy to help

#

yes events are sent to all registered webhook handlers that are listening to the event type

#

regardless whether the webhook endpoint was added to your account or using Stripe-CLI

floral atlas
#

I got it, thank you. Then it's probably better to handle it at the application code level.

formal sorrel
#

handle what exactly?

floral atlas
#

Let's say I make a payment locally, then I get the "payment_intent.succeeded" event, which I catch locally. In the handler of this event, I update the local database state for the connected payment. However, the same event was sent to my staging environment, the webhook for which is declared in the Dashboard. The required object is not found in the staging database, so the webhook receives a non-200 status in response.

lavish stirrupBOT