top | item 46382944

Need Advice: Stripe Webhooks Bleeding Between Two SaaS Products

1 points| hikerell | 2 months ago

I have two SaaS tools, both using Stripe for payments. Stripe lets me add 16 webhooks, so I set up one for SaaS 1 and another for SaaS 2—but here’s the problem: when SaaS 2 gets a subscription (or other billing events), SaaS 1’s backend still gets the Stripe webhook callback too.

This setup feels inelegant, and I’m stuck on fixing it. For anyone running multiple SaaS on one Stripe account: how do you isolate webhook events between products? Filters? Separate Stripe accounts? Middleware? Any best practices to stop this cross-product bleed?

Thanks for any tips!

2 comments

order

revorad|2 months ago

You can create multiple "businesses" inside your Stripe account. It's a bit of setup initially but that's the best way I know. You don't need two actually separate businesses - you can use the same business details but use different trading names.

hikerell|2 months ago

Thank you, but I still don’t understand how to operate this.

I created several products in Stripe for the business of SaaS 1 website, and also created several products for the business of SaaS 2 website— which is a completely different one. However, I noticed that the webhook endpoint of SaaS 1 receives payment events related to SaaS 2, and vice versa.

I think I might be using Stripe in the wrong way.