Checkout is customizable presentation around platform-owned commerce truth. The theme owns all visible form markup, labels, grouping, buttons and CSS. Upstorr owns validation, inventory reservations, shipping quotes, discounts, GST, payment actions and order creation.
The main checkout section registers the checkout behavior in its schema. The runtime then supplies checkout state and approved attributes for contact, delivery, address, shipping, billing, discount and submission elements.
Developer-mode code may use fetchThemeCheckout, saveThemeCheckoutDraft, submitThemeCheckout, useThemeCheckout and the generated checkout reference. Use themeRuntimeProps.checkout* to connect visible elements to platform behavior.
Do not insert payment-provider script URLs, payment globals, direct checkout requests or tax calculations in a theme.
When required product HSN/SAC setup is incomplete, checkout reads retain the real cart and return a blocked state with an explicit error, without invented tax or a final total. Render that error through the theme's normal checkout error area, retain a path back to the cart and keep payment unavailable. Do not replace the active theme with a standalone error page or calculate a total yourself.
Custom checkout fields use the merchant's separately enabled Customer input metafield definitions. See Customer input in metafields. Preserve the complete desired input list and current draft version through save and submit.
Development-store test checkout
An authorised Partners development-store preview can supply a test checkout. This is platform-granted access, not a theme setting or a query parameter that a theme can enable on a live shop. Render the supplied test warning, payment choices, submit label and result instead of hard-coding a live payment button.
Approved test submissions are saved in Partners → Test orders. They do not charge money, change stock, issue invoices, arrange delivery or send customer messages. A simulated decline or gateway error is not a paid order. Gift-card payments are unavailable in test checkout. Exercise approved, declined and error outcomes, as well as a stale draft from another tab; do not use real payment-provider calls to simulate these cases.
Verify checkout
Test blank, partially completed, valid and rejected submissions; unavailable items; pickup, shipping and local delivery; billing-address choices; discounts; mobile layout; loading state and payment return. An error element must remain hidden until the platform supplies an actual message.