Multiple Webhooks, One Account

https://gist.github.com/spencerfinnell/8d2e53cf9ea9e1212dd380909ccf78b0

^ two plugins. one for each site. then append ?site=site-a and ?site=site-b to the respective endpoints:

I did ask our lead developer about this, and there is a way with a custom code snippets to get things to work the way you require.

You’ll want to use the following gist that has a snippet for each site in question:
https://gist.github.com/spencerfinnell/8d2e53cf9ea9e1212dd380909ccf78b0

You’ll include the site-a snippet in one site, and the site-b snippet in the other.

Then you’ll want to update the webhooks in the Stripe dashboard and append ?site=site-a and ?site=site-b to the respective endpoints.

When you are done, your endpoints should look like this in the Dashboard:

This allows one site to skip the events of the other.

Leave a Reply

Your email address will not be published. Required fields are marked *