商品作成時の custom_unit_amount のサポートを追加
新機能
Product の default_
パラメーターに custom_
パラメーターを追加します。
追加済み
custom_unit_amountobject
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. Required unless unit_
is provided.
影響
これにより、商品のデフォルトの価格データを作成するときにカスタムの単価を指定できます。この変更は、自社のオファリングにあった特定の価格設定を必要とするビジネスにメリットがあります。