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

amirhosseini's avatar

Spark Minute Base Billing Plans

Hi I was wondering if I can use spark billing plans based on minutes. we are providing a call track system and we need to now can we use spark plans based on our credit system. For example, each credit would use for one minute call. We need to now can we end up the plan when the user's credit ran out?

0 likes
4 replies
martinbean's avatar

@amirhosseini This sounds like business logic, nothing to do with subscriptions. You’ll need to model credits and calls in your application, then check a user’s “balance” (credits − calls) to see whether they can place any more calls.

1 like
martinbean's avatar

@amirhosseini A credits system isn’t a subscription. You buy credits, you redeem credits. That’s transactional.

You can of course use Spark (Stripe) to purchase credits, but how they’re then redeemed and counted is your application’s domain, not Spark or Stripe’s.

1 like
amirhosseini's avatar

@martinbean Thanks, I got my answer. I just want to know Spark can handle the transaction's side (creating packages, storing credit card info on Stripe's end, purchasing with PayPal and ...)?

Please or to participate in this conversation.