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

geerizzle's avatar

Can I listen for a Spark subscription rebilling event?

Does anything trigger in Spark when a subscription is billed the second time?

I assume nothing, in that this just happens on Stripe and then if/when the user logs in a check is made to see if the subscription is still active.

If I’m right, how can I do this? I’m shipping a physical product on a quarterly subscription model so the day they’re rebilled I need to act.

0 likes
3 replies
Cronix's avatar

You're correct on how it works. Off the top of my head, to start I'd probably look at having a scheduled daily() task to query the db and find out which subscriptions are expiring on that day or maybe the next day (ends_at).

1 like
geerizzle's avatar

Thanks, yes that’s what I was thinking - when a user registers I could set an ‘expected next billing date’ and then on that date check if their sub is still active. The only thing is if there is some overlap/timing difference I’ll have to check on Stripe at what time of day they would bill or if it varies etc.

geerizzle's avatar

OK scrap that I just checked the Stripe docs and should be able to listen directly to Stripe webhook events instead.

Please or to participate in this conversation.