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

LTroya's avatar
Level 19

How to know when a subscriptions ends

Hi, I am using spark to build my application. I already configured it. But I don't find how spark knows:

  • When a subscription ends? In the subscriptions table, there is a ends_at field, but it is only populated when a user cancel his subscription.

  • When a billing charge failed, I know that stripe handle subscription charges, but if it fails, how my app knows? I read the events on the docs, there is not such a event as SubscriptionChargeFailed or similar

  • When a plan is near to expired. I want to send some emails and show notifications to the user to warning him

Thanks in advanced. I appreciate any help.

0 likes
0 replies

Please or to participate in this conversation.