Skip to content

Commit 15824d8

Browse files
committed
Correct snippet in README
1 parent 73efc26 commit 15824d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,15 @@ For In-Person Payments integrations with the[Cloud Terminal API](https://docs.ad
341341
``` javascript
342342
// Step 1: Require the parts of the module you want to use
343343
const {Client, TerminalCloudAPI} from "@adyen/api-library";
344+
import Config, { RegionEnum } from "../config";
344345

345346
// Step 2: Initialize the client object
346-
const client = new Client({apiKey: "YOUR_API_KEY", environment: "LIVE", region: RegionEnum.US});
347+
const config = new Config({
348+
apiKey: "YOUR_API_KEY",
349+
environment: "LIVE",
350+
region: RegionEnum.US
351+
});
352+
const client = new Client(config);
347353

348354
// Step 3: Initialize the API object
349355
const terminalCloudAPI = new TerminalCloudAPI(client);

0 commit comments

Comments
 (0)