A library for interaction with Mazzuma payment gateway
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
src
test
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
appveyor.yml
package-lock.json
package.json
rollup.config.js
tsconfig.json

README.md

mazzuma-node

A library for interaction with Mazzuma payment gateway

Installation

npm install mazzuma-node

Usage

Making a payment request

const mazzuma = require('mazzuma-node').mazzuma('api_key');
const requestPayment = mazzuma.create(mazzuma.MTN_TO_AIRTEL);

requestPayment.create({
    amount: 1,
    to: '',
    from: '',
}).then((response) => {

});

Checking transaction status

const mazzuma = require('mazzuma-node').mazzuma('api_key');
const status = mazzuma.transactionStatus('transaction_id');

status.then(response => {

});

Typings are also supplied as part of the library for your Typescript needs