Skip to content

Node Quickstart to create, distribute, analyse and manage your Digital Membership/Coupons/Event Tickets for Apple Wallet and Google Pay

Notifications You must be signed in to change notification settings

PassKit/passkit-node-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PassKit Node Quickstart

License: MIT

Overview

This quickstart aims to help get NodeJs developers up and running with the PassKit SDK as quickly as possible.

Prerequisites

You will need the following:

Configuration

  1. Download or clone this quickstart repository.

  2. Create a new folder inside src called certs and add the following three PassKit credential files into it. Files can be found in the sdk credentials email you receive on signup:

    • certificate.pem
    • ca-chain.pem
    • key.pem
  3. Run npm run openssl and provide your account password in the terminal prompt.

  4. If you wish to receive enrolment emails, edit lines 281 and 307 of the QuickStartLoyalty class to provide an address where you can receive mail.

  5. Run npm i

Running the tests

Run npm run test

The Loyalty tests will create a membership program with 2 tiers, 1 member and two member events.

The tests will display URLs to the generated passes and to the enrolment page. It will pause for a period determined in the test file on line 64.

The tests will then delete and clean-up all assets that it created.

Notes

For implementing in your own projects, use the PassKitClient class to manage connection to the PassKit gRPC endpoints.

The quickstart uses the PassKit official node sdk found here: https://www.npmjs.com/package/passkit-node-sdk

About

Node Quickstart to create, distribute, analyse and manage your Digital Membership/Coupons/Event Tickets for Apple Wallet and Google Pay

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •