{"title":"Handle referrals","category":"default","creationDate":1776961627,"content":"<h2 id=\"delegate\">Delegate<\/h2>\n<p>The\u00a0<code>transactionRequiresReferral<\/code>\u00a0delegate\u00a0is called when a transaction requires referral.<\/p>\n<p>After this method has been called, transaction-processing will be paused until\u00a0<code>submitReferralWithCode<\/code>\u00a0is called on the given\u00a0<code>referralRequest<\/code>.<\/p>\n<p>This method must be implemented to ask for referral authorization code.<\/p>\n<h3 id=\"parameters\">Parameters<\/h3>\n<table><colgroup><col style=\"width: 16%\"><col style=\"width: 19%\"><col style=\"width: 8%\"><col style=\"width: 55%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th><p>Type<\/p><\/th><th><p>Required<\/p><\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td><pre><code>referralRequest<\/code><\/pre><\/td><td><p>ADYReferralRequest<\/p><\/td><td><p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p><\/td><td><p>Object containing referral data, and method to continue transaction processing with auth code.<\/p><\/td><\/tr><\/tbody><\/table>\n<h3 id=\"transactionrequiresreferral-code-example\">transactionRequiresReferral\u00a0code example<\/h3>\n<h4 id=\"objective-c\">Objective-C<\/h4>\n<pre><code class=\"language-objectivec\">- (void)transactionRequiresReferral:(ADYReferralRequest *)referralRequest;<\/code><\/pre>\n<h4 id=\"submit-code-example\">Submit code example<\/h4>\n<h4 id=\"objective-c-1\">Objective-C<\/h4>\n<pre><code class=\"language-objectivec\">- (void)submitReferralWithCode:(NSString *)code;<\/code><\/pre>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/key-steps-ios\/process-a-basic-transaction-ios\/handle-referrals-ios","articleFields":{"id":"34120824","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/key-steps-ios\/process-a-basic-transaction-ios\/handle-referrals-ios","title":"Handle referrals","content":"Delegate\nThe\u00a0transactionRequiresReferral\u00a0delegate\u00a0is called when a transaction requires referral.\nAfter this method has been called, transaction-processing will be paused until\u00a0submitReferralWithCode\u00a0is called on the given\u00a0referralRequest.\nThis method must be implemented to ask for referral authorization code.\nParameters\nNameTypeRequiredDescriptionreferralRequestADYReferralRequestObject containing referral data, and method to continue transaction processing with auth code.\ntransactionRequiresReferral\u00a0code example\nObjective-C\n- (void)transactionRequiresReferral:(ADYReferralRequest *)referralRequest;\nSubmit code example\nObjective-C\n- (void)submitReferralWithCode:(NSString *)code;","type":"page","locale":"pt","boost":13,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"iOS integration","lvl5":"Key steps","lvl6":"Process a basic transaction","lvl7":"Handle referrals"},"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\/key-steps-ios","lvl6":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/key-steps-ios\/process-a-basic-transaction-ios","lvl7":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/key-steps-ios\/process-a-basic-transaction-ios\/handle-referrals-ios"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Handle","referrals"]}}
