Pushpay Node.js Client
an npm package for interacting with the Pushpay API
Usage
Prerequisites
This package uses async/await, so requires a node version > 7.6
Build a request
currently, only get payments and recurring gifts is implemented
const Pushpay = ;const pushpay = ; const start = const end = const data = await pushpayconsole;
to run the above example, you can run
node example.js
, just remember to set your environment variables.
Development
Install dependencies
npm i
Run tests (no passing tests yet)
npm test# or, to run tests as you change files npm test:watch
Environment Variables needed
- PUSHPAY_API_ENDPOINT=https://sandbox-api.pushpay.io/v1
- PUSHPAY_AUTH_ENDPOINT=https://auth.pushpay.com/pushpay-sandbox/oauth
- PUSHPAY_CLIENT_ID=client-id-abc
- PUSHPAY_CLIENT_SECRET=secret-password-777
- PUSHPAY_MERCHANT_KEY=merchant-key-453