#ayo_webhooks-connect

1 messages ยท Page 1 of 1 (latest)

shadow rockBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1387464952801001634

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

rocky heath
#

The event related to the one I'm lookng for is evt_1RdftGBOOywwBjR9npP3LO9L (account updated event)

gleaming prairie
#

Hi there. I'll be with you shortly. I'm assisting someone in another thread.

rocky heath
#

Thank you!

gleaming prairie
#

Can you clarify your ask?

rocky heath
#

Basically at this point I'm not receiving any account update events in the sandbox

#

I have a test user that just completed the stripe onbaording process.

gleaming prairie
#

In the example event you shared, the account settings were changed hence the account.updated event.

rocky heath
#

After which I expect capability.updated event but I got nothing

#

I just went through this process in the last 5 minutes

gleaming prairie
rocky heath
#

Which is the case for this user

shadow rockBOT
gleaming prairie
#

The connected account in the screenshot shared is different from the account that was updated.

rocky heath
#

yes sorry, different examples same problem

gleaming prairie
#

Are you listening for connect webhook events?

rocky heath
ionic umbra
#

Hi, taking over as my teammate needs to step away. Let me catch up.

rocky heath
#

Can you please check that these events are getting fired. I'm just not seeing them in the console

shadow rockBOT
ionic umbra
#

Check on which account? Can you share the request where you attempted to update the account?

rocky heath
#

Here is the id of the request

#

req_huZdXcxc7B1SDi

summer girder
#

ayo_webhooks-connect

#

That's an AccountLink creation so a bit hard to kind of parse what you are asking

rocky heath
#

the user (me) completed the onbaording on this request

summer girder
#

But I think you got mixed up a lot so I'll explain

#

You are a Connect platform with connected accounts. You want to receive Events happening on connected accounts but you create the wrong type of WebhookEndpoint as you have an Account WebhookEndpoint which only listens to Events happening on your own Stripe account.

You need to create another WebhookEndpoint of type Connect so that it listens to Events happening on connected accounts instead

rocky heath
#

Ohh okay thank you for that explantion
I thought the webhook I had setup was liestning to connect account events

#

but it is now

summer girder
#

yeah try again and let me know if that doesn't work

rocky heath
#

Am I able to use the same webhook endpoint to listen to both account and connected account events?
I suppose the webhook secret has to be different?

summer girder
#

you can point to the same URL yes but it'd be 2 different WebhookEndpoints in Stripe so with a different we_12345 and a different secret yes
What I've seen people do is add a query parameter to the URL to differentiate when they process those like https://example.com/webhook?type=connect

rocky heath
#

Thank you. I can give that a shot

#

Also am I wrong for assuming connect account events should also show up in the console?

summer girder
#

hmmm I am not sure, I never use Workbench but I think this only show your own Events. If you look at the Webhooks tab you should see the Events sent to each one right?

rocky heath
#

Okay I see this now

#

likely would need to work out the signing secret for it to deliver

summer girder
#

yeah using the query param like I mentioned above would help

rocky heath
#

query string worked like a charm . Thank you.

shadow rockBOT
rocky heath
#

Thank you everyone ๐Ÿš€