Instance Method

canAddPaymentPass(withPrimaryAccountIdentifier:)

A Boolean value that indicates whether the app can add a card to Apple Pay for the provided primary account identifier.

Declaration

func canAddPaymentPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> Bool

Parameters

primaryAccountIdentifier

A unique identifier for the underlying funding primary account number (PAN). Note: This is not the PAN itself.

Return Value

true, if a pass can be added to Apple Pay.

Discussion

Adding payment passes requires a special entitlement issued by Apple. If the entitlement is not present, this method returns false. For more information on requesting this entitlement, see the Card Issuers section on developer.apple.com/apple-pay/.

See Also

Adding Payment Passes

func openPaymentSetup()

Opens the user interface to set up credit cards for Apple Pay.