Skip to content

A library for interaction with Mazzuma payment gateway

License

Notifications You must be signed in to change notification settings

silentworks/mazzuma-node

Repository files navigation

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

About

A library for interaction with Mazzuma payment gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published