So I’m building a subscription marketplace where multiple sellers have subscriptions available to users, and users can subscribe to multiple sellers. I’m onboarding sellers with Stripe Connect Express, and both the stripe.js and zeroqode stripe plugins. On my platform, sellers create a seller account (this shows up as a connected account on my stripe dashboard) and then make their own plans which users can subscribe to.
The problem is subscribing a user to a Connected seller account. I can’t simply subscribe a user to a plan like normal, when there are multiple sellers apparently Stripe requires cloning saved users as outlined at these links:
I just can’t figure out a good way to implement the seemingly simple solutions above. I was able to figure out a solution, but it seems overly convoluted and overly complicated. It’s weird that I have to create a new customer when on user sign up, a stripe customer account is already created. And then I have to take all these steps with the payment method when the user already has a payment method in the database. I’m posting my solution below. How do I implement the solutions above?