Skip to content

Commit 0d9f69b

Browse files
committed
Add Terminal Regions in README
1 parent 8c61980 commit 0d9f69b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ For APIS that require your [Live URL Prefix](https://docs.adyen.com/development-
210210
``` typescript
211211
const { Client } = require('@adyen/api-library');
212212

213-
const client = new Client({apiKey: "YOUR_API_KEY", environment: "TEST", liveEndpointUrlPrefix: "YOUR_LIVE_URL_PREFIX"});
213+
const client = new Client({apiKey: "YOUR_API_KEY", environment: "LIVE", liveEndpointUrlPrefix: "YOUR_LIVE_URL_PREFIX"});
214214
```
215215

216216
### Usage in TypeScript
@@ -219,7 +219,7 @@ Alternatively, you can use the `Types` included in this module for Typescript an
219219

220220
``` typescript
221221
const { Client, CheckoutAPI, Types } = require('@adyen/api-library');
222-
const client = new Client({apiKey: "YOUR_API_KEY", environment: "TEST"});
222+
const client = new Client({apiKey: "YOUR_API_KEY", environment: "LIVE", liveEndpointUrlPrefix: "YOUR_LIVE_URL_PREFIX"});
223223

224224
const makePaymentsRequest = async () => {
225225
const paymentsRequest : Types.checkout.PaymentRequest = {
@@ -336,14 +336,14 @@ client.httpClient = httpClient;
336336
// ... more code
337337
```
338338

339-
### Using the Cloud Terminal API Integration
340-
In order to submit In-Person requests with [Terminal API over Cloud](https://docs.adyen.com/point-of-sale/design-your-integration/choose-your-architecture/cloud/) you need to initialize the client in a similar way as the steps listed above for Ecommerce transactions, but make sure to include `TerminalCloudAPI`:
339+
### Using the Cloud Terminal API
340+
For In-Person Payments integrations with the[Cloud Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/choose-your-architecture/cloud/), you must initialise the Client **setting the closest** [Region](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/#cloud):
341341
``` javascript
342342
// Step 1: Require the parts of the module you want to use
343343
const {Client, TerminalCloudAPI} from "@adyen/api-library";
344344

345345
// Step 2: Initialize the client object
346-
const client = new Client({apiKey: "YOUR_API_KEY", environment: "TEST"});
346+
const client = new Client({apiKey: "YOUR_API_KEY", environment: "LIVE", region: RegionEnum.US});
347347

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

0 commit comments

Comments
 (0)