PKPassKitErrorDomain error 2, App Clip? Bundle Identifier?

My provisioning code works in my main app, but when I try to use it in my app clip it fails with this:

The operation couldn’t be completed. (PKPassKitErrorDomain error 2.)

I'm having an issue due to how vague this particular error is and how little documentation exists to explain it? I've been looking around the PassKit and Apple Pay documentation for more specific information. But I'm not certain what to do just yet.

After provisioning and receiving the digital wallet token, adding the request to the wallet produces the unsupportedVersionError.

My initial thought is because the appClip bundle identifier does not match the identifier that the issuer expects, but I'm not entirely sure. I have the entitlement necessary to provision passes on apples end.

Answered by DTS Engineer in 797184022

Hi @WhistlePhil,

As you know, adding payment passes requires a special entitlement issued by Apple. Your app, app extensions, and app clip integrating with Apple Pay must include this entitlement before PKAddPaymentPassViewController can be instantiated. For more information on requesting this entitlement, respond to the confirmation email of your initial special entitlements request, if possible, or contact:

  • apple-pay-inquiries [at] apple.com

Once approved for the special entitlement for your app clip, to enable Apple Pay In-App Provisioning in your project, see Configuring Apple Pay support.

Cheers,

Paris

I changed the bundle identifier of the main app and got the same error.

This is an issue with the issuer and the provisioning process.

Accepted Answer

Hi @WhistlePhil,

As you know, adding payment passes requires a special entitlement issued by Apple. Your app, app extensions, and app clip integrating with Apple Pay must include this entitlement before PKAddPaymentPassViewController can be instantiated. For more information on requesting this entitlement, respond to the confirmation email of your initial special entitlements request, if possible, or contact:

  • apple-pay-inquiries [at] apple.com

Once approved for the special entitlement for your app clip, to enable Apple Pay In-App Provisioning in your project, see Configuring Apple Pay support.

Cheers,

Paris

PKPassKitErrorDomain error 2, App Clip? Bundle Identifier?
 
 
Q