#Dan The Man ๐จ๐ฆ
1 messages ยท Page 1 of 1 (latest)
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?
I think so. The only real difference b/w them would be the signing secret, right?
Yeah so you would toggle signing secret depending on which query param you receive in the request to the endpoint
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
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
Yep!
great, thank you!