This repository contains information about developing Digital Passes that can be used with Apple Wallet and Google Wallet.
The following folders are used:
- app - This contains a Capacitor application that adds an Apple Wallet Pass or Google Wallet Pass.
- backend - This contains a Cloudflare Worker backend (NodeJS) that creates the digital pass.
Digital passes for Apple Wallet comes in the form of a file format called pkpass.
These can be created, sent as email attachments, downloaded as files or linked in websites. They are generated by your backend server. See the backend docs for more information on how to create passes.
Google Wallet has prerequisites for a Google Wallet API issuer account and GCP account (see documentation).
In your backend you will authenticate and authorize and create a pass object.
In your application you can add a pass to Google Wallet which will generate a JWT token which can then be used in a "Add to Google Wallet" link which is in the format:
https://pay.google.com/gp/v/save/{token}