{"title":"Register the PED with Adyen using a StoreID","category":"default","creationDate":1776961627,"content":"<p>Use the <code>setStore<\/code> method to set a store ID for PED registration. After you have set the store ID, use <code>registerPed<\/code> to register the PIN entry device (PED) with the Adyen payments platform.<\/p>\n<h2>Class<\/h2>\n<table><thead><tr class=\"header\"><th>Name<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>MerchantPed <\/code><\/p>\n<\/td><td><p>You must inherit the properties and methods of the <code>MerchantPed<\/code> class from the <code>AdyenPed<\/code> class. This class used to implement all PED functionality. Implement the <code>MerchantPed<\/code> object yourself, and use the <code>AdyenPed<\/code> constructor with the <code>storeId<\/code> parameter.<\/p><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, <span class=\"bu\">String<\/span> store) { (..) }<\/a><\/code><\/pre><\/div><p>\u00a0<\/p><p>\u00a0<br>\n<\/p><\/td><\/tr><\/tbody><\/table>\n<h2 id=\"parameter\">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>storeID<\/code><\/td>\n<td>You can register a terminal using its\u00a0<code>storeID<\/code>\u00a0and the corresponding merchant account. Several \"stores\" can be configured under one merchant account.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To set a <code>storeID<\/code>, call the parent constructor using the <code>super()<\/code> method:<\/p>\n<h3 id=\"code-example\">Code example<\/h3>\n<pre><code class=\"language-java\">public MerchantPed(String address, String pedName, String storeId){\n    super(address, pedName, storeId);\n}<\/code><\/pre>\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>registerPed<\/code><\/p>\n<\/td><td>\n<p>Method used to authenticate and authorize the PED with the Adyen payments platform. 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<h3 id=\"parameter-1\">Parameter<\/h3>\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 a Ped object. Represents the PED that is processing the tender.\u00a0The\u00a0<code>AdyenPed<\/code>\u00a0class is extended with\u00a0<code>store<\/code>\u00a0data type that can be configured before registering a terminal. This will register the PED using the\u00a0<code>storeID<\/code>.<\/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<h3 id=\"callback-response-attribute\">Callback Response Attribute<\/h3>\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-using-a-storeid-jni","articleFields":{"id":"31490962","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-using-a-storeid-jni","title":"Register the PED with Adyen using a StoreID","content":"Use the setStore method to set a store ID for PED registration. After you have set the store ID, use registerPed to register the PIN entry device (PED) with the Adyen payments platform.\nClass\nNameDescription\nMerchantPed \nYou must inherit the properties and methods of the MerchantPed class from the AdyenPed class. This class used to implement all PED functionality. Implement the MerchantPed object yourself, and use the AdyenPed constructor with the storeId parameter.public AdyenPed(String address, String pedName, String store) { (..) }\u00a0\u00a0\n\nParameter\n\n\n\nName\nDescription\n\n\n\n\nstoreID\nYou can register a terminal using its\u00a0storeID\u00a0and the corresponding merchant account. Several \"stores\" can be configured under one merchant account.\n\n\n\nTo set a storeID, call the parent constructor using the super() method:\nCode example\npublic MerchantPed(String address, String pedName, String storeId){\n    super(address, pedName, storeId);\n}\nMethod\nNameDescription\nregisterPed\n\nMethod used to authenticate and authorize the PED with the Adyen payments platform. 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 a Ped object. Represents the PED that is processing the tender.\u00a0The\u00a0AdyenPed\u00a0class is extended with\u00a0store\u00a0data type that can be configured before registering a terminal. This will register the PED using the\u00a0storeID.\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 using a StoreID"},"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-using-a-storeid-jni"},"levels":8,"category":"In-person payments","category_color":"green","tags":["Register","Adyen","using","StoreID"]}}
