#emilewerther
1 messages · Page 1 of 1 (latest)
Hmm, those fields should definitely be available on that type in 11.1.0: https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1110---2022-11-17
Can you share the code that throws that error?
Ah, it seems we have not upgraded our API Version in the dashboard, i'll review the braking changes and try to upgrade
Thanks for your answer!
Hmm, you shouldn't need to upgrade your API version to use that parameter
You'd just specify the correct API version on your account when initialising the lib, and then handle any type inconsistencies accordingly: https://github.com/stripe/stripe-node#using-old-api-versions-with-typescript
Weird, when typing
let stripeClient = new stripe(stripeSK, { apiVersion: '2022-11-15' })
I get the following :
Type '"2022-11-15"' is not assignable to type '"2022-08-01"'. The expected type comes from property 'apiVersion' which is declared here on type 'StripeConfig
(stripeSK being my sk_test_...)
Yes
You need to ts-ignore that as the link above states
That error implies to me you're not on stripe@11.1.0 though which defaults to 2022-11-15
Seems to be working, thank you!