question

jeffw avatar image
jeffw asked jeffw answered

Manual print receipt from within app

We've used all the relevant Static Print API's. We would like to be able to print the receipt from within our payment app flow instead of requiring manually pressing "print receipt" once payment has been completed (or turning on automatic receipts). Is there a way to do this?
Print
1 comment
10 |2000

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

sam avatar image sam commented ·

I'm not familiar with your particular flow but you should be able to trigger a print after the completion of the payment. If you're using the Secure Pay flow by launching ACTION_SECURE_PAY, listen for Activity#RESULT_OK - payment ok. Then run your static pay:

pj = new StaticReceiptPrintJob.Builder().order(o).build();
pj.print(getBaseContext(), mAccount);
0 Likes 0 ·

1 Answer

jeffw avatar image
jeffw answered
thanks @sam - our flow is within our own custom tender. We tried what you suggested but did not work.
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