Netpay Library
The netpay library is a helpful library for launching netpay on websites and webapps
Getting started
First import the script to your project
<!-- For use from a cdn -->
or in a javascript project, first install the netpay library in your project
yarn add netpay-lib// ornpm install netpay-lib
then include the library in your project
// in an ES6 environment; // or in a CommonJs environmentconst Netpay = ;
Using Netpay
To use netpay, you simply call the createPayment
method on the netpay library passing in the payment options object. This returns an instance of a payment. To open the netpay window, call the open
method on the payment object
// Create the payment instance const payment = Netpay;payment;
The PaymentOptions
object looks like this