data-checkout-url on the main script (so the cart can redirect to your hosted checkout page).
data-checkout-param on the hosted page (so it can read the checkout ID from the URL).
Hosted page example:
Main script example (cart redirects here):
Hosted checkout UI controls
Use these attributes on the hosted checkout page to customize the UI:
hide-header on the checkout container
Hides the SDK header so you can render your own.
data-lce-exit-checkout on any element
Lets you build your own “Exit checkout” button or link.
Checkout-only build
If a page only needs hosted checkout, use the checkout-only script. It supports the same hosted-checkout attributes but ships ~50% less JavaScript for faster load time.