Enumeration

ApplePayErrorCode

The error code that indicates whether an error on the payment sheet is for shipping or billing information, or for another kind of error.

Overview

Use the following error codes in the code property of ApplePayError:

Value

Usage

"shippingContactInvalid"

Shipping address or contact information is invalid or missing.

Use with contactField.

"billingContactInvalid"

Billing address information is invalid or missing.

Use with contactField.

"addressUnserviceable"

The merchant cannot provide service to the shipping address (for example, can't deliver to a P.O. Box).

"unknown"

An unknown but nonfatal error occurred during payment processing. The user can attempt authorization again.

See Also

Status and Errors

ApplePayError

A customizable error type that you create to indicate problems with the address or contact information on an Apple Pay sheet.

ApplePayErrorContactField

Names of the fields in the shipping or billing contact information, used to locate errors in the payment sheet.

Apple Pay Status Codes

Codes used to report the status of an Apple Pay session after a callback.