Headless checkout on Magento Open Source: what changes when your front end takes over
Headless checkout on Magento Open Source means your own front end renders the cart, shipping, payment and review steps while Magento keeps the cart, pricing, tax and order records, which it reaches through its GraphQL API. The front end owns the screens, Magento still owns the order. Teams usually need this when they want a custom storefront but still need every order to be created, paid and visible in the same back end as the rest of the store. The decision is not whether checkout can be headless, but how much of the payment path you are prepared to build and support yourself.
The flow is built from GraphQL mutations that you call in order: creating or resolving a guest or customer cart, adding and updating items, setting shipping and billing addresses, selecting a shipping method, and then setting a payment method and placing the order. The payment step is where the plugin matters most. Each payment extension decides which of these mutations and which front-end steps it supports, so confirm the exact mutation list and the payment method codes in your extension's documentation before you design screens. Your team should also confirm which GraphQL fields your Magento version exposes for each step, because the cart and payment schema changes between releases.
The core trade-off is control against support scope. A custom checkout gives you full control over layout, validation and conversion flow, but once you replace the storefront, the payment provider's support typically covers only the plugin's back-end functions. Your front end, its custom back-end logic and any unsupported order types become your responsibility. Adyen's documentation, for example, excludes MOTO orders and multiple address shipping from its headless integration, so those features need either a different design or your own engineering. Ask the provider in writing which flows they support headless before you commit to a scope.
How a headless checkout request moves between your front end, Magento and the payment provider
A headless order starts in your custom front end, which calls Magento GraphQL for each checkout step: cart, addresses, shipping and payment method. When the shopper pays, Magento hands the request to the payment plugin, which talks to the provider. The provider's result comes back through the plugin and Magento records the order. Check each boundary: your front end and Magento, and Magento and the provider, since support for the plugin's back-end functions stops at the boundary of your own code.
Request path for one headless order, with the trust boundaries between front end, Magento and provider.
Which payment plugins support headless mode and where support stops
The Adyen plugin for Adobe Commerce and Magento Open Source is the clearest documented example of a headless boundary. Adyen's plugin documentation states that its headless integration supports the plugin's back-end functions, while the merchant's front end and custom back-end logic sit outside Adyen support. Read this as a split of responsibility: Adyen answers for the plugin behavior it documents, and your team answers for everything you build around it.
- Supported: the plugin's back-end functions that Adyen documents for headless use.
- Outside Adyen support: your custom storefront, including the checkout interface you build on GraphQL.
- Outside Adyen support: custom back-end logic you add to cart, order or payment handling.
- Not available headless: MOTO (mail order and telephone) orders.
- Not available headless: multiple address shipping.
Confirm the current Adyen headless page for your plugin version before you fix the checkout design, because these boundaries can change between releases.
Our research did not include vendor headless documentation for other payment extensions, so this tab cannot state where their support stops. Treat every other payment plugin as unverified until its vendor confirms headless behavior in writing. Ask for the same boundary statement that Adyen publishes, so you can compare providers on the same terms.
- Headless statement: whether the vendor documents API-only use of its back-end functions.
- Excluded flows: whether MOTO orders, admin-created orders, multiple address shipping or recurring payments work in headless mode.
- Support wording: who supports the front end, custom code and the payment integration when something fails.
- Version match: whether the plugin supports the Magento Open Source release line and PHP version you plan to run.
- Marketplace and contract: any headless caveat in the listing, the license terms or the statement of work.
Ask each vendor for a written support boundary and a list of unsupported flows before the build starts.
Hosted payment fields and redirect flows keep card entry on the provider's pages, which can reduce the part of your environment that handles cardholder data. The reduction depends on how you build the page around the provider element. A custom front end that reads, logs or forwards card data can bring that code back into scope regardless of the provider's design.
- Hosted fields: card entry happens in provider-controlled elements. Confirm with your acquirer or Qualified Security Assessor (QSA) which questionnaire type applies to your build.
- Redirect or iframe: the payer leaves or partly leaves your front end. Confirm return URL handling, order state on return and what happens when the payer closes the window.
- Content Security Policy: Adobe's CSP documentation says CSP runs in restrict mode by default on storefront and admin payment pages from 2.4.7, so your custom front end must allow the provider's scripts and frames.
- Tokenization: confirm the provider returns tokens, not card numbers, through your GraphQL responses and your logs.
- Custom front end code: the code that places payment elements or handles payment results is part of your review scope.
Ask the vendor for a payment flow diagram and a list of every page that holds a payment element.
Vendor support boundaries and PCI DSS scope answer different questions. The vendor supports its plugin. PCI DSS applies to entities that store, process or transmit cardholder data, or that could affect the security of the cardholder data environment, which can include your storefront, hosting and custom front end. The PCI Security Standards Council (PCI SSC) does not enforce compliance. The payment brands decide who must comply and validate.
- Version: PCI DSS v4.0.1 is the only active version according to the PCI SSC, and the council has not announced a release date for a successor.
- Validation: assessments use a Report on Compliance completed by a QSA or a Self-Assessment Questionnaire, each with an Attestation of Compliance. Certificates are not recognized as validation.
- Customized approach: v4.x allows a customized approach for entities with robust security and risk management. Document the objective, the controls and the evidence before you rely on it.
- Patching: Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, so plan front end and payment plugin releases with the same cadence.
- Responsibility matrix: agree in writing which controls the vendor, the hosting provider and your team operate.
Ask your acquirer which brand rules and validation level apply to your store before you finalize the headless design.
Headless checkout options and when each fits
This table compares four ways to run checkout on a Magento Open Source store, from a fully custom GraphQL checkout to a classic Luma or Blank checkout beside a headless front end. Read each row for what your team builds, who carries support for which layer, and the kind of store where the option fits. The main takeaway is that the further checkout moves into your own front end, the more of the payment flow, and the more of its evidence, sits with your team.
| Option | What the team builds | Who supports what | When it fits |
|---|---|---|---|
| Fully custom GraphQL checkout | A custom front end that calls the cart, address, shipping, payment and order GraphQL mutations in sequence, plus its own error handling and session logic | Your team owns the front end and the call sequence. The payment provider supports only its plugin's back-end functions, so custom orchestration sits outside that support | You need full control of checkout UX and have engineers who can maintain the mutation flow through every Magento upgrade |
| PWA Studio or Venia-based storefront | A React storefront built on PWA Studio and Venia UI, with the checkout flow inherited from the toolkit and adjusted for your payment methods | Your team maintains the React code and toolkit upgrades. Payment plugin support applies only to the plugin's back-end functions, not to your front-end changes | Your team already runs React and accepts the toolkit's GraphQL coverage and its ongoing maintenance load |
| Hosted or redirect payment method | Checkout stays on the provider's page or in its hosted fields, with Magento handling the order and the return callback | The provider supports its hosted page and callbacks. Your team supports the Magento configuration, webhooks and order status mapping | You want to keep cardholder data out of your own systems and can accept less control over the payment page layout |
| Classic Luma or Blank checkout beside a headless front end | The standard Magento checkout runs for some channels or regions while a headless storefront serves the rest of the catalog | Your team supports both front ends, and the payment plugin supports its standard storefront flow in full | You need a fallback path during a headless launch, or a channel where a custom front end is not justified |
| Headless checkout with MOTO or multiple address shipping | Not a supported pattern for the Adyen plugin in headless mode, so these flows need a separate path in the classic checkout | The Adyen plugin documents that MOTO orders and multiple address shipping are not available headless | Confirm early whether your order types need these features, because they can force a classic checkout alongside the headless front end |
| Plugin with headless mode listed as supported | The plugin's documented headless endpoints are wired into your custom flow, with the plugin's back-end logic left unchanged | Your team owns the front end and custom back-end logic. The provider supports the plugin's back-end functions only | You verify the plugin's headless documentation for your exact version before you commit to a flow |
| Payment support boundary | Written split of responsibilities for front end, custom back-end code, plugin code and provider configuration | Confirm in writing with the provider which layers they support and which evidence they will provide | Use this split as an input to your PCI DSS scoping and to the support contract you sign |
How to set up headless checkout in order
This sequence takes a Magento Open Source store from a verified platform baseline to a headless checkout that places orders, handles payment webhooks and passes a production checklist. Each step closes with a check so problems surface before the next layer is built.
Confirm the platform baseline
Your platform engineer confirms the Magento Open Source version you will run and checks it against Adobe's system requirements for that release. Record the exact PHP version, MySQL or MariaDB version, OpenSearch, Redis or Valkey, RabbitMQ, Composer and nginx versions, because Adobe supports only the listed combinations. Confirm which release line is under standard support before you commit, using Adobe's lifecycle policy. Done when a written version matrix is signed off and the staging server matches it.
Enable and verify the GraphQL endpoint
Your developers confirm that the GraphQL endpoint responds on the staging store and that the schema exposes the cart, customer and payment queries your front end needs. Check the storefront's cache and CORS settings for the domain your custom front end will call from. Restrict the endpoint and schema introspection to what the front end requires, and keep the built-in API documentation off production. Done when a test query for an empty cart returns a valid response from the front end's origin.
Build the cart and payment flow in test mode
Your front-end team builds the GraphQL sequence that creates a guest or customer cart, sets shipping and billing addresses, selects a shipping method and sets the payment method. Use the payment plugin's documented headless setup and a test account from the payment provider, and confirm which back-end functions the plugin supports for headless use. Any custom back-end logic you add sits outside the provider's support scope, so record it in the design document. Done when a test order reaches the payment step and the plugin returns the expected payment session or status.
Test MOTO and multi-address cases against plugin limits
Your QA team runs the scenarios the plugin documents as unavailable in headless mode, including mail-order or telephone orders and orders that ship to multiple addresses. Confirm the storefront blocks or routes these cases to a supported path, so the front end never submits a request the plugin cannot process. Check the outcome for each case in the provider's documentation and in your own test log. Done when every limit has a test case with a recorded result and an agreed handling rule.
Verify order placement and webhook handling
Your team places test orders across successful, declined and abandoned payments, then confirms that each one creates the correct Magento order and payment record. Send the provider's webhook notifications to the staging store and check that the order status updates, duplicate notifications are ignored and failed deliveries are logged. Confirm which logs your operations team will read and where they are stored. Done when orders, payment states and webhook events match across the front end, Magento admin and the provider dashboard.
Review security and card data scope
Your security and compliance leads confirm where card data is entered, which systems receive it, and whether the front end ever touches it. Check that the payment provider's hosted fields or redirect method keep the card data out of your servers, and review the Content Security Policy rules for payment pages. Ask your assessor or QSA to confirm how the design affects PCI DSS scope, because the standard's applicability is set by the entities involved and by your payment brand, not by this page. Done when the scope statement is written, reviewed and stored with the design record.
Move to production with a go-live checklist
Your release lead moves the tested code, configuration and plugin settings to production through your normal deployment pipeline, using production payment credentials that were never used in staging. Confirm that the webhook endpoint, certificates, cron jobs, queues and caches are running, and that a rollback plan exists for the front end and the store. Run a small live transaction and a refund under your change window, then confirm the results in both systems. Done when the checklist is signed off, the live transaction reconciles and the monitoring alerts for failed payments are active.
What moves out of the payment provider's support scope
The payment provider supports its plugin's back-end functions, and nothing beyond that boundary. For Adyen's Adobe Commerce plugin in headless mode, the merchant's front end and any custom back-end logic sit outside Adyen support, so the store team owns the custom storefront, the GraphQL cart and payment calls it makes, and every change to checkout code. Before build starts, write a responsibility matrix with one row per layer: storefront components, GraphQL client code, custom modules that touch quote or order events, the plugin itself, Magento core, the hosting stack and the payment provider's account settings. For each row, name the owner, the first responder, the escalation route and the evidence an investigator will need, such as request logs, order IDs and plugin version. Ask the provider in writing which features it does not cover in headless mode, including MOTO orders and multiple address shipping, so that gaps are known before launch rather than discovered in production.
The boundary moves whenever a component changes. A Magento Open Source patch or minor upgrade can change the GraphQL schema, the checkout events the plugin hooks into, or the PHP and database versions the plugin is certified against, and a plugin update can change which mutations it expects. Treat each upgrade as a boundary review: confirm the plugin's supported Magento and PHP combinations against the Adobe system requirements for the target release, rerun the payment test matrix end to end, and check whether any custom module now overrides plugin behavior. Keep the matrix under version control next to the storefront code so the owner of each change is visible at review time. Confirm with the provider which versions of the plugin it supports, how long it supports them, and what it asks for in a support request, because those answers decide how far a version upgrade can be delayed.
Security and PCI DSS scope in a headless checkout
A custom checkout front end changes which parts of the payment flow touch cardholder data and which controls you own. The cards below cover the decisions that set your PCI DSS scope and the Magento settings that protect the parts you keep.
Card data on the front end
The key question is whether your page ever sees a full card number. If card fields are hosted by the payment provider in an iframe or redirect, your storefront may stay out of card data scope. If your custom front end collects the number and posts it to a GraphQL mutation, every server and script on that path is in scope. Confirm with your payment provider exactly which fields it hosts, and document the data flow before the build starts.
Adyen plugin docsContent Security Policy on payment pages
Magento Open Source supports Content Security Policy headers from 2.3.5, and from 2.4.7 CSP runs in restrict mode by default on storefront and admin payment pages. Custom front ends need their own policy that allows the provider's scripts and frames and blocks everything else. Test checkout after every policy change, because a missing source often breaks payment silently.
CSP documentationAdmin and API token handling
Headless checkout relies on customer and guest tokens, and any integration that creates orders or reads payment data needs its own credentials. Set token lifetimes deliberately, revoke integration tokens when staff or vendors leave, and keep admin accounts protected with two-factor authentication. Review which API resources each integration can reach, since broad permissions widen the scope of any leaked token.
Patching each cycle
Adobe's upgrade guide recommends upgrading every patch cycle to stay secure and PCI compliant. Your checkout depends on the core, the payment plugin and your custom front end, so each one needs a patch owner and a regression test of the full payment path. Confirm the plugin's supported Magento versions before you schedule an upgrade, since a lagging plugin can hold back the core.
Upgrade guideHosting the payment flow in the CDE
Any system that stores, processes or transmits cardholder data, or could affect its security, falls inside the cardholder data environment. That includes your Magento server, your custom front end host, your CDN, and the middleware between them. Decide early whether your checkout will run inside that boundary or outside it, and segment the network to match. Scope drives assessment cost, so map it before you pick the architecture.
Validation under PCI DSS v4.0.1
PCI DSS v4.0.1 is the only active version. The PCI Security Standards Council maintains the standard but does not enforce compliance or impose penalties; the payment brands decide which entities must validate and run enforcement. Validation uses a Report on Compliance completed by a Qualified Security Assessor or a Self-Assessment Questionnaire, each with an Attestation of Compliance. A certificate alone does not count, so ask your acquirer which path applies to you.
PCI DSS overviewQuestions buyers ask before building headless checkout
How much more effort does headless checkout add compared with standard Magento checkout?
Headless checkout usually adds effort because your team builds the checkout screens, address and shipping steps, payment field handling and error states that the default storefront provides. The work moves from configuring a theme to building and testing a custom front end against the cart and checkout GraphQL flows. You also take on responsibility for sequencing calls correctly, handling partial failures and keeping the front end in step with Magento upgrades. Ask any partner to split the estimate into front-end build, back-end configuration, payment plugin work and testing, so you can see where the extra effort sits.
What drives the cost of headless checkout up or down?
The main drivers are the number of payment methods, the shipping and tax logic you need, how many custom checkout steps you design, and how many systems the checkout must call, such as ERP, fraud tools or loyalty services. Cost also rises with the number of storefront locales, the amount of custom validation, and the quality of your existing data. Costs fall when the checkout flow stays close to the standard steps and the payment plugin supports your chosen mode. Each cost component is one-time build work plus recurring work for upgrades and testing. Request a fixed-scope written quote that lists each of these drivers separately.
What does the merchant's payment and security team need to provide?
Your payment team must confirm which payment methods, currencies and provider modes you will run, and who owns the provider account and its support contract. Your security team must review how card data, tokens and session data move through the front end, the hosting setup for the checkout domain, and the logging rules. They should also agree on who approves changes to payment settings and who receives alerts. Ask the payment provider in writing which parts of a headless build it supports, because support boundaries decide who fixes which fault. Plan these reviews before the build starts, not at go-live.
Can an internal team build headless checkout without a partner?
An internal team with strong Magento GraphQL, front-end and payment integration experience can build headless checkout, but it needs time to learn the cart and payment flows and to test failure cases. The risk is less the first build than the ongoing maintenance, because each Magento patch, payment plugin release and front-end framework change can affect the checkout. Check whether your team can cover security testing, load testing and an upgrade rhythm for the life of the store. Many organizations split the work, keeping product decisions in-house and buying specific build or review tasks from a partner under written scope.
How long does headless checkout take to build?
Duration depends on scope: the number of payment methods, custom checkout steps, integrations and environments to test. A narrow build with one provider and standard steps takes far less time than a multi-market store with custom tax, B2B terms and ERP posting. Timelines should come from a written, fixed-scope plan that lists deliverables, test phases and go-live criteria. Ask for milestones tied to working checkout paths in a staging environment, not only to front-end screens. No duration should be accepted without that plan.
How does headless checkout change PCI DSS scope?
PCI DSS scope depends on whether card data touches your systems. When the payment provider's hosted fields, redirect or tokenization keeps card numbers out of your front end and servers, your scope is usually smaller than when your code receives raw card data. Your custom front end, its hosting, and any server that handles payment data can still fall within the assessment, so you must map every data flow. The PCI SSC does not enforce compliance; payment brands decide who must validate. Confirm your validation type and documentation with your acquirer and a Qualified Security Assessor before design freezes.
Which parts of headless checkout fall outside the payment provider's support?
Provider support usually covers the plugin's back-end functions, while your custom front end and any custom back-end logic sit outside its support. For example, Adyen's documentation states that its headless integration supports the plugin's back-end functions, but the merchant's front end and custom back-end logic are outside Adyen support, and MOTO orders and multiple address shipping are not available headless. Confirm each payment method and feature against the provider's current documentation, and record who will answer tickets for your custom code.
How the build and operations are run after go-live
Operational ownership after launch has to be assigned before go-live, because a headless checkout has more moving parts than a standard Magento Open Source store: a custom front end, GraphQL cart and payment mutations, the payment plugin's back-end functions and the Magento core underneath them. Decide who watches each layer. The front-end team should own storefront errors and client-side payment handling, the platform team should own Magento and the GraphQL endpoints, and the payment provider's support covers only the plugin's back-end functions. Write that split down, including who answers when a payment fails at the front end. Monitoring should track failed placeOrder attempts, payment authorization errors, timeouts on cart and payment calls, and webhook or notification delivery, with alerts routed to the owner of each layer. Confirm which of these signals your payment provider exposes and which you must build yourself.
Plan the patch cycle around the components that touch payments. Adobe recommends upgrading Magento Open Source every patch cycle to stay secure and PCI compliant, and Adobe's release schedule ships a full patch for the 2.4.x LTS line annually in May with security patches at least annually for all supported lines. Each cycle, review the Magento core release notes, the payment plugin's release and compatibility notes, and your front end's GraphQL dependencies, because a change to the cart or payment mutations can break checkout without touching the payment plugin. Re-run the full payment test suite in a staging environment that matches production's PHP, database, search and cache versions before each release reaches production. Test the flows the headless design adds: guest and logged-in checkout, saved payment methods, declined and 3DS challenge outcomes, refunds issued from the admin, and order status updates back to the front end. Confirm with the plugin vendor whether its headless mode is covered for the version you run.
Retain evidence continuously rather than assembling it at assessment time. An assessor reviewing your PCI DSS scope will ask for change records, patch and test results, configuration baselines for the front end and Magento, access reviews for admin and API integration tokens, and logs that show who changed the checkout path. Keep the release notes, staging test results and sign-off for each patch cycle, and record every deviation from the vendor's supported headless configuration. Ask your Qualified Security Assessor or internal assessor which evidence format they expect, because PCI DSS validation is documented on the PCI SSC's official templates, and the PCI DSS standard page is the reference for the current version. Also confirm whether any future PCI DSS revision is expected, because the PCI SSC had not announced a release date for a new version at the time of writing.
How DeployOpen scopes and delivers headless checkout
DeployOpen plans, builds, tests and documents headless checkout on self-hosted Magento Open Source inside infrastructure you control. We start by agreeing in writing which checkout steps, payment methods and provider responsibilities are in scope, so your compliance and security reviewers know exactly what was built and who supports each part.
How we scope
- We map each checkout step from cart to order placement to the GraphQL calls and payment plugin functions that serve it.
- We record which payment plugin functions your provider supports headless and which custom front end logic falls outside that support.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before build work starts.
How we build
- We build the cart, shipping, payment and order flows in your custom front end against the Magento GraphQL schema for your exact version.
- We configure payment tokenization, Content Security Policy entries and payment page controls so card data handling matches your agreed PCI DSS scope.
- We test failed payments, duplicate submissions, address and tax edge cases, and abandoned carts before any traffic reaches the live store.
How we hand over
- You receive the front end and custom module code, configuration records, and a written data flow showing where cardholder data does and does not travel.
- We document the responsibility split between your team, DeployOpen, and the payment provider for every checkout component.
- We walk your engineers and compliance team through the scope evidence so they can prepare their own PCI DSS assessment.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for checkout components as Magento releases move through patch cycles.
- Retainer work can cover re-testing after each Magento patch, payment plugin update or front end change that touches the checkout path.
- Ask for the retainer scope in writing, including which provider, plugin and front end components it covers and how changes are approved.

