In order to install the SDK you will need to execute the following command:
npm install limepay
go get github.com/LimePay/go-sdk
Once you have installed the SDK you need to include it in your project and connect to API.
const LimePaySDK = require('limepay');const LimePay = await LimePaySDK.connect({environment: LimePay.Environment.SandboxapiKey: '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