{"title":"Key steps","category":"default","creationDate":1776961627,"content":"<p>The key steps to integrate with the library are:<\/p>\n<ul>\n<li>\n<p><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/initialize-the-library-jni\">Initialize the library<\/a>\u00a0-\u00a0Create an\u00a0<code>initLibraryRequest<\/code> and\u00a0use it as parameter for your instance of\u00a0<code>MerchantPos.initLibrary()<\/code>. You can also set the\u00a0<a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/logging-jni\">Logging<\/a> level with\u00a0the\u00a0parameter <code>LogConfig.<\/code><\/p>\n<\/li>\n<li>\n<p><a href=\"\/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\">Register the application with the Adyen payments platform<\/a>\u00a0-\u00a0Create a <code>registerPosRequest<\/code> object, use it as parameter for \u00a0<code>MerchantPos.registerPos()<\/code><\/p>\n<\/li>\n<li>\n<p><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/registering-the-ped-jni\">Registering the PED<\/a>\u00a0-\u00a0Instantiate a \u00a0<code>MerchantPed<\/code>\u00a0 object that uses the \u00a0<code>AdyenPed<\/code>\u00a0 constructor with or<strong>\u00a0<\/strong>without the\u00a0<code>storeId<\/code> parameter.<\/p>\n<\/li>\n<li>\n<p><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/process-a-basic-transaction-jni\">Process a basic transaction<\/a>\u00a0- Create a tender, pass tender options and handle callbacks.<\/p>\n<\/li>\n<li>\n<p><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/cancel-or-refund-a-transaction-jni\">Cancel or refund a transaction<\/a>\u00a0- Cancel or refund a transaction on a PED, with a PSP or Tender reference or partially refund a transaction.<\/p>\n<\/li>\n<li>\n<p><a href=\"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni\/exit-the-library-jni\">Exit the library<\/a><\/p>\n<\/li>\n<\/ul>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni","articleFields":{"id":"24217571","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","title":"Key steps","content":"The key steps to integrate with the library are:\n\n\nInitialize the library\u00a0-\u00a0Create an\u00a0initLibraryRequest and\u00a0use it as parameter for your instance of\u00a0MerchantPos.initLibrary(). You can also set the\u00a0Logging level with\u00a0the\u00a0parameter LogConfig.\n\n\nRegister the application with the Adyen payments platform\u00a0-\u00a0Create a registerPosRequest object, use it as parameter for \u00a0MerchantPos.registerPos()\n\n\nRegistering the PED\u00a0-\u00a0Instantiate a \u00a0MerchantPed\u00a0 object that uses the \u00a0AdyenPed\u00a0 constructor with or\u00a0without the\u00a0storeId parameter.\n\n\nProcess a basic transaction\u00a0- Create a tender, pass tender options and handle callbacks.\n\n\nCancel or refund a transaction\u00a0- Cancel or refund a transaction on a PED, with a PSP or Tender reference or partially refund a transaction.\n\n\nExit the library\n\n","type":"page","locale":"pt","boost":15,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"Java Native Interface integration","lvl5":"Key steps"},"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":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/java-native-interface-integration\/key-steps-jni"},"levels":6,"category":"In-person payments","category_color":"green","tags":["steps"]}}
