Official E-levy API
Visist more information on our Documentaion Page or you can visit our website
Installation
npm install e-levy
for yarn
yarn add e-levy
Usage
Easy and Fast to use
const anyVariableName = require('e-levy')
const amount = 200;
const telco = 'MTN' // VODAFONE , AIRTELTIGO
const {elevyCharge, chargedAmount, deductedAmount, moneyToSend, telcoCharge , imageReference,message} = anyVariableName(telco,amount)
// do what you want to with the distructured data...
Params
Parameters to be passed to the function
name | description | default | type |
---|---|---|---|
amount | this is the money to be sent to the user |
0 | integer |
telco |
"Telecommunication Services" MTN , VODAFONE , AIRTELTIGO |
"MTN" | strings |
Response
returns a JSON object
buy me coffee