quickteller-sva-node

1.0.7 • Public • Published

quickteller-sva-node

Node.js library for the Quickteller SVA API.

Build Status Coverage Status

NPM

Installation | Constructor | Billers | Banks | BillerCategories | Customer | Funds | Transaction

Installation

npm install quickteller-sva-node

Constructor

import QuickTellerSva from 'quickteller-sva-node'
 
const quickTellerSva = new QuickTellerSva(
  {
    apiSecret: API_SECRET,
    clientId: CLIENT_ID,
    terminalId: TERMINAL_ID,
    environment: 'development'
  }
)
  • apiSecret - API secret from interswitch .
  • clientId - Client id from interswitch.
  • terminalId - Application terminal id from interswitch
  • environment - Environment (production or development)

Billers

Get billers

quickTellerSva
  .BillersResource
  .getBillers()
  .then((response) => {
    console.log('response', response)
  })
  .catch((err) => {
    console.log('error', err)
  })

Get billers by category

quickTellerSva
  .BillersResource
  .getBillersByCategory(25)
  .then((response) => {
    console.log('response', response)
  })
  .catch((err) => {
    console.log('error', err)
  })

Package Sidebar

Install

npm i quickteller-sva-node

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

182 kB

Total Files

31

Last publish

Collaborators

  • terunkom86