1.0.1 • Published 5 years ago

bongloy v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Bongloy Node.js Library

Version Build Downloads

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.

1.0.1

5 years ago

1.0.0

5 years ago