There are a few simple steps required to set up the app for your development environment.
- In the root of your checkout, create an .env file.
- Log in to your sandbox test merchant account.
- On the side-nav, select Setup > API Tokens.
-
In your .env file, add the following keys:
API_KEY= MERCHANT_ID=
-
On the API Tokens page, click the eye icon to reveal your token. Click Copy and paste the value in the .env file:
API_KEY={Private token}
-
On the API Tokens page, click Copy and paste the merchant ID value in the .env file:
API_KEY={Private token} MERCHANT_ID={Clover merchant ID}
- Save and close the .env file.
- Install the app’s dependencies by running
yarn install
.
Next, you can start the walkthrough in Adding the checkout component.