tschoffelen / php-pkpass

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

Multiple secondaryFileds #36

Closed mrafiq1465 closed 11 years ago

mrafiq1465 commented 11 years ago

I am trying to create Coupon type pass. It works fine with one Secondary field. But if I add more than one secondary or even on Auxilliary then pas hasn't been created. Any idea why? I checked the json format. No error or ,/; missing.

Thanks

ptz0n commented 11 years ago

Which pass type are you using? Please provide the whole JSON/Array.

mrafiq1465 commented 11 years ago

Coupon: If I use only one secondary filed, it works, but with multitple or even with one auxialiry field, it doesn;t

"description" : "Allyson's Birthday", "foregroundColor" : "#dbd2c1", "formatVersion" : 1, "labelColor" : "#dedfc0", "logoText" : "John", "organizationName" : "Allyson's Birthday", "passTypeIdentifier" : "pass.flypass.coupon", "serialNumber" : "12345678", "teamIdentifier" : "9E8L8Y3KWG" { "backgroundColor" : "#000000", "barcode" : { "format" : "PKBarcodeFormatPDF417", "message" : "test", "messageEncoding" : "iso-8859-1" }, "coupon" : { "backFields" : [ { "key" : "offer", "label" : "a", "value" : "b" }, { "key" : "offer", "label" : "c", "value" : "d" }, { "key" : "offer", "label" : "e", "value" : "f" } ], "secondaryFields" : [ { "key" : "offer", "label" : "Offer", "value" : "$3 schooners!" }, { "key" : "offer", "label" : "abc", "value" : "def" } ] },

}

tschoffelen commented 11 years ago

What exactly doesn't work? Does the script die without any output? Or does it give an error? Or does it create the .pkpass but you can't open it with passbook?

mrafiq1465 commented 11 years ago

it create the pkpasss but doesnt open.


From: Tom Schoffelen notifications@github.com To: tschoffelen/PHP-PKPass PHP-PKPass@noreply.github.com Cc: Rafiqul Islam mrafiq1465@yahoo.com Sent: Tuesday, 23 April 2013 1:52 PM Subject: Re: [PHP-PKPass] Multiple secondaryFileds (#36)

What exactly doesn't work? Does the script die without any output? Or does it give an error? Or does it create the .pkpass but you can't open it with passbook? — Reply to this email directly or view it on GitHub.

ptz0n commented 11 years ago

@mrafiq1465 Then the log should tell you what's wrong.

$ tail -f /var/log/system.log

or via Xcode organizer (Window > Organizer).

tschoffelen commented 11 years ago

Closing because there hasn't been a reply in two weeks. I assume the problem is solved?

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.