Checkout
The SDK uses Shopify’s web checkout flow. Each cart has acheckoutUrl that opens Shopify’s hosted checkout page.
Getting the Checkout URL
Hook API
null if the cart is empty or doesn’t exist.
Alternative: From useCart
The checkout URL is also available through useCart:
Opening Checkout
Usereact-native-inappbrowser-reborn to open the checkout URL:
Checkout Flow
- Build the cart with
addLinesandupdateBuyerIdentity - Get the
checkoutUrl - Open it in an in-app browser
- Shopify handles the full checkout flow (address, shipping, payment)
- After completion, Shopify redirects to your configured return URL
- Clear the cart with
clearCart()on return
TheuseCheckouthook is a thin wrapper — it callsuseStackfront().cart.getCheckoutUrl(). UseuseCartdirectly if you already need cart state.