1.0.2 • Published 6 years ago

toyyibpay-js-sdk v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago