{"title":"Handle the Print Receipt callback","category":"default","creationDate":1776961627,"content":"<h2 id=\"requirements\">Requirements<\/h2>\n<p>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.\u00a0<\/p>\n<p>Card schemes have very specific requirements on what should be included on a receipt. These requirements differ per scheme and country\/region, and can change. Receipts generated by Adyen have been certified as compliant by the card schemes that we support.<\/p>\n<p>Card schemes will occasionally visit live stores to verify that receipts being generated are fully-compliant.<\/p>\n<div class=\"notices red\">\n<p>To prevent non-compliance and avoidable chargebacks, we strongly recommend using the Adyen-generated receipts without alterations. If you override this receipt data, or validate values against a hard-coded list, it is your responsibility to ensure that scheme requirements are met at all times.<\/p>\n<\/div>\n<h2 id=\"callback\">Callback<\/h2>\n<table><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>tenderPrintReceiptCallback<\/code><\/p>\n<\/td><td>\n<p>Returns the receipt for printing, and requests that the POS confirms it has received the receipt. For example, an authorization receipt which must be signed by the shopper.\u00a0<div class=\"sc-notice note\"><div>Trigger this callback by creating a tender with the\u00a0<code>tenderOption<\/code>\u00a0<code>receiptHandler<\/code>.<\/div><\/div><div class=\"sc-notice note\"><div>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.<\/div><\/div><\/p>\n<\/td><\/tr><\/tbody><\/table>\n<div class=\"sc-notice warning\"><div>\n<p>String values communicated to (and from) the cash register (whether from the terminal or not) should be in UTF-8 format.<\/p>\n<\/div><\/div>\n<h2 id=\"parameter\">Parameter<\/h2>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>tender<\/code><\/td>\n<td>Object used to hold the tender attributes.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"callback-response-attributes\">Callback Response Attributes<\/h2>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>additionalData<\/code><\/td>\n<td>Adyen returns the\u00a0<code>additionalData<\/code>\u00a0object, a generic container that can hold extra response fields<\/td>\n<\/tr>\n<tr>\n<td><code>tenderReference<\/code><\/td>\n<td>Reference the PED provides for the transaction, used in reporting on the plataforma de pagamentos da Adyen.<\/td>\n<\/tr>\n<tr>\n<td><code>tenderState<\/code><\/td>\n<td>Transaction state<\/td>\n<\/tr>\n<tr>\n<td><code>adyenResult<\/code><\/td>\n<td>Transaction result details<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"confirmation-method\">Confirmation Method<\/h2>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>confirmPrintReceipt<\/code><\/td>\n<td>Confirm that the receipt is received by the POS. Print receipts after the POS completed the transaction.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"parameters\">Parameters<\/h2>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>tender<\/code><\/td>\n<td>Tender<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>Use this as a key to confirm additional data.<\/td>\n<\/tr>\n<tr>\n<td><code>confirmation<\/code><\/td>\n<td>boolean<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>If set to true, the PED continues to process the tender. If set to false, the PED cancels the tender.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"determine-the-current-and-final-tender-state\">Determine the current and final tender state<\/h2>\n<p>Adyen provides a method to determine the current, or final, tender state. For more information, see\u00a0<a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/determine-the-current-and-final-tender-state-jni\">Determine the current and final tender state - JNI<\/a>.<\/p>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/handle-the-print-receipt-callback-jni","articleFields":{"id":"24217579","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/handle-the-print-receipt-callback-jni","title":"Handle the Print Receipt callback","content":"Requirements\nAdyen 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.\u00a0\nCard schemes have very specific requirements on what should be included on a receipt. These requirements differ per scheme and country\/region, and can change. Receipts generated by Adyen have been certified as compliant by the card schemes that we support.\nCard schemes will occasionally visit live stores to verify that receipts being generated are fully-compliant.\n\nTo prevent non-compliance and avoidable chargebacks, we strongly recommend using the Adyen-generated receipts without alterations. If you override this receipt data, or validate values against a hard-coded list, it is your responsibility to ensure that scheme requirements are met at all times.\n\nCallback\nNameDescription\ntenderPrintReceiptCallback\n\nReturns the receipt for printing, and requests that the POS confirms it has received the receipt. For example, an authorization receipt which must be signed by the shopper.\u00a0Trigger this callback by creating a tender with the\u00a0tenderOption\u00a0receiptHandler.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.\n\n\nString values communicated to (and from) the cash register (whether from the terminal or not) should be in UTF-8 format.\n\nParameter\n\n\n\nName\nDescription\n\n\n\n\ntender\nObject used to hold the tender attributes.\n\n\n\nCallback Response Attributes\n\n\n\nName\nDescription\n\n\n\n\nadditionalData\nAdyen returns the\u00a0additionalData\u00a0object, a generic container that can hold extra response fields\n\n\ntenderReference\nReference the PED provides for the transaction, used in reporting on the plataforma de pagamentos da Adyen.\n\n\ntenderState\nTransaction state\n\n\nadyenResult\nTransaction result details\n\n\n\nConfirmation Method\n\n\n\nName\nDescription\n\n\n\n\nconfirmPrintReceipt\nConfirm that the receipt is received by the POS. Print receipts after the POS completed the transaction.\n\n\n\nParameters\n\n\n\nName\nType\nRequired\nDescription\n\n\n\n\ntender\nTender\n\nUse this as a key to confirm additional data.\n\n\nconfirmation\nboolean\n\nIf set to true, the PED continues to process the tender. If set to false, the PED cancels the tender.\n\n\n\nDetermine the current and final tender state\nAdyen provides a method to determine the current, or final, tender state. For more information, see\u00a0Determine the current and final tender state - JNI.","type":"page","locale":"pt","boost":13,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"Java Native Interface integration","lvl5":"Key steps","lvl6":"Process a basic transaction","lvl7":"Handle the Print Receipt callback"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/point-of-sale","lvl2":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation","lvl3":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations","lvl4":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni","lvl6":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni","lvl7":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/handle-the-print-receipt-callback-jni"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Handle","Print","Receipt","callback"]}}
