@jlmmns Depends what you want to bill. If it’s by team, then the team is the billing entity. Maybe give users the ability to add a payment method to the team, where they can then hook up the team to that organisation’s stripe account.
SaaS application billable entity
What should be the billable entity in a SaaS application when working with Teams?
Pretty much comparable to the popular messaging app Slack.
Relationships:
Relationships
----------------------------
Team belongsTo Plan (Free, Business, Pro)
Team <-- many-to-many --> User
Every Team has one owner (User).
The billing is per Plan only (not per every User)
Since I want to have recurring payments going through Stripe, I'm wondering where I should put the Billable trait on? Team, or User?
Also important, an Owner can have more than one Team, and should be able to manage each Team's subscription in one place.
So which models do I end up with?
So far, I only have: Plan, Team, User
Should I also have something like Account or Owner?
Any help would be much appreciated!
PS: Too bad Spark is only in alpha stage.
Please or to participate in this conversation.