Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

fadhilx/toyyibpay-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This project have been move to toyyibpay-sdk-js ⚠️

toyyibpay-nodejs

unofficial 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");
  });

Disclaimer

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
ToyyibPay
Thanks for your support.

About

ToyyibPay Node.js SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published