PKPassKitErrorDomain Code 2

We have integrated the card provisioning in Apple wallet for quite sometime now through an external processor and we got the App Entitlement for the same. Now we are building the card provisioning in Apple Wallet flow in our app. Though everything seems to work fine (including issuer certificates, nonce etc.) but when we are clicking on ADD button on card details screen, I am getting an error saying "Could Not Add Card".

When I inspect the error from didFinishAddingPaymentPass, it reads "The operation couldn’t be completed. (PKPassKitErrorDomain error 2.)". Though the Apple documentation suggests it as an unsupportedVersionError but it does not say anything beyond that. I want more detailed explanation because of which I am getting this error

Also seeing this error. I do not believe it's actually a version error since the device I am using already has an active wallet that other apps can provision to.

I believe these issues are the same, and that we're actually getting PKAddPaymentPassError.systemCancelled. Basically a generic error.

https://developer.apple.com/forums/thread/772855

Hi @qwerty_pad, @dneto-narmi,

Please review the following post and reply here with your Feedback ID so I can take a look into the reported error:

Gathering Required Information for Troubleshooting Apple Pay In-App Provisioning or In-App Verification Issues

https://developer.apple.com/forums/thread/762893

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

PKPassKitErrorDomain Code 2
 
 
Q