#Martin Haiek - connect webhooks

1 messages · Page 1 of 1 (latest)

thin agateBOT
dry adder
#

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?

quick warren
#

po_1MYxT5D0co3u5tY0MvH1zof0

#

Can you help?

dry adder
#

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

quick warren
#

Ok

#

I did that

#

By choosing "connect" now I'm listening to ALL my aconnected accounts?

#

Just making sure of this

dry adder
#

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

quick warren
#

OK! So we'll filter out those that have liveMode false

#

Thanks!

#

We'll test it in prod now

#

Thanks man! That was quick

dry adder
#

Glad that worked!