{"title":"Register the application with Adyen","category":"default","creationDate":1776961627,"content":"<h2>Class<\/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>MerchantPos<\/code><\/td>\n<td>Extends <code>AdyenPos<\/code>. Class used to implement all functions that do not involve the PED. Implement the <code>MerchantPos<\/code> object yourself.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"method\">Method<\/h2>\n<table><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>registerPos<\/code><\/p>\n<\/td><td>\n<p>Authenticates and authorizes a POS application with the plataforma de pagamentos da Adyen. Do this before processing transactions using a POS.<div class=\"sc-notice note\"><div><\/p>\n<p>This method returns an immediate response of type <code>LibraryResult<\/code>. Check if this result is \"OK\", before continuing the operation. If the <code>LibraryResult<\/code> value is not \"OK\", the system will not return the related callback with the asynchronous result. See <a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\/handle-and-extract-data-from-callbacks-jni\">here<\/a> for more on extracting data from an event or callback.<\/p>\n<\/div><\/div>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"registerposrequest-parameter\">registerPosRequest Parameter<\/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>registerPosRequest<\/code><\/td>\n<td>Signature of the <code>registerPos<\/code> method. One parameter object used to hold all the attributes. Use a builder pattern to create a <code>registerPosRequest<\/code> object and use it as parameter for \u00a0<code>MerchantPos.registerPos()<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"registerposrequest-attributes\">registerPosRequest Attributes<\/h2>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Type<\/th>\n<th>Required<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>merchantAccountCode<\/code><\/td>\n<td>String<\/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 merchant account name<\/td>\n<\/tr>\n<tr>\n<td><code>user<\/code><\/td>\n<td>String<\/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 username of your API credential. In the Adyen Customer Area, go to <strong>Developers<\/strong> &gt; <strong>API credentials<\/strong> to create a new credential.<\/td>\n<\/tr>\n<tr>\n<td><code>password<\/code><\/td>\n<td>String<\/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>Basic authentication password for your API credential. In the Adyen Customer Area, go to <strong>Developers<\/strong> &gt; <strong>API credentials<\/strong> to generate a new password.<\/td>\n<\/tr>\n<tr>\n<td><code>posId<\/code><\/td>\n<td>String<\/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 unique POS ID.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"callback\">Callback<\/h2>\n<table><colgroup><col style=\"width: 22%\"><col style=\"width: 77%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>registerPosCallback<\/code><\/p>\n<\/td><td>\n<p>Returns the result of registering the POS.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"callback-response-attribute\">Callback Response Attribute<\/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>PosInfo<\/code><\/td>\n<td>Contains the PosInfo object, which includes the PSP configuration as maintained in the Customer Area.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/register-the-application-with-the-adyen-payments-platform-jni","articleFields":{"id":"24217574","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"21-05-2019 12:04"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/register-the-application-with-the-adyen-payments-platform-jni","title":"Register the application with Adyen","content":"Class\n\n\n\nName\nDescription\n\n\n\n\nMerchantPos\nExtends AdyenPos. Class used to implement all functions that do not involve the PED. Implement the MerchantPos object yourself.\n\n\n\nMethod\nNameDescription\nregisterPos\n\nAuthenticates and authorizes a POS application with the plataforma de pagamentos da Adyen. Do this before processing transactions using a POS.\nThis method returns an immediate response of type LibraryResult. Check if this result is \"OK\", before continuing the operation. If the LibraryResult value is not \"OK\", the system will not return the related callback with the asynchronous result. See here for more on extracting data from an event or callback.\n\n\nregisterPosRequest Parameter\n\n\n\nName\nDescription\n\n\n\n\nregisterPosRequest\nSignature of the registerPos method. One parameter object used to hold all the attributes. Use a builder pattern to create a registerPosRequest object and use it as parameter for \u00a0MerchantPos.registerPos()\n\n\n\nregisterPosRequest Attributes\n\n\n\nName\nType\nRequired\nDescription\n\n\n\n\nmerchantAccountCode\nString\n\nThe merchant account name\n\n\nuser\nString\n\nThe username of your API credential. In the Adyen Customer Area, go to Developers &gt; API credentials to create a new credential.\n\n\npassword\nString\n\nBasic authentication password for your API credential. In the Adyen Customer Area, go to Developers &gt; API credentials to generate a new password.\n\n\nposId\nString\n\nThe unique POS ID.\n\n\n\nCallback\nNameDescription\nregisterPosCallback\n\nReturns the result of registering the POS.\n\nCallback Response Attribute\n\n\n\nName\nDescription\n\n\n\n\nPosInfo\nContains the PosInfo object, which includes the PSP configuration as maintained in the Customer Area.\n\n\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"Java Native Interface integration","lvl5":"Key steps","lvl6":"Register the application with Adyen"},"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\/java-native-interface-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/register-the-application-with-the-adyen-payments-platform-jni"},"levels":7,"category":"In-person payments","category_color":"green","tags":["Register","application","Adyen"]}}
