initCheckout が同期的になるように更新互換性に関わる変更
新機能
stripe.initCheckout メソッドが非同期ではなく同期になりました。
この変更により互換性が失われる理由
Elements と Checkout Sessions API を導入している場合、この変更は影響します。
影響
initCheckout
の同期性により、Elements を早めにマウントできるため、initCheckout
の直後にマウントする Elements のレンダリング遅延が短縮されます。また、Elements はマウント後、セッション状態がまだ完全に読み込まれていない状態でも、スケルトンローダー UI を表示できるようになります。
関連する変更
- Removes postal code for card payments in certain regions on Checkout and Payment Element
- Removes currency conversion field from Checkout Session object
- Removes support for the redirectToCheckout method
- Adds support for collecting business and individual names in Checkout Sessions
- Adds the ability to exclude payment methods from Checkout Sessions and Payment Intents
- Adds support for setting the capture method for specific payment methods with the Checkout Sessions API
- Adds support for configuring branding settings for Checkout Sessions
- Enables specifying units of measurement for Products