Post

Replies

Boosts

Views

Activity

Reply to PKPassKitErrorDomain Code 2
Hi everyone, in my case what was happening is that I was pointing all endpoints to production but I was testing by compiling directly through scode on the physical device. When I uploaded the compilation to the appstore and tested it via TestFlight I was successful. In this case always test within the Apple environment, TestFlight.
Jun ’25
Reply to PKPassKitErrorDomain Code 2
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!
Jun ’25