#Suren
1 messages ยท Page 1 of 1 (latest)
HI ๐ that field is used to tell the Subscription to cancel at the end of the current period, it is not an indicator that the Subscription was canceled.
https://stripe.com/docs/api/subscriptions/object#subscription_object-cancel_at_period_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I know, I received that when I try cancel subscription current period end
I used subscription schedule
currently status subscription is cancel current period end
but in side webhook I received false
Sorry, I don't understand. Did you set the cancel_at_period_end property on a Subscription to true? and then not see that reflected in the contents of a webhook event?
I was updated the subscription throughth subscription schedule with end_behavior: 'cancel', and then in webhook said I received current_period_end: false but in dashboard stripe I looking status like this cancels Feb 17
cancel_at_period_end is a parameter that you explicitly set, if you do not set it to true then it will not be true.
It does not inherit values from other objects such as Subscription Schedules.
So setting end_behavior on a Subscription Schedule to cancel is not expected to update the cancel_at_period_end parameter on the associated Subscription.
is it possible set cancel_at_period_end to true in schedule subscription update method ?
No there is not. What is it that you're trying to accomplish?
I trying check the subscription status for cancel_at_period_end
But you're not setting cancel_at_period_end, so checking it doesn't seem to make much sense. Why are you trying to check that field, what were you hoping to learn from it?
Because I use pure subscription method and use subscription schedule when subscription will update for example after current subscription plan
Sorry, I'm not sure what you mean by that. If your goal is to see if the Subscription is going to cancel at the end of the current period, and you're using the Subscription Schedule's end_behavior to control that, then you'll need to reference the Subscription Schedule object and its fields rather than the Subscription.