bongloy
v1.0.1
Published
Bongloy API wrapper
Downloads
4
Maintainers
Readme
Bongloy Node.js Library
This is the Unofficial Node library for Bongloy Payment Gateway.
Installation
Install the package with:
npm install bongloy --save
# or
yarn add bongloy
Usage
The package needs to be configured with your account's secret key, which is available in the Bongloy Dashboard. Require it with the key's value:
const Bongloy = require('bongloy');
const bongloy = new Bongloy('sk_test_...');
bongloy.charges
.create({
amount: 1000,
currency: "USD",
source: "6b1ca112-add7-4bc6-b520-829e004c0580"
},
function(err, charge){
console.log(charge);
});
Documentation
See the API docs.