#tsufurukawa
1 messages · Page 1 of 1 (latest)
Yeah there's not a way to route events from the same account to different webhook endpoints on any criteria other than event type
Really you'd need different accounts
Is it possible to create Stripe accounts dynamically? Like when a preview server is spun up, we create a Stripe account at the same time.
You can create connect accounts dynamically
But not regular stripe accounts
What's the issue with having the events delivered to all endpoints though?
Just create multiple webhook endpoints (for all preview environments in your main stripe account)
Event will be delivered to all endpoints
I was thinking about that as well.
The webhook endpoints can be created via the Stripe API?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That's going to be the easiest thing to do here
Ok thank you! I'll explore that option.