Skip to content

fadhilx/toyyibpay-sdk-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToyyibPay SDK for TS/JS

Instalation

NPM:

npm install --save toyyibpay-sdk

Yarn:

yarn add toyyibpay-sdk

Usage

// const { ToyyibPay } = require("toyyibpay-sdk");
import { ToyyibPay } from "toyyibpay-sdk";

async function run() {
  const toyyib = new ToyyibPay("secret", "sandbox"); // change 'sandbox' to 'live' for

  const result = await toyyib.getBank();

  console.log(result[0]); // { id: '1', bank: 'Maybank2U', status: '0' }
}
run();

Documentation

for method documentation please look at ToyyibPay

Releases

No releases published

Packages

No packages published