#trashpanda-subscription-period
1 messages · Page 1 of 1 (latest)
hello, you have to fetch the Subscription after the invoice.paid event. Don't think the cus.sub.updated event triggers every period
Thanks, one more followup question:
Is there a possibility for subscription.current_period_end to change even though invoice payment fails? In other words can I always assume that if that date is set in future, it's been paid? Or would new cycle set new date regardless of invoice payment or failure?
In other words can I always assume that if that date is set in future, it's been paid?
no the Subscription and Invoice statuses will tell you if something was paid or not
so not recommeneded to look only at the current_period_end to figure out what the state of the Subscription or Invoices is