php-passbook icon indicating copy to clipboard operation
php-passbook copied to clipboard

More ticket in one file

Open sorcy86 opened this issue 6 years ago • 1 comments

Hello It is possible to store multiple tickets in one .pkpass file, with this library?

sorcy86 avatar Jul 12 '19 10:07 sorcy86

According to Apple Developer Documentation, you need to create a bundle of passes: Provide a bundle of passes to enable your user to download multiple passes at once. To create the pass bundle:

  1. Create a .zip file containing the .pkpass files for the passes that are part of the bundle.
  2. Change the extension of the .zip file to .pkpasses.

You can distribute a bundle of passes the same way you distribute a single pass. The MIME type for a bundle of passes is application/vnd.apple.pkpasses.

Note You can have up to 10 passes or 150 MB for a bundle of passes.

This is currently not possible with the lib, but we could add a helper function in the future.

razvanphp avatar Dec 15 '23 08:12 razvanphp