AppleVAS – About Pass Files

Dear Reader,

Passes are a digital representation of information that might otherwise be printed on small pieces of paper or plastic. They let users take an action in the physical world, in the same way as boarding passes, membership cards, and coupons.

Companion Guide: Wallet Developer Guide

Introducing Wallet

Passes are a digital representation of information that might otherwise be printed on small pieces of paper or plastic. They let users take an action in the physical world. Passes can contain images and a barcode, and you can update passes using push notifications. The pass library contains the user’s passes, and users view and manage their passes using the Wallet app.

This technology consists of three main components:

  • A package format for creating passes.

  • A web service API for updating passes, implemented on your server.

  • An API used by your apps to interact with the user’s pass library.

The PassKit support materials are available in the developer downloads area. They contain fully worked example passes, a command-line tool to help you sign passes during development, and a sample implementation of the web service.

At a Glance

This document covers the file format used by the PassKit framework to describe passes.

Understanding the Package StructurePass files are stored on disk as a zipped package containing JSON files and other resources.

Package Structure

Pass files are stored on disk as a zipped package with the pkpass file extension.

Localized resources are loaded using the standard bundle localization techniques, which are implemented by the NSBundle class. For more details, see Internationalization and Localization Guide.

The top level of the package contains the following files:

background.png

The image displayed as the background of the front of the pass.

Footer.png

The image displayed on the front of the pass near the barcode.

Icon.png

The pass’s icon. This is displayed in notifications and in emails that have a pass attached, and on the lock screen.When it is displayed, the icon gets a shine effect and rounded corners.

Logo.png

The image displayed on the front of the pass in the top left.

Manifest.json

A JSON dictionary. Each key is the path to a file (relative to the top level of the bundle) and the key’s value is the SHA-1 hash for that file. Every file in the bundle appears in the manifest, except for the manifest itself and the signature.

Pass.json

A JSON dictionary that defines the pass. Its contents are described in detail in Top-Level Keys.

Signature

A detached PKCS #7 signature of the manifest.json file.

Strip.png

The image displayed behind the primary fields on the front of the pass.

Thumbnail.png

An additional image displayed on the front of the pass. For example, on a membership card, the thumbnail could be used to a picture of the cardholder.

Understanding the Keys

The pass.json file contains a dictionary that contains most of the information about the pass.

About Ambimat Electronics:

With design experience of close to 4 decades of excellence, world-class talent, and innovative breakthroughs, Ambimat Electronics is a single-stop solution enabler to Leading PSUs, private sector companies, and start-ups to deliver design capabilities and develop manufacturing capabilities in various industries and markets. AmbiIoT design services have helped develop SmartwatchesSmart homesMedicalsRobotics, RetailPubs and brewerySecurity 

Ambimat Electronics has come a long way to become one of India’s leading IoT(Internet of things) product designers and manufacturers today. We present below some of our solutions that can be implemented and parameterized according to specific business needs. AmbiPay, AmbiPower, AmbiCon, AmbiSecure, AmbiSense, AmbiAutomation.

To know more about us or what Ambimat does, we invite you to follow us on LinkedIn or visit our website.

References:-

https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/Introduction.html

AppleVAS – Wallet Developer Guide
Authorize.Net mPOS Mobile Application/VPOS v2 Application – Tested Devices