Point-of-sale icon

Register the application with Adyen

After you initialize the library, you must register the cash register application with Adyen.

POS Object

NameDescription

POS

POS object that represents the cash register application.

Method

NameDescription

RegisterApp

Registers the cash register application with Adyen. Registration requires a valid merchant account and API credentials to access the Adyen payments platform. A unique cash register identifier is required.

Parameters

Name Type Required Description
merchantAccount String -white_check_mark- The merchant account used for registration.
wsUser String -white_check_mark- Username of your API credential. In the Adyen Customer Area, go to Developers > API credentials to create a new credential. For more information, see API credentials.
password String -white_check_mark- Basic authentication password for the API credential. In the Adyen Customer Area, go to Developers > API credentials to add a new password. For more information, see Basic authentication.
appID String -white_check_mark- Unique ID of the cash register application.

Register the application once, after the cash register starts.

Callback

NameDescription

RegisterAppCB

The Register App Callback returns the result of registration, as well as any errors.

Parameters

Name Type Description
appObj AppInfo Object that holds POS information. The Adyen payments platform uses this information for application registration.
pedResult int Result denoting whether an error occurred on the PED. A value of 0 means no error occurred.
pspResult int Result denoting whether an error occurred on the PSP. A value of 0 means no error occurred.
libResult int Result denoting whether an error occurred in the Library. A value of 0 means no error occurred.
errorMessage String Error message describing what went wrong.