#Suren

1 messages ยท Page 1 of 1 (latest)

worn cedarBOT
hearty steppe
bitter prism
#

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

hearty steppe
#

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?

bitter prism
#

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

hearty steppe
#

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.

bitter prism
#

is it possible set cancel_at_period_end to true in schedule subscription update method ?

hearty steppe
#

No there is not. What is it that you're trying to accomplish?

bitter prism
#

I trying check the subscription status for cancel_at_period_end

hearty steppe
#

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?

bitter prism
#

Because I use pure subscription method and use subscription schedule when subscription will update for example after current subscription plan

hearty steppe
#

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.