tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
913 stars 188 forks source link

Fixed content-type #4

Closed dododedodonl closed 12 years ago

dododedodonl commented 12 years ago

Content-type was application/vnd.apple.pkpass but required is application/vnd-com.apple.pkpass

Update: I don't know anymore what is the correct content-type because they say both of the content-types are correct...

jacobtabak commented 12 years ago

The correct content-type should be vnd.apple.pkpass. I had to change it to get it to work. From the apple docs: "If you are attaching the pass to an email or hosting it on the web, declare the MIME type as application/vnd.apple.pkpass so that Mail or Safari handle it as a pass."

tschoffelen commented 12 years ago

This has probably changed since the new beta then. Could you please do a pull request? I am not able to do it at the moment.