Steps used to access pass
PKPassLibrary *passLibrary = [[PKPassLibrary alloc] init];
NSArray<PKPass *> *paymentPasses;
if (@available(iOS 13.4, *)) {
// This returns an empty array
paymentPasses = [passLibrary passesOfType:PKPassTypeSecureElement];
} else {
// Fallback on earlier versions
// This returns an empty array
paymentPasses = [passLibrary passesOfType: PKPassTypePayment];
}
Steps used to add pass to Apple Wallet
I create a PKAddPaymentPassRequestConfiguration
I use this config to instantiate a PKAddPaymentPassViewController.
I provide the nonce, nonceSignature, and certificates to my service provider with card data.
I receive the activationData, encryptedPassData, and ephemeralPublicKey from my bank service provider and create a PKAddPaymentPassRequest using this data.
I add the pass to Apple Wallet.
I have got the special entitlements from Apple, also i have added Apple pay and wallet capability in to our project