You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

in-app provisioning, invalid pass data - no help from Apple official support

Hi guys


We are struggeling with in-app card provisioning in Apple Sandbox environment.


Using spec from Getting Started with Apple Pay In-App Provisioning_ Verification _ Security _3.0

Using card numbers from this page: Sandbox Testing - Apple Pay - Apple Developer, have tested with different mastercard cards are it fails with all of them


And we are receiving error

Error Domain=PKPassKitErrorDomain Code=1

Invalid pass data


The message is clear but we have triple checked the fields and everything is there, no idea what fails.

What makes things worse is that console logs are private and we cant see anything there. Apple in latest releases have changed logging profiles and its impossible to see personalized data.


Does anyone have clue how to start resolving this issue? we have sent the full debug data to Apple and only response we got is that something is wrong with your inputs. Literally that was the only thing we received.


Couple of additional questions


PKAddPaymentPassRequest | Apple Developer Documentation -> there are two blocks there ActivationData and encryptedPassData. Does this error apply to both blocks or it is strictly encryptedPassData specific?


What's even more weird is that this specification

encryptedPassData | Apple Developer Documentation is different from getting started guide we received from apple. The last one has two extra fields. We tried both versions but the result is same.


Any kind of help is appreciated! We have hit the wall with this project and trying to figure out what next...

Posted on Mar 14, 2023 3:52 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 14, 2023 5:00 AM

You should be able to view the private data with an MDM configuration. Try the information on this site: https://georgegarside.com/blog/macos/sierra-console-private/. It is for the Mac, but maybe you can do something similar on your test device.


Did you make sure that you have the correct entitlement?


Did you make sure that you are using the correct store? Each test account can only be used in the matching country store.


That looks like a general error result. It could apply to anything.

Similar questions

4 replies
Question marked as Top-ranking reply

Mar 14, 2023 5:00 AM in response to priit112

You should be able to view the private data with an MDM configuration. Try the information on this site: https://georgegarside.com/blog/macos/sierra-console-private/. It is for the Mac, but maybe you can do something similar on your test device.


Did you make sure that you have the correct entitlement?


Did you make sure that you are using the correct store? Each test account can only be used in the matching country store.


That looks like a general error result. It could apply to anything.

Mar 16, 2023 2:03 AM in response to etresoft

Just to give you a feedback! We got it working.

Turns out we had 2 issues.

nonce and nonce signature have to be converted to hex from our side -why, no idea. Apple returns those as strings and we need to convert them to hex before sending it back to them.

Second thing was card expiration date format. MM/YY is not correct, I'll leave out the details here.


Both fields were also in the debug data we sent to Apple but bollocks that they didn't even care to take a look and point that out.


What we could not get working were still the logs. Apple does not show private data.


Compared to Google, Apple is pain. Lot of weird stuff, probably some legacy they have to keep up and running. Additionally there is a specification difference between getting started guide and PKAddPaymentPassRequest | Apple Developer Documentation.


Thanks for help.


Mar 14, 2023 5:44 AM in response to etresoft

Thanks mate! Will give it a try today. private logs would probably help us further, will try that!


Entitlement is there and we are using Sandbox mastercard cards and we are in the Sandbox mode. Adding cards directly from Wallet actually works, but fails on the same device in the in-app provisioning flow. So clearly something is wrong with out data.


But yeah, lets see what MDM configuration reveals. Thanks again!


in-app provisioning, invalid pass data - no help from Apple official support

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.