Adds the ability to update line items on existing Checkout Sessions with a custom UI
What’s new
You can now update line items when using Elements with Checkout Sessions. Additionally, you can now create and update line item metadata.
Impact
You can now modify session details after creating a session. This change enables more dynamic checkout flows, such as updating a shopping cart, changing promotional pricing, or adding custom tracking information through metadata.
When you update a Checkout Session with a custom UI mode you can now:
- Update line item price, quantity, and tax_rates
- Add and modify metadata on the session
- Use price_data to create prices inline
- Enable adjustable_quantity to let customers modify quantities during checkout
See the related guide for more examples.