🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

bambora-node

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bambora-node

For information on the underlying responses from this package, see [Bambora's](https://dev.na.bambora.com/docs/) payment API.

1.2.0
latest
npm
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 14 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts