--- title: "Register the application with Adyen" url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/register-the-application-with-the-adyen-payments-platform-jni" source_url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/register-the-application-with-the-adyen-payments-platform-jni.md" canonical: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/register-the-application-with-the-adyen-payments-platform-jni" last_modified: "2019-05-21T12:04:00+02:00" language: "en" --- # Register the application with Adyen [View source](/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/register-the-application-with-the-adyen-payments-platform-jni.md) ## Class | Name | Description | | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | `MerchantPos` | Extends `AdyenPos`. Class used to implement all functions that do not involve the PED. Implement the `MerchantPos` object yourself. | ## Method | Name | Description | | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `registerPos` | Authenticates and authorizes a POS application with the Adyen payments platform. Do this before processing transactions using a POS.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](/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/process-a-basic-transaction-jni/handle-and-extract-data-from-callbacks-jni) for more on extracting data from an event or callback. | ## registerPosRequest Parameter | Name | Description | | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `registerPosRequest` | Signature of the `registerPos` method. One parameter object used to hold all the attributes. Use a builder pattern to create a `registerPosRequest` object and use it as parameter for  `MerchantPos.registerPos()` | ## registerPosRequest Attributes | Name | Type | Required | Description | | --------------------- | ------ | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | `merchantAccountCode` | String | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The merchant account name | | `user` | String | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The username of your API credential. In the Adyen Customer Area, go to **Developers** > **API credentials** to create a new credential. | | `password` | String | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Basic authentication password for your API credential. In the Adyen Customer Area, go to **Developers** > **API credentials** to generate a new password. | | `posId` | String | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The unique POS ID. | ## Callback | Name | Description | | --------------------- | ------------------------------------------ | | `registerPosCallback` | Returns the result of registering the POS. | ## Callback Response Attribute | Name | Description | | --------- | ----------------------------------------------------------------------------------------------------- | | `PosInfo` | Contains the PosInfo object, which includes the PSP configuration as maintained in the Customer Area. |