How to Evaluate Payment Gateway Security for an E-commerce Store

e-commerce, safety, payments online, secure payments, https, trade, money, e-commerce, e-commerce, e-commerce, e-commerce, e-commerce, https, https, https
Checkout security review

A payment gateway cannot make an insecure store secure by itself.

The gateway may protect the infrastructure that receives and processes payment credentials, but the merchant website can still be compromised, redirect customers to a fraudulent page, load malicious scripts or expose administrative credentials.

Choosing a payment solution therefore starts by understanding where sensitive payment data enters the system and which components can influence that transaction.

First question: where does the customer’s card data go?
Ask this before comparing dashboards, fraud scores, payment methods or transaction fees.

Draw the Checkout Trust Boundary

Many merchants think their website “handles payments” because the checkout appears inside their domain. Technically, the sensitive fields may be delivered and controlled entirely by a payment provider.

That difference affects security responsibilities and PCI DSS validation.

Simplified payment boundary
Merchant-controlled zone Your ecommerce site Product pages, cart, plugins, themes, analytics scripts, admin accounts and the code that launches or embeds checkout.
Payment-provider zone Payment collection and processing Depending on the integration, the provider may host the complete checkout page or securely host only the sensitive payment fields.

Three Checkout Architectures Create Different Security Boundaries

Hosted redirect The customer leaves the merchant-controlled payment flow and is redirected to a payment page hosted by a PCI DSS-compliant provider. The merchant does not generate the page that collects card information.
Provider-hosted embedded fields The checkout remains visually inside the store, but sensitive payment fields originate from the payment provider, commonly through hosted iframes or equivalent components.
Merchant-involved payment page The merchant’s systems generate or control more of the payment-data collection flow. This can create materially broader PCI DSS responsibilities.

The PCI Security Standards Council distinguishes these implementations when determining which Self-Assessment Questionnaire may be appropriate.

For example, eligibility for SAQ A requires all payment-page elements associated with the collection or processing of payment card data to originate directly from PCI DSS-compliant third-party service providers, along with meeting all other SAQ A eligibility conditions.

Do not select your own SAQ from an article.
PCI SSC recommends confirming the applicable validation requirements with the organization that receives your compliance documentation, typically the merchant’s acquirer or applicable payment brand.

Use Seven Security Gates Before Approving a Gateway

Gateway Security Review A provider should pass more than a “supports PCI” marketing check.
01
Payment-data path Document whether raw card information reaches your browser code, server, logs or database.
MAP THE FLOW
02
PCI DSS responsibility Verify the provider’s compliance status and determine which requirements remain with the merchant.
VERIFY SCOPE
03
Payment-page script exposure Identify scripts capable of affecting the checkout and understand how unauthorized changes are prevented or detected.
REVIEW SCRIPTS
04
Account administration Review access controls for merchant dashboards, API credentials and administrator accounts.
CONTROL ACCESS
05
Customer authentication Determine how the provider supports appropriate cardholder-authentication tools such as EMV 3-D Secure.
CHECK AUTH
06
API and event security Confirm how server credentials are stored and how incoming payment notifications can be authenticated.
PROTECT KEYS
07
Operational response Understand transaction logs, incident support, service availability and what happens when suspicious activity is detected.
PLAN RESPONSE

Outsourcing Card Collection Does Not Outsource Website Security

This is one of the most important changes to understand in modern ecommerce security.

A merchant may use a fully outsourced payment flow and still operate the website that sends customers to that flow. If attackers compromise the merchant website, they may attempt to alter that path or interfere with the checkout experience.

The PCI Security Standards Council currently requires external vulnerability scanning by a PCI Approved Scanning Vendor for applicable SAQ A ecommerce webpages under PCI DSS v4.x, including merchant webpages that redirect customers to a third-party payment provider or embed the provider’s payment form.

The PCI SSC’s June 2026 clarification specifically confirms that those ASV scan requirements still apply when payment processing itself has been outsourced.

“The gateway handles PCI” is not a valid security plan. A compliant payment provider can reduce the systems that directly handle card data, but merchant-controlled websites, accounts and integrations still have security responsibilities.

Payment-Page Scripts Deserve Their Own Review

Modern checkout pages often execute scripts for analytics, tag management, chat, advertising, experimentation, fraud detection and payment functionality.

A malicious or compromised script that can affect a payment flow creates a different risk from an ordinary styling error.

Question 1
Which scripts run on or can affect checkout? Maintain awareness of payment scripts as well as unrelated third-party scripts that can influence the ecommerce environment.
Question 2
Why is each script necessary? Do not allow an old marketing tag to remain indefinitely simply because nobody remembers installing it.
Question 3
How are unauthorized changes detected? PCI DSS v4.0.1 includes payment-page protections aimed at script authorization, integrity and tamper detection in applicable environments.

For merchants using an embedded third-party payment page or form and validating with SAQ A, the PCI SSC introduced an eligibility criterion requiring the merchant to confirm that its site is not susceptible to script attacks that could affect the ecommerce system.

The Council explains that this can be addressed using relevant payment-page protection techniques or, in qualifying situations, through confirmation from the PCI DSS-compliant payment provider that its embedded solution includes suitable protections when implemented correctly.

Redirect and Embedded Checkout Are Not Identical

Current SAQ A guidance makes an important distinction.

The specific SAQ A script-attack eligibility criterion introduced in 2025 applies to ecommerce merchant webpages containing an embedded third-party payment page or form, such as an iframe.

PCI SSC states that this particular eligibility criterion does not apply in the same way when customers are redirected from the merchant site to the payment provider or when payment functions are otherwise fully outsourced.

That does not mean redirected sites are free from security requirements. As noted above, applicable SAQ A ecommerce sites can still have requirements such as external vulnerability scanning.

Understand What Hosted Fields Actually Change

Some payment providers offer components where the sensitive card fields appear visually inside the merchant’s checkout but are actually hosted by the payment provider.

Braintree’s current Hosted Fields documentation, for example, states that its sensitive input fields are rendered inside provider-hosted iframes and the customer’s raw card information is sent directly to Braintree rather than passing through the merchant’s server.

The merchant receives a single-use payment-method reference instead of the raw payment credentials for subsequent server-side payment operations.

That architecture can reduce PCI scope when implemented according to provider requirements, but the merchant should still verify its exact validation obligations.

Secure Payment Collection Does Not End at the Card Fields

Administrator
Protect the accounts that control payments.

A strong card-entry architecture offers little comfort if an attacker can access the merchant dashboard or replace integration credentials.

Credentials
Keep secret credentials out of public browser code.

Use the payment provider’s documented client/server architecture and distinguish publishable client identifiers from private server credentials.

Notifications
Do not trust an order-status request simply because it reached your server.

Payment providers commonly provide mechanisms for validating signed server notifications or webhook events. Follow the exact verification method documented by the provider.

Updates
Maintain the ecommerce system surrounding checkout.

Unsupported plugins, vulnerable dependencies and weak administrator authentication can compromise a store even when raw card data never enters the merchant server.

Use EMV 3-D Secure as an Authentication Layer, Not a Security Slogan

EMVCo describes EMV 3-D Secure as a technology that allows payment information and contextual data to be exchanged between merchants and card issuers so the issuer can authenticate the consumer during card-not-present transactions.

What EMV 3DS can contribute
  • Additional cardholder authentication.
  • More transaction and device information for issuer decision-making.
  • Support for reducing card-not-present fraud.
What it does not replace
  • PCI DSS obligations.
  • Secure merchant administration.
  • Website and payment-page protection.
  • Fraud monitoring across the complete order.

Whether authentication is required, frictionless or challenged can depend on issuer decisions, regulation, provider configuration and transaction context. Do not advertise 3-D Secure as a universal guarantee against fraud or chargebacks.

Evaluate the Gateway With a Test Environment Before Production

Successful authorization Confirm that an approved payment creates the correct order state.
Declined payment Verify that the store does not mark an unsuccessful transaction as paid.
Authentication flow Test any supported 3-D Secure or equivalent authentication scenarios using the provider’s documented sandbox tools.
Delayed server notification Confirm that order logic can handle asynchronous payment events appropriately.
Refund workflow Verify authorization controls and records around refunds rather than discovering the process during a customer complaint.
Access revocation Confirm how administrator sessions, user access and credentials are removed when staff responsibilities change.

Security Claims That Should Trigger More Questions

“PCI compliant, so you have nothing to do.” A merchant’s obligations depend on the integration and environment.
“Our checkout eliminates all fraud.” No payment architecture can guarantee that every fraudulent transaction will be prevented.
“HTTPS means the checkout is secure.” Encrypted transport is necessary, but it does not address every script, account or application-security risk.
“Card data is tokenized, therefore the entire store is safe.” Tokenization reduces exposure to raw card data but does not protect every component of an ecommerce environment.

The Final Selection Should Be an Architecture Decision

A small merchant that does not need deep payment customization may prefer an architecture where sensitive payment collection is strongly isolated from merchant systems.

A larger operation may legitimately need more customization, but it should understand the additional technical and compliance responsibilities that come with controlling more of the payment flow.

Before signing with a provider, document:

  • which system collects card data;
  • whether card data ever reaches merchant-controlled servers;
  • the payment provider’s current PCI DSS status;
  • the merchant’s applicable PCI validation path;
  • which scripts can affect checkout;
  • how merchant administrator access is protected;
  • how server credentials and webhook authentication work;
  • whether appropriate customer-authentication tools are supported;
  • how security incidents and suspicious transactions are investigated;
  • how the integration will be kept current after launch.
The secure choice is not simply the gateway with the most security badges.
Prefer an integration whose payment-data flow you can clearly explain, whose PCI responsibilities are understood, whose sensitive fields are appropriately isolated, and whose surrounding ecommerce environment can be maintained securely. If the merchant cannot explain where card information travels, the security review is not finished.