question

mybmr avatar image
mybmr asked mybmr commented

How to get device id for clover device C500 or C550 ?

I am using below mentioned code to fetch device id and in other devices it is working fine.

Let me know if below mentioned code will be able to fetch device id of clover device C500 or C550 or not ? And if not then please let me know how to get device id of devices C500 or C550 without calling RESTApi "/devices" ?

Please find below attached code to get device id which I am using for android app.
Let me know if anything else needs to be done for the same.

Hoping to hear from you soon.
Thank you.

MerchantConnector mMerchantConnector;
mMerchantConnector = new MerchantConnector(SplashActivity.this, mAccount, null);
mMerchantConnector.getMerchant(new ServiceConnector.Callback<Merchant>() {

@Override
public void onServiceSuccess(Merchant result, ResultStatus status) {
String device_id = "";
try {
   device_id = result.getDeviceId();
} catch (Exception e) {
// TODO: handle exception
   device_id = "";
}
}
});
Clover Android SDK
1 comment
10 |2000

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

mybmr avatar image mybmr commented ·
Hello community team , Requesting you to provide solution to above mentioned question as soon as possible. Thank you.
0 Likes 0 ·

0 Answers

·

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