Apple Pay Demo Page - PaymentRequest AbortError

I am trying to play around on the Apple Pay demo page (https://applepaydemo.apple.com) and I am getting the following error response.

PaymentRequest AbortError: The operation was aborted.

I am using the Payment Request API

Answered by DTS Engineer in 894006022

Hi @Ibbyz,

You wrote:

[...] PaymentRequest AbortError: The operation was aborted. [...] I am using the Payment Request API

This error fires when Safari calls paymentRequest.show() and determines internally that it can't present the Apple Pay payment sheet. It is almost always a precondition failure, not a code problem.

The most likely causes are:

  • Wrong browser. Apple Pay via the Payment Request API only works in Safari. It will abort in every other browser without exception.
  • No Card in Wallet. Even in Safari, if there's no verified card set up in Wallet, the payment sheet has nothing to show and aborts immediately.
  • Not signed into iCloud. Apple Pay requires an active iCloud account on the device. If you are signed out, the Wallet is non-functional and the payment sheet aborts.
  • Safari version is too old. The Payment Request API with Apple Pay support requires Safari 12.1 or later. Older versions will abort.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @Ibbyz,

You wrote:

[...] PaymentRequest AbortError: The operation was aborted. [...] I am using the Payment Request API

This error fires when Safari calls paymentRequest.show() and determines internally that it can't present the Apple Pay payment sheet. It is almost always a precondition failure, not a code problem.

The most likely causes are:

  • Wrong browser. Apple Pay via the Payment Request API only works in Safari. It will abort in every other browser without exception.
  • No Card in Wallet. Even in Safari, if there's no verified card set up in Wallet, the payment sheet has nothing to show and aborts immediately.
  • Not signed into iCloud. Apple Pay requires an active iCloud account on the device. If you are signed out, the Wallet is non-functional and the payment sheet aborts.
  • Safari version is too old. The Payment Request API with Apple Pay support requires Safari 12.1 or later. Older versions will abort.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Apple Pay Demo Page - PaymentRequest AbortError
 
 
Q