1.0.3 • Published 6 years ago

monapay v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

monapay

NodeJS wrapper/toolkit for MonaPay v1

Install via NPM

npm i monapay -s

Usage

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!

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago