{"title":"create_tender_response","category":"default","creationDate":1776961627,"content":"<p>The\u00a0<code>create_tender_response<\/code>\u00a0contains the following data elements:<\/p>\n<table><thead><tr class=\"header\"><th>Data element<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>tender_reference<\/code><\/p>\n<\/td><td>\n<p>A reference to the tender provided by the PED.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>create_tender_status<\/code><\/p>\n<\/td><td>\n<p>The result of the tender creation.\u00a0An enum of type\u00a0<code>CREATE_TENDER_STATUS<\/code>\u00a0that indicates if the transaction started successfully.If the result is an error, review the\u00a0<code>library_result_code<\/code>\u00a0(library related errors) or the\u00a0<code>ped_result_code<\/code>\u00a0(PED originated errors) for more detail.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>library_result_code<\/code><\/p>\n<\/td><td>\n<p>An enum of type\u00a0<code>ADYEN_LIBRARY_RESULT<\/code>, populated when the library encounters a failure. If\u00a0<code>create_tender_status<\/code>\u00a0is an error, the\u00a0<code>library_result_code<\/code>must be checked\u00a0<strong>first<\/strong>\u00a0because it indicates if the library processed the transaction successfully.This parameter should be\u00a0<code>ADYEN_REMOTE_OK<\/code>. If not, an internal error occurred that should be reported to Adyen.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>ped_result_code<\/code><\/p>\n<\/td><td>\n<p>An enum of type\u00a0<code>PED_RESULT_CODE<\/code>\u00a0that indicates if an error has occurred on the PED. It can have a number of values:<ul><li markdown=\"1\"><ul><li>ADYLibraryResultCreateTenderRequestNull,<\/li><li markdown=\"1\">ADYLibraryResultTerminalIDMissing,<\/li><li markdown=\"1\">ADYLibraryResultTerminalIDEmpty,<\/li><li markdown=\"1\">ADYLibraryResultTransactionTypeInvalid,<\/li><li markdown=\"1\">ADYLibraryResultAmountCurrencyMissing,<\/li><li markdown=\"1\">ADYLibraryResultAmountCurrencyInvalid,<\/li><li markdown=\"1\">ADYLibraryResultAmountValueMissing,<\/li><li markdown=\"1\">ADYLibraryResultAmountValueInvalid,<\/li><li markdown=\"1\">ADYLibraryResultGratuityAmountCurrencyInvalid,<\/li><li markdown=\"1\">ADYLibraryResultGratuityAmountValueMissing,<\/li><li markdown=\"1\">ADYLibraryResultGratuityAmountValueInvalid,<\/li><li markdown=\"1\">ADYLibraryResultShopperEmailInvalid,<\/li><li markdown=\"1\">ADYLibraryResultRecurringContractNameInvalid,<\/li><li markdown=\"1\">ADYLibraryResultRecurringDetailNameInvalid,<\/li><li>ADYLibraryResultCreateTenderFailed,<br><br \/>\n<br><br \/>\n<\/li><\/ul><\/li><\/ul><p>The \"<span translate=\"no\"><strong>UNFINISHED_TENDER<\/strong><\/span>\" error specifies that a tender is still running on the PED and includes a\u00a0<code>tender_reference<\/code>\u00a0for the unfinished tender. Use this reference to either continue or cancel the unfinished tender. Subsequent callbacks refer to the unfinished tender.\u00a0<\/p><p>In both cases, continue or cancel, wait for the final callback on the unfinished tender before creating a new tender. The result is also required when the tender is\u00a0<strong>cancelled<\/strong>,\u00a0as there is no guarantee that the unfinished tender can be cancelled, for.<\/p><\/p>\n<\/td><\/tr><tr><td>\n<p>\u00a0<code>error_message<\/code><\/p>\n<\/td><td>\n<p>Message in case of an error.\u00a0<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<div class=\"sc-notice warning\"><div>\n<p>A <code>pspReference<\/code> and <code>authCode<\/code> will not be visible if the transaction was performed offline.<\/p>\n<\/div><\/div>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/create_tender_response","articleFields":{"id":"28869422","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\/structs\/create_tender_response","title":"create_tender_response","content":"The\u00a0create_tender_response\u00a0contains the following data elements:\nData elementDescription\ntender_reference\n\nA reference to the tender provided by the PED.\n\ncreate_tender_status\n\nThe result of the tender creation.\u00a0An enum of type\u00a0CREATE_TENDER_STATUS\u00a0that indicates if the transaction started successfully.If the result is an error, review the\u00a0library_result_code\u00a0(library related errors) or the\u00a0ped_result_code\u00a0(PED originated errors) for more detail.\n\nlibrary_result_code\n\nAn enum of type\u00a0ADYEN_LIBRARY_RESULT, populated when the library encounters a failure. If\u00a0create_tender_status\u00a0is an error, the\u00a0library_result_codemust be checked\u00a0first\u00a0because it indicates if the library processed the transaction successfully.This parameter should be\u00a0ADYEN_REMOTE_OK. If not, an internal error occurred that should be reported to Adyen.\n\nped_result_code\n\nAn enum of type\u00a0PED_RESULT_CODE\u00a0that indicates if an error has occurred on the PED. It can have a number of values:ADYLibraryResultCreateTenderRequestNull,ADYLibraryResultTerminalIDMissing,ADYLibraryResultTerminalIDEmpty,ADYLibraryResultTransactionTypeInvalid,ADYLibraryResultAmountCurrencyMissing,ADYLibraryResultAmountCurrencyInvalid,ADYLibraryResultAmountValueMissing,ADYLibraryResultAmountValueInvalid,ADYLibraryResultGratuityAmountCurrencyInvalid,ADYLibraryResultGratuityAmountValueMissing,ADYLibraryResultGratuityAmountValueInvalid,ADYLibraryResultShopperEmailInvalid,ADYLibraryResultRecurringContractNameInvalid,ADYLibraryResultRecurringDetailNameInvalid,ADYLibraryResultCreateTenderFailed,\n\nThe \"UNFINISHED_TENDER\" error specifies that a tender is still running on the PED and includes a\u00a0tender_reference\u00a0for the unfinished tender. Use this reference to either continue or cancel the unfinished tender. Subsequent callbacks refer to the unfinished tender.\u00a0In both cases, continue or cancel, wait for the final callback on the unfinished tender before creating a new tender. The result is also required when the tender is\u00a0cancelled,\u00a0as there is no guarantee that the unfinished tender can be cancelled, for.\n\n\u00a0error_message\n\nMessage in case of an error.\u00a0\n\n\nA pspReference and authCode will not be visible if the transaction was performed offline.\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"C library integration","lvl5":"Structs","lvl6":"create_tender_response"},"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\/structs","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/c-library-integration\/structs\/create_tender_response"},"levels":7,"category":"In-person payments","category_color":"green","tags":["create_tender_response"]}}
