Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/silentworks/mazzuma-node

A library for interaction with Mazzuma payment gateway
https://github.com/silentworks/mazzuma-node

Last synced: 23 days ago
JSON representation

A library for interaction with Mazzuma payment gateway

Awesome Lists containing this project

README

        

# mazzuma-node

A library for interaction with Mazzuma payment gateway

### Installation

```bash
npm install mazzuma-node
```

### Usage

Making a payment request

```javascript
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

```javascript
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