Currently, we are sending notifications to the clover app after successfully paying and this creates a new print job using both:
new StaticReceiptPrintJob.Builder().order(o).build().print(MainActivity.this, account, printer);new StaticOrderPrintJob.Builder().order(o).build().print(MainActivity.this, account, printer);
Only problem is it's not consistent on printing successfully every time. It just shows "FAILURE" in the Printers app (with no reason) and looking at printer statuses using getPrintJobIds(PrintJobsContract.STATE_ERROR)it shows the failed print job ID's. Is there a way we can either A) retry printing by these print job ID's or B) clear the print queue so we can send another print job through?
Please help!