0.0.2 • Published 4 years ago
mazzuma v0.0.2
Mazzuma
A small wrapper around mazzuma api
Installation
npm i mazzuma
Usage
const mazzuma = require('mazzuma')
const client = mazzuma(apiKey)
Money Money Payment
Check docs for payload https://mazzuma.com/developer/
await client.mobileMoneyPayment({
price: 1,
network: 'mtn',
recipient_number: '026xxxxxxx',
sender: '024xxxxxxx',
option: 'rmta',
apikey: '',
orderID: ''
})
Send Mazzuma Tokens
Check docs for payload https://mazzuma.com/developer/
await client.sendTokens({
price: 1,
recipient: '026xxxxxxx',
sender: '024xxxxxxx'
})
Receive Mazzuma Tokens
Check docs for payload https://mazzuma.com/developer/
await client.receiveTokens({
option: 1,
callback_url: 'https://testurl/callback',
sender: '024xxxxxxx'
})
Checking Transaction Status
Check docs for payload https://mazzuma.com/developer/
await client.checkTransactionStatus(hash)
Get Account Balance
Check docs for payload https://mazzuma.com/developer/
await client.checkAccountBalance()
Validate Account
Check docs for payload https://mazzuma.com/developer/
await client.validateAccount(username)
HAPPY HACKING ❤