question

q-factor avatar image
q-factor asked Jacob Abrams answered

Recognize a device in test mode

Is there a way to check if my current clover device is in test mode, programmatically ?

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

Jacob Abrams avatar image
Jacob Abrams answered

There isn't an obvious method, but here's an easy hack: use OrderConnector to create a new order, then call getTestMode() on the returned order. You should probably delete the order after that.

10 |2000

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