#Dan The Man ๐Ÿ‡จ๐Ÿ‡ฆ

1 messages ยท Page 1 of 1 (latest)

calm parrotBOT
spare escarp
#

You would need to create separate webhook endpoints in the stripe dashboard, but you can use the same endpoint on your server with different url query params to differentiate the two

#

Does that make sense?

nocturne locust
#

I think so. The only real difference b/w them would be the signing secret, right?

spare escarp
#

Yeah so you would toggle signing secret depending on which query param you receive in the request to the endpoint

calm parrotBOT
spare escarp
#

so an example would be for the platform webhook you create in the stripe dashboard: <your-domain>/webhook?type=platform and for the connect webhook you create in the stripe dashboard: <your-domain>/webhook?type=connect. Then when you receive events on your /webhook endpoint, you know what type it is based on the query param type

nocturne locust
#

ohh ok that makes a lot of sense. So just to make sure I understand, all I need to do is add a url query param, like type to the webhook endpoint, and then I can use that url query param to differentiate b/w the two

spare escarp
#

Yep!

nocturne locust
#

great, thank you!