# monapay

> A simple wrapper for MonaPay

Latest version **1.0.3** (published 2018-01-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install monapay
pnpm add monapay
yarn add monapay
bun add monapay
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-01-13 |
| First published | 2018-01-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Blessing Pariola |
| Maintainers | codedphoenix |
| Keywords | monapay |

## Links

- npm: https://www.npmjs.com/package/monapay
- Repository: https://github.com/codedphoenix/monapay
- Homepage: https://github.com/codedphoenix/monapay#readme
- Issues: https://github.com/codedphoenix/monapay/issues
- npm.io page: https://npm.io/package/monapay

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.83.0

## Recent versions

- 1.0.3 (latest) — 2018-01-13
- 1.0.2 — 2018-01-10
- 1.0.1 — 2018-01-10
- 1.0.0 — 2018-01-10

## README

# monapay
NodeJS wrapper/toolkit for [MonaPay](https://monapay.com) v1


### Install via NPM

```
npm i monapay -s
```

### Usage
```js
const MonaPay = require('monapay');
const client = new MonaPay('merchant_id', 'product_key');

let response = client.paymentLink({
    uuid: 'blessingpariola123x', // compulsory
    amount: 500, // -> amount in NGN (500)
    refId: 'b1234567890p', // optional
    description: 'purpose of payment' //optional
});
console.log(response);
```

### Available methods
- paymentLink `-> { refId: string, link: string }`
> This method generates a payment link in which the developer calls either as a redirect or in an iframe
- verifyTransaction `-> Promise { response: object }`
> This method verifies the transaction with the `refId` and returns the HTTP response


## Thanks!

---
_Source: https://npm.io/package/monapay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
