Setting up the SDK

Installing the SDK

Use a package manager to download and install the SDK you want to use.

pip install ecommClover
yarn add clover-ecomm-sdk

Configuring the SDK

To use the SDK, you'll need to configure it using the following values:

The access_token is needed to initialize the SDK.

clover.access_token = "Bkk321..."
const clover = require('clover-ecomm-sdk')('Bkk312...');

The merchant's public key is required to tokenize the customer's card data.

clover.api_key = "fhjk1..."
const API_KEY = 'fhjk1...';

Setting environment variables in Node

If your app is using the Node SDK, create a .env file in your project root directory.

ACCESS_TOKEN={access_token}
API_KEY={api_key}
ENVIRONMENT=sandbox

📘

NOTE

For your app in production environments, set the ENVIRONMENT as production.


Did this page help you?