AutumnA
Autumn3w ago
82 replies
The Untraceable

Better Auth Org Level Billing

Hey all. I want to integrate Autumn into my current project. I am using NextJS, Convex, and Better Auth. I think I got it working for the most part but I can't seem to find how to make billing via Autumn be at an org-scope. I have set the customerScope in my better Auth config to "user_and_organization", and now I'm looking for the actual function to call to attach a plan to that organization, I have access to the Organization ID in code, where do I pass it?

Not 100% sure if this is the right place for this so please redirect me if needed!

Thanks.
Was this page helpful?