#itaied_node-api-upgrade
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1262449873446371438
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
You cannot use STripe.js for node
It is a front-end only library
For Node.js integrations you need to use stripe-node
sorry for the confusion, that's exactly what I'm using
I have a running integration with an older version, I'm just considering how to upgrade it
Should I change anything else other than the parameter in the sdk?
const client = new Stripe(privateKey, {
apiVersion: "2020-08-27",
});
Upgrading API versions is a serious undertaking. I would recommend reviewing this doc carefully
https://docs.stripe.com/upgrades
I have laid out already all of the breaking changes and updated my services, my question is, what should I do in order to upgrade the API version?
Do webhooks update their version once I change the header of the version in the sdk?
You can update the pinned API version in your SDK by updating the string. But webhooks do not automatically update their version and will send you events matching the old version.
We have a specific doc on webhook versioning here: https://docs.stripe.com/webhooks/versioning