question

kyle avatar image
kyle asked kyle answered

customizing paper receipt by attaching qr code with encrypted data at the end, for all apps

Hi all, I am trying to add some sort of unique qr code at the end of the receipt.

normally I think I would use smart receipt, https://docs.clover.com/build/smart-r... but I need to include custom data, and I need them to be encrypted.

then I came over the receipt edit example, https://github.com/clover/android-exa... I think I can do what ever I want here, but if I understand correctly, I can not modify the receipts printed using other apps (register app for example)

any suggestion on how to approach this?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

kyle avatar image
kyle answered

actually using the class ReceiptRegistrationProvider extends ContentProvider, I was able to attach extra info at the end.

Look at the receipt edit example, the ContentProvider was unregister after the print, modifying it will allow additional info attach to the end.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community