Open rranjan14 opened 2 years ago
@rranjan14 Apologise for the issue you are experiencing. I just checked the cancel api and i found that the code snippet is not updated. Could you please check this code snippet and let me know?
instance.subscriptions.cancel("sub_KlLQabJyisz3mu",true)
false
(default): Cancel the subscription immediately.
true
: Cancel the subscription at the end of the current billing cycle.
@rranjan14 could you please confirm is it worked or not ?
@ankitdas13 Yes, this worked. Thankyou! :)
Very strange. The problem started again.
@rranjan14 could you please update the node sdk to the latest version v2.8.6 & let me know is the issue still persist or not ?
Steps to reproduce the behavior
{ cancel_at_cycle_end: 1 }
as options to thecancel
function.Expected behavior
The subscription should have been cancelled at the end of the cycle rather than getting cancelled immediately.
Actual behavior
Subscription gets cancelled immediately.
Code snippets
No response
Node version
v16.14.2
Library version
v2.8.4
Additional Information
No response