Updates initCheckout to be synchronousBreaking changes
What’s new
The stripe.initCheckout method is now synchronous instead of asynchronous.
Why is this a breaking change?
This breaking change affects you if your integration uses Elements with the Checkout Sessions API.
Impact
The synchronous nature of initCheckout
enables you to mount Elements earlier, which reduces the render latency of any Elements you mount immediately after initCheckout
. This also enables Elements to display the skeleton loader UI after it’s mounted but the session state hasn’t fully loaded yet.
Related changes
- 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