{"title":"Log in","category":"default","creationDate":1776961627,"content":"<h2 id=\"steps\">Steps<\/h2>\n<ol>\n<li>\n<p>After retrieving login details, your app should call the method\u00a0[<code>Adyen loginWithMerchantCode:withUsername:withPassword:andCompletion:<\/code>]. This method returns immediately and continues to run asynchronously.<br \/>\nAdyen will provide you with the Merchant code, Username and Password.<\/p>\n<\/li>\n<li>\n<p>Once the method has completed, either by logging in successfully, or with an error, the completion block will be called, and your app can process the results.<\/p>\n<\/li>\n<\/ol>\n<p>Here is a login code example:<\/p>\n<pre><code class=\"language-objectivec\">Adyen* adyen = [Adyen sharedInstance];\n[Adyen loginWithMerchantCode:merchantCode\n                withUsername:username\n                withPassword:password\n          andCompletionBlock:^(NSError*error){\n    if(error) {\n        \/\/ process login-error\n    } else {\n        \/\/ login was successful!\n    }\n}];<\/code><\/pre>\n<div class=\"sc-notice note\"><div>\n<p>If an error occurs, it will be one of the errors in the Adyen error-domain.<\/p>\n<\/div><\/div>\n<div class=\"sc-notice info\"><div>\n<p>Generally, logging in does not have to happen each time your app starts up. The Adyen toolkit remembers the last successful login\u00a0and uses those credentials. To check whether a successful login has already happened, use the [<code>Adyen isLoggedIn<\/code>] method.<\/p>\n<\/div><\/div>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/key-steps-ios\/log-in-ios","articleFields":{"id":"31504366","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\/log-in-ios","title":"Log in","content":"Steps\n\n\nAfter retrieving login details, your app should call the method\u00a0[Adyen loginWithMerchantCode:withUsername:withPassword:andCompletion:]. This method returns immediately and continues to run asynchronously.\nAdyen will provide you with the Merchant code, Username and Password.\n\n\nOnce the method has completed, either by logging in successfully, or with an error, the completion block will be called, and your app can process the results.\n\n\nHere is a login code example:\nAdyen* adyen = [Adyen sharedInstance];\n[Adyen loginWithMerchantCode:merchantCode\n                withUsername:username\n                withPassword:password\n          andCompletionBlock:^(NSError*error){\n    if(error) {\n        \/\/ process login-error\n    } else {\n        \/\/ login was successful!\n    }\n}];\n\nIf an error occurs, it will be one of the errors in the Adyen error-domain.\n\n\nGenerally, logging in does not have to happen each time your app starts up. The Adyen toolkit remembers the last successful login\u00a0and uses those credentials. To check whether a successful login has already happened, use the [Adyen isLoggedIn] method.\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"iOS integration","lvl5":"Key steps","lvl6":"Log in"},"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":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/ios-integration\/key-steps-ios\/log-in-ios"},"levels":7,"category":"In-person payments","category_color":"green","tags":[]}}
