Closed fauVictor closed 2 years ago
The Team Identifier is incorrect, you need to grab this by logging into your Apple account at https://developer.apple.com/account/ and then checking the Membership tab (Team ID is the value your looking for). The error your receiving is indicating your trying to use the Team Id of 12345678
Invalid data error reading pass pass.com.carteetudiant.mjmcloud/12345678
For the passTypeIdentifier, you must use the one you created for the pass itself, this is the one prefixed with pass. (In your case, pass.com.passtest.mjmcloud). Using an App ID will not work here.
Thank you for help, I will try this. I will give a feed back before close this issue.
Reproduce the error
I tried to create the pkpass. For that, I use this json :
The pkpass is return well but I have an error when I want to save it on Apple wallet, I have this error message :
Invalid data error reading pass pass.com.carteetudiant.mjmcloud/12345678. The passTypeIdentifier or teamIdentifier provided may not match your certificate, or the certificate trust chain could not be verified.
To do that, I have followed those websites :
Documentions I followed
Docs PhpPkpass : https://github.com/flexible-agency/php-pkpass
Building a pass : https://developer.apple.com/documentation/walletpasses/building_a_pass
Create CSR certificate : https://help.apple.com/developer-account/#/devbfa00fef7
create .pem file : https://support.airship.com/hc/en-us/articles/213493603-How-to-use-OpenSSL-to-create-an-Apple-Pass-Type-Certificate OR https://serverfault.com/questions/254627/how-do-i-convert-a-cer-certificate-to-pem
Any idea ?