{"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><colgroup><col style=\"width: 18%\"><col style=\"width: 81%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>TenderPrintReceipt<\/code><\/p>\n<\/td><td>\n<p>Returns the receipt for printing, and requests that the POS confirms it has received the receipt.<\/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=\"parameters\">Parameters<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 9%\"><col style=\"width: 7%\"><col style=\"width: 83%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Type<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>pedObj<\/code><\/p>\n<\/td><td>\n<p><a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/com-extension-for-windows-objects\/peddevice\">PedDevice<\/a><\/p>\n<\/td><td>\n<p>PED object that represents the terminal.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>tenderObj<\/code><\/p>\n<\/td><td>\n<p><a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/com-extension-for-windows-objects\/tender\">Tender<\/a><\/p>\n<\/td><td>\n<p>The tender associated with the additional data.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>receiptsObj<\/code><\/p>\n<\/td><td>\n<p><a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/com-extension-for-windows-objects\/receipts\">Receipts<\/a><\/p>\n<\/td><td>\n<p>Passes receipts to the cash register. Its structure is formatted for printing.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"confirmation-method\">Confirmation Method<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 14%\"><col style=\"width: 85%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>ConfirmPrintReceipt<\/code><\/p>\n<\/td><td>\n<p>Confirms that the receipt is received by the POS. Print receipts after the POS completed the transaction.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"parameters-1\">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>printed<\/code><\/td>\n<td>int<\/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>Returns the result of printing, as the cash register must confirm printing of receipts.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sc-notice note\"><div>\n<p>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.<\/p>\n<\/div><\/div>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/process-a-basic-transaction-com-extension\/handle-the-print-receipt-callback-com-extension","articleFields":{"id":"25143513","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/process-a-basic-transaction-com-extension\/handle-the-print-receipt-callback-com-extension","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\nTenderPrintReceipt\n\nReturns the receipt for printing, and requests that the POS confirms it has received the receipt.\n\n\nString values communicated to (and from) the cash register (whether from the terminal or not) should be in UTF-8 format.\n\nParameters\nNameTypeDescription\npedObj\n\nPedDevice\n\nPED object that represents the terminal.\n\ntenderObj\n\nTender\n\nThe tender associated with the additional data.\n\nreceiptsObj\n\nReceipts\n\nPasses receipts to the cash register. Its structure is formatted for printing.\n\nConfirmation Method\nNameDescription\nConfirmPrintReceipt\n\nConfirms that the receipt is received by the POS. Print receipts after the POS completed the transaction.\n\nParameters\n\n\n\nName\nType\nRequired\nDescription\n\n\n\n\nprinted\nint\n\nReturns the result of printing, as the cash register must confirm printing of receipts.\n\n\n\n\nConfirming 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.\n","type":"page","locale":"pt","boost":13,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"COM extension for Windows 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\/com-extension-for-windows-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension","lvl6":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/process-a-basic-transaction-com-extension","lvl7":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/process-a-basic-transaction-com-extension\/handle-the-print-receipt-callback-com-extension"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Handle","Print","Receipt","callback"]}}
