#sagar051192
1 messages · Page 1 of 1 (latest)
Hello there
hi
Hmmm
Can you run other functions using the Node SDK?
What version of the Node SDK are you using?
node version v16.13.2
Sorry specifically the Stripe Node SDK
how to find stripe node version?
Should be in your package.json or if you have a request ID for any of your requests then I can take a look
Also can you try running const deleted = await stripe.subscriptions.del()
Instead of .cancel()
This one works. thanks
"stripe": "^8.219.0",
Gotcha yeah you seem to be on an older version of the SDK before the .cancel() method was added
So you can either update to a newer version or just use .del()
thanks
update the stripe version will not create any issue with old stripe function which used on code right?
You can see what has changed in different versions in the Changelog here: https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md
It is possible that some things you rely on could be deprecated in newer versions so you should always test first before upgrading on your production account
Is it okay to use old version which i am using now ?
Yep that's fine, you just won't have access to the newer features in the newer versions
But if you don't need those then you can use the older version
Great. Thanks Alot
Sure