I am trying to print some dynamic text on the receipt of the merchant. I am using the SDK ReceiptRegistrationConnector class and I register the Uri for my ContentProvider class. The problem is that I receive the following error:
ResultStatus{statusCode=SERVICE_ERROR, statusMessage=null}
Here is the code I user to register:
```
public void registerReceiptPrint() {
if (CloverAccount.getAccount(context) == null) {
throw new Exception("User account is null!");
}
ReceiptRegistrationConnector connector = new ReceiptRegistrationConnector(context, CloverAccount.getAccount(context), null);
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
try {
connector.connect();
if(connector.isConnected()) {
connector.register(ReceiptProvider.AUTHORITY_URI);
}
} catch (RemoteException | ClientException | ServiceException | BindingException e) {
e.printStackTrace();
Timber.e(e, "Error registering authority!");
}
connector.disconnect();
return null;
}
}.execute();
}
```
I tried to run the clover example with the register option, but the same error occurs. Basically it doesn't work as explained here
Any ideas why is that?