Hey, @Rohit Bhardwaj. Are you using the Android SDK or REST API to fetch the order data and interact with the printer?
Hey @Frank Faustino, I use the Android SDK and it's orderConnector to create the order and redirect it to the Register app using ACTION_START_REGISER Intent. I wanted to know if there is a way we could use userData json object to print it in the Order and Payment Receipts?
You can add arbitrary text or images to the bottom of receipts using the receipt registration mechanism: https://github.com/clover/android-examples/tree/master/receipteditexample
Give it a try and let me know if that works.
An alternative would be to redirect the user back to your app after payment from the Register app using ACTION_PAYMENT_PROCESSED
Intent and run your printing logic there.
I know how to print custom a message using the below line, and we have been using this to print the Order receipts so far, but when the app is redirected to Register app for Payment the whole control for printing is on the clover and not on us. Please advice if there is a way out.
TextPrintJob.Builder().text(message).build().print(context, mAccount)
2 People are following this question.
Way to skip LineItem's amount from total amount but LineItem should be show on receipt?
Attach labels to order for automatic printing
Where to add custom line item in android?
Question about onLineItemsAdded() in OrderV31Connector
Line Items are not creating when I place/create a new order using rest API