Contents

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). This isn’t the PAN itself.

Return Value

true if PassKit can add the pass.

Discussion

Adding payment passes requires a special entitlement from Apple. If the entitlement isn’t present, this method returns false. For more information about requesting this entitlement, see developer.apple.com/apple-pay/.

See Also

Deprecated Methods