Structure

PKPaymentErrorKey

Additional details about an error on the Apple Pay sheet.

Declaration

struct PKPaymentErrorKey

Overview

Use payment error keys if you are creating a payment error without using one of the convenience methods in PKPaymentRequest (such as paymentBillingAddressInvalidError(withKey:localizedDescription:) or others).

The payment error keys indicate a specific field that has an error, for example, the street field of an address.

Topics

Initializing a Payment Error Key

init(rawValue: String)

Create an error key given the raw value.

Error Keys

static let postalAddressUserInfoKey: PKPaymentErrorKey

Payment error key that indicates errors with the postal address.

static let contactFieldUserInfoKey: PKPaymentErrorKey

Payment error key that indicates errors with the contact information.

Relationships

See Also

Errors

struct PKPaymentError

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