{"title":"Handle progress events","category":"default","creationDate":1776961627,"content":"<h2 id=\"implement-the-callback\">Implement the callback<\/h2>\n<p>Implement the\u00a0<code>tender_progress_CB<\/code>\u00a0and assign to the function pointer\u00a0<code>status_tender_progress<\/code>.\u00a0For more information on how to do this, see\u00a0<a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/calls-and-callbacks-c-library\/implement-callbacks-with-register_device_request\">Implement callbacks with register_device_request<\/a>.<\/p>\n<h3 id=\"code-example\">Code example<\/h3>\n<p>The declaration of the progress callback is:<\/p>\n<pre><code class=\"language-cpp\">void tender_progress_CB(response_header * response_header, ped_device_info *, void * echo_struct)<\/code><\/pre>\n<h2 id=\"handle-the-tender-progress-callback\">Handle the tender progress callback<\/h2>\n<p>The\u00a0<code>progress_callback<\/code>\u00a0provides additional information during the transaction regarding the progress of the transaction.\u00a0<\/p>\n<div class=\"sc-notice note\"><div>\n<p>The tender progress callback reports progress events. The PED returns event information to the cash register. Progress events do not require any action by the cash register. They They inform the staff and the shopper of what is happening on the PED. They may occur in any order, or may not occur at all. Do not use the progress callback for state machine flow or functional processing.<\/p>\n<\/div><\/div>\n<h3 id=\"parameters\">Parameters<\/h3>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 7%\"><col style=\"width: 92%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>ped_device_info<\/code><\/td><td>A pointer to a <code>ped_device_info<\/code> struct that defines the status and details of the PED.<\/td><\/tr><tr><td><code>response_header<\/code><\/td><td><p>For a description of the\u00a0<code>response_header<\/code>, see\u00a0<a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/key-steps-c-library\/process-a-basic-transaction-c-library\/handle-the-additional-data-callback-c-library\">additional data callback.<\/a><\/p><p>The\u00a0<code>response_header<\/code>\u00a0indicates the progress state of the transaction in the state data element, which is an enum of type\u00a0<code>TENDER_STATE<\/code>. Additional information might be provided in the\u00a0<code>additional_data_struct<\/code>\u00a0struct.<\/p><\/td><\/tr><\/tbody><\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/key-steps-c-library\/process-a-basic-transaction-c-library\/handle-progress-events-c-library","articleFields":{"id":"24217509","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/key-steps-c-library\/process-a-basic-transaction-c-library\/handle-progress-events-c-library","title":"Handle progress events","content":"Implement the callback\nImplement the\u00a0tender_progress_CB\u00a0and assign to the function pointer\u00a0status_tender_progress.\u00a0For more information on how to do this, see\u00a0Implement callbacks with register_device_request.\nCode example\nThe declaration of the progress callback is:\nvoid tender_progress_CB(response_header * response_header, ped_device_info *, void * echo_struct)\nHandle the tender progress callback\nThe\u00a0progress_callback\u00a0provides additional information during the transaction regarding the progress of the transaction.\u00a0\n\nThe tender progress callback reports progress events. The PED returns event information to the cash register. Progress events do not require any action by the cash register. They They inform the staff and the shopper of what is happening on the PED. They may occur in any order, or may not occur at all. Do not use the progress callback for state machine flow or functional processing.\n\nParameters\nNameDescriptionped_device_infoA pointer to a ped_device_info struct that defines the status and details of the PED.response_headerFor a description of the\u00a0response_header, see\u00a0additional data callback.The\u00a0response_header\u00a0indicates the progress state of the transaction in the state data element, which is an enum of type\u00a0TENDER_STATE. Additional information might be provided in the\u00a0additional_data_struct\u00a0struct.","type":"page","locale":"pt","boost":13,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"C library integration","lvl5":"Key steps","lvl6":"Process a basic transaction","lvl7":"Handle progress events"},"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\/c-library-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/key-steps-c-library","lvl6":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/key-steps-c-library\/process-a-basic-transaction-c-library","lvl7":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/key-steps-c-library\/process-a-basic-transaction-c-library\/handle-progress-events-c-library"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Handle","progress","events"]}}
