#Organization and Team Support for Better Auth

1 messages · Page 1 of 1 (latest)

wooden canyon
#

The Stripe plugin for Better Auth says it supports the following:

  • Flexible reference system to associate subscriptions with users or organizations
  • Team subscription support with seats management

It would be great to have these features built into the Dodo plugin as well. I need to add support for organization level billing. I noticed the stripe plugin had it explicitly listed but didn't see anything about it for Dodo.

Reference:

Better Auth

Stripe plugin for Better Auth to manage subscriptions and payments.

Better Auth

Better Auth Plugin for Dodo Payments

fervent steepleBOT
# wooden canyon The Stripe plugin for Better Auth says it supports the following: - Flexible ref...

Short answer: those features are not currently built into the Dodo Better Auth plugin the way they are in the Stripe plugin.

What you can do instead:

  • Organization-level billing

    • Create one Dodo customer per organization
    • Store customer_id on your org model (not user)
    • Attach subscriptions to that customer
  • Flexible references

    • Use your DB as the source of truth
    • Map: org_id ↔ dodo_customer_id ↔ subscription_id
  • Seats / team management

    • Handle seat counts in your app logic
    • Optionally sync seat count → subscription quantity (if using metered or quantity-based pricing)
  • Webhook sync

    • Use Dodo webhooks to keep subscription status in sync with your org

So: fully doable, but you’ll implement the org + seat abstraction yourself, unlike Stripe’s plugin which wraps it.

If you want, I can sketch a minimal schema + flow for this setup.

fervent steepleBOT
#

This query has been marked as resolved by @ashen moon.

ashen moon
#

wtf

wooden canyon
#

@daring bay

wooden canyon
#

@restive creek can you do something here?