IRIsuru Ratnayake

WooCommerce 3D Secure (3DS2): Setup, Testing & Fixes

How 3D Secure works in WooCommerce with Stripe, WooPayments, PayPal and Square, how to test it, and how to fix a 3DS pop-up that never appears or fails.

Isuru Ratnayake

Isuru Ratnayake

· 10 min read

3D Secure (3DS) is the extra check a shopper's bank runs during an online card payment: approving the payment in a banking app, entering a one-time code, or nothing visible at all when the bank is confident it's really them. In the UK and the EU it's how stores meet Strong Customer Authentication (SCA), and everywhere else it's one of the best tools against fraud and chargebacks.

The good news for WooCommerce stores: with a modern payment gateway, 3D Secure is mostly automatic. The bad news: when it goes wrong, the pop-up doesn't appear, the payment fails with a vague error, and the order sits at Pending payment.

This guide covers how 3D Secure works in WooCommerce, what each popular gateway does, how to test it properly, and how to fix the most common problems. I built a full 3DS2 flow for a client's WooCommerce store with Trust Payments, so some of this comes from debugging it first-hand.

What 3D Secure and 3DS2 actually are

3D Secure is a protocol run by the card schemes (Visa Secure, Mastercard Identity Check, American Express SafeKey and others). During checkout, the payment gateway asks the card issuer (the shopper's bank) to authenticate the cardholder before the payment is authorised.

3DS2 is the current version. The original 3D Secure 1 used clunky redirect pages and passwords and has been retired by the major card schemes. 3DS2 sends the bank far more data about the transaction and the device, which allows two outcomes:

  • Frictionless: the bank approves silently, based on risk. The shopper sees nothing extra.
  • Challenge: the bank asks the shopper to prove it's them, usually in their banking app, by one-time passcode or biometrics, shown in a pop-up or modal on your checkout.

The key point: your store and your gateway can request 3D Secure, but the bank decides whether to challenge the shopper. That explains a lot of "why didn't the pop-up show?" questions.

Why it matters for your store

  • SCA compliance: in the European Economic Area and the UK, most online card payments need strong authentication, and 3DS2 is how card payments meet it. Payments that should have been authenticated and weren't are likely to be declined by the bank.
  • Liability shift: when a payment is successfully authenticated with 3D Secure, liability for fraud-related chargebacks generally moves from the merchant to the card issuer. That's valuable well beyond Europe.
  • Less fraud: stolen card details alone aren't enough to complete a challenged payment.

When SCA doesn't apply

Not every payment gets challenged, even in Europe. Common exemptions and exclusions include:

  • Low-value payments (roughly under €30 / £30, with cumulative limits),
  • Transaction risk analysis (TRA): the gateway or bank judges the payment low-risk,
  • Merchant-initiated transactions, such as subscription renewals charged to a card the shopper already authenticated,
  • Cards issued outside the EEA/UK, which aren't covered by the mandate (though the bank may still challenge).

The gateway applies exemptions where it can, and the bank can still overrule them.

How 3D Secure works with each WooCommerce gateway

Here's what happens with the most common gateways, in their official WooCommerce plugins. In every case, the card data is collected by the gateway, so 3D Secure doesn't change your PCI compliance scope.

WooPayments

WooPayments supports 3D Secure on both the checkout page and the Pay for order page, and it's handled automatically: when the bank requires a challenge, the shopper sees it in a modal and the order completes when they pass. There's nothing to switch on. You can test it with 3D Secure test cards while WooPayments is in test mode.

Stripe (WooCommerce Stripe Payment Gateway)

The Stripe plugin uses PaymentIntents, which handle 3DS2 automatically whenever the bank or regulation requires it. With the Payment Element (the newer checkout experience in the plugin's settings), the 3DS challenge opens in a Stripe-hosted modal.

If you want to request 3D Secure more often than required, for example on higher-risk payments, use Stripe Radar rules in your Stripe dashboard. Note that Stripe has deprecated its old built-in "request 3D Secure if supported/recommended/required" rules; a custom rule based on risk level and amount is the current approach, along the lines of:

Request 3D Secure if :risk_level: != 'normal' and :amount_in_usd: > 25

Requesting 3DS still doesn't guarantee a challenge. The bank decides.

PayPal Payments

For PayPal buttons and standard checkout, PayPal handles 3D Secure itself. For advanced card processing (card fields on your own checkout), PayPal supports two modes:

  • When required (SCA_WHEN_REQUIRED, the default): a challenge only where a regional mandate such as SCA applies.
  • Always (SCA_ALWAYS): request 3D Secure on every card transaction.

Check the 3D Secure option in the PayPal Payments plugin settings and make sure it matches what you want.

Square

Square's WooCommerce plugin verifies the buyer through Square's Web Payments SDK, which runs 3D Secure when needed. If you see errors such as "3D Secure Verification Token is missing", the cause is almost always an outdated plugin or something interfering with Square's JavaScript at checkout. Update the plugin first, then check for script conflicts (see the troubleshooting section below).

API-based and custom gateways

With a bank or API gateway that has no ready-made WooCommerce plugin, you have to build the 3DS2 flow yourself: device data collection, the lookup (is the card enrolled?), then frictionless approval or a challenge, then the authorisation, all tied back to the WooCommerce order with webhooks. That's what I did for a client with Trust Payments, combined with a PCI proxy so card numbers never touched the server. The write-up is here: PCI-compliant WooCommerce checkout with a PCI proxy and 3DS2.

How to test 3D Secure on your WooCommerce store

Never assume 3DS works because one test payment went through. A normal test card goes down the frictionless path and never shows the challenge. Test every path, in test/sandbox mode:

Scenario What should happen
Frictionless (no challenge) Payment completes, order goes to Processing
Challenge passed Modal opens, you approve, order goes to Processing
Challenge failed Modal opens, you fail it, payment declines with a clear message, order stays unpaid
Challenge abandoned (modal closed) Shopper can retry, no duplicate orders
Pay for order page Same as above, from the order's payment link
Subscription renewal (if you sell subscriptions) Renewal succeeds, or the customer is asked to authenticate

Each gateway publishes 3D Secure test cards:

  • Stripe and WooPayments: for example 4000 0027 6000 3184 requires authentication on every transaction, and 4000 0025 0000 3155 requires it for one-off payments but not for later off-session payments with the saved card. The full list is on Stripe's testing page.
  • PayPal, Square, Trust Payments and other gateways: use the 3DS test cards in their own sandbox documentation.

Test on mobile too. The challenge modal has to fit a small screen, and that's where most shoppers will see it.

Fixing common WooCommerce 3D Secure problems

The 3DS pop-up never appears

First, remember that the bank decides. If a real card goes through without a challenge, that's usually frictionless authentication working as intended, not a bug. It's only a problem if a test card that always requires authentication doesn't show the modal, or if payments fail with authentication errors.

If the modal really is broken, the usual causes are:

  • JavaScript optimisation plugins. Plugins and services that combine, defer or delay JavaScript (cache plugins, "delay JS" options, Cloudflare Rocket Loader) often break the gateway's scripts. Exclude the checkout page and the gateway's scripts (such as js.stripe.com) from optimisation.
  • A cached checkout page. The checkout, cart and My account pages must never be served from a page cache.
  • A Content Security Policy that blocks the challenge. The challenge loads in an iframe from the gateway and then from the shopper's bank. A strict frame-src or script-src policy can silently block it. Check the browser console for CSP errors, and follow your gateway's CSP guidance.
  • Theme or plugin conflicts. A heavily customised checkout template, an overlay with a high z-index hiding the modal, or another plugin's JavaScript error. Test with a default theme (such as Storefront) and only WooCommerce and the gateway active, then re-enable plugins one by one.
  • An outdated gateway plugin. Gateways update their 3DS handling regularly. Update before you debug anything else.

Open the browser's developer console during a test payment. A JavaScript error or CSP violation usually points straight at the cause.

"payment_intent_authentication_failure" or "The provided PaymentMethod has failed authentication"

This Stripe error means the shopper didn't complete authentication, or the bank rejected it: they closed the modal, failed the challenge, took too long, or the bank's authentication service had a problem. The order stays unpaid, and the shopper can try again.

What to do:

  • If it's occasional, it's normal. Some shoppers abandon or fail the challenge.
  • If it happens to every payment, the modal is probably broken. Work through the checklist in the previous section.
  • Check the PaymentIntent's events in the Stripe dashboard. They show whether 3DS was requested, attempted and what the bank returned.

"authentication_required" on saved cards and subscription renewals

When you charge a saved card without the customer present (a WooCommerce Subscriptions renewal, for example), the bank can still demand authentication. Stripe then declines the charge with authentication_required, since there's nobody at the checkout to complete a challenge.

How WooCommerce handles it:

  • The renewal order is marked failed or pending, and the customer can be emailed to come back and authenticate. The Stripe plugin has a Payment authentication requested email for this, so make sure it's enabled in WooCommerce → Settings → Emails.
  • The customer pays from the order's Pay for order link, completes the challenge, and the subscription carries on.

To keep these to a minimum, make sure cards are saved with authentication at signup (the gateway plugins do this when the first payment is made with 3DS), so later renewals can be treated as merchant-initiated.

Orders stuck at "Pending payment" after 3D Secure

If the shopper passed the challenge but the order never updates, the gateway's confirmation isn't reaching WooCommerce:

  • Check the webhook in the gateway dashboard (Stripe, for example, shows failed webhook deliveries). A wrong URL, a firewall or security plugin blocking the request, or a changed signing secret will all break it.
  • Look at WooCommerce's logs under WooCommerce → Status → Logs for the gateway.
  • Make sure WP-Cron or a real cron job runs, since some gateways process confirmations in the background.

Duplicate orders or charges after a challenge

Usually caused by shoppers clicking Place order again while the modal loads, or reloading the page mid-challenge. Make sure your theme doesn't re-enable the button early, and that custom checkout code doesn't create a new order on each attempt. With the official plugins, the same order and PaymentIntent are reused on retry.

3D Secure checklist for WooCommerce stores

  • Use an up-to-date, SCA-ready gateway plugin (WooPayments, Stripe, PayPal Payments, Square or similar).
  • Test every path in test mode: frictionless, challenge passed, challenge failed, abandoned, Pay for order and renewals.
  • Exclude checkout from page caching and JavaScript optimisation.
  • Make sure your Content Security Policy allows the gateway's and banks' challenge frames.
  • Enable the authentication-requested emails if you sell subscriptions.
  • Watch your gateway dashboard for authentication failure rates: a sudden spike usually means something broke on the checkout.
  • For custom or API gateways, verify webhook signatures and handle retries idempotently.

Frequently asked questions

Does WooCommerce support 3D Secure?

Yes. WooCommerce itself doesn't run 3D Secure; your payment gateway does. All the major WooCommerce gateways, including WooPayments, Stripe, PayPal Payments and Square, support 3DS2 and apply it automatically when it's required.

How do I enable 3D Secure in WooCommerce?

With WooPayments, Stripe and Square there's usually nothing to enable: 3DS2 runs automatically when the bank or regulation requires it. You can request it more often with Stripe Radar rules or PayPal's "Always" 3D Secure setting. Keep your gateway plugin updated and test with 3DS test cards.

Why doesn't the 3D Secure pop-up show for every payment?

Because the card issuer decides. With 3DS2, many payments are approved frictionlessly in the background, and exemptions such as low-value payments can skip authentication. Only a challenge shows the pop-up.

Is 3D Secure required in the US?

No. SCA is a European (EEA) and UK requirement. US stores aren't required to use 3D Secure, but it's still useful against fraud, and it can shift fraud chargeback liability to the issuer. US-issued cards are also challenged less often by their banks.

Does 3D Secure reduce conversions?

A challenge adds a step, so some shoppers will abandon it. 3DS2 keeps that to a minimum with frictionless approvals, and in Europe skipping authentication isn't an option for in-scope payments anyway. Requesting 3DS only for higher-risk payments is a common balance outside Europe.

What's the difference between 3D Secure and SCA?

SCA (Strong Customer Authentication) is the regulatory requirement in the EEA and UK: two of something the shopper knows, has or is. 3D Secure is the technical protocol card payments use to meet it.

Need help with 3D Secure on WooCommerce?

If your 3DS challenge isn't appearing, payments keep failing authentication, or you need 3DS2 on a gateway without a ready-made plugin, I can help. I build and fix WooCommerce payment integrations, including Stripe, Authorize.Net, Trust Payments, 3DS2 and PCI-proxy setups. Tell me what's happening and I'll reply within a few hours.

  • WooCommerce
  • Payments
  • 3D Secure
  • Stripe
Isuru Ratnayake

Isuru Ratnayake

Senior WordPress & PHP Developer. Top Rated on Upwork with 250+ completed jobs and 15+ years of PHP & WordPress experience.