question

chrispetchey avatar image
chrispetchey asked parquet76 answered

Remote Pay Cloud new WebSocket(endpoint, accessToken);

I'm trying to create a c# version of the Remote Pay Cloud example. Its going well except I dont understand what the code below does. Its creating a new WebSocket using the endpoint and accessToken, but I can't find any explanation of what its actually doing, which makes it hard for me to create a C# version

Any suggestions greatfully received

BrowserWebSocketImpl.prototype.createWebSocket = function (endpoint, accessToken) {

return new WebSocket(endpoint, accessToken);

};

Remote Pay CloudRemote Pay Windows
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
parquet76 avatar image
parquet76 answered

That is an internal detail of the SDK, not part of the example app. It sounds like you are trying to re-write the cloud SDK in .net, don't do that. If you want to use Remote Pay Cloud and do not want to use JavaScript just use the Rest Pay API - https://docs.clover.com/docs/rest-pay-overview

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community