Dynamically update line itemsPrivate preview
Update line items in response to changes made during checkout.
You can use the embedded form or embedded components to dynamically add, remove, or update line items included in a Checkout Session. This allows you to:
- Check inventory: Run inventory checks and holds when customers attempt to change item quantities.
- Add new products: Add a complimentary product if the order total exceeds a specific amount.
- Update shipping rates: If the order total changes, update shipping rates by combining the method described in this guide with what’s out on Customize shipping options during checkout.
- Update tax rates: If you’re not using Stripe Tax, you can dynamically update tax rates on line items based on the shipping address entered.
Currently, dynamic updates aren’t supported for Stripe-hosted pages. Set up your integration with another payment UI–either embedded form or embedded components–to use this feature.