{"title":"Handle the Dynamic Currency Conversion delegate","category":"default","creationDate":1776961627,"content":"<h2 id=\"delegate\">Delegate<\/h2>\n<p>The\u00a0<code>transactionSuggestsDcc<\/code>\u00a0delegate is called when the PED detects the shopper's card is in a different currency. The PED will then suggest converting the currency using Direct Currency Conversion. This delegate indicates the payment device is currently displaying this option to the shopper.\u00a0 The shopper can then decide if they want to convert based on the information provided in this delegate<\/p>\n<h3 id=\"parameters\">Parameters<\/h3>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: right;\">Name<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: right;\"><code>data<\/code><\/td>\n<td>ADYDynamicCurrencyConversionData<\/td>\n<td><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>The details of the DCC option.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"declaration-code-example\">Declaration code example<\/h3>\n<h4 id=\"objective-c\">Objective-C<\/h4>\n<pre><code class=\"language-objectivec\">- (void)transactionSuggestsDcc:(ADYDynamicCurrencyConversionData *)data;<\/code><\/pre>\n<h4 id=\"swift\">Swift<\/h4>\n<pre><code class=\"language-swift\">optional func transactionSuggestsDcc(_ data: ADYDynamicCurrencyConversionData!)<\/code><\/pre>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios\/handle-the-dynamic-currency-conversion-delegate","articleFields":{"id":"34121230","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios\/handle-the-dynamic-currency-conversion-delegate","title":"Handle the Dynamic Currency Conversion delegate","content":"Delegate\nThe\u00a0transactionSuggestsDcc\u00a0delegate is called when the PED detects the shopper's card is in a different currency. The PED will then suggest converting the currency using Direct Currency Conversion. This delegate indicates the payment device is currently displaying this option to the shopper.\u00a0 The shopper can then decide if they want to convert based on the information provided in this delegate\nParameters\n\n\n\nName\nType\nRequired\nDescription\n\n\n\n\ndata\nADYDynamicCurrencyConversionData\n\nThe details of the DCC option.\n\n\n\nDeclaration code example\nObjective-C\n- (void)transactionSuggestsDcc:(ADYDynamicCurrencyConversionData *)data;\nSwift\noptional func transactionSuggestsDcc(_ data: ADYDynamicCurrencyConversionData!)","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"iOS integration","lvl5":"Extras","lvl6":"Handle the Dynamic Currency Conversion delegate"},"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\/ios-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/extras-ios\/handle-the-dynamic-currency-conversion-delegate"},"levels":7,"category":"In-person payments","category_color":"green","tags":["Handle","Dynamic","Currency","Conversion","delegate"]}}
