Please any one guide me like how can I set listener at the time complete order. Actually I want to add dynamic text into HARD COPY print receipt on order wise.
Please any one guide me like how can I set listener at the time complete order. Actually I want to add dynamic text into HARD COPY print receipt on order wise.
You can use OrderConnector to listen for OrderUpdates:
https://clover.github.io/clover-android-sdk/com/clover/sdk/v3/order/OrderConnector.html
https://docs.clover.com/docs/using-order-connector
Note: Listening for Order updates has nothing to do with adding information to the receipt.
https://docs.clover.com/docs/smart-receipts
https://community.clover.com/questions/18335/how-to-add-custom-text-to-footer-of-receipt.html
This needs to be qualified a bit. There isn't a way to indefinitely listen for order updates because Android may remove your process because of memory / resource pressure from other apps. The best you can do is register your listener in a foreground service but even that is not guaranteed to keep it running.
The correct thing is to use Work Manager to periodically wake up and perform some work. This may not support your use case well however since Work Manager jobs aren't guaranteed to run at any particular time, and if you try to wake up frequently the OS is going to throttle your jobs.
I want to print dynamic text in Hardcopy print. Smart receipts just use only for static text. Can you please help me like how can i render below the hard copy receipt at last ?
David linked your two options above. You can use the Receipt Registration mechanism, with the caveat that it only applies to printed receipts, not web.
How can we append dynamic text at the time of print receipt in HARD COPY ?
Can you please advise me the place where we can add our text and this text append into receipt HARD COPY.
Note: Listening for Order updates has nothing to do with this. My original answer was answering your question "Please any one guide me like how can I set listener at the time complete order."
https://docs.clover.com/docs/smart-receipts
https://community.clover.com/questions/18335/how-to-add-custom-text-to-footer-of-receipt.html
I want to print dynamic text in Hardcopy print. Smart receipts just use only for static text. Can you please help me like how can i render below the hard copy receipt at last ?
2 People are following this question.