Compliance

PCI DSS v4 payment page requirements are now in force: what online merchants need to do

The future-dated requirements in version 4 of the Payment Card Industry Data Security Standard became mandatory on 31 March 2025. Two of them target the scripts that run on payment pages, a favourite route for card-skimming attacks. Here is what they mean for eCommerce businesses and how to stay compliant without slowing your store down.

Key points
  • PCI DSS v4.0 replaced v3.2.1 in 2024, and its future-dated requirements became mandatory on 31 March 2025.
  • Requirements 6.4.3 and 11.6.1 address scripts on payment pages and tampering detection.
  • Hosted and embedded payment fields reduce scope, but merchants still have responsibilities.
  • Script governance is as much an operational discipline as a technical control.
  • Your acquirer or payment provider determines which self-assessment applies to you.
What changed

Version 4 of the standard is fully in effect.

The Payment Card Industry Data Security Standard, maintained by the PCI Security Standards Council, sets requirements for any organisation that stores, processes or transmits payment card data, or that can affect the security of that data. Version 4.0 was published in March 2022, version 3.2.1 was retired at the end of March 2024, and a limited revision, version 4.0.1, followed in 2024 with clarifications.

Version 4 introduced a set of new requirements that were "future-dated", meaning they were best practice until 31 March 2025 and mandatory afterwards. That date has now passed, so organisations assessed today are expected to meet them in full. Among the most significant for online merchants are two requirements aimed at the scripts that run in customers' browsers on payment pages.

Requirement 6.4.3: managing payment page scripts

Merchants must maintain an inventory of all scripts loaded and executed on payment pages, with a written justification for why each is necessary, a method to confirm that each script is authorised and a method to assure the integrity of each script. In other words, you need to know what runs on your checkout, why it is there and that it has not been tampered with.

Requirement 11.6.1: detecting changes to payment pages

Merchants must deploy a mechanism to detect unauthorised modification of the HTTP headers and contents of payment pages as received by the consumer's browser, and to alert on it, evaluated at least weekly or at a frequency defined by their risk analysis.

These requirements respond directly to a class of attacks often called digital skimming or Magecart-style attacks, in which criminals inject malicious JavaScript into a checkout page, either by compromising the site or one of the third-party scripts it loads, and silently copy card details as customers type them.

Why it matters

Card skimming targets the browser, not your servers.

Traditional security controls focus on protecting servers and databases. Digital skimming bypasses them by attacking the customer's browser session, where card data is entered. A single compromised analytics, chat or marketing script loaded on a checkout page can expose every card entered for weeks before anyone notices, because the store continues to work normally.

Modern eCommerce sites commonly load dozens of third-party scripts for analytics, advertising, personalisation, reviews, chat and A/B testing. Each is a potential route for an attacker, and each can change without the merchant's knowledge when the vendor updates it. Because the malicious code runs in the customer's browser rather than on the merchant's servers, server-side security tools, file integrity monitoring and vulnerability scans may see nothing unusual at all. Detection often comes only when a bank's fraud team notices a pattern of compromised cards that all passed through the same store, by which point thousands of customers may be affected and the merchant faces investigation costs, potential fines from card brands and lasting damage to customer trust. The new requirements force merchants to bring this sprawling, fast-changing layer under control on the pages where it matters most.

Who it applies to

Scope depends on how you take payments.

How these requirements apply to you depends on your payment architecture and on which self-assessment questionnaire (SAQ) or assessment your acquiring bank or payment provider requires.

Fully hosted payment pages

If customers are redirected to a payment page hosted entirely by your payment provider, or card fields are delivered in iframes served by the provider, card data does not pass through your pages. Merchants in this situation have historically completed the shortest questionnaire, SAQ A. Version 4.0.1 and subsequent guidance from the Council clarified how the script requirements relate to SAQ A merchants, including an eligibility criterion that the merchant confirms its site is not susceptible to attacks from scripts that could affect its eCommerce systems. Check the current SAQ documents and your acquirer's guidance, because these details have been refined over time.

Embedded payment forms and direct post

Where your page hosts the payment form or loads payment fields in ways that your page's scripts can influence, the requirements apply more directly, and merchants typically complete a longer questionnaire such as SAQ A-EP, or undergo a full assessment.

Hosted platforms

Merchants on hosted commerce platforms such as Shopify or BigCommerce benefit from the platform's own compliance for checkout infrastructure, but customisations, apps and scripts added by the merchant remain the merchant's responsibility. Platform documentation explains the shared responsibility model; for example, many platforms restrict which scripts can run on checkout pages precisely for this reason.

In every case, confirm your obligations with your acquirer or payment service provider, who determines the assessment you must complete. If you have changed payment providers, redesigned your checkout or added new payment methods since your last assessment, it is worth revisiting this question, because architecture changes can move you between questionnaires.

What to do now

A practical compliance plan.

1. Map your payment flow

Document exactly how card data is entered and transmitted: which pages are involved, whether fields are hosted by your provider, and which pages are within scope. This determines the controls you need and the assessment you complete.

2. Inventory scripts on payment pages

Use browser tooling or a script monitoring service to list every script loaded on payment pages, including scripts loaded indirectly by other scripts. For each, record its purpose, owner, vendor and justification. Remove anything that is not necessary on the payment page itself; analytics and marketing scripts can usually be excluded from checkout without losing meaningful insight. Pay particular attention to tag managers, which can load new scripts without any change to the page's own code.

3. Authorise and protect integrity

Establish an approval process for adding or changing scripts on payment pages. Use a Content Security Policy to restrict which sources can load scripts, and Subresource Integrity hashes for static third-party scripts where practical, so modified scripts are blocked.

4. Monitor for change

Deploy a mechanism that detects unauthorised changes to payment page content and headers as delivered to browsers and alerts the right people. Options include commercial client-side security services, synthetic monitoring that compares page content over time and Content Security Policy reporting. Make sure alerts reach someone who can act on them quickly.

5. Document and evidence

Keep the inventory, justifications, approvals, monitoring configuration and alert records, because your assessor will ask for them. Review the inventory whenever the checkout changes and at least on the frequency your risk analysis defines.

31 Mar 2025Future-dated v4 requirements became mandatory
6.4.3Inventory, authorise and protect payment page scripts
11.6.1Detect and alert on payment page tampering
WeeklyMinimum change-detection frequency unless risk analysis says otherwise
Content Security Policy explained

A browser-enforced allow-list.

A Content Security Policy (CSP) is an HTTP response header that tells the browser which sources it may load scripts, styles, frames and other resources from. If a page's CSP allows scripts only from your own domain and your payment provider, a script injected from an attacker's domain will be blocked by the browser, even if the attacker manages to insert a reference to it into the page.

CSP is one of the most effective technical controls for payment pages, and it supports both requirements. It helps authorise scripts under 6.4.3 by allowing only approved sources, and its reporting feature, which sends violation reports to an endpoint you control, contributes to detecting unexpected changes under 11.6.1. Subresource Integrity (SRI) complements CSP by pinning a static third-party script to a cryptographic hash, so a modified version will not run.

CSP has practical challenges. Modern sites load scripts dynamically from many sources, and an overly strict policy can break legitimate functionality, while an overly loose one provides little protection. The usual approach is to deploy CSP first in report-only mode on payment pages, observe what loads, remove unnecessary sources, then enforce. On hosted commerce platforms, the platform may control CSP for the checkout itself, so coordinate with its documentation.

Questions for your agencies and vendors

Bringing partners into the process.

Many scripts on payment pages are added by marketing agencies, analytics vendors and app providers. Their cooperation is essential. Ask each of them:

  1. Which scripts do you load on our payment or checkout pages, and why are they needed there?
  2. From which domains are they served, and do they load further scripts dynamically?
  3. How do you secure your script delivery infrastructure and code changes?
  4. Will you notify us before changing scripts that run on our checkout?
  5. Can your script be excluded from payment pages without losing essential functionality?
  6. What evidence can you provide to support our PCI DSS assessment?

Agreeing a simple rule that nothing new goes onto payment pages without approval from the checkout owner resolves most problems before they start.

A worked example

Bringing a mid-sized store into line.

Consider a direct-to-consumer brand on a hosted commerce platform with a customised checkout. An initial scan of payment pages finds more than twenty scripts: platform scripts, the payment provider, two analytics tools, three advertising pixels, a chat widget, a reviews widget, an A/B testing tool, a consent manager and several scripts loaded indirectly by those tools.

Working with marketing, the team removes advertising pixels, the chat widget, the reviews widget and A/B testing from the payment step, keeping conversion tracking on the confirmation page instead, where it does not touch card entry. Analytics is reduced to one tool with a justified configuration. The remaining scripts are documented with owner, purpose and justification. A change approval rule is agreed with the agency. A client-side monitoring service is configured to alert the pod when any new script or content change appears on payment pages. The store's payment provider confirms which SAQ applies, and the evidence pack is assembled for the annual assessment.

The result is compliance with the script requirements, a measurably faster checkout and a clear process for future changes. The marketing team keeps the insight it needs, measured in the places where it does not create risk.

Common mistakes

What trips merchants up.

  • Treating the inventory as a one-off. Scripts change constantly; without monitoring and a change process, the inventory is out of date within weeks.
  • Forgetting indirect scripts. Tag managers and widgets load further scripts at runtime, which must be included in the inventory.
  • Alerts nobody reads. Monitoring that sends alerts to an unmonitored mailbox does not meet the intent of the requirement.
  • Assuming the platform covers everything. Hosted platforms secure their infrastructure, but merchants own their customisations, apps and added scripts.
  • Leaving marketing out. Most scripts on checkout pages are added for marketing purposes; governance that does not involve marketing will fail.
Operational discipline

Compliance is a process, not a project.

Payment page scripts change frequently. Marketing teams add tags, agencies deploy theme updates, app vendors push new versions and platform providers modify checkout behaviour. A one-off inventory will be out of date within weeks. The merchants who sustain compliance treat script governance as an ongoing operational process.

That means a named owner for the checkout, a simple change process that requires approval for anything that touches payment pages, coordination between the teams and agencies who can add scripts, monitoring that alerts in near real time, and a regular review of the inventory. It also means bringing these controls into the same release and incident processes as the rest of the store, so that an alert about an unexpected script is triaged like any other security event.

This discipline has benefits beyond compliance. Fewer scripts on checkout usually means faster page loads and fewer conversion-killing errors. Clear ownership reduces the risk of a marketing tag breaking the payment flow on the busiest trading day of the year. And a documented, monitored checkout makes the annual assessment faster and less stressful, because the evidence is produced continuously rather than assembled in a rush.

Other version 4 changes worth noting

Beyond the payment page.

Version 4 introduced a range of other requirements that became mandatory at the same time, and many affect organisations beyond online checkouts. Notable themes include stronger authentication, with multi-factor authentication required for all access into the cardholder data environment; targeted risk analyses that let organisations justify the frequency of certain activities; stronger password requirements; automated mechanisms to review audit logs; protection against phishing for staff; and more detailed requirements around managing vendor and service provider relationships. If you are assessed against the full standard, review these with your qualified security assessor.

What we are doing for clients

How eCommerce clients are covered.

For ITMS eCommerce clients, payment page script governance is part of the managed operations service. We maintain the inventory of scripts and apps on checkout pages, run the approval process for changes with the client's marketing team and agencies, configure Content Security Policy and integrity controls where the platform allows, operate monitoring with alerts routed to the pod, and keep the evidence your assessor will need. These controls sit alongside our wider cybersecurity service. We do not act as a qualified security assessor, which preserves the independence of your assessment.

Frequently asked questions

PCI DSS v4 payment page requirements.

When did PCI DSS v4 become mandatory?

Version 3.2.1 was retired on 31 March 2024, making version 4 the active standard, and the future-dated requirements introduced in version 4 became mandatory on 31 March 2025.

What is PCI DSS requirement 6.4.3?

It requires merchants to maintain an inventory of all scripts executed on payment pages, with written justification for each, a method to confirm each script is authorised and a method to assure its integrity.

What is PCI DSS requirement 11.6.1?

It requires a mechanism to detect unauthorised changes to the HTTP headers and content of payment pages as received by the consumer's browser, with alerts, performed at least weekly or at a frequency set by a targeted risk analysis.

Do these requirements apply if we use a hosted payment page?

Using a hosted payment page or provider-hosted payment fields significantly reduces your scope, and the Council has issued clarifications for SAQ A merchants. You still need to confirm your obligations with your acquirer and ensure your site cannot be used to compromise the payment flow.

Are Shopify merchants affected?

Hosted platforms manage much of the checkout infrastructure, but merchants remain responsible for their own customisations, apps and scripts. Check your platform's compliance documentation and your acquirer's requirements.

What is digital skimming?

Digital skimming is an attack in which malicious JavaScript is injected into a website, often through a compromised third-party script, to capture card details as customers enter them. The new payment page requirements are designed to prevent and detect it.

How do we monitor payment pages for tampering?

Options include client-side security services that monitor scripts in real browsers, synthetic monitoring that detects changes to page content and headers, and Content Security Policy reporting. Whatever you choose, make sure alerts reach someone who can respond quickly.

What is a Content Security Policy?

A Content Security Policy is an HTTP header that tells browsers which sources a page may load scripts and other resources from. On payment pages it blocks scripts from unapproved sources and can report violations, supporting both script authorisation and change detection.

Do we need a qualified security assessor?

It depends on your merchant level and your acquirer's requirements. Smaller merchants usually complete a self-assessment questionnaire, while larger merchants and service providers require an assessment by a qualified security assessor. Your acquirer will tell you which applies.

Can we keep analytics on our checkout?

You can, if each script is justified, authorised, integrity-protected and monitored. Many merchants choose to remove analytics and advertising scripts from the card-entry step and measure conversions on the confirmation page instead, which reduces both risk and compliance effort.

Who is responsible if a third-party script is compromised?

The merchant remains responsible for the security of its payment pages, including scripts it chooses to load. That is why the standard requires an inventory, authorisation, integrity controls and monitoring for every script on payment pages.

How often should we review the script inventory?

Whenever the checkout changes, and at least as often as your targeted risk analysis specifies. Continuous monitoring with alerts provides assurance between reviews.

What other version 4 requirements should merchants know about?

Notable themes include multi-factor authentication for all access into the cardholder data environment, targeted risk analyses, stronger passwords, automated log review, anti-phishing measures for staff and more detailed management of service providers. Review the full standard with your assessor if you are assessed against it.

Next step

Talk to the team that will actually run your IT.

No forms to decode, no price list to squeeze into. Tell a senior engineer what your business needs, and we will shape the service, and how it is billed, around you.