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

miguellima's avatar

Get Current Billing Cycle Spark

So I'm using spark and I need to track usage by month.

And I would to access the current billing cycle.

I need the current billing start date.

Any ideas?

Thanks.

0 likes
1 reply
ex0's avatar

A bit late, but just in case someones comes across this in the future.

You can use the methods provided by Cashier to get information about the billing cycle.

So you can get the current billing start date like this:

$subscription = $user->subscription('default');
$lastPaymentDate = $subscription->lastPayment()->date();

I can't post links so here are the relevant docs: /docs/10.x/cashier-paddle#past-and-upcoming-payments

Please or to participate in this conversation.