#RubenAedo - Connect Webhooks
1 messages · Page 1 of 1 (latest)
Hello!
Connect webhooks will return events from all connect accounts but not from your platform account. You need to register a different endpoint for that
You can specify the events listened to for each separately aas well
If you really wanted to use the same code on your server side, you could store both secrets and select which one to use based on the connect property on the webhook event object. It will be true if the event is from a Connect Account and false if not.
Thank you very much!
I might get back to you if there are any additional questions. Thanks again!
Sure thing, that's why we're here
I am still a bit confused because I have it set up for 2 different webhooks â 1 for the platform and 1 for the connect and even when the developer did a test using the secret for the connect webhook endpoint but no events are being picked up for that new endpoint.
Hello, Snufkin had to step out but I can help. Catching up on this thread...
So you aren't seeing any events for the platform webhook?
Can you go to your event logs and send me the ID of an event that you were expecting to see on that webhook? https://dashboard.stripe.com/test/events
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Connect account webhook
Gotcha. Can you send me the ID of your platform account? If you don't know it, it has the format acct_123 and should be on this dashboard page https://dashboard.stripe.com/settings/user
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
acct_1GpvbFCmp8xvPA29
Thank you. Checking in to your configuration and connect events
there should be 7 connect accounts
Gotcha. Which of the connected accounts did you try to create a Checkout event on?
few mins please đ
I just created a new âdirectâ webhook on the CAD account and when I create it there it picks up the event â but the âconnectâ webhook at the POC account didnât pick it up when it was just set there. So it seems like the âconnectâ webhook on the platform account doesnât work have a single webhook that applies to all the connect accounts? Meaning, I would end up need to store 8 webhook secrets for test mode and 8 for live mode?
For the one that fired earlier with the âconnectâ endpoint set up on the poc account the event ID is: evt_1L6GZjIOJcBH7SlDVjf410wC
From the test I just did with a direct one setup on the CAD account the event is: evt_1L6Js7IOJcBH7SlDpTl7mLNS. (It failed because I havenât updated the code to use a different key â but I can at least see a webhook attempt was made)
Thank you for the info. Finishing up looking in to another question, I will be able to check those events out in a minute
excellent!
Interesting I am not seeing records of us trying to send you these events. But the accounts were already connected, the webhook endpoint was made, and the events are of the proper type. Trying to think of what might still be preventing these events from being sent here
Do i need to store 8 webhook secrets per test mode and 8 per live mode. 8 are the total amount of accounts....1 platform and 7 connect accounts?
You should only need the 2 secrets for your platform and connect endpoints on your platform
Hey @ornate kestrel
It looks like you do have this endpoint on your platform account though, right? https://dashboard.stripe.com/webhooks/we_1L5A5vCmp8xvPA29N3q5MLvs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I may have gotten confused when clocking through that. Will check again
I was trying to create a webhook with Avalara to my Canada account and getting the below error message, do you know why and how can we fix this ?
Ah I may have been assuming you were talking about a different endpoint. Is this entirely about Avalara's webhooks on your accounts?
And is that in screenshot from the Stripe UI or Avalaras?
Sorry I'm bouncing around threads a bit too much. Is that screenshot from one of their docs or a support interaction with them?
The screenshot within the screenshot looks like it is our UI telling you to create a connect webhook on the platform rather than a direct endpoint on the connected account.
Also I figured out the issue with the original events not showing up in your test mode endpoint: your platform and connected account are only connected in live mode. To get test mode events to your test mode endpoint, they will also be connected in test mode.
That's fine thank you!
Support interaction with them
Gotcha, and were they able to clarify where your new webhook for this needs to be set up?
I'll be emailing the user right now with this info you provided
One thing that may be worth mentioning to them as well is that this livemode connection means that both live and test mode events from the CAD account will be sent to the live mode webhook on the platform. So they should check if events send to that endpoint have livemode: true or not https://stripe.com/docs/connect/webhooks#connect-webhooks
How to connect platform and connect accounts on test mode?
You go through the same connection process but with the test mode key (sk_test_123....)