{"title":"Calls and callbacks","category":"default","creationDate":1776961627,"content":"<p>Calls and callbacks follow this flow:<\/p>\n<ol>\n<li>\n<p>Invoke a\u00a0method\u00a0to perform a\u00a0specific action.<\/p>\n<\/li>\n<li>\n<p>The invoked method invokes the synchronization helper method, specifying a parameter to determine which callback should be returned.<\/p>\n<\/li>\n<li>\n<p>The synchronization helper method waits until one of the following occurs:<\/p>\n<ol>\n<li>The system returns a callback<\/li>\n<li>A time-out of 20 seconds<\/li>\n<li>An exception.<\/li>\n<\/ol>\n<!-- list separator -->\n<p>\u00a0<\/p>\n<\/li>\n<li>\n<p>if the system returns a callback, the main flow resumes, and the application handles and processes the information returned in the callback.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"callback-parameter-order\">Callback Parameter Order<\/h2>\n<p>The order of parameters is defined in the C library defines the order of parameters but can not enforce it.\u00a0<\/p>\n<p>The <code>createTender<\/code>\u00a0callback returns a tender object. Use this to execute subsequent actions on a tender. Evaluate other arguments using the provided helper methods.<\/p>\n<p>Error Messages can be used directly in logging or feedback without helper methods.<\/p>\n<h2 id=\"actionable-vs-informational-callbacks\">Actionable vs. Informational Callbacks<\/h2>\n<p>Several callbacks occur during the processing of a tender. There are two types of callback: Actionable and Informational.<\/p>\n<ul>\n<li>Actionable callbacks\u00a0require action to complete the transaction.<\/li>\n<li>Informational\u00a0callbacks\u00a0can be logged\u00a0but are not required to complete a transaction.<\/li>\n<\/ul>\n<p>Actionable callbacks:<\/p>\n<ul>\n<li><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/handle-the-signature-callback-jni\">Signature Callback<\/a><\/li>\n<li><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/handle-the-additional-data-callback-jni\">AdditionalData Callback<\/a><\/li>\n<li><a href=\"\/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\">PrintReceipt Callback<\/a><\/li>\n<\/ul>\n<p>Informational callbacks:<\/p>\n<ul>\n<li><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/handle-progress-events-jni\">Progress Event Callback<\/a><\/li>\n<li><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/extras-jni\/handle-dynamic-currency-conversion-jni\">DCC Callback<\/a><\/li>\n<\/ul>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/calls-and-callbacks-jni","articleFields":{"id":"24217570","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"26-04-2019 13:09"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/calls-and-callbacks-jni","title":"Calls and callbacks","content":"Calls and callbacks follow this flow:\n\n\nInvoke a\u00a0method\u00a0to perform a\u00a0specific action.\n\n\nThe invoked method invokes the synchronization helper method, specifying a parameter to determine which callback should be returned.\n\n\nThe synchronization helper method waits until one of the following occurs:\n\nThe system returns a callback\nA time-out of 20 seconds\nAn exception.\n\n\n\u00a0\n\n\nif the system returns a callback, the main flow resumes, and the application handles and processes the information returned in the callback.\n\n\nCallback Parameter Order\nThe order of parameters is defined in the C library defines the order of parameters but can not enforce it.\u00a0\nThe createTender\u00a0callback returns a tender object. Use this to execute subsequent actions on a tender. Evaluate other arguments using the provided helper methods.\nError Messages can be used directly in logging or feedback without helper methods.\nActionable vs. Informational Callbacks\nSeveral callbacks occur during the processing of a tender. There are two types of callback: Actionable and Informational.\n\nActionable callbacks\u00a0require action to complete the transaction.\nInformational\u00a0callbacks\u00a0can be logged\u00a0but are not required to complete a transaction.\n\nActionable callbacks:\n\nSignature Callback\nAdditionalData Callback\nPrintReceipt Callback\n\nInformational callbacks:\n\nProgress Event Callback\nDCC Callback\n","type":"page","locale":"pt","boost":15,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"Java Native Interface integration","lvl5":"Calls and callbacks"},"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":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/calls-and-callbacks-jni"},"levels":6,"category":"In-person payments","category_color":"green","tags":["Calls","callbacks"]}}
