ラインアイテムを動的に更新する非公開プレビュー
決済時に行われた変更に応じてラインアイテムを更新します。
Dynamically add, remove, or update line items included in a Checkout Session.
This allows you to:
- 在庫の確認:在庫チェックを実行し、顧客が商品の数量を変更しようとしたときに選択を保留します。
- Add new products (新規商品を追加): 注文総額が特定の金額を超えている場合に、補完商品を追加します。
- Update shipping rates: If the order total changes, update shipping rates by combining the method described in this guide with our guide on how to Customize shipping options during checkout.
- Update tax rates (税率を更新): Stripe Tax を使用していない場合は、入力された配送先住所に基づいてラインアイテムの税率を動的に更新できます。
Dynamic updates aren’t supported for Stripe-hosted pages. You can use this feature with embedded components.