Skip to content

Small client library for interacting with mazzuma api

Notifications You must be signed in to change notification settings

banphlet/mazzuma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ❤

About

Small client library for interacting with mazzuma api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published