{"title":"Register the PED with Adyen","category":"default","creationDate":1776961627,"content":"<h2>Class<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 11%\"><col style=\"width: 88%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>MerchantPed <\/code><\/p>\n<\/td><td>\n<p>Extends <code>AdyenPed<\/code>. Class used to implement all PIN entry device (PED) functionality. Implement the <code>MerchantPed<\/code> object yourself, and use the <code>AdyenPed<\/code> constructor without <code>storeId<\/code> parameter.<div class=\"sourceCode\" id=\"cb1\"><pre class=\"sourceCode java\"><code class=\"sourceCode java\"><a class=\"sourceLine\" id=\"cb1-1\" title=\"1\"><span class=\"kw\">public<\/span> <span class=\"fu\">AdyenPed<\/span>(<span class=\"bu\">String<\/span> address, <span class=\"bu\">String<\/span> pedName) { (..) }<\/a><\/code><\/pre><\/div><\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"method\">Method<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 8%\"><col style=\"width: 91%\"><\/colgroup><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>registerPed<\/code><\/p>\n<\/td><td>\n<p>Method used to authenticate and authorize the PED 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=\"parameter\">Parameter<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 5%\"><col style=\"width: 5%\"><col style=\"width: 7%\"><col style=\"width: 80%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th>Type<\/th><th>Required<\/th><th><p>Description<\/p><\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>ped<\/code><\/p>\n<\/td><td>\n<p>Ped<\/p>\n<\/td><td>\n<p><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/p>\n<\/td><td>\n<p>Instance of <code>MerchantPed<\/code>. Represents the PED that is processing the tender.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"callback\">Callback<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 17%\"><col style=\"width: 81%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p>\u00a0<code>registerPedCallback<\/code><\/p>\n<\/td><td>\n<p>Returns the result of registering the PED.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"callback-response-attribute\">Callback Response Attribute<\/h2>\n<table style=\"width:100%;\"><colgroup><col style=\"width: 7%\"><col style=\"width: 92%\"><\/colgroup><thead><tr class=\"header\"><th><p>Name<\/p><\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>pedInfo<\/code><\/p>\n<\/td><td>\n<p>Contains the PED info, the result of registering the PED.<\/p>\n<\/td><\/tr><\/tbody><\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/registering-the-ped-jni\/register-the-ped-with-adyen-jni","articleFields":{"id":"24217575","type":"page","_expandable":{"operations":""},"status":"current"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/registering-the-ped-jni\/register-the-ped-with-adyen-jni","title":"Register the PED with Adyen","content":"Class\nNameDescription\nMerchantPed \n\nExtends AdyenPed. Class used to implement all PIN entry device (PED) functionality. Implement the MerchantPed object yourself, and use the AdyenPed constructor without storeId parameter.public AdyenPed(String address, String pedName) { (..) }\n\nMethod\nNameDescription\nregisterPed\n\nMethod used to authenticate and authorize the PED 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\nParameter\nNameTypeRequiredDescription\nped\n\nPed\n\n\n\nInstance of MerchantPed. Represents the PED that is processing the tender.\n\nCallback\nNameDescription\n\u00a0registerPedCallback\n\nReturns the result of registering the PED.\n\nCallback Response Attribute\nNameDescription\npedInfo\n\nContains the PED info, the result of registering the PED.\n","type":"page","locale":"pt","boost":13,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"Java Native Interface integration","lvl5":"Key steps","lvl6":"Registering the PED","lvl7":"Register the PED 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":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/registering-the-ped-jni","lvl7":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/registering-the-ped-jni\/register-the-ped-with-adyen-jni"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Register","Adyen"]}}
