You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm upgrading from API 2020-08-27 to 2022-08-01, and have upgraded my stripe-node to the latest version (v10.13.0) specifying apiVersion: '2022-08-01'.
If the 2022-08-01 API removed Create Checkout Session's line_items fields, then it should have been removed from the typescript definitions?
Code snippets
The API returns:
You cannot use line_items.amount, line_items.currency, line_items.name, line_items.description, or line_items.images in this API version. Please use line_items.price or line_items.price_data. Please see https://stripe.com/docs/payments/checkout/migrating-prices for more information.
OS
macOS
Node version
Node v16.14.2
Library version
stripe-node v10.13.0
API version
2022-08-01
Additional context
The text was updated successfully, but these errors were encountered:
I've investigated and this does appear to be an error in the Typescript bindings (and other SDKs too, such as stripe-java), not in the upgrade guide:
if you attempt to actually send these parameters on the latest API version, you get a 400
{
"error": {
"message": "You cannot use `line_items.amount`, `line_items.currency`, `line_items.name`, `line_items.description`, or `line_items.images` in this API version. Please use `line_items.price` or `line_items.price_data`. Please see https://stripe.com/docs/payments/checkout/migrating-prices for more information.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_Izj3zTug4QVnyU?t=1665450540",
"type": "invalid_request_error"
}
}
Describe the bug
Hi, I'm upgrading from API
2020-08-27
to2022-08-01
, and have upgraded my stripe-node to the latest version (v10.13.0
) specifyingapiVersion: '2022-08-01'
.The Upgrade Guide mentions:
Yet in the Stripe Node Library, those types were not removed from
Stripe.Checkout.SessionCreateParams
:stripe-node/types/2022-08-01/Checkout/Sessions.d.ts
Lines 1726 to 1729 in db94c29
To Reproduce
Upgrade API to 2022-08-01 and in typescript use:
Expected behavior
If the 2022-08-01 API removed Create Checkout Session's
line_items
fields, then it should have been removed from the typescript definitions?Code snippets
The API returns:
OS
macOS
Node version
Node v16.14.2
Library version
stripe-node v10.13.0
API version
2022-08-01
Additional context
The text was updated successfully, but these errors were encountered: