Installation

LimePay provides Web/JS library for the frontend integration

Installing the Library

In order to install the Web-library you will need to execute the following command through npm:

npm install limepay-web

Connecting to the API

Once you have installed the Web-library you need to include it in your project and connect to LimePay's API.

Sandbox
Production
const LimePayWeb = require('limepay-web');
const LimePay = await LimePayWeb.connect(LimePayWeb.Environment.Sandbox);
const LimePayWeb = require('limepay-web');
const LimePay = await LimePayWeb.connect(LimePayWeb.Environment.Production);

Once the .connect promise is being resolved you can start consuming the Library through the new instance that was created.