Skip to content

Commit 60dc349

Browse files
authored
Update README.md (#1179)
Update Local Terminal API Service `TerminalApiLocalService` usage with all the parameters required by the constructor
1 parent 867ef73 commit 60dc349

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,12 @@ var config = new Config
255255
LocalTerminalApiEndpoint = @"https://_terminal_:8443/nexo/" // _terminal_ example: `https://198.51.100.1:8443/nexo` (can be found in the WIFI settings of your terminal)
256256
};
257257
var client = new Client(config);
258-
ITerminalApiLocalService terminalApiLocalService = new TerminalApiLocalService(client);
258+
ITerminalApiLocalService terminalApiLocalService = new TerminalApiLocalService(
259+
client,
260+
new SaleToPoiMessageSerializer(),
261+
new SaleToPoiMessageSecuredEncryptor(),
262+
new SaleToPoiMessageSecuredSerializer()
263+
);
259264
// Asynchronous call (preferred)
260265
var saleToPOIResponse = await terminalApiLocalService.RequestEncryptedAsync(paymentRequest, encryptionCredentialDetails, new CancellationToken()); // Pass cancellation token or create a new one.
261266
// Synchronous (blocking) call

0 commit comments

Comments
 (0)