Skip to main content

ApplePayError

An error that can be thrown by the plugin.

Usage#

try { const result = await ApplePay.makePaymentRequest(paymentRequest);} catch (err) { switch (err.code) {   case ApplePayErrorCodes.UserCanceled:     console.log('user canceled the transaction');     break;   case ApplePayErrorCodes.AuthorizationFailed:     console.log("the payment authorization failed");     break   default:     throw err;  }}

Properties#

code#

The error code enum representing the error.

message#

  • Type: string

A text description of the error that occurred.