@spbrewery/gcash
v3.1.0
Published
Promise based wrapper client for Gcash</a>.
Downloads
63
Keywords
Readme
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);
});