bitpay-gatewayd-plugin

1.1.0 • Public • Published

Gatewayd Bitpay Inbound Bridge Plugin

Plugin that hooks into the express.js application server in gatewayd, and records incoming bitcoin invoices and payments as deposits using the gatewayd javascript api.

Usage

In the Gatewaydfile.js of your gatewayd installation:

var BitpayGatewaydPlugin = require('bitpay-gatewayd-plugin');

module.exports = function(gatewayd) {
  var bitpayPlugin = new BitpayGatewaydPlugin({
    gatewayd: gatewayd,
    bitpayApiKey: gatewayd.config.get('BITPAY_API_KEY')
  }); 

  gatewayd.server.use('/bitpay', bitpayPlugin);
}

The bitpayPlugin object is simply an instance of the express.js Router class.

/bitpay-gatewayd-plugin/

    Package Sidebar

    Install

    npm i bitpay-gatewayd-plugin

    Weekly Downloads

    2

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • stevenzeiler