Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

5282 articles

Updates Checkout Session UI mode enum values


Breaking changes

Updates Checkout Session UI mode enum values Breaking changes

What’s new

Updates the ui_mode parameter for Checkout Sessions to use the following clearer, more descriptive enum values:

  • hosted _ page : Displays the Checkout Session on a hosted page that customers get redirected to (replaces hosted )
  • embedded _ page : Displays the Checkout Session as an embedded page on your website (replaces embedded )
  • elements : Displays the Checkout Session using embedded components on your website (replaces custom )

Also adds the form value, which enables you to use the Checkout form UI mode. It provides default Adaptive Pricing support and improved payment method handling.

Why is this a breaking change?

Attempting to set a Checkout Session’s ui_mode to hosted, embedded or custom will fail. If your integration uses any of those values, you must update your code to use the new ui_mode values.

Changes

ValuesChangeEnums
custom embedded hostedRemovedCheckout. Session#create Checkout. Session
elements embedded_page hosted_pageAddedCheckout. Session#create Checkout. Session

Upgrade

  1. View your current API version in Workbench.
  2. If you use an SDK, upgrade to the corresponding SDK version for this API version.
  • If you don’t use an SDK, update your API requests to include Stripe-Version: 2026-03-25. dahlia
  1. Upgrade the API version used for webhook endpoints .
  2. Test your integration against the new version.
  3. If you use Connect, test your Connect integration .

Learn more about Stripe API upgrades.

Last verified 2026-09-25

Is this helpful?