All guides
Checkout security8 min read

Magento checkout security: a payment-script review checklist

Review Magento checkout scripts, tag-manager access, payment integrations and change alerts with a practical inventory, test matrix and merchant sign-off record.

Last reviewed:

Start with ownership, not a perfect scan score

For a useful Magento checkout security review, ask for four things: an inventory of the scripts that actually run during payment, an approved reason for each one, evidence that the payment journeys still work under the chosen controls, and an owner who investigates unexpected changes. A security header or a successful test order is not enough on its own.

This guide is written and reviewed by Magento Patches for merchants and their authorised developers. It covers script governance around conventional Magento and Adobe Commerce checkouts. Establish the actual Adobe product and payment integration before applying it to a SaaS storefront or a different architecture. It is an operational checklist, not a penetration test, PCI assessment or promise that a store is free of compromise.

The wider security checklist owns patching, access and recovery readiness. This page focuses on payment-page scripts and change control; use the headers guide for browser-policy configuration and verification.

1. Draw the real payment journey

List each payment method and record where its customer-facing pages are served: the store, an embedded provider form, or a redirect to another site. Include the return route, authentication challenge, alternative payment options and any separate storefront. Ask the payment provider which integration instructions and security responsibilities apply to that exact implementation.

PCI SSC's FAQ 1588 distinguishes embedded payment forms from redirects for a particular SAQ A script-attack eligibility criterion. It describes either protective techniques or confirmation from the compliant payment provider about its correctly implemented embedded solution. Do not turn that distinction into a general exemption or assume that any iframe automatically makes the whole store compliant. Confirm the appropriate validation route with the organisation accepting your compliance submission.

  • Name the merchant who approves payment changes and the engineer who can reverse a release.
  • Identify the provider contact, integration version and route to its current implementation guidance.
  • Record checkout customisations, tag containers, consent tools and any third-party code that can alter the surrounding page.

2. Inventory what the browser loads, not only what is in Git

Have the developer inspect representative checkout sessions with browser developer tools and the relevant deployment configuration. Compare observed scripts with the extension list, theme code, content blocks and tag-manager configuration. Include inline code and scripts introduced by another script, not just the first URL visible in a template.

Repeat the observation for meaningful variations: guest and signed-in customers, consent accepted and declined, different store views, and each payment method. A script that appears only after selecting a wallet or accepting cookies can be missed by an initial page-load check. Use approved test accounts and keep payment details, session tokens and customer records out of the inventory.

For each entry, record the business purpose, owner, source, approval reference and how a legitimate update is recognised. An unfamiliar domain is a question to investigate, not automatic proof of malware; a familiar supplier name is not sufficient evidence that every request is approved.

Script / loader identifier:
Source domain or inline-code reference:
Checkout routes and payment methods affected:
Loaded directly or through another script:
Business or technical justification:
Merchant owner and technical maintainer:
Approval / release reference:
Integrity or permitted-source control:
Expected change process and alert owner:
Last observed / last reviewed / next action:

3. Remove unnecessary code and control publishing access

Ask whether chat, advertising, experimentation and session-recording tools need to run on payment pages at all. Where they do not, plan their removal from those routes and verify the resulting behaviour. Do not remove a payment dependency merely because its name looks like a marketing service; check the integration and its owner first.

Treat tag-manager publishing as a production-change capability. Use named accounts, appropriate access limits, MFA where supported, and a separate approval for changes that can affect checkout. Record emergency changes afterwards rather than leaving a permanent exception with no owner.

Apply the same discipline to extension updates, admin content, remote configuration and deployment access. An approved inventory becomes stale if another team can add checkout code without a review. Include offboarding and supplier handover in the access process.

4. Use CSP and integrity controls for their actual purpose

Adobe documents restrictive CSP defaults on storefront and admin payment pages from Commerce and Magento Open Source 2.4.7, while earlier releases defaulted to report-only. Verify the effective policy for the installed version, extensions and route; do not fix a blocked payment script by disabling an existing enforced policy across the store.

CSP controls which resources the browser may use. An allowed host is not a review of every script it serves. Match each required source to the inventory and use narrow, justified permissions rather than broad wildcards added simply to silence console warnings.

Subresource Integrity checks a supported resource against expected content hashes; cross-origin use also depends on CORS. It can suit stable resources, but a changing payment SDK needs a supplier-supported update strategy. Do not invent a static hash for a resource whose contents change independently. Record the chosen control and its limits instead of assuming that SRI or CSP alone covers every script risk.

5. Test complete payment journeys before release

Agree a test matrix with the merchant and use the provider's supported sandbox on representative staging. Keep production credentials and real card data out of test evidence. Name which payment methods and store views are covered and make untested combinations visible rather than treating one successful order as universal coverage.

Check both customer experience and downstream records. A payment approval screen without the expected Commerce order, or an order with a missing provider reference, is not a completed acceptance check. Ask the maintainer to explain failed checks before widening a policy or approving deployment.

  • Guest and account checkout; relevant consent states and store views.
  • Supported card, wallet and redirect methods, including authentication challenges where applicable.
  • Success, decline, cancellation and return-to-store paths using provider-approved test scenarios.
  • Order status, transaction references and expected fulfilment or ERP hand-off.
  • Browser console and network checks for blocked required resources or unexpected destinations.
  • An agreed production-verification and rollback decision, performed by authorised owners in the release window.

6. Monitor changes as received by the browser

PCI SSC's payment-page guidance discusses authorised scripts, integrity and detection of unauthorised changes to payment-page content and security-impacting headers. Treat monitoring as an operational responsibility, not a dashboard installation. A public homepage scan cannot establish the state of a conditional checkout journey.

Ask the monitoring owner which pages, script sources and response variations are observed, how changes are compared with an approved baseline, and who receives alerts. Agree frequency and evidence requirements with the people responsible for your compliance programme. This checklist deliberately does not invent a universal monitoring interval or certification claim.

Test the alert process with a controlled, authorised change in the appropriate environment. Record delivery, acknowledgement, investigation and closure. Separate an approved supplier update from an unexplained change, and retain enough context to investigate without copying sensitive customer sessions into tickets.

7. Keep a merchant-readable sign-off record

A proposed sign-off pack contains the observed script inventory, payment-flow map, approvals, test results, effective-policy evidence, known exceptions and alert ownership. Connect each item to a release reference and review date. A list of tool names or a screenshot of a green score is not the same as that evidence.

Ask the merchant to record Ready, Action needed or Not checked for each payment route, with an owner and next step for every exception. Repeat the affected checks after changes to payment extensions, themes, consent tooling, tag containers or suppliers. Set the ongoing review cadence according to risk and the agreed validation obligations.

If a script looks suspicious, switch to incident handling

Escalate an unexplained checkout script, destination or code change to the authorised technical owner. Preserve the relevant deployment, browser and monitoring evidence before cleaning up. Do not paste customer payment data into a support request or assume that removing one visible tag removes every route back into the store.

Use the incident-response process to decide containment, provider coordination and recovery. Normal inventory housekeeping is not a substitute for investigating suspected compromise. For planned work, start with the payment-flow map and the unanswered ownership questions, then agree a scope for the authenticated review.

Official references

Next step

Who owns your checkout security checks?

Discuss your payment integration, script inventory and unanswered review questions. For an urgent trading issue or suspected compromise, call directly; do not send passwords or customer payment data.