Payments13 min readUpdated October 14, 2026

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.
Want to go further? AskChatGPTClaudePerplexityGrok
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

  1. StorefrontYour code, your framework, your hosting
  2. API callCommerce APIProducts, prices, cart
  3. respondsCart updatedReturned as data, rendered by you
  4. hands offCheckoutPlatform-hosted, embedded or your own

the backend never renders a page

Simplified. Checkout can be hosted by the platform or built by you, see below.

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)HeadlessComposable
Who renders pagesThe platform, through themesYour front endYour front end
How front and back talkInside one systemAPIsAPIs between many services
Commerce backendOne platformOne platformSeveral services you pick (cart, search, CMS, payments)
CheckoutThe platform'sPlatform-hosted, embedded or yoursUsually a separate service
Who maintains the front endThe platform and your themeYour developersYour developers
Build and run costLowestHigher than a theme, as Shopify saysHighest: 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.

SolutionWhat it isFront endCheckout in a headless buildSource
Shopify (Storefront API, Hydrogen, Oxygen)Storefront API for products, collections, search and cart; Customer Account API for sign-inHydrogen, "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 toolkitThe cart's checkoutUrl sends buyers through Shopify's web checkoutshopify.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 componentsCatalyst 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 APIdocs.bigcommerce.com3BigCommerce Docs, Catalyst overview (read October 14, 2026)4BigCommerce Docs, Creating checkouts for headless storefronts (read October 14, 2026)
commercetoolsCommerce APIs, plus a hosted product called CheckoutYour ownCheckout runs as "Complete Checkout" (the whole flow) or "Payment Only" (inside your flow), with payment connectors such as Adyen, PayPal and Stripedocs.commercetools.com5commercetools Docs, Checkout overview (read October 14, 2026)
MedusaOpen-core commerce platform, core under MITYour ownPayment Module: authorize, capture, refund, saved payment methods, provider webhooks; providers such as Stripe or custom onesdocs.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 licenseYour ownSaleor sits between your front end and a payment app that talks to the provider; apps for Stripe and Adyen; Transactions API for custom flowsdocs.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 sessionsYour own, on top of a WooCommerce backendCheckout endpoint takes a payment_method ID and payment_data passed to the gateway plugin; requires a Nonce or Cart Tokendeveloper.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.

  1. 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".

  2. 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.

  3. 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)

PatternYour control over the pagePCI scope (typical)3D Secure and walletsExample
Hand-off to hosted checkoutLow: logo, colors, the platform's own settingsSAQ A, if all other criteria are metRun by the platformShopify checkoutUrl, Catalyst
Embedded hosted checkoutMediumSAQ A only if your page is protected against script attacksRun by the platform, inside your pageBigCommerce embedded checkout
Your checkout, provider's card fieldsHighSAQ A, under the same script conditionYou display the 3DS step and register wallet domainsProvider card fields (such as Stripe Elements) in a Medusa or Saleor checkout
Your checkout, your card formFullSAQ A-EPYou build and test every stepYour 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).

PCI Security Standards Council, FAQ on SAQ A and SAQ A-EP eligibility

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.

See how routing works

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.

  1. 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
  2. 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
  3. 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 the sandbox attribute on the 3DS iframe: some issuers fail inside it.15Stripe Docs, Authenticate with 3D Secure
  4. 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
  5. 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.

  1. 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
  2. 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
  3. 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
  4. Wallets vanish months after launchDomain verification expiresTrack the renewal like a TLS certificate
  5. 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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

  1. Crawl and map URLsEvery old URL gets a new one
  2. Render on the serverSSR or pre-rendering for product and category pages
  3. Launch section by sectionContent pages, then product listings
  4. 301 or 308 redirectsServer-side, kept at least a year
  5. Checkout and walletsDomains registered, 3DS tested

checkout last, not first

A suggested order based on Google's site move guidance. Adapt to your platform.

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.

Nick Bonnassies

CMO at Tagada

CMO at Tagada. Before Tagada, Nick built direct-to-consumer brands that generated over $115M in sales, raised over $25M in crowdfunding and sold two of them. He also works as a fractional CMO on marketing operations and AI systems.

Frequently asked questions

What is headless commerce in simple terms?

It's an online store where the part customers see is built separately from the system that runs products, carts, orders and payments. The storefront asks the backend for data through APIs and shows it however you want. You can redesign or rebuild the storefront without changing the backend, and feed the same backend to a website, an app or other channels.

Is Shopify headless?

Shopify can run headless. Its Storefront API serves products, collections, search and the cart, and Hydrogen is its toolkit for building a full storefront, deployable to Oxygen, Shopify's hosting. You can also use any stack without a Shopify toolkit. Checkout stays Shopify's: the cart's checkoutUrl sends buyers through Shopify's web checkout.

What is the difference between headless and composable commerce?

Headless separates the front end from the commerce backend. Composable goes further: each part of the stack, such as search, CMS, payments or promotions, is a separate service you choose and can replace on its own. A store can be headless on a single platform without being composable. Composable stacks are usually headless.

Is headless commerce good for SEO?

It can be, if pages are rendered on the server or pre-rendered. Google renders JavaScript in a later phase and still calls server-side or pre-rendering a great idea, partly because not all bots run JavaScript. The risks sit in the migration: every changed URL needs a permanent 301 or 308 redirect, kept for at least a year.

Does headless commerce change PCI compliance?

It depends on who serves the payment form. If buyers go to the platform's hosted checkout, or every payment element comes from a PCI DSS compliant provider, you may qualify for SAQ A. If your own page builds the form and sends card data to the gateway, it's SAQ A-EP. Your acquirer confirms which one you file.

Can you use Apple Pay on a headless storefront?

Yes, as long as every domain and subdomain showing the button is registered and verified. Apple says domains can't sit behind a proxy or redirect, and verification expires. With Stripe Elements, you register each domain in the Dashboard; if an iframe's domain differs from the page's, both must be registered.

Sources

Checked October 14, 2026
  1. Shopify Dev Docs, Headless (read October 14, 2026)
  2. Shopify Dev Docs, Manage a cart with the Storefront API (read October 14, 2026)
  3. BigCommerce Docs, Catalyst overview (read October 14, 2026)
  4. BigCommerce Docs, Creating checkouts for headless storefronts (read October 14, 2026)
  5. commercetools Docs, Checkout overview (read October 14, 2026)
  6. Medusa Docs, Payment Module (read October 14, 2026)
  7. Medusa, GitHub repository README and license (read October 14, 2026)
  8. Saleor Docs, Payments overview (read October 14, 2026)
  9. Saleor, GitHub repository README and license (read October 14, 2026)
  10. WooCommerce Developer Docs, Store API (read October 14, 2026)
  11. WooCommerce Developer Docs, Store API checkout endpoint (read October 14, 2026)
  12. PCI Security Standards Council, FAQ: SAQ A or SAQ A-EP when all payment page elements come from a compliant provider
  13. PCI Security Standards Council blog, FAQ clarifies new SAQ A eligibility criteria for e-commerce merchants, February 28, 2025
  14. EMVCo, EMV 3-D Secure
  15. Stripe Docs, Authenticate with 3D Secure
  16. Apple Developer, Apple Pay on the Web: Configuring your environment
  17. Stripe Docs, Register domains for payment methods
  18. web.dev, Web Vitals (updated October 31, 2024)
  19. Google Search Central, Understand JavaScript SEO basics (updated March 4, 2026)
  20. Google Search Central, Site moves with URL changes (updated August 20, 2026)
  21. 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.

  1. 01Tell us what you sell and how
  2. 02Underwriting reviews your business
  3. 03Process through TagadaPay alongside your other processors