#yingwg

1 messages · Page 1 of 1 (latest)

static swanBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

static palm
rapid fable
#

Type
is not assignable to type
(property) Stripe.StripeConfig.apiVersion: "2022-11-15"
This library's types only reflect the latest API version.

We recommend upgrading your account's API Version to the latest version if you wish to use TypeScript with this library.

If you wish to remain on your account's default API version, you may pass null or another version instead of the latest version, and add a @ts-ignore comment here and anywhere the types differ between API versions.

static palm
#

Backing up a bit, why are you trying to change the API version?

rapid fable
#

Just want to upgrade api version to latest version

static palm
#

Why?

rapid fable
#

this is the alert I got,

#

we are write some of stripe code to go, and the go library is newer which requires api version to be 2023-10-16

#

so I need to upgrade our node.js client as well

#

to match that

#

I think this is not about a "why" question though... I guess the question is "how" to upgrade..

static palm
#

Why do you need them to match?

rapid fable
#

I don't think that is matter to our discussion, I just want to know how to upgrade...

static palm
#

The Node library is pinned to a specific API version by default. It's not recommended that you specify a different version. You can, by following the instructions you pasted above, but I don't recommend it.

rapid fable
#

does that mean we should upgrade our node library instead?

#

I mean the stripe node library?

static palm
#

Possibly. What's your end goal? Getting the API versions to match is not an end goal, it's a means to some other end. What's your ultimate goal?

rapid fable
#

okay so there is our sillution

#

we have stripe webhook written in node.js, which is expecting 2022-11-15

#

now we want to rewrite the webhook in go, and the go library is expecting api version
2023-10-16

static palm
#

That will ensure the Events delivered to your code are in the correct API version regardless of what API version was used in the requests that created those Events.