{"title":"Initialize the library","category":"default","creationDate":1776961627,"content":"<p>Before the library can be used, you must initialize it using the <code>InitLibrary<\/code> method.<\/p>\n<h2 id=\"pos-object\">POS Object<\/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>POS<\/code><\/td>\n<td>POS object representing the cash register application.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"method\">Method<\/h2>\n<table><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>InitLibrary<\/code><\/p>\n<\/td><td>\n<p>Initializes the library and sets the environment, merchant name, cash register name, integrator name, and library flags.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2 id=\"parameters\">Parameters<\/h2>\n<table><thead><tr class=\"header\"><th>Name<\/th><th>Type<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>environment<\/code><\/p>\n<\/td><td>\n<p>long<\/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>Environment flag. Set as <code>1<\/code> for the Test environment and <code>2<\/code> for the Live environment.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>merchantName<\/code><\/p>\n<\/td><td>\n<p>String<\/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>The merchant account used for the cash register application registration.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>appName<\/code><\/p>\n<\/td><td>\n<p>String<\/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>The cash register name.Format this value like so: <strong>Cash register company and product<\/strong>\u00a0\/<strong>\u00a0Cash register product version<\/strong>\u00a0\/ <strong>Adyen integration name<\/strong>\u00a0\/ <strong>Adyen integration version<\/strong>. For example,\u00a0 <strong>Acme Corp POS<\/strong> \/ <strong>1.2.1<\/strong> \/ <strong>Acme Adyen connector<\/strong> \/ <strong>0.1\u00a0<\/strong><\/p>\n<\/td><\/tr><tr><td>\n<p><code>flags<\/code><\/p>\n<\/td><td>\n<p>long<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<p>A set of <a href=\"\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/initialize-the-library-com-extension\/library-flags\">library flags<\/a>.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>integratorName<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<p><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/p>\n<\/td><td>\n<p>The name of the integrator company for logging.This value should be the name of the company deploying\u00a0cash\u00a0register\u00a0or\u00a0Point-of-Sale\u00a0solution, for example,\u00a0\u00a0<strong>Retail\u00a0Consultancy\u00a0Corp.<\/strong><\/p>\n<\/td><\/tr><\/tbody><\/table>\n<div class=\"sc-notice note\"><div>\n<p>Check the <code>intCallResult<\/code> value immediately to indicate if the C library received the request without error.<\/p>\n<\/div><\/div>\n<h2 id=\"callback\">Callback<\/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>InitLibraryCB<\/code><\/td>\n<td>Returns the result of the library initialization.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/initialize-the-library-com-extension","articleFields":{"id":"25143504","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"01-05-2019 13:10"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/initialize-the-library-com-extension","title":"Initialize the library","content":"Before the library can be used, you must initialize it using the InitLibrary method.\nPOS Object\n\n\n\nName\nDescription\n\n\n\n\nPOS\nPOS object representing the cash register application.\n\n\n\nMethod\nNameDescription\nInitLibrary\n\nInitializes the library and sets the environment, merchant name, cash register name, integrator name, and library flags.\n\nParameters\nNameTypeRequiredDescription\nenvironment\n\nlong\n\n\n\nEnvironment flag. Set as 1 for the Test environment and 2 for the Live environment.\n\nmerchantName\n\nString\n\n\n\nThe merchant account used for the cash register application registration.\n\nappName\n\nString\n\n\n\nThe cash register name.Format this value like so: Cash register company and product\u00a0\/\u00a0Cash register product version\u00a0\/ Adyen integration name\u00a0\/ Adyen integration version. For example,\u00a0 Acme Corp POS \/ 1.2.1 \/ Acme Adyen connector \/ 0.1\u00a0\n\nflags\n\nlong\n\n\n\nA set of library flags.\n\nintegratorName\n\nString\n\n\n\nThe name of the integrator company for logging.This value should be the name of the company deploying\u00a0cash\u00a0register\u00a0or\u00a0Point-of-Sale\u00a0solution, for example,\u00a0\u00a0Retail\u00a0Consultancy\u00a0Corp.\n\n\nCheck the intCallResult value immediately to indicate if the C library received the request without error.\n\nCallback\n\n\n\nName\nDescription\n\n\n\n\nInitLibraryCB\nReturns the result of the library initialization.\n\n\n","type":"page","locale":"pt","boost":14,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"COM extension for Windows integration","lvl5":"Key steps","lvl6":"Initialize the library"},"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\/com-extension-for-windows-integration","lvl5":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension","lvl6":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/com-extension-for-windows-integration\/key-steps-com-extension\/initialize-the-library-com-extension"},"levels":7,"category":"In-person payments","category_color":"green","tags":["Initialize","library"]}}
