Handle the Print Receipt callback

Requirements

Adyen provides certified receipts that are as short as possible while still meeting scheme requirements. For custom receipts, take care to include all data elements required by certification. Any issues that arise from not including these required data elements are at your own liability. 

For more information on the fields required for receipts, see Receipt requirements for card schemes.

Callback

Name Description

TenderPrintReceipt

Returns the receipt for printing, and requests that the POS confirms it has received the receipt.

String values communicated to (and from) the cash register (whether from the terminal or not) should be in UTF-8 format.

Parameters

Name

Type

Description

pedObj

PedDevice

PED object that represents the terminal.

tenderObj

Tender

The tender associated with the additional data.

receiptsObj

Receipts

Passes receipts to the cash register. Its structure is formatted for printing.

Confirmation Method

Name Description

ConfirmPrintReceipt

Confirms that the receipt is received by the POS. Print receipts after the POS completed the transaction.

Parameters

Name

Type

Required

Description

printed int (tick) Returns the result of printing, as the cash register must confirm printing of receipts.

Confirming whether the receipt has been printed is a mandatory step. The cash register must confirm this to the library and the PED to complete the tender.