bambora-node

1.2.0 • Public • Published

💸 Bambora

For information on the underlying responses from this package, see Bambora's payment API.

Usage

The package exports a single default class. The constructor takes two arguments: (1) your API key and (2) a boolean to enable/disable pre-authorization.

const BamboraNode = require('bambora-node');

module.exports = async () =>
  new BamboraNode(
    process.env.PASSCODE,
    false, // skipPreAuthorization
  ).postPayment({
    id: 1,
    token: 'foo',
    shipping: {},
    billing: {},
    // ...etc
  });

Testing

When testing your code, you'll require tokens. Our utils file exports a single method, getToken, that you can use for this purpose. Provide it with sample card details and it does the rest.

Readme

Keywords

none

Package Sidebar

Install

npm i bambora-node

Weekly Downloads

4

Version

1.2.0

License

MIT

Unpacked Size

11.4 kB

Total Files

12

Last publish

Collaborators

  • 3merge