File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -341,9 +341,15 @@ For In-Person Payments integrations with the[Cloud Terminal API](https://docs.ad
341
341
``` javascript
342
342
// Step 1: Require the parts of the module you want to use
343
343
const {Client , TerminalCloudAPI } from "@adyen /api -library ";
344
+ import Config , { RegionEnum } from " ../config" ;
344
345
345
346
// 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);
347
353
348
354
// Step 3: Initialize the API object
349
355
const terminalCloudAPI = new TerminalCloudAPI (client);
You can’t perform that action at this time.
0 commit comments