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
1
npm install limepay
Copied!
1
go get github.com/LimePay/go-sdk
Copied!

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
1
const LimePaySDK = require('limepay');
2
const LimePay = await LimePaySDK.connect({
3
environment: LimePay.Environment.Sandbox
4
apiKey: 'YOUR_API_KEY_HERE',
5
secret: 'YOUR_API_SECRET_HERE'
6
});
Copied!
Once the .connect promise is being resolved you can start consuming the SDK with the LimePay instance.
1
import (
2
limePaySDK "github.com/LimePay/go-sdk"
3
"github.com/LimePay/go-sdk/envs"
4
"github.com/LimePay/go-sdk/errors"
5
"github.com/LimePay/go-sdk/types"
6
)
7
8
limePay, err := limePaySDK.Connect(
9
envs.Sandbox, // environment
10
'YOUR_API_KEY_HERE', // apiKey
11
'YOUR_API_SECRET_HERE' // secret
12
)
Copied!
You can start consuming the SDK, through the limePay instance.
NOTE: You can connect to the Production environment by changing the Environment to Production
Last modified 2yr ago