econfreeapi
v1.0.10
Published
Econnect sdk to implement free money api
Downloads
3
Maintainers
Readme
Documentation SDK NODEJS econnectfreemoney
Installing
npm i econfreeapi
yarn add econfreeapi
example
api marchand
const apifree - require('econfreeapi')
const data = {
"amount": 10,
"customermsisdn": "221767824523",
"externaltransactionid": "econ12345"
}
Apifree.merchand(data)
.then(res => console.log(res))
.catch(err => console.log(err))
Response
data: {
"status": "PENDING",
"amount": 150,
"currency": "XOF",
"customermsisdn": 221763645861,
"transactionid": "MP191223.1738.A16184",
"externaltransactionid": "test123456789"
}
api cashin
const data = {
"amount": 10,
"customermsisdn": "221767824522",
"externalid":"1234"
}
Apifree.cashin(data)
.then(res => console.log(res))
.catch(err => console.log(err))
response
data: {
"status": "SUCCESS",
"amount": 55,
"currency": "XOF",
"customermsisdn": 221766752975,
"transactionid": "CI191223.1739.A16185"
}
api cashout
const data: {
"amount": 10,
"customermsisdn": "221767822913",
"externalid":"1234"
}
Apifree.cashout(data)
.then(res => console.log(res))
.catch(err => console.log(err))
Response
data: {
"status": "PENDING",
"message": "Your transaction request has been initiated, and is now pending confirmation",
"amount": 100,
"currency": "XOF",
"customermsisdn": 766752975,
"externalid": "",
"approvalexpirytime": "2019-12-23T17:49:35.737+0000"
}