I tried to make a new post but the forum doesn't allow it.
let's try here.....
I'm working on adding a card to Apple Wallet using push provisioning and facing a challenge during the final step.
Here’s the overall flow I’m following:
I initialize PKAddPaymentPassViewController using a properly configured PKAddPaymentPassRequestConfiguration, including properties such as:
encryption scheme
payment network
cardholder name
localized description
primary account suffix
style
I receive the required input parameters and pass them through a service, which returns three base64-encoded strings: activation data, ephemeral public key, and encrypted data.
I decode these strings into Data objects and use them to populate a PKAddPaymentPassRequest, then call the handler like this:
swift
let request = PKAddPaymentPassRequest()
request.activationData = ...
request.ephemeralPublicKey = ...
request.encryptedPassData = ...
handler(request)
However, instead of completing the process, the user is presented with a message saying the card couldn't be added, along with buttons to try later.
In the console, I see:
PKPassKitErrorDomain error 2
Capabilities and entitlements appear to be set up correctly.
I’d appreciate any suggestions or insights!
Thank you!