Bitpay node client
Simple nodejs client for the bitpay payment system.
Installation
npm install --save bitpay-node-client
Example usage
const fs = const path = const BitpayNodeClient = const privateKeyFilename = pathconst encryptedPrivateKey = fsconst bitpay = encryptedPrivateKey bitpay
Running provided example
- Clone this repository
- Run
npm install
- Generate
api.key
for merchant (see this for how) - Copy the
USER_HOME/.bitpay/api.key
to this project's root directory - Run
npm run example
to create a invoice