#itaied_node-api-upgrade

1 messages ยท Page 1 of 1 (latest)

cyan berryBOT
#

๐Ÿ‘‹ 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.

orchid widget
#

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

night karma
#

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",
  });
orchid widget
night karma
#

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?

orchid widget
#

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

cyan berryBOT