{"title":"Handle the final state callback","category":"default","creationDate":1776961627,"content":"<h2 id=\"final-state-callback\">Final State Callback<\/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>TenderFinal<\/code><\/td>\n<td>When the transaction completes, it triggers the final state callback.<\/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>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>pedObj<\/code><\/td>\n<td><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/com-extension-for-windows-objects\/peddevice\">PedDevice<\/a><\/td>\n<td>PED object that represents the terminal.<\/td>\n<\/tr>\n<tr>\n<td><code>tenderObj<\/code><\/td>\n<td><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/com-extension-for-windows-objects\/tender\">Tender<\/a><\/td>\n<td>The tender that represents the transaction.<\/td>\n<\/tr>\n<tr>\n<td><code>finalObj<\/code><\/td>\n<td>FinalResponse<\/td>\n<td>The library returns a final header object, including final status and additional information.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"method\">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>GetResponseHeader<\/code><\/td>\n<td>Invoke this method on the <code>finalObj<\/code> to get the final status of a transaction and any additional information. Access the header object and additional data with this method, and store this information in private parameters.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sc-notice note\"><div>\n<p>To retrieve the final state of a tender, and determine whether goods or services should be provided to the cardholder, see <a href=\"\/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\/determine-the-current-and-final-tender-state-com-extension\">Determining the current and final tender stat<\/a><a href=\"\/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\/determine-the-current-and-final-tender-state-com-extension\">e<\/a> .<\/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-final-state-callback-com-extension","articleFields":{"id":"25143516","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-final-state-callback-com-extension","title":"Handle the final state callback","content":"Final State Callback\n\n\n\nName\nDescription\n\n\n\n\nTenderFinal\nWhen the transaction completes, it triggers the final state callback.\n\n\n\nParameters\n\n\n\nName\nType\nDescription\n\n\n\n\npedObj\nPedDevice\nPED object that represents the terminal.\n\n\ntenderObj\nTender\nThe tender that represents the transaction.\n\n\nfinalObj\nFinalResponse\nThe library returns a final header object, including final status and additional information.\n\n\n\nMethod\n\n\n\nName\nDescription\n\n\n\n\nGetResponseHeader\nInvoke this method on the finalObj to get the final status of a transaction and any additional information. Access the header object and additional data with this method, and store this information in private parameters.\n\n\n\n\nTo retrieve the final state of a tender, and determine whether goods or services should be provided to the cardholder, see Determining the current and final tender state .\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 final state 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-final-state-callback-com-extension"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Handle","final","state","callback"]}}
