A library for interaction with Mazzuma payment gateway
npm install mazzuma-node
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