Terminal-2 icon

Initialize the library

Class

Name

Description

MerchantPos

Extends AdyenPos. Class used to implement all functions that do not involve the PED. Implement the MerchantPos object yourself.

initLibraryRequest Parameter

Name Description
initLibraryRequest Object to hold parameters needed for library initialization. Use a builder pattern an initLibraryRequest and use it as parameter for (your instance of)  MerchantPos.initLibrary().  

Method

Name

Description

initLibrary

Method used to begin library Initialization.

This 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.

initLibraryRequest Attributes

Name

TypeRequired

Description

libraryEnvironment

Environment

-white_check_mark-

The execution environment.

posId

String

-white_check_mark-

The unique POS ID.

integratorName

String

-white_check_mark-

The name of the integrator company, defined for logging reasons.This value should be the name of the company deploying cash register or Point-of-Sale solution, for example,  Retail Consultancy Corp.

logConfig

LogConfig

-white_check_mark-

Object containing logLevel. For more information on setting the log level, see Logging.

posName

String

-x-

The symbolic POS name.

appName

String

-x-

The Integrator/Merchant App ID.Format this value like so: Cash register company and product / Cash register product version / Adyen integration name / Adyen integration version. For example,  Acme Corp POS / 1.2.1 / Acme Adyen connector / 0.1 

logLevel

String

-x-

Defines the level of logging provided.

Callback

Name

Description

initLibraryCallback

Returns the result of the library initialization.

Callback Response Attribute

Name Description
libraryResult The result of the initialization of the C Library.