Web Payments SDK — Apple Pay & Google Pay tokenize() failing at buyer verification on iOS 26 ("An error occurred while verifying the buyer")

Setup: Custom website (not Square Online) integrating the Web Payments SDK (https://web.squarecdn.com/v1/square.js, production). UK merchant. Payments created server-side via the Payments API. Live since April 2026.

Problem: Since customers started updating to iOS 26, Apple Pay and Google Pay checkout has stopped working. The wallet sheet opens and the buyer authorises with Face ID successfully, but the SDK’s tokenize() call then fails at buyer verification:

Tokenization has failed: An error occurred while verifying the buyer

It manifests two ways, both from the same step:

  1. tokenize() rejects with the error above (caught in our handler).
  2. tokenize() never resolves or rejects — it hangs indefinitely after authorisation, leaving the page blank/stuck.

In both cases no token is produced and no payment is created — the failure is entirely client-side, before any server call. It worked fine before iOS 26. Card payments via the SDK are unaffected. Reproduces on both Apple Pay and Google Pay (shared verification path).

Environment:

  • iPhone, iOS 26.5.1, Safari 26.5
  • UA: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5
    Mobile/15E148 Safari/604.1
  • Production API version: 2026-01-22

What I’ve already ruled out:

  • Apple Pay web domain shows Verified in the Developer Console (Production) — and the sheet does open, so domain registration is fine.
  • Not Square Online — this is a custom Web Payments SDK integration, so the dashboard checkout toggles / “republish site” steps don’t apply.
  • tokenize() is called synchronously inside the button’s click handler (no async before it).
  • We’re on production credentials and a live card (not a sandbox test card).
  • We do not call verifyBuyer() ourselves — the verification is happening inside the wallet tokenize() call and failing there.
  • Not a Square platform outage (status page clear).

Questions:

  1. Is this a known issue with iOS 26 / Safari 26 and the Web Payments SDK’s SCA buyer verification for digital wallets?
  2. Is an SDK change required on our side — e.g. passing verificationDetails to the wallet tokenize() call?
  3. Could the Production API version (2026-01-22) be relevant here, or is buyer verification decoupled from it?
  4. Anything to check account-side (payment-processing certificate, SCA/3DS settings) that could cause verification to fail specifically on newer iOS?

We’ve temporarily hidden the wallet buttons so customers aren’t affected, and can re-enable as soon as a fix is confirmed. Happy to provide further logs or test on request.

Hi thanks for the detailed report!

Since this is for a UK merchant, the payments require SCA (PSD2), so buyer verification is mandatory. That means you need to pass verificationDetails into your wallet tokenize() call, then send the returned verificationToken in the verification_token field of your CreatePayment request. Without it, tokenize() can’t complete the verification step, which matches the error you’re seeing.

Could you give that a try and let us know how it goes?

Thanks for the reply. We cannot apply the suggested change as written: the documented ApplePay.tokenize() and GooglePay.tokenize() methods take no arguments, so there is nowhere to pass verificationDetails.

The wallet SDK also has to return a payment token before verifyBuyer() could be called, but the failure occurs inside tokenize() before any token exists. No payment or server-side order request is created.

We have since tested Apple Pay successfully on a separate iOS 26.5 device, so we no longer think iOS 26 alone is a confirmed cause. The failure appears to affect only some buyer/card/verification scenarios: the wallet sheet completes authorisation, then tokenize() either rejects with “An error occurred while verifying the buyer” or never resolves.

Could you please confirm the supported integration approach for UK digital-wallet SCA in the current Web Payments SDK, or escalate this to the Web Payments SDK team? We can provide private timestamps, application/location details, and redacted browser traces for a failing attempt.

Thank you for your patience. You’re right: ApplePay.tokenize() and GooglePay.tokenize() take no arguments. verificationDetails belongs to the card tokenize method, so my earlier suggestion wasn’t something you could implement. Apologies for that.

On the supported approach, it looks like our docs are currently inconsistent. The Apple Pay guide says to use verifyBuyer for “all customer-initiated transactions, including digital wallet payments.” The SCA overview says the opposite for your case: for the Web Payments SDK, “tokenizing the digital wallet will automatically verify the buyer’s card.” I’m raising that conflict with the docs team.

API version 2026-01-22 isn’t a factor, since wallet tokenization happens client-side before any Payments API call. And there’s nothing to enable account-side. As a UK seller you’re in an SCA-mandated market, so 3DS applies under the PSD2 mandate rather than a per-location setting.

To help the team reproduce, could you send all or some of the following:

  1. The complete result object for a failing attempt, not the message string. Note Error/Invalid include an errors array while Unknown/Abort/Cancel don’t — and for the hang, confirm whether the promise never settles at all.
  2. Console output plus a Safari Web Inspector network log (“Preserve Log” on) filtered to squarecdn.com and squareup.com including whether a verification challenge frame is created.
  3. Your checkout page’s Content-Security-Policy headers (frame-src, connect-src, script-src). Not assuming this is the cause, but a blocked verification frame could explain both the rejection and the hang.
  4. Application ID, location ID, and UTC timestamps for two or three failing attempts.
  5. Device model and OS build (Settings → General → About) for a failing device; more reliable than the UA string in your first post, which reports “iPhone OS 18_7” alongside “Version/26.5”.
  6. Whether failing cards were issued outside the EEA as our SCA support covers cases where the business and the cardholder’s bank are both in the EEA.

One more thing that would help — could you share your Apple Pay click handler, including the function that actually calls tokenize()? You mentioned tokenize() is called synchronously with nothing async before it, and I’d like to confirm exactly where in the chain it runs. Our guide’s example wraps it in an await handlePaymentMethodSubmission(event, applePay) and the tokenize() call itself lives in the linked GitHub sample rather than on the page, so it’s easy for something to end up between the click and the call without it being obvious.

Thanks Ashley, and sorry for the gap - we switched the wallet buttons off in late July, so this stopped being urgent at our end and I let it sit.

First, a correction to my own thread title: it isn’t iOS 26, and it may not be Apple Pay. We’ve since instrumented checkout to record every genuine wallet failure server-side. Two durable records, and both are desktop:

Wallet When (UTC) Amount Browser / OS Outcome
Google Pay 2026-07-31 10:08:10.931Z £68.00 Chrome, Windows tokenize() never settled
Apple Pay 2026-08-10 14:13:11.195Z £92.80 Safari 26.5.2, macOS 10.15.7 tokenize() never settled

Both wallets, both desktop, both above the £30 exemption. I can’t rename the thread - please ignore the title.

1. The complete failing result. There isn’t one, and that is the answer: the promise never settles. No resolution, no rejection, no result object, no errors array. What ends the wait is our own 60-second Promise.race, not the SDK.

The "An error occurred while verifying the buyer" rejection in my first post is from June/July, before that instrumentation, so I have no captured object for it. These may be two distinct faults sharing the verification step - I’d rather say so than invent one signature.

2. Console and network trace. The one item I can’t produce from records: the failures were real customers, not test sessions. We have a gated, no-charge diagnostic page in production that calls wallet tokenize() and nothing else - no order, no payment, no call to our own server. That’s what we’d instrument. See my first ask at the bottom before we do.

3. Checkout CSP, as served. Non-Square origins removed; everything Square-related is complete:

default-src 'self';

script-src 'self' 'unsafe-inline' 'unsafe-eval' https://web.squarecdn.com https://pay.google.com [...];

style-src 'self' 'unsafe-inline' https://web.squarecdn.com [...];

img-src 'self' data: blob: https://web.squarecdn.com https://www.gstatic.com [...];

font-src 'self' https://square-fonts-production-f.squarecdn.com https://cash-f.squarecdn.com https://d1g145x70srn7h.cloudfront.net [...];

connect-src 'self' https://pci-connect.squareup.com https://connect.squareup.com https://api.squareup.com https://*.ingest.sentry.io [...];

worker-src 'self' blob:;

frame-src 'self' https:;

  • frame-src 'self' https: is deliberately open: a real 3DS challenge comes from the cardholder’s own issuer domain, so there’s no enumerable list. Pinning it to named origins previously broke live card payments outright.
  • Our connect-src does not include https://web.squarecdn.com, which your CSP docs page lists. Happy to add it, but I don’t think it’s the cause (see below) and I’d rather not change two things at once. If the SDK makes XHRs there during verification, say so and I’ll add it today.

4, 5. IDs, timestamps, device, OS build. Timestamps and devices above. Application and Location ID privately - tell me where to send them, or which case to attach them to.

6. Whether the failing cards were issued outside the EEA. I can’t answer this and I don’t think anyone can from our side: no token, payment or order was ever created, so we hold no card record. If your logs retain anything against those two timestamps that identifies the issuer or its region, that answer has to come from you. Seller account UK, all known failures UK customers paying GBP.

7. The Apple Pay click handler. In full - nothing between the click and the call but synchronous local state. No await, no fetch, no API request:

const WALLET_TOKENIZE_TIMEOUT_MS = 60_000;

function tokenizeWithTimeout(instance) {

return Promise.race([

instance.tokenize(),

new Promise((_, reject) =>

setTimeout(() => reject(new Error("wallet-tokenize-timeout")), WALLET_TOKENIZE_TIMEOUT_MS)),

]);

}

// Bound directly to the Apple Pay button's onClick.

const handleApplePay = async () => {

if (!applePayInstanceRef.current) return;

if (!validateWalletFulfillment()) return; // synchronous validation only

setWalletProcessing(true); // synchronous React state

let tokenResult;

try {

tokenResult = await tokenizeWithTimeout(applePayInstanceRef.current);

} catch (err) {

reportWalletTokenizeFailure("apple_pay", { error: err }); // records the rows above

setWalletFallback("apple_pay"); // show the card form

return;

}

if (tokenResult.status === "Cancel") return;

if (tokenResult.status !== "OK" || !tokenResult.token) { /* report + card fallback */ return; }

// only from here does anything touch our server

await submitOrder(tokenResult.token, buildWalletOverride(tokenResult));

};

The instance is created once from payments.applePay(paymentRequest) with requestBillingContact: true and requestShippingContact: true. The sheet opens and the buyer authorises successfully every time - the stall is strictly after authorisation.


Where I think this is. Our card path calls card.tokenize(verificationDetails) with a CHARGE intent and full billing contact. It runs real 3DS challenges in production, under the CSP above, and it works - including for buyers whose issuer does challenge. Same seller, same application, same page, same CSP, same customers.

The only material difference on the wallet path is that we can’t influence verification at all: wallet tokenize() takes no arguments, so what happens inside is entirely yours. That also explains why only some buyers are hit - the ones whose issuer actually requests a challenge. Frictionless buyers are fine, which is why this never reproduces on our own devices.

Three threads opened since we last spoke, none of them ours, fit the same shape:

  • 28461 (10 Nov, Japan) - card.tokenize(verificationDetails) freezes 60+ seconds, no 3DS modal, no console errors; plain tokenize() completes. Our hang, on the card path.
  • 28212 (22 Oct, UK) - CARD_DECLINED_VERIFICATION_REQUIRED, no challenge shown, 31 failures since April.
  • 28480 (9 Nov, UK) - same decline, no challenge shown.

Different merchants, different countries, both payment paths, one common step. I no longer think this is an Apple Pay bug, an iOS bug, or our integration.

What I’m asking for:

  1. Can you trace those two timestamps in your own logs and say what the verification step did - before we put a customer through a diagnostic session to capture it from outside?
  2. An SDK engineering case reference, so this isn’t just a forum thread.
  3. The authoritative answer on wallet SCA. Your docs still contradict each other today, ten weeks on: the Apple Pay guide says use verifyBuyer for digital wallets, the SCA overview says wallet tokenization verifies automatically. Wallet tokenize() takes no arguments and verifyBuyer needs a token that’s never produced, so neither is actionable as written. Which is it, and is a UK seller meant to do anything differently?
  4. Whether https://web.squarecdn.com is required in connect-src during verification.

Happy to run any diagnostic you want and to share IDs privately. The buttons stay off until there’s an answer - it costs us orders rather than money, since it fails before any charge, but we’re not putting customers back in front of it on spec.

Thanks for the detailed follow-up. You’re right to separate the earlier rejection from the two recorded hangs. Your handler calls tokenize() before any async operation, and the desktop examples mean we shouldn’t treat this as iOS-specific.

On your CSP question: our published production configuration includes https://web.squarecdn.com in connect-src, so adding that origin would align your policy with the guide. I can’t say it explains these incidents without evidence of a blocked request.

You’re also right that the wallet SCA documentation remains contradictory. The SDK has an internal wallet-verification flow, but we need engineering to confirm the configuration for your application and provide one supported answer. Calling verifyBuyer() afterward cannot address a tokenize() call that never returns a token.

The next step is to review your July 31 and August 10 timestamps under the existing investigation, with your application and location IDs collected privately. We need to establish whether retained records can locate those attempts before asking you to arrange another diagnostic session. I’ll send a DM to collect additional info.

The other forum reports are useful comparison points, but we haven’t established a shared cause.