Skip to content

Akim95/toyyibpay-js-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toyyibpay Javascript SDK

Install

npm install --save toyyibpay-js-sdk

Example

import ToyyibPay from 'toyyibpay-js-sdk'

const toyyibpay = new ToyyibPay('api uri', 'secret key');

toyyibpay.createCategory({
  catname: 'demo',
  catdescription: 'description...',
});

Documentation

Constructor

  • API URL: string
  • secret key: string

new ToyyibPay('api uri', 'secret key');

Methods

  • catname: string
  • catdescription: string

createCategory({ category params })

  • categoryCode: string
  • billName: string
  • billDescription: string
  • billPriceSetting: number
  • billPayorInfo: number
  • billAmount: number
  • billReturnUrl: string
  • billCallbackUrl: string
  • billExternalReferenceNo: string
  • billTo: string
  • billEmail: string
  • billPhone: string
  • billSplitPayment: number
  • billSplitPaymentArgs: any
  • billPaymentChannel?: number

createBill({ bill params })

  • billCode: string
  • billExternalReferenceNo: string

getBillTransactions(transaction params)

License

Licensed under MIT

About

ToyyibPay JS SDK by Community

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published