I want to charge the owner of the team by total number of all users (Laravel Spark)
User can create teams and add new users to the teams. I want to charge the owner of the team (team owner may have multiple teams) by total number of all users (Example: Team owner has 2 teams. There is 5 users in Team A and 2 users in Team B. I want to charge the team owner (5 + 2) * 2 = 14 €). How i can do it?
This might get you started. It looks like it will work as-is per team, but you might have to do some additional work to get it to only charge an owner once for multiple teams they own. Also looks like it will only work if using Stripe. I don't think Braintree has the capability.