#trashpanda-subscription-period

1 messages · Page 1 of 1 (latest)

balmy drum
#

hello, you have to fetch the Subscription after the invoice.paid event. Don't think the cus.sub.updated event triggers every period

tardy tendon
#

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?

balmy drum
#

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