1.2.0 • Published 2 years ago

bambora-node v1.2.0

Weekly downloads
50
License
MIT
Repository
-
Last release
2 years ago

💸 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.

1.2.0

2 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago