Returns

EnvironmentTokenResponse.token
EnvironmentTokenResponse!
required

The environment token used by RyePay.

Usage

import { RyeClient, Marketplace } from "@rye-api/rye-sdk";

const ryeClient = new RyeClient("<AUTH_HEADER>", "<SHOPPER_IP>");

const result = await ryeClient.getEnvironmentToken();