Breaking changes
Replaces line item parameters from the Create Checkout Session endpointBreaking changes
What’s new
Removes the following parameters from the Create Checkout Session endpoint:
line_items[amount] line_items[currency] line_items[name] line_items[description] line_items[images]
Use the price and price_ parameters instead.
Impact
Defines line items for Checkout Sessions using the price and price_ parameters, instead of the previously available individual line_ parameters. This simplifies the Checkout Session creation process by providing a more consolidated way to specify line item details.
Upgrade
- View your current API version in Workbench.
- If you use an SDK, upgrade to the corresponding SDK version for this API version.
- If you don’t use an SDK, update your API requests to include
Stripe-Version: 2022-08-01
- If you don’t use an SDK, update your API requests to include
- Upgrade the API version used for webhook endpoints.
- Test your integration against the new version.
- If you use Connect, test your Connect integration.
Learn more about Stripe API upgrades.