Stripe plugin with organizations, did anyone get it to work?
The docs mention being able to use the stripe plugin with organizations, but when trying to set it up the "stripeCustomerId" field is still added to the users table instead of the organizations table.
How can I get around this? It feels like organizations support with stripe is a half baked afterthought atm.
3 Replies
I have the same issue, still waiting for some updates 🤞
There is a PR open about this and some comments on here but no update from the better-auth team
Have been trying to set this up in our application. My understanding is that the customer id is still associated with a user like a billing point of contact but you can use the org id as a reference in the subscriptions table. So when subscription is created it has a reference to the org id and customer id.
Currently we have restricted the subscription management activities to only the owner of the org, so if a subscription is created, it is only associated with them (user who is the owner) and the org.
These are just our observations and how we chose to design the subscriptions flow.