Skerry/ Reference/ Apple Wallet and Apple Pay

Apple Wallet and Apple Pay11

Passes and orders that live in Apple Wallet: trip and boarding details, pickup codes for routine and favourite orders, receipts, a membership (passes, pass.com.praecise.skerry) and orders from shops, refills and routines with status and tracking (orders, order.com.praecise.skerry). The API makes the pass or order and answers an add_to_wallet_url for the person to open on an iPhone; the package is signed when it is downloaded, with a key that never leaves the server's TPM. Wallet keeps it current through Skerry's web service (register, unregister, changed serials, latest package, log, under /wallet/v1, authenticated by the token inside the package and not part of the partner API): changing or voiding an item raises its version and sends wallet.updated. Apple Pay domains are registered per customer with /customers/{id}/payment-method-domains; this API serves the association file Apple fetches. Details in docs/wallet.md and docs/apple-pay.md.