JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q46026F
  • License Apache-2.0

Pass SDK for Apple and Google Wallet

Package Exports

  • @kekepass/pass
  • @kekepass/pass/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@kekepass/pass) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Apple and Google Wallet library for Node.js

Library for creating Apple Wallet and Google Wallet passes in Node.js.

Installation

npm i @kekepass/pass

Preparation

You'll need to have a signing certificate to issue a valid pass.

Apple signing certificate

Access the Apple Developer's page.

1. Create an identifiers

Click theIdentifiers tab and change the filter type to Pass Type IDs from App IDs. Then, create an new identifier.

2. Create a certificate

Click the Certificates tab and create a new certificate. Chose Pass Type ID as a certificate type and choose the identifier you created in the previous step.

You will need a certificate signing request (CSR) to create a certificate.

Download the certificate pass.cer and add (download and drop) it to the Keychain Access app.

3. Download Apple WWDR certificate

From the Apple PKI page, download the Worldwide Developer Relations - G4 certificate.

4. Export the certificate as P12 file

Open the Keychain Access app and find the certificate you added in step 2. Right-click on the certificate and export it as a .p12 file.

On export, set a password for the file.

Usage

Use this library to create Apple Wallet and Google Wallet passes in Node.js.

License

This project is distributed under the Apache License, Version 2.0, see LICENSE for more information.