Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

warrence's avatar

About subscription in spark

Dear all,

I have bought Spark and I would like to build a SAAS system using Spark, user go for monthly subscription and the price are depend on the number of USER he would like to subscribe. An example a Task Application, he subscribe for 10 user, the user for Task Application are not the user in Spark, it will be the user in another table that allow them to login to use the Task Application, spark is just handling the subscription, so my application will check and make sure he cannot add more than 10 user since his subscription is for 10 user. The problem is how can i do on the subscription part? I know is easier to go for plan like example Bronze is for 5 user, Silver for 10 and Gold for 20, but how if i wan the Customer to choose any number of user that they wan to signup initially and can be increase later?

Thanks.

0 likes
7 replies
warrence's avatar

@martinbean Thanks for the reply. I do understand about the billing containing access to plans, maybe I'm not explaining clear enough on my situation. Is easy to control if i set the plan to example Plan A limit 5 user, and Plan B is 10 user, so when signup for Plan A i can control my system to allow them only to register 5 user account under my own application level outside of spark to use the Task Application.

But in my case is quite different, I'm actually wan them to signup whichever number of User they would like to and the total billing is count per number of user, example $5 per user, if they sign up and choose 6 user then total bill will be $30. Then i will limit the Spark user account to be able to create only up to 6 user in the application level to be able to access to the Task application.

Something like business google apps account subscription.

martinbean's avatar

@warrence In that case, you want to set a “quantity” when subscribing a user to a plan. You’d have a plan that’s $5, and then set the quantity to how many “seats” the user has.

There’s a description of how to do this under the “Team Events” heading here: https://spark.laravel.com/docs/1.0/teams

warrence's avatar

@martinbean, thanks for your reply.

How do i link it to billing so that every month it will bill $30 for 6 user?

martinbean's avatar

@warrence If you set the quantity, Stripe will collect the correct amount on each subscription interval.

rimadiahw's avatar

@martinbean when i try checkPlanEligibilityUsing(),but i get error 'Call to undefined method'. what should i do to resolve this problem? thanks

Please or to participate in this conversation.