question

realariful avatar image
realariful asked David Marginian commented

How to use RetrieveDeviceStatus for Clover Pay Cloud using Clover Flex?

Hi,
I want to retrieve RetrieveDeviceStatus from the connected Clover Device. I am using following code using the standalone JS remote-pay SDK but I am getting following error. Please share some insights regarding this.


var devStatus = new sdk.remotepay.RetrieveDeviceStatusRequest();

console.log({devStatus: devStatus})

this.cloverConnector.RetrieveDeviceStatus(devStatus);


Error:
error TypeError: Cannot read property 'RetrieveDeviceStatus' of undefined

Clover FlexRemote Pay Cloud
10 |2000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered David Marginian commented
4 comments
10 |2000 characters needed characters left characters exceeded

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

Thank you David for your prompt reply.

I tried the part of the example code inside OnDeviceReady but I get an error after the Clover Flex Device is connected: Cannot read property "RetrieveDeviceStatus". Please find the image attached along with this.screenshot-from-3.png

0 Likes 0 ·
screenshot-from-3.png (339.8 KiB)

this.cloverConnector.RetrieveDeviceStatus is not a valid call. Please, look at our API documentation. You want this.cloverConnector.retrieveDeviceStatus(request).

0 Likes 0 ·
realariful avatar image realariful David Marginian ♦♦ ·

I am using according to the API Documentation. However, I am getting the same errors again. Please have a look at code image provided here.


Best Regardsscreenshot-from-4.png

0 Likes 0 ·
Show more comments

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