{"title":"Handle the final state callback","category":"default","creationDate":1776961627,"content":"<h2 id=\"callback\">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>finalCallback<\/code><\/td>\n<td>When the tender completes, it triggers the final state callback.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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>Additional data returned by Adyen\u00a0<\/td>\n<\/tr>\n<tr>\n<td><code>tenderReference<\/code><\/td>\n<td>Transaction reference provided by the PED (reported in Adyen back end)<\/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=\"final-states\">Final States<\/h2>\n<table>\n<thead>\n<tr>\n<th>State<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>DECLINED<\/td>\n<td>The transaction was declined.<\/td>\n<\/tr>\n<tr>\n<td>APPROVED<\/td>\n<td>The transaction was approved<\/td>\n<\/tr>\n<tr>\n<td>CANCELLED<\/td>\n<td>The transaction was cancelled.<\/td>\n<\/tr>\n<tr>\n<td>ERROR<\/td>\n<td>The transaction did not go through as an error occurred<\/td>\n<\/tr>\n<tr>\n<td>UNKNOWN<\/td>\n<td>The tender state is unknown, and it is not possible to determine it. If you are using the TxStore feature, you can check the transaction result there. If not, you can check the transactions menu on the PED.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","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-final-state-callback-jni","articleFields":{"id":"24217584","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-final-state-callback-jni","title":"Handle the final state callback","content":"Callback\n\n\n\nName\nDescription\n\n\n\n\nfinalCallback\nWhen the tender completes, it triggers the final state callback.\n\n\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\nAdditional data returned by Adyen\u00a0\n\n\ntenderReference\nTransaction reference provided by the PED (reported in Adyen back end)\n\n\ntenderState\nTransaction state\n\n\nadyenResult\nTransaction result details\n\n\n\nFinal States\n\n\n\nState\nDescription\n\n\n\n\nDECLINED\nThe transaction was declined.\n\n\nAPPROVED\nThe transaction was approved\n\n\nCANCELLED\nThe transaction was cancelled.\n\n\nERROR\nThe transaction did not go through as an error occurred\n\n\nUNKNOWN\nThe tender state is unknown, and it is not possible to determine it. If you are using the TxStore feature, you can check the transaction result there. If not, you can check the transactions menu on the PED.\n\n\n","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 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\/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-final-state-callback-jni"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Handle","final","state","callback"]}}
