Yuk_dev
Yuk_dev

Reputation: 368

Apple Wallet Coupon example create fail

Since I success create a boarding pass using C# in asp.net, I going to try difference type of pass such coupon and event pass. When I try to create a Coupon pass in .net, it became fail. At first, I believe is my wrong of my coding, I go to try all the creation step in mac with Terminal with this doc.

However the answer is Fail, the coupon pass cannot create successful, event I using those example provided by Apple himself (developer downloads area).

Any one know what happen is it?

Upvotes: 0

Views: 589

Answers (1)

PassKit
PassKit

Reputation: 12581

The issue is that your JSON contains invalid data:

"auxiliaryFields":[{"key":        "expires",
                    "label":      "EXPIRES",
                    "value":      "0880",
                    "isRelative": true,
                    "dateStyle":  "PKDateStyleShort"}],

The value for this dictionary should be an ISO8601 formatted date.

E.g. 2016-11-10T23:59:59+08:00

Upvotes: 1

Related Questions