Push Provisioning Error PKPassKitErrorDomain

I've implemented Push Provisioning, but am having trouble testing it.

When I try to add a payment pass with my activationData, encryptedPassData, and ephemeralPublicKey, I see the "Add Card to Apple Pay" screen, but then when I click "Add Card", I get a "Could Not Add Card" message.

When I inspect the error from didFinishAddingPaymentPass, it reads "The operation couldn’t be completed. (PKPassKitErrorDomain error 2.)".

Is this error PKPassKitError.Code.unsupportedVersionError? What does this error means?

Additional context:

We use cordova-apple-wallet to generate certificates and add payment pass.

Additional detail: Our card issue Mastercard reports that they haven't receive any Apple Pay push provision requests.

Hi,

The error means your OS version doesn't support the pass version. What OS and pass version are you testing with?

Rico


WWDR | DTS | Software Engineer

I am seeing the same issue.

Error Domain=PKPassKitErrorDomain Code=2 "(null)" PKPassKitError.Code.unsupportedVersionError

When the data received from the PNO is passed to PKAddPaymentPassRequest this error is seen in addPaymentPassViewController error

Docs provide no clue as to what could be wrong.

iOS 18.2.1

XCode 15.2

I'm facing same for in-app-provisioning and getting an error

Error from apple wallet: Error Domain=PKPassKitErrorDomain Code=2 "(null)"

Did anyone found solution?

Push Provisioning Error PKPassKitErrorDomain
 
 
Q