#claudiuyoro_connect-webhook-endpoints

1 messages ยท Page 1 of 1 (latest)

dusk ginkgoBOT
#

๐Ÿ‘‹ 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/1229465524979634316

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

autumn oakBOT
calm knot
#

Hi ๐Ÿ‘‹

#

The Stripe CLI will forward both Test and Live mode events

#

But registered webhooks operate in one mode or another

icy tartan
#

Hello

#

Ok, I can see that, but I don't understand what you mean by " But registered webhooks operate in one mode or another "

calm knot
#

If you have a registered webhook endpoint in your Stripe Dashboard, it will be set to either Test mode or Live. mode. It will only forward events that occur in the mode for which it is registered.

icy tartan
#

Okay, I see. Staging is basically set for Test Mode, but I don't receive the webhooks from Test mode. What could I do?

calm knot
#

Have you created a webhook endpoint in test mode?

icy tartan
#

Yes,I have selected Test Mode, Created the webhook, it seems that it already sends the webhooks for events like: price.created, but not account.updated which I need.

calm knot
#

Can you share the webhook endpoint ID for your Test mode endpoint?

icy tartan
#

we_1NdCWuCpWrp8flV3PuqNRtFB

calm knot
#

Okay great. Now can you share the ID for an account.updated event that you did not receive?

icy tartan
#

sure: acct_1P5sMZCzGLDMEPrN
Now this is active, but because I have manually requested to stripe. I could create another account for testing purposes

calm knot
#

Oh, wait

icy tartan
#

Check for this one: acct_1P5sYHCZzpEk3ihM
I just created it

calm knot
#

You need to create a Connect specific webhook endpoint

#

The Stripe CLI also forwards Connect events

icy tartan
#

Ohh, I see, thank you, this was the problem.

calm knot
#

Yeah, the events aren't happening on your account but on the Connected account. That bit is easy to miss though! the CLI almost makes it too easy

icy tartan
#

Yeah, I didn't knew I need a different endpoint for that.
Is there anything else I need to take in consideration ? ๐Ÿ™‚

calm knot
#

One thing to note is that a Connect webhook will forward every event from all Connected Accounts. So be sure to only listen for the events you are interested in.

icy tartan
#

Perfect, thank you so much!

calm knot
#

Happy to help ๐Ÿ™‚