Skip to content

Commit 0574adb

Browse files
committed
Minor corrections
1 parent 8bbbe2b commit 0574adb

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

CloudDeviceApi.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Cloud Device API
22

3-
The [Cloud Device API](https://docs.adyen.com/api-explorer/cloud-device-api/1/overview) is our solution to create best-in-class In-person Payments integrations.
3+
The [Cloud Device API](https://docs.adyen.com/api-explorer/cloud-device-api/1/overview) is our solution to create best-in-class in-person payments integrations.
44

55
With the Cloud device API you can:
66

7-
- Send Terminal API requests to a cloud endpoint. You can use this communication method when it is not an option to send Terminal API requests over your local network directly to a payment terminal.
8-
- Check the cloud connection of a payment terminal or of a device used in a Mobile solution for in-person payments.
7+
- send Terminal API requests to a cloud endpoint. You can use this communication method when it is not an option to send Terminal API requests over your local network directly to a payment terminal.
8+
- check the cloud connection of a payment terminal or of a device used in a Mobile solution for in-person payments.
99

1010
## Benefits of the Cloud Device API
1111

@@ -38,7 +38,7 @@ const client = new Client(config);
3838
const cloudDeviceAPI = new CloudDeviceAPI(client);
3939
```
4040

41-
### Send a payment request
41+
### Send a payment SYNC request
4242

4343
```javascript
4444

@@ -100,7 +100,7 @@ const response = await cloudDeviceAPI.sendSync(
100100

101101
### Send a payment ASYNC request
102102

103-
If you choose to receive the response asynchronously, you only need to use a different method (`sendAsync()`).
103+
If you choose to receive the response asynchronously, you only need to use a different method (`sendAsync`).
104104
Don't forget to set up [event notifications](https://docs.adyen.com/point-of-sale/design-your-integration/notifications/event-notifications/) in the CA to be able to receive the Cloud Device API responses.
105105

106106
```javascript
@@ -149,7 +149,7 @@ console.log(deviceStatus.status);
149149
150150
### Error handling
151151
152-
In case of error try-catch the `CloudDeviceApiError` to understand what went wrong.
152+
In case of error, you can try-catch the `CloudDeviceApiError` to understand what went wrong.
153153
154154
```javascript
155155
try {
@@ -177,11 +177,12 @@ const encryptionCredentialDetails: EncryptionCredentialDetails = {
177177
Passphrase: "myPassphrase"
178178
};
179179

180-
const response: CloudDeviceApiResponse = await cloudDeviceAPI.sendEncryptedSync("YOUR_MERCHANT_ACCOUNT", "V400m-123456789", cloudDeviceApiRequest, encryptionCredentialDetails);
180+
const response: CloudDeviceApiResponse = await cloudDeviceAPI.sendEncryptedSync(
181+
"YOUR_MERCHANT_ACCOUNT", "V400m-123456789", cloudDeviceApiRequest, encryptionCredentialDetails);
181182
console.log("response:", response);
182183
```
183184
184-
In case of asynchronous integration, you can decrypt the payload of the event notification using `decryptNotification()` method.
185+
In case of asynchronous integration, you can decrypt the payload of the event notifications using `decryptNotification()` method.
185186
186187
```javascript
187188

0 commit comments

Comments
 (0)