#RubenAedo - Connect Webhooks

1 messages · Page 1 of 1 (latest)

crimson tree
#

Hi 👋

frail sky
crimson tree
#

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.

crimson tree
#

Sure thing, happy to help

#

🙂

frail sky
crimson tree
#

Sure thing, that's why we're here

frail sky
# crimson tree 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.

ornate kestrel
#

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?

frail sky
ornate kestrel
ornate kestrel
#

Thank you. Checking in to your configuration and connect events

frail sky
#

there should be 7 connect accounts

ornate kestrel
#

Gotcha. Which of the connected accounts did you try to create a Checkout event on?

frail sky
# ornate kestrel Gotcha. Which of the connected accounts did you try to create a Checkout event o...

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)

ornate kestrel
#

Thank you for the info. Finishing up looking in to another question, I will be able to check those events out in a minute

frail sky
#

excellent!

ornate kestrel
#

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

frail sky
#

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?

ornate kestrel
#

You should only need the 2 secrets for your platform and connect endpoints on your platform

frail sky
#

Hey @ornate kestrel

ornate kestrel
#

I may have gotten confused when clocking through that. Will check again

frail sky
#

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 ?

ornate kestrel
#

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?

frail sky
#

this is a different question...sorry!!

#

Avalara yes

ornate kestrel
#

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.

frail sky
#

That's fine thank you!

ornate kestrel
#

Gotcha, and were they able to clarify where your new webhook for this needs to be set up?

frail sky
#

I'll be emailing the user right now with this info you provided

ornate kestrel
#

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

frail sky
#

How to connect platform and connect accounts on test mode?

ornate kestrel
#

You go through the same connection process but with the test mode key (sk_test_123....)