Checkout UI extensions
Use checkout extensions to build custom functionality for merchants in the checkout flow. You can customize the product information, shipping, payment, order summary, and Shop Pay steps.
Checkout UI extensions for the information, shipping and payment step are available only to stores on a Shopify Plus plan.
Anchor to Scaffolding an extensionScaffolding an extension
Use Shopify CLI to generate a new extension in the directory of your app.
Anchor to Extension pointsExtension points
Extension points provide locations where merchants can insert custom content. Static extension points are tied to core checkout features like contact information, shipping methods, and order summary line items. Dynamic extension points can be displayed at any point in the checkout process and will always render regardless of which checkout features are available. An example is a field to capture order notes from the customer.
Extension UIs are rendered using remote UI, a fast and secure environment for custom (non-DOM) UIs.
Anchor to Configuration fileConfiguration file
When you create a checkout UI extension, the shopify.ui.extension.toml file is automatically generated in your checkout UI extension directory. It contains the extension's configuration, which includes the extension name, extension points, metafields, capabilities, and settings definition.
Anchor to Extension APIsExtension APIs
APIs enable checkout UI extensions to get information about the checkout or related objects and to perform actions. For example, you can use the APIs to retrieve what's in customer carts so that you can offer related products.
Extensions use JavaScript to read and write data and call external services, and natively render UIs built using Shopify's checkout components.
Anchor to UI componentsUI components
Checkout UI extensions provide UI components that a rendering extension can use to build an interface. Shopify renders the UI natively, so it's performant, accessible, and works in all of checkout's supported browsers.
Checkout components are designed to be flexible, enabling you to layer and mix them to create highly-customized app extensions that feel seamless within the checkout experience. All components inherit a merchant's brand settings and the CSS cannot be altered or overridden.
Anchor to SecuritySecurity
Checkout UI extensions are a safe and secure way to customize the appearance and functionality of the checkout page without compromising the security of checkout or customer data.
- They run in an isolated sandbox, separate from the checkout page and other UI extensions.
- They don't have access to sensitive payment information or the checkout page itself (HTML or other assets).
- They are limited to specific UI components and APIs that are exposed by the platform.
- They have limited access to global web APIs.
- Apps that wish to access protected customer data, must submit an application and are subject to strict security guidelines and review proccesses by Shopify.
You can't override the CSS for UI components. The checkout UI will always render the merchant's own branding as shown in the image in the UI components section above.
Checkout UI extensions don't have access to the DOM and can't return DOM nodes. They can't return `` elements, for example. Building an arbitrary tree of HTML and loading additional scripts using script tags are also not supported.
Anchor to TroubleshootingTroubleshooting
Find an end-to-end guide to testing your extensions in Testing checkout UI extensions.
If you're encountering errors when you run dev for an app that contains checkout UI extensions, follow this troubleshooting guide.