toyyibpay-nodejs
v1.0.4
Published
ToyyibPay SDK for nodejs
Downloads
11
Maintainers
Readme
toyyibpay-nodejs
ToyyibPay Node.js SDK
Installation
npm install toyyibpay-nodejs
Examples
let { ToyyibPay } = require("./index");
// let toyyib = ToyyibPay("secretkey", { dev: true }); // For SandBox
let toyyib = ToyyibPay("secretkey");
toyyib
.getBank()
.then(bill => {
console.log(".getBank success");
console.log(bill["data"]);
})
.catch(e => {
console.log(".getBank on error");
});
Diclaimer
This is NOT an official SDK. I dont have OEM/Enterprise partnership, so i cant test the endpoint with parameter partnerType
, i just write it according to docs. i will not responsible for any loss.