Installation

LimePay provides SDK in order to ease the development efforts

Installing the SDK

In order to install the SDK you will need to execute the following command:

Node.js
Go
npm install limepay
go get github.com/LimePay/go-sdk

Connecting to the API

Once you have installed the SDK you need to include it in your project and connect to API.

Node.js
Go
const LimePaySDK = require('limepay');
const LimePay = await LimePaySDK.connect({
environment: LimePay.Environment.Sandbox
apiKey: 'YOUR_API_KEY_HERE',
secret: 'YOUR_API_SECRET_HERE'
});

Once the .connect promise is being resolved you can start consuming the SDK with the LimePay instance.

import (
limePaySDK "github.com/LimePay/go-sdk"
"github.com/LimePay/go-sdk/envs"
"github.com/LimePay/go-sdk/errors"
"github.com/LimePay/go-sdk/types"
)
‚Äč
limePay, err := limePaySDK.Connect(
envs.Sandbox, // environment
'YOUR_API_KEY_HERE', // apiKey
'YOUR_API_SECRET_HERE' // secret
)

You can start consuming the SDK, through the limePay instance.

NOTE: You can connect to the Production environment by changing the Environment to Production