Apple Pay Sandbox: onpaymentauthorized not fired after successful authentication (started March 6)

Hello,

We are encountering an issue with Apple Pay on the Web in the sandbox environment where payments cannot be completed because the onpaymentauthorized event is not triggered.

The same implementation was working normally until March 5, but the issue started occurring consistently from March 6 without any changes to our code, certificates, or merchant configuration.

Environment

Apple Pay on the Web (JavaScript)

Safari (iOS / macOS)

Apple Pay Sandbox

Merchant domain verified

Merchant validation succeeds

Observed Flow

The Apple Pay flow proceeds normally until authentication:

User clicks the Apple Pay button

ApplePaySession.begin() is called

onvalidatemerchant fires

Merchant validation request succeeds

completeMerchantValidation() is called

Apple Pay sheet is displayed

User authenticates with Face ID / Touch ID

onpaymentauthorized is never triggered

Because this event never fires, the payment token is not returned and the payment cannot proceed.

ApplePaySession Request { "countryCode": "JP", "currencyCode": "JPY", "merchantCapabilities": ["supports3DS"], "supportedNetworks": ["visa", "masterCard"], "total": { "label": "Test Payment", "type": "final", "amount": "100" } } Merchant Validation

Merchant validation succeeds and returns a valid session from Apple.

Relevant fields from the merchant session:

merchantIdentifier: 35A786BE6AB4... domainName: secure.telecom-awstest.com displayName: ApplePay Additional Notes

Apple Pay sheet appears normally

Authentication completes successfully

No JavaScript errors are logged

onpaymentauthorized is never fired

Issue occurs consistently in the sandbox environment

Confirmed across multiple iOS versions

Question

Has anyone experienced a similar issue recently in the Apple Pay sandbox environment, or are there any known changes that could cause the onpaymentauthorized event not to fire after authentication?

Any insights would be greatly appreciated.

Thank you.

Hi @shirakura,

Thanks for reporting the unexpected behavior you've observed in the Sandbox environment. For Apple Pay merchants using the Sandbox payment gateway, the user and device must now be a sandbox tester account. Previously, both production and sandbox tester accounts were supported.

Could you please confirm you've configured the device to test against the Apple Pay & Wallet Sandbox? To confirm this, your device should be logged in with a sandbox tester account:

Sandbox Testing

https://developer.apple.com/apple-pay/sandbox-testing/

If your device is using a sandbox test account for Apple Pay and Wallet, the Apple Pay Server engineering team would need to investigate this issue directly via Feedback Assistant.

To submit a bug report, please follow the steps outlined in the post below:

Gathering Required Information for Troubleshooting Apple Pay on the Web Merchant Issues

https://developer.apple.com/forums/thread/762994

Once submitted, please reply here with your Feedback ID so I may escalate to the Apple Pay Server engineers directly.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Apple Pay Sandbox: onpaymentauthorized not fired after successful authentication (started March 6)
 
 
Q