Error Domain=PKPassKitErrorDomain Code=2

This error occurs in Apple Pay Wallet In-App Provisioning Flow for Credit / Debit Cards

When the data received from the PNO (Visa) is passed to PKAddPaymentPassRequest this error is seen in addPaymentPassViewController, in the finalize stage.

Docs provide no clue as to what could be wrong.

iOS 18.2.1

XCode 15.2

Error description mentions "unsupportedVersionError"

  • Is the pass version not supported?
  • Is the wallet version not supported?
  • Is it an app implementation error or error in the data received from the PNO?

We are also logging this error quite often and have no clue what might be causing it. Similar circumstances - Visa cards. Documentation is almost non-existent. We reached out to Apple and they responded saying that this error may be thrown for many reason. Not very helpful.

any update about this?

I don't think the error you're seeing is actually the PKPassKitError type and code: unsupportedVersionError.

We have also seen this error, and I believe the 2 code is in reference to PKAddPaymentPassError.systemCancelled. I am guessing is thrown as a general error to obfuscate why it failed.

Hi @sujayjaju,

The Apple Pay servers are purged frequently due to privacy and security policies, so I'll need both to follow the steps in the post below, then reply to this thread once you've created a Feedback report:

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

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

Once you've submitted your Feedback with the requested details listed in the post above, I'll be able to provide guidance for you to resolve the reported errors, as well as troubleshoot your implementation and PNO metadata configuration, as needed.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Error Domain=PKPassKitErrorDomain Code=2
 
 
Q