#๐ (Luca)
1 messages ยท Page 1 of 1 (latest)
๐ Hi there, Happy to help!
For the cancel_at_period_end field, it's a:
Boolean indicating whether this subscription should cancel at the end of the current period.
https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at_period_end
is the status of the subscription going to be active for the whole time, until the end date of the subscription?
So yeap it'll be active until the end of the current period
so can i expect state: "active" in the subscription metadata?
no the metadata, is for storing your own additional information about the subscription it's not managed by Stripe
https://stripe.com/docs/api/subscriptions/object#subscription_object-metadata
Instead, you can find the status here:
https://stripe.com/docs/api/subscriptions/object#subscription_object-status
sorry I was just talking about the subscription object
I see there is a field called status
I just wanna make sure that the status has value active even if the user canceled the subscription (but the subscription won't end immediately)
Yes the field status that you shoudl refer to
You can do a test simulation using Stripe Test Clocks and test this behaviour:
https://stripe.com/docs/billing/testing/test-clocks
ok thanks