I want to generate payment receipt available at "https://sandbox.dev.clover.com/p/5RRE8T8WC4CMC" url.
We tried with the code like,
PrintJob printJob = new StaticPaymentPrintJob.Builder().paymentId("5RRE8T8WC4CMC").build();
printJob.print(getBaseContext(),account,printer);
and found the error like below,
onHandleIntent(PrinterIntentService.java:391): print failed, printer: Printer{uuid=K0DVA7JEVKSZ2, type=FIGLEAF_BT, name=Clover Printer 0341, mac=D4:95:24:C8:B4:C6, ip=null, category=RECEIPT}
java.lang.NullPointerException
at com.clover.common2.printer.SignatureHelperV3.getPaymentFromOrder(SignatureHelperV3.java:280)
at com.clover.common2.printer.SignatureHelperV3.<init>(SignatureHelperV3.java:67)
at com.clover.engine.services.PrinterIntentService.onHandleIntent(PrinterIntentService.java:302)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Can anyone please help about this error?