{"title":"Handle Dynamic Currency Conversion","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>TenderAdditionalData<\/code><\/td>\n<td>The callback is tender-based and thus has both a PED object as well as a Tender object as parameters. The header contains the DCC related information accessible via\u00a0<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\/handle-and-extract-data-from-callbacks-com-extension\">the standard mechanism<\/a>. This is a progress style event because it requires no cash register action. In this case, the cardholder is uncertain what to do the staff is aware of the options\/choice the cardholder is facing.<\/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 associated with the additional data.<\/td>\n<\/tr>\n<tr>\n<td><code>headerObj<\/code><\/td>\n<td>ResponseHdr<\/td>\n<td>Header object that includes generic statuses, information about merchant, additional data from the PED.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"dcc-returned-details\">DCC Returned Details<\/h2>\n<p>The DCC details extracted using <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\/handle-and-extract-data-from-callbacks-com-extension\">the standard mechanism<\/a>contain the following keys (values provided below are examples):<\/p>\n<table>\n<thead>\n<tr>\n<th><span translate=\"no\"><strong>additionalDataKey<\/strong><\/span><\/th>\n<th><span translate=\"no\"><strong>additionalDataValue<\/strong><\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>dcc.markup<\/td>\n<td>300<\/td>\n<\/tr>\n<tr>\n<td>dcc.commissionfee<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>dcc.exchangerate<\/td>\n<td>11180<\/td>\n<\/tr>\n<tr>\n<td>dcc.converted.amount.value<\/td>\n<td>1677<\/td>\n<\/tr>\n<tr>\n<td>dcc.converted.amount.currency<\/td>\n<td>USD<\/td>\n<\/tr>\n<tr>\n<td>dcc.org.amount.value<\/td>\n<td>1500<\/td>\n<\/tr>\n<tr>\n<td>dcc.org.amount.currency<\/td>\n<td>EUR<\/td>\n<\/tr>\n<tr>\n<td>dcc.source<\/td>\n<td>FX_exchange_rate<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"dcc-progress-events\">DCC Progress events<\/h2>\n<ul>\n<li>ASK_DCC<\/li>\n<li>DCC_ACCEPTED \/ DCC_REJECTED<\/li>\n<\/ul>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/handle-dynamic-currency-conversion-com-extension","articleFields":{"id":"25143520","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\/extras-com-extension\/handle-dynamic-currency-conversion-com-extension","title":"Handle Dynamic Currency Conversion","content":"Callback\n\n\n\nName\nDescription\n\n\n\n\nTenderAdditionalData\nThe callback is tender-based and thus has both a PED object as well as a Tender object as parameters. The header contains the DCC related information accessible via\u00a0the standard mechanism. This is a progress style event because it requires no cash register action. In this case, the cardholder is uncertain what to do the staff is aware of the options\/choice the cardholder is facing.\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 associated with the additional data.\n\n\nheaderObj\nResponseHdr\nHeader object that includes generic statuses, information about merchant, additional data from the PED.\n\n\n\nDCC Returned Details\nThe DCC details extracted using the standard mechanismcontain the following keys (values provided below are examples):\n\n\n\nadditionalDataKey\nadditionalDataValue\n\n\n\n\ndcc.markup\n300\n\n\ndcc.commissionfee\n0\n\n\ndcc.exchangerate\n11180\n\n\ndcc.converted.amount.value\n1677\n\n\ndcc.converted.amount.currency\nUSD\n\n\ndcc.org.amount.value\n1500\n\n\ndcc.org.amount.currency\nEUR\n\n\ndcc.source\nFX_exchange_rate\n\n\n\nDCC Progress events\n\nASK_DCC\nDCC_ACCEPTED \/ DCC_REJECTED\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"COM extension for Windows integration","lvl5":"Extras","lvl6":"Handle Dynamic Currency Conversion"},"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\/extras-com-extension","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/extras-com-extension\/handle-dynamic-currency-conversion-com-extension"},"levels":7,"category":"In-person payments","category_color":"green","tags":["Handle","Dynamic","Currency","Conversion"]}}
