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

Type Required

Description

libraryEnvironment

Environment (tick) The execution environment.

posId

String (tick) The unique POS ID.
integratorName String (tick)

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 (tick) Object containing logLevel. For more information on setting the log level, see Logging.

posName

String (error) The symbolic POS name.

appName

String (error)

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 (error) 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.