#iamyounus_53659

1 messages · Page 1 of 1 (latest)

civic mangoBOT
grim vigil
#

Can you share the subscription ID (sub_xxx) which the subscription was cancelled immediately even though it was set to cancel_at_period_end?

fair badger
#

wait I am sending you

#

sub_1OUOSGJ3Ij1u6zPiPCIQPd3I

Actually, what is happening is, in the second-to-last event, 'cancel_at_period_end' was set to true. Then, the code to cancel the subscription was executed. However, in the final event that was triggered, the 'cancel_at_period_end' was set back to false

grim vigil
fair badger
#

Actually, I want to cancel the subscription but not immediately if it is an active state.

#

so I am cancel_at_period_end changing it to true then cancelling it but it is not working in that way

#

second last event cancel_at_period_end is set to true

#

but in last event it is again shown to cancel_at_period_end:false

grim vigil
#

so I am cancel_at_period_end changing it to true then cancelling it but it is not working in that way
How do you verify that it is not working that way? By setting cancel_at_period_end to true, the subscription will only be canceled at the end of the current period. If the subscription starts at 3 Jan 2023 with monthly subscription, the subscription will only be canceled at 3 Feb 2023 with cancel_at_period_end: true

fair badger
#

cancel_at_period_end to true

after updating it to that, the subscription will be canceled automatically after the period ends or should I have to call another function?

Sorry but I am a little confused here

grim vigil
fair badger
#

Thanks