Structure

ApplePayPaymentAuthorizationResult

The result of payment authorization, including status and errors.

Declaration

dictionary ApplePayPaymentAuthorizationResult {
    required unsigned short status;
    sequence < ApplePayError > errors;
};

Overview

Use the Apple Pay Status Codes values of STATUS_SUCCESS to indicate that the payment authorization succeeded, or STATUS_FAILURE along with the errors if it failed.

This dictionary is available starting in Apple Pay JS API version 3.

Topics

Authorization Result Properties

status

The status code for the authorization result.

errors

A list of custom errors to display on the payment sheet.

See Also

Handling Payment Authorization

onpaymentauthorized

An event handler that is called when the user has authorized the Apple Pay payment with Touch ID, Face ID, or passcode.

completePayment

Completes the payment authorization with a result.

ApplePayPaymentAuthorizedEvent

An event object that contains the token used to authorize a payment.

ApplePayPayment

The result of authorizing a payment request that contains payment information.