#Martin Haiek - connect webhooks
1 messages · Page 1 of 1 (latest)
It should still trigger an event. Do you have an example ID of a payout (po_123) that did not trigger an event?
What immediately comes to mind is that webhook endpoints are typically set up to only listen for certain events. Have you double checked that your live mode connected account endpoint is listening for payout.paid?
So that endpoint is for events on your platform, you need to create a wehook endpoint for the events on your connected accounts
Basically, when creating the endpoint you have this option in the dashboard and need to choose the second one to see the events for your connected accounts on it
Ok
I did that
By choosing "connect" now I'm listening to ALL my aconnected accounts?
Just making sure of this
Correct
Also something to keep in mind is that you may get live and test mode events on that endpoint because it is a connect endpoint (this is due to legacy compatibility), so make sure your code is checking the livemode property on your events before processing them https://stripe.com/docs/api/events/object#event_object-livemode
We mention it in the doc that I linked but it can be easy to miss https://stripe.com/docs/connect/webhooks#:~:text=For Connect webhooks,should be taken.
OK! So we'll filter out those that have liveMode false
Thanks!
We'll test it in prod now
Thanks man! That was quick
Glad that worked!