https://github.com/banphlet/mazzuma
Small client library for interacting with mazzuma api
https://github.com/banphlet/mazzuma
axios library mazzuma module nodejs
Last synced: 5 months ago
JSON representation
Small client library for interacting with mazzuma api
- Host: GitHub
- URL: https://github.com/banphlet/mazzuma
- Owner: banphlet
- Created: 2020-04-01T12:44:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T20:00:20.000Z (over 3 years ago)
- Last Synced: 2025-09-28T04:49:39.059Z (10 months ago)
- Topics: axios, library, mazzuma, module, nodejs
- Language: TypeScript
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Mazzuma
A small wrapper around mazzuma api
### Installation
```
npm i mazzuma
```
### Usage
```javascript
const mazzuma = require('mazzuma')
const client = mazzuma(apiKey)
```
#### Money Money Payment
Check docs for payload https://mazzuma.com/developer/
```javascript
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/
```javascript
await client.sendTokens({
price: 1,
recipient: '026xxxxxxx',
sender: '024xxxxxxx'
})
```
#### Receive Mazzuma Tokens
Check docs for payload https://mazzuma.com/developer/
```javascript
await client.receiveTokens({
option: 1,
callback_url: 'https://testurl/callback',
sender: '024xxxxxxx'
})
```
#### Checking Transaction Status
Check docs for payload https://mazzuma.com/developer/
```javascript
await client.checkTransactionStatus(hash)
```
#### Get Account Balance
Check docs for payload https://mazzuma.com/developer/
```javascript
await client.checkAccountBalance()
```
#### Validate Account
Check docs for payload https://mazzuma.com/developer/
```javascript
await client.validateAccount(username)
```
HAPPY HACKING ❤