@spbrewery/gcash

3.1.0 • Public • Published

Brewery Gcash Client

Promise based wrapper client for Gcash.

Install

npm i @spbrewery/gcash

Usage

The methods return promises which are compatible to be used on async/await functions. The default configuration settings can be overridden on the constructor of BreweryGcash.

const { BreweryGcash } = require('@spbrewery/gcash');
const breweryGcashClient = new BreweryGcash({
  clientId: 'id',
  clientSecret: 'secret',
  url: 'http://url.com',
});

breweryGcashClient.createOrder({
  ...restOfParameters,
})
  .then((data) => {
    console.log(data);
  })
  .catch(error) => {
    console.log(error);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i @spbrewery/gcash

Weekly Downloads

29

Version

3.1.0

License

ISC

Unpacked Size

16 kB

Total Files

16

Last publish

Collaborators

  • mbundukin
  • adevera
  • kurt.arellano
  • francis.ong
  • sp-techadmin