#0-Subscription
1 messages · Page 1 of 1 (latest)
yes, but i want to get it at the time when it’s set to past due
OK, you should listen to customer.subscription.updated event, check if event data' subscription status == past_due. If it's, then the event object's created attribute (https://stripe.com/docs/api/events/object?lang=php#event_object-created) indicates when this subscription becomes past_due.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oop sorry i meant i want to get the time the subscription will transfer to either the unpaid or cancelled status from the past due event
if it continues to be unpaid when will it turn into canceled/unpaid
Depends on your setting, the subscription will become cancelled or canceled if all smart retries fails.
It's up to the smart retry engine to determine the most appropriate time to perform retry, and since there's no way to guarantee if a smart retry will succeed or fail. We don't have a way to derive the exact time that a subscription becomes cancelled or canceled.