Multi-Tenancy + Stripe

Hey guys thank you so much for all of your knowledge. Making an app I intent to have stripe payments on, but I want to link each businesses stripe account to their account, and I want my own stripe account to deal with the monthly recurring charge to the business. The only documentation I can find is this which isn't very helpful as to what the setup should look like... https://docs.stripe.com/get-started/account/multiple-accounts Is there some sort of auth flow that the business logs into their stripe account and I store a token which grants me access to accept payments to their account for them? Are the stripe keys stored on the DB for like STRIPE_SECRET_KEY and NEXT_PUBLIC_STRIPE_PUBLIC_KEY? That doesn't feel right. What is the proper thing to google for this kind of setup? Thank you so much for your help and sorry for the ez question. stack is t3-adjacent if that matters.
Multiple separate accounts
Learn how to create and manage multiple separate Stripe accounts.
1 Reply
Donaven
DonavenOP•2mo ago
oops - didn't do enough research... looking at Stripe Connect right now. If anyone has a nice public repo they can share that would be super helpful 🤙

Did you find this page helpful?