After you initialize the library, you must register the cash register application with Adyen.
POS Object
Name | Description |
---|---|
|
POS object that represents the cash register application. |
Method
Name | Description |
---|---|
|
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 | The merchant account used for registration. | |
wsUser |
String | 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 | 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 | Unique ID of the cash register application. |
Register the application once, after the cash register starts.
Callback
Name | Description |
---|---|
|
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. |