We have a requirement to include Apple Pay In-App Provisioning in our Mobile Application and we have an API from Backend to get the tokenReferenceID for a given Card. I want to query the passes from Apple Wallet to see if there are any matches to the given tokenReferenceID before I can decide whether to show the “Add to Apple Wallet” button or not.
I went through all PassKit APIs but couldn’t find a way to query for passes with tokenReferenceID. We have primaryAccountIdentifier, deviceAccountIdentifier but which one should be used to match with tokenReferenceID?
Can someone please help me how to query the Wallet passes with tokenReferenceID using PassKit?
Hi @VidhyaSri21,
Clients approved for Apple Pay may query secure passes. The query result includes passes provisioned by the developer themselves, as well as passes from another issuer where their app or app extensions are listed in the Payment Network Operator (PNO) pass metadata.
There is no API to receive a tokenReferenceID
, these values are specific to the payment network and not for use for Apple Pay. Please contact your payment network to determine how to map this data to the opaque values Apple Pay vends such as deviceAccountIdentifier and primaryAccountIdentifier.
Cheers,
Paris X Pinkney | WWDR | DTS Engineer