unofficial ToyyibPay Node.js SDK
npm install toyyibpay-nodejs
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");
});
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.