We're looking to charge per user in our SaaS. We're using Stripe as our payment processor. The first 5 members are included as part of the base plan. Any excess users are charged an extra free (let's say $10).
If a user is added halfway through the billing period, we'd only want to charge them $5. If they're added 3/4 of the way, they should be charged $7.50. If a user is added for 1/3 of the month and then deleted, they should be charged $3.33.
This is similar to Slack's approach:
Add new members to a paid workspace If you’re on a paid plan and add new members partway through the billing cycle, we’ll only charge for the cost of the time used. We’ll keep track of this for you, and bill you at the end of each month.
Here’s an example:
Let’s suppose your workspace is on the Standard plan paying monthly, which costs $8 per member per month. You add a new member 10 days into your billing period, leaving 20 days remaining in the month.
The prorated subscription cost is calculated by dividing the cost per member ($8) by the number of days in the month (30) and multiplying it by the number of days remaining (20), which gives us the prorated subscription cost for the remainder of that billing period: $5.33
If you pay annually, it works the same way. We'll calculate the prorated cost for the rest of the year, and bill you at the end of the month for any new additions.
I was wondering if that could be achieved in Stripe.