brewery-gcash
v1.1.7
Published
Promise based wrapper client for Gcash</a>.
Downloads
10
Readme
Brewery Gcash Client
Promise based wrapper client for Gcash.
Install
npm i brewery-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('brewery-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);
});