Breaking changes
Renames Embedded Checkout initialisation method Breaking changes
What’s new
Renames the stripe.initEmbeddedCheckout() method to stripe.createEmbeddedCheckoutPage(). The options and return type remain the same as for initEmbeddedCheckout().
Why is this a breaking change?
stripe.initEmbeddedCheckout() has been renamed, so calling it throws an IntegrationError. If your integration uses Embedded Checkout and calls initEmbeddedCheckout(), you need to update your code to instead call createEmbeddedCheckoutPage().
For example:
const checkout = await stripe.initEmbeddedCheckout({fetchClientSecret});
const checkout = await stripe.createEmbeddedCheckoutPage({fetchClientSecret});
Related changes
- Changes the Address Element state field to default to Latin-formatted characters
- Updates the elements.update() method to return a Promise
- Removes support for boolean values in options.layout.radios
- Removes deprecated Payment Intents, Setup Intents, and Sources methods from Stripe.js
- Renames Checkout initialisation method