1.0.4 • Published 5 years ago

toyyibpay-nodejs v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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.

Support

You can buy me a coffee: Donate Now Thanks for your support.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago