---
title: "canAddPaymentPass(withPrimaryAccountIdentifier:)"
framework: passkit
role: symbol
role_heading: Instance Method
path: "passkit/pkpasslibrary/canaddpaymentpass(withprimaryaccountidentifier:)"
---

# canAddPaymentPass(withPrimaryAccountIdentifier:)

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

## Declaration

```swift
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

Return Value true if PassKit can add the pass.

## Discussion

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

- [activate(_:withActivationCode:completion:)](passkit/pkpasslibrary/activate(_:withactivationcode:completion:).md)
- [activate(_:withActivationData:completion:)](passkit/pkpasslibrary/activate(_:withactivationdata:completion:).md)
- [isPaymentPassActivationAvailable()](passkit/pkpasslibrary/ispaymentpassactivationavailable()-swift.type.method.md)
- [isPaymentPassActivationAvailable()](passkit/pkpasslibrary/ispaymentpassactivationavailable()-swift.method.md)
- [present(_:)](passkit/pkpasslibrary/present(_:)-67jce.md)
- [remotePaymentPasses()](passkit/pkpasslibrary/remotepaymentpasses().md)
