Search

Are you looking for test card numbers?

Would you like to contact support?

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  .

Callback

Name

Description

tenderPrintReceiptCallback

Returns the receipt for printing, and requests that the POS confirms it has received the receipt. For example, an authorisation receipt which must be signed by the shopper. 

Trigger this callback by creating a tender with the tenderOption receiptHandler.

Confirm the print receipt callback before the POS begins printing the receipt. This will prevent an approved transaction from being cancelled because of printer failure.

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

Parameter

Name Description
tender Object used to hold the tender attributes.

Callback Response Attributes

Name Description
additionalData Adyen returns the additionalData object, a generic container that can hold extra response fields
tenderReference Reference the PED provides for the transaction, used in reporting on the Adyen payments platform.
tenderState Transaction state
adyenResult Transaction result details

Confirmation Method

Name Description
confirmPrintReceipt Confirm that the receipt is received by the POS. Print receipts after the POS completed the transaction.

Parameters

Name Type Required Description
tender Tender -white_check_mark- Use this as a key to confirm additional data.
confirmation boolean -white_check_mark- If set to true, the PED continues to process the tender. If set to false, the PED cancels the tender.

Determine the current and final tender state

Adyen provides a method to determine the current, or final, tender state. For more information, see Determine the current and final tender state - JNI.