Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/silentworks/mazzuma-node
- Owner: silentworks
- License: other
- Created: 2018-06-22T20:59:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T23:11:28.000Z (almost 6 years ago)
- Last Synced: 2024-10-05T21:05:37.477Z (about 1 month ago)
- Language: TypeScript
- Size: 62.5 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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