Headless Commerce: How It Works and Where Checkout Goes
What headless commerce is, the main platforms from their own docs, and the part most guides skip: checkout, PCI scope, 3D Secure and Apple Pay.
Article summary
TL;DR
Headless commerce separates the storefront customers see from the commerce backend that holds products, carts, orders and payments. The two talk through APIs, so you can rebuild the front end without touching the backend. Checkout is the part to plan first: hand it off to the platform, embed it, or build it and take on more PCI work.
- Headless means your front end calls the commerce backend through APIs instead of running on the platform's theme system.
- Shopify headless storefronts send buyers to Shopify's web checkout through the cart's checkoutUrl. BigCommerce's Catalyst redirects to BigCommerce's hosted checkout by default.
- If you build your own checkout, the payment form decides your PCI scope: provider fields can keep you in SAQ A, your own form posting to the gateway means SAQ A-EP.
- Apple Pay requires every domain and subdomain that shows the button to be registered and verified. A new headless domain is a new domain.
- Headless doesn't make a site fast by itself. Shopify's docs say it costs more to build and run than a theme: measure Core Web Vitals before and after.
On this page
Headless commerce splits an online store in two: the storefront customers see, and the commerce backend that holds products, carts, orders and payments. They talk through APIs. Most guides stop at the storefront. This one also covers what happens when the customer clicks Pay, because that's where headless projects get expensive.
What is headless commerce?
In a traditional store, the platform renders the pages. Your theme is a layer inside the platform, and the platform decides how far you can change it. In a headless store, the backend only answers API calls. You build the front end in the framework you want, host it where you want, and ask the backend for products, prices and the cart.
Fig. 1One add-to-cart in a headless store
approved declined or closed routing step
- StorefrontYour code, your framework, your hosting
- API callCommerce APIProducts, prices, cart
- respondsCart updatedReturned as data, rendered by you
- hands offCheckoutPlatform-hosted, embedded or your own
the backend never renders a page
The headless commerce idea is the same as a headless CMS: the content lives in one system and any "head" can display it. A website, a mobile app and a kiosk can read the same catalog and write to the same orders.
Headless vs traditional vs composable commerce
| Traditional (coupled) | Headless | Composable | |
|---|---|---|---|
| Who renders pages | The platform, through themes | Your front end | Your front end |
| How front and back talk | Inside one system | APIs | APIs between many services |
| Commerce backend | One platform | One platform | Several services you pick (cart, search, CMS, payments) |
| Checkout | The platform's | Platform-hosted, embedded or yours | Usually a separate service |
| Who maintains the front end | The platform and your theme | Your developers | Your developers |
| Build and run cost | Lowest | Higher than a theme, as Shopify says | Highest: you integrate each part |
Verdict
Headless decouples the front end. Composable decouples everything. You can run a headless storefront on a single platform and never go composable.
Salesforce's guide puts the split the same way: headless separates the front end from the back end, and composable means each component is independent and chosen separately, which headless makes possible.21Salesforce, What is headless commerce? (vendor guide, FAQ on headless vs composable) If your question is "composable commerce architecture", the answer starts here: composable is headless plus a decision, service by service, on what to buy.
Headless commerce solutions compared
Each line below comes from the vendor's own documentation, read on October 14, 2026. No ranking: the right one depends on the backend you already run and the team you have.
| Solution | What it is | Front end | Checkout in a headless build | Source |
|---|---|---|---|---|
| Storefront API for products, collections, search and cart; Customer Account API for sign-in | Hydrogen, "Shopify's headless toolkit", with frameworks like Next.js or React Router; Oxygen is "Shopify's hosting for Hydrogen storefronts"; or any stack without a toolkit | The cart's checkoutUrl sends buyers through Shopify's web checkout | shopify.dev1Shopify Dev Docs, Headless (read October 14, 2026)2Shopify Dev Docs, Manage a cart with the Storefront API (read October 14, 2026) | |
| BigCommerce (Catalyst, GraphQL Storefront API) | Catalyst: open-source (MIT) storefront framework, "a standard Next.js application" | Next.js, React server components | Catalyst redirects to a one-page checkout hosted by BigCommerce; headless stores can also embed the hosted checkout in an iframe or build their own on the Checkout API | docs.bigcommerce.com3BigCommerce Docs, Catalyst overview (read October 14, 2026)4BigCommerce Docs, Creating checkouts for headless storefronts (read October 14, 2026) |
| commercetools | Commerce APIs, plus a hosted product called Checkout | Your own | Checkout runs as "Complete Checkout" (the whole flow) or "Payment Only" (inside your flow), with payment connectors such as Adyen, PayPal and Stripe | docs.commercetools.com5commercetools Docs, Checkout overview (read October 14, 2026) |
| Medusa | Open-core commerce platform, core under MIT | Your own | Payment Module: authorize, capture, refund, saved payment methods, provider webhooks; providers such as Stripe or custom ones | docs.medusajs.com, GitHub6Medusa Docs, Payment Module (read October 14, 2026)7Medusa, GitHub repository README and license (read October 14, 2026) |
| Saleor | "GraphQL native, API-only" commerce platform, BSD-3-Clause license | Your own | Saleor sits between your front end and a payment app that talks to the provider; apps for Stripe and Adyen; Transactions API for custom flows | docs.saleor.io, GitHub8Saleor Docs, Payments overview (read October 14, 2026)9Saleor, GitHub repository README and license (read October 14, 2026) |
| WooCommerce (Store API) | Public REST endpoints for cart, checkout and products, unauthenticated, cookie sessions | Your own, on top of a WooCommerce backend | Checkout endpoint takes a payment_method ID and payment_data passed to the gateway plugin; requires a Nonce or Cart Token | developer.woocommerce.com10WooCommerce Developer Docs, Store API (read October 14, 2026)11WooCommerce Developer Docs, Store API checkout endpoint (read October 14, 2026) |
Others sell headless too, including Salesforce Commerce Cloud, Adobe Commerce and SAP Commerce Cloud. The question to ask each one is the same as for the six above: where does checkout run, and who serves the card form?
Where checkout and payments go in a headless build
This is the decision most headless guides skip. Your front end is yours, but the payment step can stay with the platform. There are three patterns.
Hand off to the platform's checkout
The storefront builds the cart, then sends the buyer to a hosted checkout. Shopify: the Storefront API cart returns a checkoutUrl, "a URL that redirects customers through Shopify's web checkout". BigCommerce: the cart returns a checkout_url to its hosted checkout, which Catalyst uses by default "to simplify PCI compliance".
Embed the hosted checkout
The platform's checkout runs inside your page. BigCommerce's Checkout SDK can "embed the BigCommerce hosted checkout into your headless storefront using an iFrame". commercetools' Payment Only mode drops its payment component into your own flow.
Build your own checkout
Your front end collects address, shipping and payment, then calls the API: BigCommerce's Checkout API, WooCommerce's checkout endpoint, Medusa's Payment Module, Saleor's payment apps. Full control over every field, and every payment rule becomes your job.
With Shopify, the hand-off is the standard path: you create the cart with cartCreate, then request checkoutUrl when the buyer is ready, and request it again if it has gone stale.2Shopify Dev Docs, Manage a cart with the Storefront API (read October 14, 2026) Shopify lists checkout among its commerce capabilities, alongside the cart and international pricing, so a headless Shopify store doesn't rebuild payment.1Shopify Dev Docs, Headless (read October 14, 2026) BigCommerce warns that shoppers on its hosted checkout can navigate to other pages of the BigCommerce store, and suggests redirects to keep them on your storefront.4BigCommerce Docs, Creating checkouts for headless storefronts (read October 14, 2026)
| Pattern | Your control over the page | PCI scope (typical) | 3D Secure and wallets | Example |
|---|---|---|---|---|
| Hand-off to hosted checkout | Low: logo, colors, the platform's own settings | SAQ A, if all other criteria are met | Run by the platform | Shopify checkoutUrl, Catalyst |
| Embedded hosted checkout | Medium | SAQ A only if your page is protected against script attacks | Run by the platform, inside your page | BigCommerce embedded checkout |
| Your checkout, provider's card fields | High | SAQ A, under the same script condition | You display the 3DS step and register wallet domains | Provider card fields (such as Stripe Elements) in a Medusa or Saleor checkout |
| Your checkout, your card form | Full | SAQ A-EP | You build and test every step | Your form posting to the gateway by script |
The flow behind each step (cart, details, shipping, payment, confirmation) is laid out in our guide to the checkout flow. For the integration itself, see how to integrate a payment gateway.
PCI scope: SAQ A or SAQ A-EP?
Going headless doesn't change PCI DSS, but building your own checkout changes what you have to prove. The line between the two questionnaires is who serves each element of the payment page.
For SAQ A, all elements of the payment pages must only originate from PCI DSS compliant service provider(s).
For SAQ A-EP, each element comes either from the merchant's website or from a compliant provider, and all eligibility criteria of a questionnaire must be met to use it.12PCI Security Standards Council, FAQ: SAQ A or SAQ A-EP when all payment page elements come from a compliant provider In practice: a full redirect to a hosted checkout or provider fields in iframes can qualify for SAQ A; a card form you build yourself, even if a provider script sends the data, is SAQ A-EP.
Since 2025, SAQ A has one more criterion for pages that embed a provider's payment form, such as an iframe: the merchant confirms its site "is not susceptible to attacks from scripts". It doesn't apply to merchants that redirect customers to the provider. The PCI SSC accepts two ways to confirm it: techniques such as those in PCI DSS requirements 6.4.3 and 11.6.1, or a confirmation from your compliant provider that its solution, set up as instructed, protects the page.13PCI Security Standards Council blog, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants, February 28, 2025
The headless trap
A headless front end usually ships more scripts than a theme: analytics, tag managers, A/B tests, chat. On a page that embeds the card form, each of them is part of the script question. Keep checkout pages lean, and get the provider's written confirmation before you assume SAQ A.
The full comparison of SAQ A, A-EP and D is in our guide to PCI compliant payment gateways, and the redirect versus iframe choice in hosted payment gateways.
Inside Tagada
See every payment's route, processor by processor
Set the order your processors are tried in, per store, per country or per product.

3D Secure 2 in a headless checkout
EMV 3-D Secure is the protocol that lets the card issuer authenticate the buyer on card-absent purchases, in browsers and in apps. For many transactions the buyer just clicks Buy; for higher-risk ones, the issuer asks for more.14EMVCo, EMV 3-D Secure With a hosted checkout, the platform runs it. With your own checkout, you display it.
- Confirm the payment. Your front end confirms the payment with the provider. The provider decides whether 3DS is needed: regulation such as SCA in Europe, your fraud rules, or an issuer soft decline.15Stripe Docs, Authenticate with 3D Secure
- Show the challenge if one comes back. At Stripe, the payment moves to
requires_action. Stripe.js shows the issuer's screen in a modal, or you redirect to the bank or open it in your own iframe. The issuer controls fonts and colors.15Stripe Docs, Authenticate with 3D Secure - Allow the frames. If your site uses a content security policy, it must allow frames from the provider's domains and your
return_url. Stripe says not to use thesandboxattribute on the 3DS iframe: some issuers fail inside it.15Stripe Docs, Authenticate with 3D Secure - Come back and check the status. The iframe redirects to your
return_url, which tells the parent page. Retrieve the payment and read its status before you show success.15Stripe Docs, Authenticate with 3D Secure - Confirm from the server. Fulfill from a verified webhook, never from the success page alone.
Based on Stripe's 3D Secure guide. Other providers follow the same logic with their own SDKs.
Two points matter for risk. Stripe.js and the Stripe mobile SDKs collect basic device information during 3DS2 and send it to the issuer, which is one reason to load the provider's own script on the payment page rather than a copy.15Stripe Docs, Authenticate with 3D Secure And a successful 3DS doesn't guarantee the liability shift: Stripe says to expect it on eligible fraud disputes, never to treat it as certain.15Stripe Docs, Authenticate with 3D Secure More on the protocol in the glossary entry on 3D Secure 2.
Apple Pay and wallets on a headless domain
Wallets are where headless launches break quietly. The button simply doesn't show.
- Apple Pay button missing on the new storefrontApple requires every top-level domain and subdomain showing the button to be registered and verifiedRegister the new domain with your provider (or in your Apple Developer account) before launch
- Works on www, not on shop. or a regional subdomainEach subdomain is registered separatelyList every hostname that can show the payment form, and register each one
- Verification fails behind your CDNApple says domains can't be behind a proxy or redirect, and must be reachable by Apple's serversServe the domain association file directly, without redirect
- Wallets vanish months after launchDomain verification expiresTrack the renewal like a TLS certificate
- Payment form in an iframe on another domainWith Stripe Elements, the iframe origin must match the page, or both domains must be registeredRegister the top-level domain and the iframe's domain
Apple's rule is in its Apple Pay on the Web setup: register and verify "all top-level domains and subdomains where you'll display the Apple Pay button".16Apple Developer, Apple Pay on the Web: Configuring your environment Stripe applies the same logic to Elements and its embedded checkout, and lists Apple Pay as required, with Google Pay, Link, PayPal, Klarna and Amazon Pay among the methods that use domain registration. Stripe handles Apple's merchant validation for you, and domains must be registered for testing too.17Stripe Docs, Register domains for payment methods If you hand checkout off to Shopify or BigCommerce, the platform's checkout carries its own wallets. More on wallets in alternative payment methods.
Fraud and payment risk in a headless stack
A headless stack moves logic into code you own, so a few risks move with it.
Prices set in the browser
Your front end shows the price, but the amount charged must come from the backend. Never let the client send the amount to the payment API.
Scripts on the payment page
Every tag on the checkout page can read or change it. That's the PCI script question above, and the reason to keep checkout pages lean.
Device data for the issuer
3DS2 relies on device and transaction data. Load the provider's own script on the payment page so it can collect what the issuer needs.
Webhooks you can trust
Confirm payments from signed webhooks, and make each handler safe to run twice. The success page can be reloaded, skipped or faked.
Fraud screening itself (rules, device signals, 3DS on risky orders) stays with the payment provider or the layer in front of your processors. A headless front end doesn't add it or remove it. If you route across several processors, the payment orchestration layer is where those rules live.
When headless is worth it, and when it isn't
Shopify, which sells both themes and headless, says it plainly: "A headless storefront costs more to build and run than a theme."1Shopify Dev Docs, Headless (read October 14, 2026) You need developers to build and maintain the front end, hosting, monitoring, and someone who owns checkout and payment issues.
Worth it when
- The theme system blocks things your business needs: custom bundles, configurators, content-heavy pages
- You serve several front ends (web, app, kiosk) from one catalog
- You have developers in-house, or a partner on retainer, for after launch
- You can keep the platform's hosted checkout, or you have a clear plan for PCI, 3DS and wallets
Not worth it when
- The main goal is "a faster site": a well-built theme can pass Core Web Vitals too
- Nobody will own the front end after the agency leaves
- You'd rebuild checkout only to change its look
- Your bottleneck is payments (declines, one processor, held funds): headless doesn't change that
Speed is the most common reason given, and the hardest to promise. Google's Core Web Vitals give a target to measure against, at the 75th percentile of page loads, mobile and desktop separately:18web.dev, Web Vitals (updated October 31, 2024)
2.5 s
Largest Contentful Paint, or less
200 ms
Interaction to Next Paint, or less
0.1
Cumulative Layout Shift, or less
Measure your current store on these three before deciding, and set them as acceptance criteria for the new front end. A headless store that loads every script a theme had will not be faster. And if checkout stays hosted by the platform, its speed isn't yours to tune.
Migrating to headless without losing SEO
Most of the traffic risk in a headless project is in the switch, not the architecture.
Fig. 2A headless migration, in order
- Crawl and map URLsEvery old URL gets a new one
- Render on the serverSSR or pre-rendering for product and category pages
- Launch section by sectionContent pages, then product listings
- 301 or 308 redirectsServer-side, kept at least a year
- Checkout and walletsDomains registered, 3DS tested
checkout last, not first
Rendering. Google crawls, then renders JavaScript with a headless Chromium "once Google's resources allow", then indexes the rendered HTML. It still calls server-side rendering or pre-rendering "a great idea", because it's faster for users and crawlers and not all bots run JavaScript.19Google Search Central, Understand JavaScript SEO basics (updated March 4, 2026) Catalyst uses React server components, and Shopify lists server-side frameworks for Hydrogen; a client-only single-page app is the setup to avoid for product pages.
Redirects. If URLs change, map each old URL to its new one and use server-side permanent redirects, 301 or 308. Google says to keep them as long as possible, at least a year.20Google Search Central, Site moves with URL changes (updated August 20, 2026) Platforms often have their own URL patterns (Shopify's /products/, for example), so a headless rebuild is the moment URLs change by accident.
Phasing. You don't need a big-bang launch. Salesforce's guide suggests starting where headless has the most impact and measuring after each phase.21Salesforce, What is headless commerce? (vendor guide, FAQ on headless vs composable) For a DTC brand, that usually means content and landing pages first, then product and category pages, and checkout last, or never if the hosted checkout does the job.
How Tagada helps
Checkout and payments behind any storefront
Tagada runs standalone or with Shopify, WooCommerce or a headless store. Its checkout carries one-click upsells, order bumps, A/B tests, Apple Pay and Google Pay. Payments route across TagadaPay and processors such as Stripe, NMI and Airwallex, with one logic and a cascade to another processor when one is down or times out, and the card vault lets you switch processors without re-onboarding customers, so running subscriptions keep charging. 3D Secure 2 is native, with device intelligence and a rules engine. TagadaPay still underwrites each business. Details on the payments page and the pricing page.
Whatever stack you choose, decide checkout before you pick a framework: who hosts the card form, which SAQ your acquirer will accept, who displays 3D Secure, and which domains need wallet verification. The storefront is the easy part.
Frequently asked questions
What is headless commerce in simple terms?
Is Shopify headless?
What is the difference between headless and composable commerce?
Is headless commerce good for SEO?
Does headless commerce change PCI compliance?
Can you use Apple Pay on a headless storefront?
Sources
Checked October 14, 2026- Shopify Dev Docs, Headless (read October 14, 2026)
- Shopify Dev Docs, Manage a cart with the Storefront API (read October 14, 2026)
- BigCommerce Docs, Catalyst overview (read October 14, 2026)
- BigCommerce Docs, Creating checkouts for headless storefronts (read October 14, 2026)
- commercetools Docs, Checkout overview (read October 14, 2026)
- Medusa Docs, Payment Module (read October 14, 2026)
- Medusa, GitHub repository README and license (read October 14, 2026)
- Saleor Docs, Payments overview (read October 14, 2026)
- Saleor, GitHub repository README and license (read October 14, 2026)
- WooCommerce Developer Docs, Store API (read October 14, 2026)
- WooCommerce Developer Docs, Store API checkout endpoint (read October 14, 2026)
- PCI Security Standards Council, FAQ: SAQ A or SAQ A-EP when all payment page elements come from a compliant provider
- PCI Security Standards Council blog, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants, February 28, 2025
- EMVCo, EMV 3-D Secure
- Stripe Docs, Authenticate with 3D Secure
- Apple Developer, Apple Pay on the Web: Configuring your environment
- Stripe Docs, Register domains for payment methods
- web.dev, Web Vitals (updated October 31, 2024)
- Google Search Central, Understand JavaScript SEO basics (updated March 4, 2026)
- Google Search Central, Site moves with URL changes (updated August 20, 2026)
- Salesforce, What is headless commerce? (vendor guide, FAQ on headless vs composable)
TagadaPay
Headless storefront, one checkout with several processors behind it
Tell us what you sell and how you sell it. Each application is underwritten, and approval is not guaranteed.
- 01Tell us what you sell and how
- 02Underwriting reviews your business
- 03Process through TagadaPay alongside your other processors
