eymengunay / php-passbook

iOS passbook library for PHP
http://eymengunay.github.io/php-passbook/
MIT License
263 stars 53 forks source link

Sanity Check please #80

Open waveydavey0 opened 6 years ago

waveydavey0 commented 6 years ago

All seems ok, but when I email an apple device, it dows not open in wallet. The email (raw) and the pkpass contents are as described below. It's all test data, nothing confidential. Can anyone spot anything obviously wrong ? pkpass contains: icon.png, 4573b manifest.json, 110b pass.json, 717b signature: 3328b

manifest: {"icon.png":"e0f0bcd503f6117bce6a1a3ff8a68e36d26ae47f","pass.json":"37ede58605c24a6a41ced70c215c188045ad50bf"}

pass: {"eventTicket":{"primaryFields":[{"key":"event","value":"Governor's Meeting","label":"Event"}],"secondaryFields":[{"key":"location","value":"Inventry Offices","label":"Location"}],"auxiliaryFields":[{"key":"datetime","value":"2018-05-15 @10:30","label":"Date & Time"}]},"serialNumber":"0000000001","description":"Govenor\'s Meeting","formatVersion":1,"barcode":{"format":"PKBarcodeFormatQR","message":"0000154742","messageEncoding":"iso-8859-1"},"barcodes":[{"format":"PKBarcodeFormatQR","message":"0000154742","messageEncoding":"iso-8859-1"}],"backgroundColor":"rgb(60, 65, 76)","logoText":"Inventry. Woo!","passTypeIdentifier":"pass.inventry.invite","teamIdentifier":"ZTNZLE8U52","organizationName":"InVentry Ltd"}

mail (trimmed for clarity)

Delivered-To: wxxxx@gmail.com Received: by 2002:a9d:b38:0:0:0:0:0 with SMTP id a53-v6csp761540ota; Wed, 2 May 2018 07:58:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpayxTLpIxiR0zAlFi5QW+uut/J5nMd2BpCNIg9dc3Cw2/9g0D2hIHbM210l+Bse+hm0/pw X-Received: by 10.28.212.210 with SMTP id l201mr11764408wmg.98.1525273124647; Wed, 02 May 2018 07:58:44 -0700 (PDT)

    <snip>

Return-Path: david@xxxx.co.uk Received: from xxxx.co.uk ([2a00:1a48:7806:116:be76:4eff:fe08:9179]) by mx.google.com with ESMTP id g8si2475196wma.7.2018.05.02.07.58.44 for wxxx@gmail.com; Wed, 02 May 2018 07:58:44 -0700 (PDT) Received-SPF: pass (google.com: domain of david@xxx.co.uk designates 2a00:1a48:7806:116:be76:4eff:fe08:9179 as permitted sender) client-ip=2a00:1a48:7806:116:be76:4eff:fe08:9179; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@xxx.co.uk designates 2a00:1a48:7806:116:be76:4eff:fe08:9179 as permitted sender) smtp.mailfrom=david@xxx.co.uk Received: from xxxx.co.uk (unknown [84.21.150.175]) by xxxx.co.uk (Postfix) with ESMTPS id 28A083E89D for wxxx0@gmail.com; Wed, 2 May 2018 15:58:43 +0100 (BST) Date: Wed, 2 May 2018 14:58:43 +0000 To: wxxx@gmail.com From: XxX david@xxx.co.uk Subject: Sample Invite Pass Message-ID: 0d7304503b7488a3274b05cd22f6e6b3@localhost X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_0d7304503b7488a3274b05cd22f6e6b3" Content-Transfer-Encoding: 8bit

This is a multi-part message in MIME format.

--b1_0d7304503b7488a3274b05cd22f6e6b3 Content-Type: text/plain; charset=us-ascii

This is the message text body

--b1_0d7304503b7488a3274b05cd22f6e6b3 Content-Type: application/vnd.apple.pkpass; name="0000000001.pkpass" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0000000001.pkpass

UEsDBBQAAAAIAPpyokzQ7O3DVwkAAAANAAAJAAAAc2lnbmF0dXJlzZZ3VJPJFsDzfSlICEYIQUSz JFKUPglBQZZV2oKCdBBYBEMSIJQQkwBigwSNSnkiLAprw6Uo2FERAUUOTVyKYlk5PlxBUBAVC2VF

c29uUEsBAhQDFAAAAAgA+nKiTKLA0w5eAAAAbgAAAA0AAAAAAAAAAAAAALaBHh0AAG1hbmlmZXN0 Lmpzb25QSwUGAAAAAAQABADfAAAApx0AAAAA --b1_0d7304503b7488a3274b05cd22f6e6b3--