cediplus-api
v1.0.1
Published
CEDIPLUS API
Downloads
8
Maintainers
Readme
CEDIPLUS API Nodejs SDK v1.0.0
For more information about CEDIPUS, visit the website
Super simple to use
Charge Mobile Money Wallet
const cediplus = require('cediplus-api');
const data = {
"action": "sendbill",
"api_key": "your_api_key",
"description": "transaction_description",
"wallet": "0574017xxx",
"wallet_type": "t or m",
"amount": "1.00",
"callback_url": "https://yourwebsite.com/callback" // optional, leave empty if not used
}
cediplus(data).then(response => {
console.log(response);
}).catch(error => {
console.error(`Error - ${error}`);
})
Check Status of transaction
const cediplus = require('cediplus-api');
const data = {
"action": "checkbill",
"api_key": "your_api_key",
"invoice": "invoice_number_from_the_charge_wallet_request"
}
cediplus(data).then(response => {
console.log(response);
}).catch(error => {
console.error(`Error - ${error}`);
})