question

realariful avatar image
realariful asked David Marginian Deactivated 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

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented
4 comments
10 |2000

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

realariful avatar image realariful commented ·

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)
David Marginian avatar image David Marginian ♦♦ realariful commented ·

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 ♦♦ commented ·

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