transactionRequiresPrintedReceipt delegate is called when a receipt must be printed out by the app.
After this method has been called, transaction-processing will be paused until
confirmReceiptPrinted: is called on the given
This method must be implemented to print a receipt on paper, based on the data provided in the
Instead of calling
[ADYPrintReceiptRequest confirmReceiptPrinted:], it is also possible to cancel the transaction at this point by calling
[ADYTransactionRequest requestCancel]. If this is done, do not call
However, it is possible that
transactionRequiresPrintedReceipt: will be called a second time as part of the transaction-flow. If that happens, and it is not desirable to print out a receipt at that time, cancel the transaction again.
||ADYPrintReceiptRequest||Object containing receipt-data, and methods to continue transaction-processing.|
Declaration code example
- (void)transactionRequiresPrintedReceipt: (ADYPrintReceiptRequest *)printReceiptRequest;
func transactionRequiresPrintedReceipt(_ printReceiptRequest: ADYPrintReceiptRequest!)