Class

PKPaymentMethod

Contains information about Apple Pay cards.

Declaration

class PKPaymentMethod : NSObject

Topics

Accessing Payment Method Data

var displayName: String?

A string, suitable for display, that describes the card.

var network: PKPaymentNetwork?

A string, suitable for display, that describes the payment network backing the card.

var type: PKPaymentMethodType

A value representing the card’s type.

var paymentPass: PKPaymentPass?

An associated payment pass, or nil.

Types of Payment Methods

enum PKPaymentMethodType

The type of cards available in Apple Pay.

Instance Properties

Relationships

Inherits From

Conforms To

See Also

Working with Payment Tokens

var paymentData: Data

The payment data as a UTF-8 encoded serialization of a JSON dictionary.

var paymentMethod: PKPaymentMethod

Information about the card used in the transaction.

var transactionIdentifier: String

A unique identifier for this payment.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software