Is there a way to query the available credit/debit cards in the users Apple Wallet? I want to be able to load a specific card when the user is about to pay with Apple Pay.
I don't need the card numbers or anything, just the card brand (like "Wells Fargo Active Cash"). I'm not a card issuer.
Hi @guanzo,
On the PKPassLibrary object, there are two symbols:
The passes()
method returns a list of passes (via PKPass) a user has already added to their Wallet. Similarly, the remoteSecureElementPasses
property returns a list of passes that have already been added to a paired Apple Watch.
There is no de facto API for what you're asking for, as the branding of a payment card is more of a marketing description. Each issuer of the payment pass may elect to put this data as the localizedName, or within the localizedDescription, or neither.
If you'd like for the PassKit team to consider adding this functionality to its API, please submit a report in Feedback Assistant, explaining your use case(s). Once submitted, please reply here with the Feedback ID, so I may escalate to the PassKit team directly.
Cheers,
Paris