Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.
With our Card reader on Android solution you can accept mobile in-person payments using a card reader as the payment interface, and process these payments on the Adyen payments platform.The card reader is connected with an Android mobile device through Bluetooth, or through USB using a dock. On the Android mobile device, payment requests are initiated from a POS app. On the card reader, the customer can tap, insert, or swipe their card, or use a digital wallet like Apple Pay.
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.
Requirement
Description
Integration type
You must have a POS app that is integrated with Terminal API.
You need the following API credentials: To get the SDK, you must have an API credential with an API key and only the Allow SDK download for POS developers role. To establish a communication session, you must have an API credential with an API key, a client key, and the Checkout webservice role.
To learn the outcome of refunds, set up Standard webhooks (if this hasn’t been done already).
Hardware
You need: An Android commercial off-the-shelf (COTS) mobile device. Must not be a payment terminal. An NYC1 card reader from Adyen and optionally an NYC1 dock. For PIN transactions your card reader needs to be an NYC1 model.See Android system requirements for the full hardware and software requirements.
Limitations
Check the countries/regions, payment methods, and functionality that we support for Card reader on Android.
Setup steps
Before you begin: Ask our Support Team to enable your Adyen test account for using our Mobile solutions. In your Customer Area, order a test NYC1 card reader and a test card, and assign the reader to your store. If you want to disable PIN support for NYC1 card readers in the US from Mobile SDK for Android version 2.9.0 or later, contact our Support Team and ask them to disable PIN support on the company, merchant, or store level.
How it works
Sample app
Hit the ground running with our Android sample app.To build a Tap to Pay on Android solution:
Add the Mobile SDK for Android to your project, either using an API key.
Implement a server-to-server API request to establish a secure communication session.
In your POS app, enable the transaction functionality of the SDK.
From your POS app, call the warmup function to speed up initiating transactions.
In your POS app, implement handling payments using the SDK.
This creates the following flow:
Your Android POS app creates a Terminal API payment request, or receives a Terminal API payment request from your backend.
The POS app passes the payment request to the Android Mobile SDK.
The SDK initiates the transaction on the card reader.
To complete the payment, the customer taps the card reader with their payment card or phone (or other device) that has a digital wallet like Apple Pay.
The SDK passes the Terminal API payment response to the POS app.
In your POS app, implement handling refunds using the SDK.
If the same device will be used at multiple locations, implement clearing the communication session.
1. Add the SDK to your project
You can add the Mobile SDK for Android to your POS app through a private Adyen repository. To get access, you need to have an Adyen API key that is used only for the purpose of getting the SDK.Our SDK only runs on Android 12 or later. You can still target earlier Android versions, but our SDK will not initialize.To add the Mobile SDK to your project, you need to create an API credential with an API key that only has the Allow SDK download for POS developers role.This API key is only meant to be used to get access to the SDK repository. To make a sessions request, you need a different API key.You can share this API key with anybody in your team who needs to get the SDK, or you can create multiple API keys for internal use.To add the SDK to your project:
In your Customer Area create an API credential with an API key:
Go to Developers > API credentials, and select Create new credential.
Under Payments > Credential type select Web service user and then select Create credential.
Under Server settings > Authentication select the API key tab and then select Generate API key.
Select the copy icon **and save your API key in a secure location.
Go to Permissions > Roles > POS, select Allow SDK download for POS developers, and deselect any other permissions and roles.Contact Support Team if you don’t see the Allow SDK download for POS developers role.
Select Save changes.
In the repositories block of your project, usually defined in your settings.gradle file, add the URL to the remote repository where the SDK is stored, and add the API key that you created in the previous step.
In your project’s build.gradle file, add the package dependencies.
To find the latest val version check the release notes for the Mobile SDK for Android.
For the build type, note that -debug can only access the test environment, and -release can only access the live environment.
In case of other custom build variants, use <buildVariantName>Implementation 'com.adyen.ipp:pos-mobile-<type>:$version' where <type> can be release for production builds, or debug for debug or development builds.
val version = 2.2.0debugImplementation 'com.adyen.ipp:pos-mobile-debug:$version'// Be aware that importing additional modules will increase the size of your application.// To optimize your app's size and build times, only include the specific payment features you require.debugImplementation 'com.adyen.ipp:payment-tap-to-pay-debug:$version'debugImplementation 'com.adyen.ipp:payment-card-reader-debug:$version'
2. Establish a session
To ensure the Mobile SDK and the Adyen payments platform can collaborate in a secure way, you need to implement a server-to-server API request for establishing a communication session.To authenticate this API request, you need to have an Adyen API credential in your test Customer Area. This credential must have an API key with the following role:
Checkout webservice role. This role is assigned by default when the API key is created.
The credential also needs to have a client key.**
Create a client key
If you want to use an existing API credential that does not have a client key yet, create a client key as follows:
Go to Developers > API credentials, and select the credential username for your integration, for example ws@Company.****[YourCompanyAccount].
Under Client settings > Authentication select the Client key tab.
Select Generate client key.
Select Save changes.The client key is part of the setup but is not used later on. Therefore, you do not need to specify allowed origins, and you do not need to save the client key in your system.
Implement the request
To establish a communication session:
From your backend, make a POST request to the applicable test or regional /auth/certificate endpoint, specifying:
The reference of the store that you want to process payments for. Do not include this parameter if your account structure uses merchant accounts as stores, or if you are a registered payment facilitator.
An object with the details of the sub-merchant. See the next table for the parameters. This object is required if you are a registered payment facilitator. If you are not a payment facilitator, do not include this object.
The subMerchantData object includes the following parameters:
Parameter
Required
Description
id
Your unique identifier of the sub-merchant.
name
The name of the sub-merchant.
displayName
The name of the sub-merchant as it should appear on the display of the mobile device during transactions.
mcc
The sub-merchant’s four-digit Merchant Category Code (MCC). This parameter is used to correctly route the transaction.
street
The street name and house number of the sub-merchant’s address.
city
The city of the sub-merchant’s address.
postalCode
The postal code of the sub-merchant’s address, without dashes.
country
The country/region of the sub-merchant’s address, specified as the three-letter country code in ISO 3166-1 alpha-3 format.
state
The state code of the sub-merchant’s address, if applicable for the country or region.
taxId
The tax ID of the sub-merchant. Required only in Brazil and for Cartes Bancaires in France. For Brazil, this is the 11-digit CPF or 14-digit CNPJ. For France, this is the SIRET, with a maximum of 14 digits.
email
The email address of the sub-merchant. Required for American Express.
phoneNumber
The phone number of the sub-merchant. Required for American Express.
Not a payment facilitator
Payment facilitator
Use the built-in UI
Build a custom UI
If you are not a registered payment facilitator, the /auth/certificate request to establish a communication session must include the store parameter, unless your account structure does not have stores and instead uses merchant accounts as stores.If previously you have used /checkout/possdk/v68/session test and live endpoints, we recommend you migrate to new endpoints./auth/certificate request with store to process payments for
If you are a payment facilitator, card schemes need to receive certain data about your sub-merchant with each transaction. That is because your sub-merchant is considered the Merchant of Record when a transaction is facilitated by you.Adyen automatically adds certain sub-merchant data to transactions that you facilitate. The remaining data must be supplied by you in the subMerchantData object of the /auth/certificate request to establish a communication session.You must not submit sub-merchant data in your Terminal API requests./auth/certificate request with sub-merchant to process payments for
If you receive a response with an error message similar to the following, ask our Support Team to configure the MCC that you specified in the request./auth/certificate error message
Refused (905_3 Could not find an acquirer account for the provided currency (USD).)
Endpoints to use
Test endpoint: https://softposconfig-test.adyen.com/softposconfig/v3/auth/certificate
North East Asia: https://softposconfig-live-nea.adyen.com/softposconfig/v3/auth/certificate
United States: https://softposconfig-live-us.adyen.com/softposconfig/v3/auth/certificate
If you are using old /checkout/possdk/v68/sessions test and live endpoints, we recommend you migrate to the latest endpoints mentioned above. You can still use the /checkout/possdk/v68/sessions endpoints, but we are deprecating them.
3. Enable transactions
To enable the payments functionality of the Mobile SDK for Android, add code to your Android POS app:
Implement the AuthenticationProvider interface. Note that you need to extract the sdkData from the server response and create an AuthenticationResponse object with sdkData in the constructor. Below is an example of how you could do that, assuming your project uses OkHttp.
class MyAuthenticationProvider : AuthenticationProvider() { override suspend fun authenticate(setupToken: String): Result<AuthenticationResponse> { // Make a call to your backend to trigger a `/softposconfig/v{version}/auth/certificate` request, specifying the `setupToken` provided by the SDK val client = OkHttpClient() val request = Request.Builder() .url("ADDRESS_OF_YOUR_BACKEND_API") .build() client.newCall(request).execute().use { response -> response.body?.let { // parse your own back-end response and return AuthenticationResponse //... return Result.success(AuthenticationResponse(sdkData)) } } }}
Implement the MerchantAuthenticationService abstract class: in your implementation, provide an instance of your AuthenticationProvider from the previous step. If you use Dagger2/Hilt dependency injection, below is an example of how you could do this:
class MyAuthenticationService : MerchantAuthenticationService() { @Inject override lateinit var authenticationProvider: AuthenticationProvider}
Add the service to your POS app’s AndroidManifest.xml file.
Make sure that the MerchantAuthenticationService can provide new sdkData at any time.
If there is no session or the session has expired, the service is called using the MerchantAuthenticationService.authenticate(setupToken) callback. Using the provided setupToken you need to get the sdkData through your backend and return it. For instructions, see Establish a session.The Adyen POS Mobile SDK detects the MerchantAuthenticationService automatically. If the SDK fails to detect the service, an error will occur when SDK methods are called. To resolve this, you can manually set the service using InPersonPayments.setAuthenticationServiceClass().
To manually initialize that component at a later point, add the following code to the POS app.For version 2.6.0 or later:Since the SDK requires the application to be in the foreground to bind to the service, you need to trigger initialization when your main Activity is visible. Use repeatOnLifecycle to ensure that the initialization runs when the Activity is in the RESUMED state.
override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) lifecycleScope.launch { // Suspend execution until the Activity is RESUMED repeatOnLifecycle(Lifecycle.State.RESUMED) { val state = InPersonPaymentsTools.initializeManually(this@MainActivity) if (state is InitializationState.SuccessfulInitialization) { // SDK is ready } else { // Handle failure } } }}
To check the status of the SDK initialization, you can use one of the following options.For version 2.6.0 or later:
when (val state = InPersonPaymentsTools.getInitializationState()){ InitializationState.SuccessfulInitialization -> { // SDK is ready. You can now safely proceed. } is InitializationState.FailedInitialization -> { // Handle initialization failure. Log errors or notify the user. Log.e("MyApp", "SDK initialization failed: ${state.failureReasons}") } else -> Unit}
or for versions earlier than version 2.6.0 if you need more precise control over the state flow:
InPersonPayments.initialized .filter { it == InitializationState.SuccessfulInitialization } // Wait until it is true. .take(1) // Take only one item. .collect { ready -> if (ready) { val id = InPersonPayments.getInstallationId() //... } }
Manage POS app dependency initialization
The code that you add to the Application.onCreate() method is executed for all processes. In some cases, it can be beneficial to skip the re-execution of the code, for example the initialization of your dependency graph or analytics libraries.The following method evaluates specific conditions and returns a boolean value that indicates whether the initialization should be skipped.
if (InPersonPaymentsTools.shouldSkipAppInitialize(context)) { // Perform actions when initialization should be skipped} else { // Proceed with application initialization}
Additionally, you can use the following functions:
suspend InPersonPaymentsTools.getInitializationState(): this function observes the initialization state of the SDK and pauses the calling coroutine until the SDK initialization finishes and reaches a success or failure state. You can use this suspend function if an action in your app depends on the SDK being fully initialized.
suspend InPersonPaymentsTools.initializeManually(): this function triggers initialization of the SDK and waits for the initialization to finish.
4. Use the warm-up function
To speed up initiating transactions, you can use the warm-up function. This function checks for a session, configuration changes, and security checks if needed.As a best practice, call the warm-up function after the SDK has initialized:
When the POS app starts.
When the POS app returns to the foreground.
To call the warm-up function:
InPersonPayments.warmUp()
5. (Optional) Avoid delays
You can avoid delays and speed up the transaction by preparing the card reader outside a transaction flow with configuration and security checks.When you start a transaction, the Mobile SDK connects with the card reader to check the reader’s configuration. If the configuration is not up to date, the Mobile SDK sends the latest configuration files to the reader. This can take up to to 30 seconds. Additionally, the Mobile SDK performs a security check every 24 hours. To avoid a delay during the transaction flow, you can prepare the card reader by running these checks outside the transaction flow.It is possible to start a transaction while the card reader preparation is running. There can be a short delay during the transaction while any remaining checks and configuration updates are completed.We recommend preparing the device for transaction every 24 hours or when the configuration has changed.To prepare the device outside a transaction flow, call the DeviceManagerprepareDeviceForTransaction function as follows, where the device is the card reader to prepare.
// Get the DeviceManager val deviceManager = AdyenCardReaders.getInstance(context).deviceManager // Listen for when a device is connected deviceManager.connectionState.collect { connectionState -> if(connectionState is CardReaderState.Connected) { val device = connectionState.cardReaderInfo // Prepare the connected device deviceManager.prepareDeviceForTransaction(device) } }
6. Manage the Device Manager UI
To use the card reader, operators need to:
Connect the mobile device with the card reader through Bluetooth pairing or through USB using a dock or direct USB (if the Android device supports USB host mode).
View an overview of card readers. For example, to switch to a different card reader.
View details of the card reader they are using. For example, to check the battery charge level.
Update the firmware of the card reader or the dock they are using.
To handle these tasks, the SDK provides Device Manager functions that enable you to either:
Use the built-in UI.
Build a custom UI.
To use the built-in UI, you only need to:
Launch the Device Manager.
This automatically takes care of all screens and flows that end users need. For a preview, see:
Recommended: avoid delays when connected through Bluetooth.
When connected through Bluetooth, the card reader enters sleep mode after five minutes of inactivity. When you start a transaction after the reader has gone to sleep, there is a slight delay while the mobile device reconnects to the last connected reader.
Alert users to available firmware updates.
The built-in UI automatically signals that a firmware update is available. In practice however, end users often need an extra reminder. For a secure transaction flow, it is very important that end users update the devices. We therefore strongly recommend that you implement a command to check for firmware updates and create a UI to alert end users and direct them to the built-in screen for performing the update.
Proceed as follows:
If you disabled automatic initialization of the Mobile SDK, initialize the SDK manually. If you are unsure of the status of the SDK initialization you can run a status check.
To use the device management screens built into the Mobile SDK for Android, call the following code corresponding to your launching method.
// Launching from an ActivityDeviceManagementActivity.start(this)// Launching from a FragmentDeviceManagementActivity.start(requireActivity())// Launching from Composeval context = LocalContext.current(context as? Activity)?.let { activity -> DeviceManagementActivity.start(activity)}
Avoid delays when connected through Bluetooth by taking either of the following measures:
Before starting the transaction, wake up the card reader by calling the DeviceManager.connect(cardReader: CardReader) function.
Regularly refresh the connection between the mobile device and the card reader by implementing a timer that calls the DeviceManager.connect(cardReader: CardReader) function every couple of minutes. However, implementing a timer can significantly decrease the battery life of the card reader.
When connected through USB, the card reader is always ready for use without delay. There is no need to reconnect to the card reader before initiating a transaction.
Regularly check for firmware updates for the card reader and, if used, the dock:
To check for card reader updates, call the DeviceManager.firmwareUpdateState() function. The result returns the following possible values:
Value
Description
NoneAvailable
There are no new updates available.
DeviceUpdateAvailable
A device firmware update is available.
BluetoothUpdateAvailable
A Bluetooth firmware update is available.
MultipleUpdatesAvailable
Bluetooth and device firmware updates are available.
If a new update is available, the result also returns the date by which transactions will be refused if the card reader is not updated to this firmware version. When connected through USB, Bluetooth updates cannot be completed and the SDK does not return information about available Bluetooth updates.
To check for dock updates, call the DeviceManager.dockFirmwareUpdateSummary() function. If a new update is available, the result returns AvailableDockFirmwareUpdate and the date by which transactions will be refused if the dock is not updated to this firmware version. If there is no new update, a null value is returned.
Create a UI to prompt end users to update their devices, redirecting them to the built-in UI for performing the update. This is in addition to the built-in screens that alert to available updates.
If you disabled automatic initialization of the Mobile SDK, you need to initialize the SDK manually.If you intend to build your own UI for device management, use the DeviceManager interface to obtain all the necessary information.
val deviceManager = AdyenCardReaders.getInstance(context).deviceManager
For an overview, see the List of DeviceManager functions. The next sections provide information about the Device Manager functions you can use when building a UI for:
Get a list of nearby card readers by calling the DeviceManager.startBluetoothDiscovery() function.
Connect to a card reader by calling the DeviceManager.connect(cardReader: CardReader) function.
Check if the Bluetooth pairing succeeded by listening to the DeviceManager.connectionState flow. If the state changes to CardReaderState.Connected, the reader was paired successfully.
To disconnect from a card reader, call the disconnect() function.
When connected through Bluetooth, the card reader enters sleep mode after five minutes of inactivity. When you start a transaction after the reader has gone to sleep, there is a slight delay while the mobile device reconnects to the last connected reader. To avoid this delay, you can take either of the following measures:
Before starting the transaction, wake up the card reader by calling the DeviceManager.connect(cardReader: CardReader) function.
Regularly refresh the connection between the mobile device and the card reader by implementing a timer that calls the DeviceManager.connect(cardReader: CardReader) function every couple of minutes. However, implementing a timer can significantly decrease the battery life of the card reader.
Updating the card reader firmware
You must check for new firmware updates regularly, and provide a way to update the card reader to the latest version.Firmware updates for the card reader are critical for secure transactions, and do not happen automatically.It is required that you build logic into your POS app to:
Check for new firmware updates often. For example, when the app is launched.
Handle the firmware update flow correctly within your POS app.
Your UI must prompt end users to update the card reader firmware, and inform them about the progress and result of the update process.To build your UI:
Check if updates are available by calling the DeviceManager.firmwareUpdateState() function. The available update can be for the device layer, the application layer, the Bluetooth layer, or multiple layers at the same time. The result returns the following possible values:
Value
Description
NoneAvailable
There are no new updates available.
DeviceUpdateAvailable
A device firmware update is available.
BluetoothUpdateAvailable
A Bluetooth firmware update is available.
MultipleUpdatesAvailable
Bluetooth and device firmware updates are available.
If a new update is available, the result also returns the date by which transactions will be refused if the card reader is not updated to this firmware version. When connected through USB, Bluetooth updates cannot be completed and the SDK does not return information about available Bluetooth updates.
Start the update using the DeviceManager.startFirmwareUpdate() function.
Listen to the FirmwareUpdatingState flow to build UI screens showing the progress and result of the update.
State
Description
FirmwareUpdatingState.Downloading
The SDK retrieves all necessary files from Adyen.
FirmwareUpdatingState.UpdatingDevice
The SDK installs the update on the card reader.
FirmwareUpdatingState.Applying
The SDK applies the update. The card reader will reboot and reconnect.
FirmwareUpdatingState.Finished
Indicates the process has completed. Errors that can happen during software updates are:
Error
Description
DownloadFailed
Downloading the firmware update files did not succeed.
UpdateFailed(needsBluetoothRecovery: Boolean)
The update was not completed. The variable needsBluetoothRecovery indicates if the Bluetooth update failed and card reader must be reset before retrying the update.
If the card reader must be reset before retrying the update, your UI should provide the following instructions:
In the Bluetooth settings of the mobile device, select “Forget This Device”.
Re-pair the reader and retry installing the update.
A USB connection is automatically established when the user connects the dock to power, connects the mobile device to the dock using the USB-C cable provided with the card reader, and places the reader in the dock.Your UI must clearly show the difference between these situations:
The mobile device is connected to the dock through USB, but no card reader is placed in the dock.
The card reader is placed in the dock, but the mobile device is connected to the card reader through Bluetooth.
The card reader is placed in the dock and the mobile device is connected to the dock and the reader through USB.
To build your UI for dock connections:
Connect to a dock by calling the connectToDock(usbAccessory: UsbAccessory) function.
Check if the connection succeeded by listening to the DeviceManager.dockConnectionState: StateFlow<DockState> flow. If the state changes to DockState.Connected, the reader and the dock were was connected successfully.
To refresh the USB connection to the dock, call the refreshConnectionStateForAttachedDock() function.
To disconnect from a dock, call the disconnect() function.
When connected through USB, the card reader is always ready for use without delay. There is no need to reconnect to the card reader before initiating a transaction.
Updating the dock firmware
You must check for new firmware updates regularly, and provide a way to update the dock to the latest version.Firmware updates for the dock are critical for secure transactions, and do not happen automatically.It is required that you build logic into your POS app to:
Check for new firmware updates often. For example, when the app is launched.
Handle the firmware update flow correctly within your POS app.
Your UI must prompt end users to update the dock firmware, and inform them about the progress and result of the update process.To build your UI:
Check if updates are available by calling the DeviceManager.dockFirmwareUpdateSummary() function. If a new update is available, the result returns AvailableDockFirmwareUpdate and the date by which transactions will be refused if the dock is not updated to this firmware version. If there is no new update, a null value is returned.
Start the update using the DeviceManager.startDockFirmwareUpdate() function.
Listen to the FirmwareUpdatingState flow to build UI screens showing the progress and result of the update.
State
Description
FirmwareUpdatingState.Downloading
The SDK retrieves all necessary files from Adyen.
FirmwareUpdatingState.UpdatingDevice
The SDK installs the update on the dock.
FirmwareUpdatingState.Applying
The SDK applies the update.
FirmwareUpdatingState.Finished
Indicates the process has completed. Errors that can happen during software updates are:
DeviceManager lets you scan for card readers through Bluetooth device discovery, connect and disconnect a card reader, connect and disconnect a USB dock, get information about the currently connected card reader, get information about the currently USB dock, and manage firmware updates.You can use the following functions:
DeviceManager tool
Description
connectionState: StateFlow<ReaderConnectedState>
Returns the connection state of the currently connected card reader.
Returns information about available firmware updates for the card reader that is currently connected to the mobile device. The result includes: requiresBluetoothConnection: indicates if a Bluetooth connection is required to update the card reader. requiredDate: null, or the date by which transactions will be refused if the card reader is not updated to this firmware version.
startFirmwareUpdate()
Implements the available card reader firmware update. Shows an error if the update failed because the card reader was connected through USB and the update required a Bluetooth connection.
dockConnectionState: StateFlow<DockState>
Returns the connection state of the currently connected USB dock.
Returns information about available firmware updates for the USB Dock that is currently connected to the mobile device. The result includes: requiredDate: null, or the date by which transactions will be refused if the dock is not updated to this firmware version.
startDockFirmwareUpdate()
Implements the available firmware update for the USB dock.
refreshConnectionStateForAttachedDock()
Refreshes the connected and attached status of USB dock.
7. Decide on transaction UI options
In this step you decide on the options that are available for customizing the transaction user interface.If you want the UI to appear in dark mode, you need to enable this options in the settings of your mobile device.When you start a transaction, you can customize the user interface using merchantUiParameters and the optional fields for the following UI options:**
Add a logo
To show a logo on your mobile device during the transaction flow use:
merchantLogo: Format can be SVG (recommended), WEBP, JPEG, or PNG. The logo is shown at 100dp x 32dp (width x height) on top of the payment screen. Trim any transparent pixels from the logo asset, to show your logo as large as possible within the available space.
To specify how long the success screen shows after a successful transaction use:
autoDismissDelay: If not specified, this success screen is dismissed after 4 seconds. You can set a time in milliseconds with a minimum of 0.5 seconds (500L) and a maximum of 4 seconds (4000L).
By default, the NFC tap indicator is an animation that points at the back of the device. You can customize the position of the NFC tap indicator on your mobile device screen to point at the location of your card reader. Then useCardReaderAnimationType. This allows you to show a chevron-type arrow (Simplified), pointing in the specified direction. If there is not enough room on the mobile device screen, no chevron-type arrow can be shown. Instead, a tap indicator is shown in the center of the screen.
Options for Simplified are: CenterRight, or CenterLeft.
In your POS app, create a Terminal API payment request with:
MessageHeader.POIID: the installation ID of the SDK.
If you create the Terminal API payment request in your POS app, use InPersonPayments.getInstallationId() as the POIID in the MessageHeader of the request.
Create an instance of TransactionRequest using TransactionRequest.create(nexoRequest), and pass the Terminal API payment request from your POS app or backend.
val transactionRequest = TransactionRequest.create(nexoRequest)
Get a PaymentInterface from InPersonPayments using InPersonPayments.getPaymentInterface(CardReader).
val paymentInterface = InPersonPayments.getPaymentInterface(CardReader)
Register a listener for the PaymentResult and pass the transactionResponse to your POS app. This is the Terminal API payment response, including data you can use to generate a receipt.
InPersonPayments.registerForPaymentResult(context) { result -> result.fold( onSuccess = { paymentResult: PaymentResult -> /* * Here is your success case logic, for example: * if (paymentResult.success) "Payment Successful" else "Payment Unsuccessful" */ }, onFailure = { error: Throwable -> /* * Here is your failure case logic, for example: * Log.e("InPersonPaymentsResult", "Payment Failed", error) */ },)
Invoke InPersonPayments.performTransaction() with your transaction data, payment launcher, and authentication service.Then customize the user interface using merchantUiParameters with the optional fields that you decided on in the previous step. The following example invokes InPersonPayments.performTransaction() and includes parameters to add a custom logo and customizing the position of the NFC tap indicator on your mobile device screen:
The Mobile SDK checks for a session, starts the transaction, and shows screens on your mobile device to help the customer.
If the shopper does not present their payment method within 30 seconds, the payment request times out. If that happens, you need to make another payment request.
9. Handle a refund
There are two types of refund: referenced and unreferenced. The main difference is that a referenced refund is connected to the original payment, and an unreferenced refund isn’t. That makes unreferenced refunds a bit riskier. For an overview of the differences, see Refund a payment.Refunds are usually not processed synchronously. When you send a request for a referenced or unreferenced refund, the Terminal API response only confirms we received the request.We inform you about the outcome of the refund asynchronously, through a webhook.
For a referenced refund, we return a CANCEL_OR_REFUND webhook.
For an unreferenced refund, we return a REFUND_WITH_DATA webhook.
Depending on the card scheme and country/region where the card is used, unreferenced refunds are sometimes processed synchronously. In that case the Terminal API response includes an acquirerResponseCode to indicate the outcome.To learn the outcome of a refund, you need to set up webhooks.
Handle a referenced refund
The Terminal API request for a referenced refund is a reversal request. The SDK contains a dedicated function for this.In your Android POS app, add code for the following steps:
Create a Terminal API reversal request with:
MessageHeader.POIID: the installation ID of the SDK.
If you create the Terminal API reversal request in your POS app, use InPersonPayments.getInstallationId() as the POIID in the MessageHeader of the request.
Create an instance of TransactionRequest using TransactionReversalRequest.createReversal(nexoRequest: String), and pass the Terminal API payment request from your POS app or backend.
Register a listener for the PaymentResult and pass the transactionResponse to your POS app. This is the Terminal API payment response, including data you can use to generate a receipt.
Invoke performReversal() with your transaction data and authenticationProvider.
Note that authenticationProvider is an implementation of the AuthenticationProvider interface, which extracts the sdkData from the server response.
public suspend fun performReversal( TransactionReversalRequest: TransactionReversalRequest,): Result<PaymentResult>
Check the refundResult that you receive in the paymentLauncher callback.
Pass the refundResult to your POS app.
Handle an unreferenced refund
The Terminal API request for an unreferenced refund is a payment request with an additional paymentType parameter:
This means you can use the same code as for handling a payment. The only difference is the structure of the Terminal API payment request that you pass as the payload to the TransactionRequest.For the structure of the Terminal API request, see Unreferenced refund.
10. Diagnose the device
We recommend implementing the Terminal API diagnosis request. This enables you to do the following:
Check for security threats that would block transactions. If threats are detected that an operator can solve, the response includes information about the cause and solution of the problem.
Check the expiry date of the SDK that is used on the mobile device. Transactions will be blocked if mandatory updates are not carried out.
In your Android POS app, add code for the following steps:
Create a Terminal API diagnosis request with:
MessageHeader.POIID: the installation ID of the SDK.
If you create the Terminal API diagnosis request in your POS app, use InPersonPayments.getInstallationId() as the POIID in the MessageHeader of the request.
Create an instance of DiagnosisRequest using DiagnosisRequest.create(nexoRequest), and pass the Terminal API diagnosis request from your POS app or backend.
val diagnosisRequest = DiagnosisRequest.create(nexoRequest)
Invoke InPersonPayments.performDiagnosis() with your diagnosis data and diagnosis launcher.
Base64-decode the attestationStatus value for information about any security issues. If issues are detected that can be resolved by the end user, the resulting JSON object includes messages with the details. These are the same error messages that we show automatically on the end user’s mobile device when these issues are detected during a transaction.
See the sdkExpiry for the date when the installed SDK version expires.
There are several situations when you need to clear the existing session to remove all session information from your mobile device. When you have cleared the session, configuration updates are fetched and a new session is established when you start a new transaction or call the warm-up function.As a best practice, clear the session to:
Re-establish a session after switching between merchant accounts or stores in your POS app and your Customer Area. If the device is reassigned from store A to store B and a transaction is started there, on the Adyen side the transaction will continue to appear to belong to store A instead of store B. Clearing the session prevents this issue.
Force a refresh of the configuration. After clearing the session, the latest configuration is fetched and stored on your mobile device the next time the Mobile SDK for Android connects to the Adyen backend.
Test the session establishment flow in your POS app, specifically how it interacts with your and Adyen’s backend to securely establish a session with the Mobile SDK for Android.
To clear the session:
Explicitly clear the communication session using InPersonPayments.clearSession() .
11. (Optional) Optimize app size with Play Feature Delivery
It is possible to optimize the size of your Android Mobile SDK-enabled app with Android’s Play Feature Delivery.
With Play Feature Delivery, you can separate features from the base module of your app. This means that instead of a large, single download, users initially receive only your app’s core functionalities (embedded features). Users can then later download and install the other (dynamic) features on demand. As a result, you will have a smaller initial app size, stay within Google Play’s size limits, and provide a faster download experience.After you have followed the Google Play instructions to set up your app to use Play Feature Delivery, do the following:
Add this dependency to your app module implementation: com.adyen.ipp:dynamic-base:$version
Add the other SDK dependencies to your feature module as you would normally do.
In addition to payments, refunds, and diagnosis, the Mobile solutions support other (payment) features. These are the same features that are supported in Terminal API integrations using Adyen-provided payment terminals.For some features you need to add parameters to your Terminal API payment request, similar to unreferenced refunds described above. Other features only require enabling the feature for your Adyen account. You can find the details on the pages dedicated to those features. Where the details differ between an integration using payment terminals and a mobile solution, this is clearly indicated.
The instructions are the same for both cards; see either of the pages mentioned above.
Go live
When you have finished testing your integration and are ready to go live:
If new to Adyen, get a live account. You need to have access to your organization’s live Customer Area to generate API credentials for the live environment.
Get the live SDK. You need to generate a new, live API key exclusively for downloading the SDK.
When going live, you need to get the release version of the SDK, which is available on the live repository. To access it, you need to change the repository URL as well as your API key.To pull in the live version of the SDK:
In your project’s build.gradle file, change the URL to https://pos-mobile.cdn.adyen.com/adyen-pos-android and replace API_KEY with your new API key.
Add the release dependency to your build.gradle file.
The live repository has both the debug and release artifacts. The -debug version can only access the test environment and the -release version can only access the live environment.
When you have access to the live repository, you no longer need to use the test repository.
In case of other custom build variants, use <buildVariantName>Implementation 'com.adyen.ipp:pos-mobile-<type>:$version' where <type> can be release (for production builds) or debug (for debug or development builds).
val version = 2.2.0releaseImplementation 'com.adyen.ipp:pos-mobile-release:$version'// Be aware that importing additional modules will increase the size of your application.// To optimize your app's size and build times, only include the specific payment features you require.releaseImplementation 'com.adyen.ipp:payment-tap-to-pay-release:$version'releaseImplementation 'com.adyen.ipp:payment-card-reader-release:$version'
Establish a live session
When going live, you must change the /auth/certificate endpoint where you send requests to establish a secure communication session, as well as the API key that you use to authenticate those requests.
To access the live endpoint, generate a new API key from your live Customer Area.
The live endpoint URL to use depends on the region:
Make your solution available and keep the software up-to-date.
Checklists
Get a list of what needs to be done to get started and go live with a Mobile solution.
Error handling
Resolve errors that appear on the mobile Android device.
Use the card reader
Learn how to connect and operate the NYC1 card reader.
Use the card reader with a dock
Learn how to connect and operate the NYC1 card reader and NYC1 dock.
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Adyen Docs","colors":{"primary":"#0abf53","light":"#0abf53","dark":"#0abf53"},"logo":{"light":"https://mintcdn.com/adyen-preview/lASzPax-5LijrTyv/logo/adyen-logo-light.svg?fit=max\u0026auto=format\u0026n=lASzPax-5LijrTyv\u0026q=85\u0026s=2c1afa7588316f526e65513e790f5095","dark":"https://mintcdn.com/adyen-preview/QZBUuz3DUfNRdN58/logo/adyen-logo-dark.svg?fit=max\u0026auto=format\u0026n=QZBUuz3DUfNRdN58\u0026q=85\u0026s=8b91a67b637458bd8d4469256fdea66d","href":"/"},"favicon":"https://mintcdn.com/adyen-preview/QZBUuz3DUfNRdN58/icon.svg?fit=max\u0026auto=format\u0026n=QZBUuz3DUfNRdN58\u0026q=85\u0026s=0c1b1d9cd8ef6f2d1c87e52efbd25c3d","navbar":{"links":[{"href":"https://docs.adyen.com/api-explorer","label":"API Explorer"},{"href":"https://help.adyen.com/contact","label":"Support"}],"primary":{"type":"button","label":"Sign up","href":"https://www.adyen.com/signup"}},"seo":{"metatags":{"robots":"noindex"}},"fonts":{"heading":{"family":"Adyen","weight":700,"source":"fonts/Adyen-Variable.woff2","format":"woff2"},"body":{"family":"Adyen","weight":400,"source":"fonts/Adyen-Variable.woff2","format":"woff2"}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","grok","aistudio","devin","windsurf","mcp","cursor","vscode","devin-mcp","download-spec","download-pdf"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"adyen-preview","hasAudioNarration":false,"actualSubdomain":"adyen-preview","customDomains":[],"gitSource":{"type":"github","owner":"mintlify-onboarding","repo":"adyen-preview","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6acfda162114076d94919f9a","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"In-person payments","count":532},{"language":"default","tag":"Payments","count":442},{"language":"default","tag":"Adyen for Platforms","count":392},{"language":"default","tag":"Platforms","count":282},{"language":"default","tag":"Marketplaces","count":228},{"language":"default","tag":"Online payments","count":188},{"language":"default","tag":"More development resources","count":154},{"language":"default","tag":"Enterprise issuing","count":146},{"language":"default","tag":"Business accounts","count":122},{"language":"default","tag":"Plugins","count":120}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".sidebar-group-header{font-weight:600!important}.sidebar-group-header .sidebar-title{font-weight:inherit!important}h1#page-title{font-weight:600!important}img[src*=\"/user/data/smileys/emoji/\"]{width:20px;height:20px;display:inline-block;vertical-align:middle}#content-area img,#content img,mdx-content img{cursor:default!important}"}]}
{"page":{"pagePath":"point-of-sale/mobile-android/build/card-reader","slug":"/point-of-sale/mobile-android/build/card-reader","pageMetadata":{"title":"Card Reader Solution for Android","description":"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.","href":"/point-of-sale/mobile-android/build/card-reader"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,br:`br`,code:`code`,em:`em`,img:`img`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Tab,Table,Tabs}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`With our Card reader on Android solution you can accept mobile in-person payments using a card reader as the payment interface, and process these payments on the Adyen payments platform.`}),`\n`,_jsx(_components.p,{children:`The card reader is connected with an Android mobile device through Bluetooth, or through USB using a dock. On the Android mobile device, payment requests are initiated from a POS app. On the card reader, the customer can tap, insert, or swipe their card, or use a digital wallet like Apple Pay.`}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsx(_components.p,{children:`Before you begin, take into account the following requirements, limitations, and preparations.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Requirement`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Integration type`})}),_jsxs(_components.td,{children:[`You must have a POS app that is integrated with `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/terminal-api`,children:`Terminal API`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(_components.a,{href:`/development-resources/api-credentials`,children:`API credentials`})})}),_jsxs(_components.td,{children:[`You need the following API credentials:`,_jsx(`br`,{}),`To get the SDK, you must have an API credential with an API key and only the `,_jsx(_components.strong,{children:`Allow SDK download for POS developers`}),` role. To establish a communication session, you must have an API credential with an API key, a client key, and the `,_jsx(_components.strong,{children:`Checkout webservice`}),` role.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(_components.a,{href:`/development-resources/webhooks`,children:`Webhooks`})})}),_jsx(_components.td,{children:`To learn the outcome of refunds, set up Standard webhooks (if this hasn’t been done already).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Hardware`})}),_jsxs(_components.td,{children:[`You need:`,_jsx(`br`,{}),`An Android commercial off-the-shelf (COTS) mobile device. Must not be a payment terminal. An NYC1 card reader from Adyen and optionally an `,_jsx(_components.a,{href:`/point-of-sale/user-manuals/nyc1-with-dock`,children:`NYC1 dock`}),`. For PIN transactions your card reader needs to be an `,_jsx(_components.a,{href:`/point-of-sale/mobile-ios/understand#pin-transaction-on-nyc1`,children:`NYC1`}),` model.See `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/requirements`,children:`Android system requirements`}),` for the full hardware and software requirements.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Limitations`})}),_jsxs(_components.td,{children:[`Check the countries/regions, payment methods, and functionality that we `,_jsx(_components.a,{href:`/point-of-sale/ipp-mobile`,children:`support`}),` for Card reader on Android.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Setup steps`})}),_jsxs(_components.td,{children:[`Before you begin:`,_jsx(`br`,{}),`Ask our `,_jsx(_components.a,{href:`https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other`,children:`Support Team`}),` to enable your Adyen test account for using our Mobile solutions. In your `,_jsx(_components.a,{href:`https://ca-test.adyen.com/`,children:`Customer Area`}),`, `,_jsx(_components.a,{href:`/point-of-sale/managing-terminals/order-terminals#sales-order-steps`,children:`order`}),` a test NYC1 card reader and a test card, and `,_jsx(_components.a,{href:`/point-of-sale/managing-terminals/assign-terminals`,children:`assign`}),` the reader to your store. If you want to disable PIN support for NYC1 card readers in the US from Mobile SDK for Android version `,_jsx(_components.strong,{children:`2.9.0`}),` or later, contact our `,_jsx(_components.a,{href:`https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other`,children:`Support Team`}),` and ask them to disable PIN support on the company, merchant, or store level.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sample app`}),_jsx(_components.br,{}),`\n`,`Hit the ground running with our `,_jsx(_components.a,{href:`https://github.com/Adyen/adyen-pos-mobile-android/tree/main/app-default`,children:`Android sample app`}),`.`]}),`\n`,_jsx(_components.p,{children:`To build a Tap to Pay on Android solution:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Add the Mobile SDK for Android to your project, either using an API key.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Implement a server-to-server API request to establish a secure communication session.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`In your POS app, enable the transaction functionality of the SDK.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`From your POS app, call the warmup function to speed up initiating transactions.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In your POS app, implement handling payments using the SDK.`,_jsx(_components.br,{}),`\n`,`This creates the following flow:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Your Android POS app creates a Terminal API payment request, or receives a Terminal API payment request from your backend.`}),`\n`,_jsx(_components.li,{children:`The POS app passes the payment request to the Android Mobile SDK.`}),`\n`,_jsxs(_components.li,{children:[`The SDK initiates the transaction on the card reader.`,_jsx(_components.br,{}),`\n`,`To complete the payment, the customer taps the card reader with their payment card or phone (or other device) that has a digital wallet like Apple Pay.`]}),`\n`,_jsx(_components.li,{children:`The SDK passes the Terminal API payment response to the POS app.`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`In your POS app, implement handling refunds using the SDK.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`If the same device will be used at multiple locations, implement clearing the communication session.`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`1-add-the-sdk-to-your-project`,children:`1. Add the SDK to your project`}),`\n`,_jsx(_components.p,{children:`You can add the Mobile SDK for Android to your POS app through a private Adyen repository. To get access, you need to have an Adyen API key that is used only for the purpose of getting the SDK.`}),`\n`,_jsxs(_components.p,{children:[`Our SDK only runs on Android 12 or later. You can still `,_jsx(_components.a,{href:`https://developer.android.com/build/manage-manifests#override_uses-sdk_for_imported_libraries`,children:`target earlier Android versions`}),`, but our SDK will not initialize.`]}),`\n`,_jsxs(_components.p,{children:[`To add the Mobile SDK to your project, you need to create an API credential with an API key that only has the `,_jsx(_components.strong,{children:`Allow SDK download for POS developers`}),` role.`]}),`\n`,_jsxs(_components.p,{children:[`This API key is only meant to be used to get access to the SDK repository. To make a `,_jsx(_components.code,{children:`sessions`}),` request, you need a `,_jsx(_components.a,{href:`#session`,children:`different API key`}),`.`]}),`\n`,_jsx(_components.p,{children:`You can share this API key with anybody in your team who needs to get the SDK, or you can create multiple API keys for internal use.`}),`\n`,_jsx(_components.p,{children:`To add the SDK to your project:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In your `,_jsx(_components.a,{href:`https://ca-test.adyen.com/`,children:`Customer Area`}),` create an API credential with an API key:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Developers`}),` > `,_jsx(_components.strong,{children:`API credentials`}),`, and select `,_jsx(_components.strong,{children:`Create new credential`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Under `,_jsx(_components.strong,{children:`Payments`}),` > `,_jsx(_components.strong,{children:`Credential type`}),` select `,_jsx(_components.strong,{children:`Web service user`}),` and then select `,_jsx(_components.strong,{children:`Create credential`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Under `,_jsx(_components.strong,{children:`Server settings`}),` > `,_jsx(_components.strong,{children:`Authentication`}),` select the `,_jsx(_components.strong,{children:`API key`}),` tab and then select `,_jsx(_components.strong,{children:`Generate API key`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Select the copy icon **and save your API key in a secure location.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Permissions`}),` > `,_jsx(_components.strong,{children:`Roles`}),` > `,_jsx(_components.strong,{children:`POS`}),`, select `,_jsx(_components.strong,{children:`Allow SDK download for POS developers`}),`, and deselect any other permissions and roles.`]}),`\n`,_jsxs(_components.p,{children:[`Contact `,_jsx(_components.a,{href:`https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other`,children:`Support Team`}),` if you don’t see the `,_jsx(_components.strong,{children:`Allow SDK download for POS developers`}),` role.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Save changes`}),`.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In the `,_jsx(_components.code,{children:`repositories`}),` block of your project, usually defined in your `,_jsx(_components.code,{children:`settings.gradle`}),` file, add the URL to the remote repository where the SDK is stored, and add the API key that you created in the previous step.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`dependencyResolutionManagement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` //...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` repositories`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` google`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` mavenCentral`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` maven`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` uri`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pos-mobile-test.cdn.adyen.com/adyen-pos-android\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` credentials`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(HttpHeaderCredentials::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` name `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cYOUR_API_KEY>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` authentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`HttpHeaderAuthentication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"header\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In your project’s `,_jsx(_components.code,{children:`build.gradle`}),` file, add the package dependencies.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`To find the latest `,_jsx(_components.code,{children:`val version`}),` check the `,_jsx(_components.a,{href:`/point-of-sale/firmware-release-notes`,children:`release notes`}),` for the Mobile SDK for Android.`]}),`\n`,_jsxs(_components.li,{children:[`For the build type, note that `,_jsx(_components.code,{children:`-debug`}),` can only access the test environment, and `,_jsx(_components.code,{children:`-release`}),` can only access the live environment.`]}),`\n`,_jsxs(_components.li,{children:[`In case of other custom build variants, use `,_jsx(_components.code,{children:`\u003cbuildVariantName>Implementation 'com.adyen.ipp:pos-mobile-\u003ctype>:$version'`}),` where `,_jsx(_components.code,{children:`\u003ctype>`}),` can be `,_jsx(_components.strong,{children:`release`}),` for production builds, or `,_jsx(_components.strong,{children:`debug`}),` for debug or development builds.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`groovy`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`groovy`,children:_jsxs(_components.code,{language:`groovy`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`val version `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2.2.0`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`debugImplementation `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'com.adyen.ipp:pos-mobile-debug:$version'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Be aware that importing additional modules will increase the size of your application.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// To optimize your app's size and build times, only include the specific payment features you require.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`debugImplementation `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'com.adyen.ipp:payment-tap-to-pay-debug:$version'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`debugImplementation `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'com.adyen.ipp:payment-card-reader-debug:$version'`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`2-establish-a-session`,children:`2. Establish a session`}),`\n`,_jsx(_components.p,{children:`To ensure the Mobile SDK and the Adyen payments platform can collaborate in a secure way, you need to implement a server-to-server API request for establishing a communication session.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/pages/reuse/pos-mobile-sdk/ios-build/session/ipp-mobile-authentication-flow.svg`,alt:`Authentication flow`})}),`\n`,_jsxs(_components.p,{children:[`To authenticate this API request, you need to have an Adyen `,_jsx(_components.a,{href:`/development-resources/api-credentials`,children:`API credential`}),` in your `,_jsx(_components.a,{href:`https://ca-test.adyen.com/`,children:`test Customer Area`}),`. This credential must have an `,_jsx(_components.a,{href:`/development-resources/api-credentials#generate-api-key`,children:`API key`}),` with the following `,_jsx(_components.a,{href:`/development-resources/api-credentials#manage-api-permissions`,children:`role`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Checkout webservice role`}),`. This role is assigned by default when the API key is created.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The credential also needs to have a client key.`}),`\n`,_jsx(_components.p,{children:`**`}),`\n`,_jsx(Heading,{level:`4`,id:`create-a-client-key`,children:`Create a client key`}),`\n`,_jsx(_components.p,{children:`If you want to use an existing API credential that does not have a client key yet, create a client key as follows:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Log in to your `,_jsx(_components.a,{href:`https://ca-test.adyen.com/`,children:`Customer Area`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Developers`}),` > `,_jsx(_components.strong,{children:`API credentials`}),`, and select the credential username for your integration, for example `,_jsx(_components.strong,{children:`ws@Company.****[YourCompanyAccount]`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Under `,_jsx(_components.strong,{children:`Client settings`}),` > `,_jsx(_components.strong,{children:`Authentication`}),` select the `,_jsx(_components.strong,{children:`Client key`}),` tab.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Generate client key`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Save changes`}),`.`]}),`\n`,_jsx(_components.p,{children:`The client key is part of the setup but is not used later on. Therefore, you do not need to specify allowed origins, and you do not need to save the client key in your system.`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`implement-the-request`,children:`Implement the request`}),`\n`,_jsx(_components.p,{children:`To establish a communication session:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`From your backend, make a POST request to the applicable test or regional `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate`,children:`/auth/certificate`}),` endpoint, specifying:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#request-merchantAccount`,children:`merchantAccount`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`The unique identifier of your `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/determine-account-structure#request-merchant-accounts`,children:`merchant account`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#request-setupToken`,children:`setupToken`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsxs(_components.td,{children:[`The setup token provided by the Mobile SDK through the implementation of `,_jsxs(_components.a,{href:`#enable-transactions`,children:[_jsx(_components.code,{children:`AuthenticationProvider`}),` `]}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#request-store`,children:`store`})}),_jsx(_components.td,{children:`Not a payment facilitator`}),_jsxs(_components.td,{children:[`The reference of the `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/determine-account-structure#create-stores`,children:`store`}),` that you want to process payments for. Do not include this parameter if your `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/determine-account-structure#determine-account-structure`,children:`account structure`}),` uses merchant accounts as stores, or if you are a registered payment facilitator.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#request-subMerchantData`,children:`subMerchantData`})}),_jsx(_components.td,{children:`Payment facilitator`}),_jsx(_components.td,{children:`An object with the details of the sub-merchant. See the next table for the parameters. This object is required if you are a registered payment facilitator. If you are not a payment facilitator, do not include this object.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`subMerchantData`}),` object includes the following parameters:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`Your unique identifier of the sub-merchant.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`The name of the sub-merchant.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`displayName`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`The name of the sub-merchant as it should appear on the display of the mobile device during transactions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mcc`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})}),_jsx(_components.td,{children:`The sub-merchant’s four-digit Merchant Category Code (MCC). This parameter is used to correctly route the transaction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`street`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The street name and house number of the sub-merchant’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`city`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The city of the sub-merchant’s address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`postalCode`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The postal code of the sub-merchant’s address, without dashes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`country`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The country/region of the sub-merchant’s address, specified as the three-letter country code in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3`,children:`ISO 3166-1 alpha-3`}),` format.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The state code of the sub-merchant’s address, if applicable for the country or region.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taxId`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The tax ID of the sub-merchant. Required only in Brazil and for Cartes Bancaires in France. For Brazil, this is the 11-digit CPF or 14-digit CNPJ. For France, this is the SIRET, with a maximum of 14 digits.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The email address of the sub-merchant. Required for American Express.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`phoneNumber`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The phone number of the sub-merchant. Required for American Express.`})]})]})]}),`\n`]}),`\n`]}),`\n`,_jsxs(Tabs,{sync:false,children:[_jsxs(Tab,{title:`Not a payment facilitator`,id:`not-a-payment-facilitator`,children:[_jsxs(_components.p,{children:[`If you are `,_jsx(_components.em,{children:`not`}),` a registered payment facilitator, the `,_jsx(_components.code,{children:`/auth/certificate`}),` request to establish a communication session must include the `,_jsx(_components.code,{children:`store`}),` parameter, unless your account structure does not have stores and instead uses merchant accounts as stores.`]}),_jsxs(_components.p,{children:[`If previously you have used `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/possdk/latest/post/sessions`,children:`/checkout/possdk/v68/session`}),` test and live endpoints, we recommend you migrate to `,_jsx(_components.a,{href:`#endpoints-to-use`,children:`new endpoints`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`/auth/certificate request with store to process payments for`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://softposconfig-test.adyen.com/softposconfig/v3/auth/certificate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'content-type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-API-key: ADYEN_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-X `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"setupToken\": \"SETUP_TOKEN\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"store\": \"YOUR_STORE_REFERENCE\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})]}),_jsxs(Tab,{title:`Payment facilitator`,id:`payment-facilitator`,\"data-child-heading-ids\":`[\"endpoints-to-use\",\"3-enable-transactions\",\"manage-automatic-initialization\",\"initialization-status-check\",\"manage-pos-app-dependency-initialization\",\"4-use-the-warm-up-function\",\"5-optional-avoid-delays\",\"6-manage-the-device-manager-ui\"]`,children:[_jsx(_components.p,{children:`If you are a payment facilitator, card schemes need to receive certain data about your sub-merchant with each transaction. That is because your sub-merchant is considered the Merchant of Record when a transaction is facilitated by you.`}),_jsxs(_components.p,{children:[`Adyen automatically adds certain sub-merchant data to transactions that you facilitate. The remaining data must be supplied by you in the `,_jsx(_components.code,{children:`subMerchantData`}),` object of the `,_jsx(_components.code,{children:`/auth/certificate`}),` request to establish a communication session.`]}),_jsxs(_components.p,{children:[`You must `,_jsx(_components.strong,{children:`not`}),` submit sub-merchant data in your Terminal API requests.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`/auth/certificate request with sub-merchant to process payments for`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://softposconfig-test.adyen.com/softposconfig/v3/auth/certificate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'content-type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-API-key: ADYEN_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-X `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchantAccount\": \"YOUR_MERCHANT_ACCOUNT\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"setupToken\": \"SETUP_TOKEN\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subMerchantData\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"id\": \"123456\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Test Merchant\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mcc\": \"5734\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"street\": \"123 Sample Street\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"city\": \"Minneapolis\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"state\": \"MN\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"postalCode\": \"94107\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"country\": \"USA\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"taxId\": \"TAX123456\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"displayName\": \"MN Computer Software\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"test-merchant@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"phoneNumber\": \"PHONE_NUMBER\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`When you receive the response:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Check that you get a `,_jsx(_components.strong,{children:`201 Created`}),` HTTP status code.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Return the `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#responses-201-sdkData`,children:`sdkData`}),` to your POS app.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If you create the Terminal API request on your backend, save the `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#responses-201-installationId`,children:`installationId`}),` and use this as the `,_jsx(_components.code,{children:`POIID`}),` in the `,_jsxs(_components.a,{href:`/point-of-sale/design-your-integration/terminal-api#request-message-header`,children:[_jsx(_components.code,{children:`MessageHeader`}),` `]}),`of the payment request.`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Successful /auth/certificate response`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"APP_SESSION_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"installationId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"INSTALLATION_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantAccount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_MERCHANT_ACCOUNT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"store\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_STORE_ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sdkData\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SDK_DATA_BLOB\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If you receive a response with an error message similar to the following, ask our `,_jsx(_components.a,{href:`https://ca-test.adyen.com/ca/ca/contactUs/support.shtml?form=other`,children:`Support Team`}),` to configure the MCC that you specified in the request.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`/auth/certificate error message`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Refused (905_3 Could not find an acquirer account for the provided currency (USD).)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`4`,id:`endpoints-to-use`,children:`Endpoints to use`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Test endpoint: `,_jsx(_components.code,{children:`https://softposconfig-test.adyen.com/softposconfig/v3/auth/certificate`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Regional live endpoints:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Australia: `,_jsx(_components.code,{children:`https://softposconfig-live-au.adyen.com/softposconfig/v3/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`Northeast Asia: `,_jsx(_components.code,{children:`https://softposconfig-live-nea.adyen.com/softposconfig/v3/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`Europe: `,_jsx(_components.code,{children:`https://softposconfig-live.adyen.com/softposconfig/v3/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`North East Asia: `,_jsx(_components.code,{children:`https://softposconfig-live-nea.adyen.com/softposconfig/v3/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`United States: `,_jsx(_components.code,{children:`https://softposconfig-live-us.adyen.com/softposconfig/v3/auth/certificate`})]}),`\n`]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`If you are using old `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/possdk/latest/post/sessions`,children:`/checkout/possdk/v68/sessions`}),` test and live endpoints, we recommend you migrate to the latest endpoints mentioned above. You can still use the `,_jsx(_components.code,{children:`/checkout/possdk/v68/sessions`}),` endpoints, but we are deprecating them.`]}),_jsx(Heading,{level:`2`,id:`3-enable-transactions`,children:`3. Enable transactions`}),_jsx(_components.p,{children:`To enable the payments functionality of the Mobile SDK for Android, add code to your Android POS app:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Implement the `,_jsx(_components.code,{children:`AuthenticationProvider`}),` interface. Note that you need to extract the `,_jsx(_components.code,{children:`sdkData`}),` from the server response and create an `,_jsx(_components.code,{children:`AuthenticationResponse`}),` object with `,_jsx(_components.code,{children:`sdkData`}),` in the constructor. Below is an example of how you could do that, assuming your project uses OkHttp.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`20`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyAuthenticationProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` : `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`AuthenticationProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` override`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` suspend`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fun`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` authenticate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(setupToken: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`AuthenticationResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> {`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\" // Make a call to your backend to trigger a `/softposconfig/v{version}/auth/certificate` request, specifying the `setupToken` provided by the SDK\"})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OkHttpClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` request `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Request.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ADDRESS_OF_YOUR_BACKEND_API\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`newCall`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(request).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`execute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`use`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.body?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // parse your own back-end response and return AuthenticationResponse`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` //...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Result.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`success`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AuthenticationResponse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(sdkData))`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Implement the `,_jsx(_components.code,{children:`MerchantAuthenticationService`}),` abstract class: in your implementation, provide an instance of your `,_jsx(_components.code,{children:`AuthenticationProvider`}),` from the previous step. If you use Dagger2/Hilt dependency injection, below is an example of how you could do this:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyAuthenticationService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` : `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`MerchantAuthenticationService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` @Inject`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` override`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` lateinit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` authenticationProvider: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`AuthenticationProvider`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Add the service to your POS app’s `,_jsx(_components.code,{children:`AndroidManifest.xml`}),` file.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`xml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`xml`,children:_jsxs(_components.code,{language:`xml`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`service`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` android:name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".MyAuthenticationService\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Make sure that the `,_jsx(_components.code,{children:`MerchantAuthenticationService`}),` can provide new `,_jsx(_components.code,{children:`sdkData`}),` at any time.`,_jsx(_components.br,{}),`\n`,`If there is no session or the session has expired, the service is called using the `,_jsx(_components.code,{children:`MerchantAuthenticationService.authenticate(setupToken)`}),` callback. Using the provided `,_jsx(_components.code,{children:`setupToken`}),` you need to get the `,_jsx(_components.code,{children:`sdkData`}),` through your backend and return it. For instructions, see `,_jsx(_components.a,{href:`#session`,children:`Establish a session`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The Adyen POS Mobile SDK detects the `,_jsx(_components.code,{children:`MerchantAuthenticationService`}),` automatically. If the SDK fails to detect the service, an error will occur when SDK methods are called. To resolve this, you can manually set the service using `,_jsx(_components.code,{children:`InPersonPayments.setAuthenticationServiceClass()`}),`.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`manage-automatic-initialization`,children:`Manage automatic initialization`}),_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`#enable-transactions`,children:`initializes automatically`}),`, using the `,_jsx(_components.a,{href:`https://developer.android.com/topic/libraries/app-startup`,children:`Android App Startup library`}),`. If you prefer to manually initialize the , add the following code to the POS app’s `,_jsx(_components.code,{children:`AndroidManifest.xml`}),` file to disable the .`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`provider`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` android:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"androidx.startup.InitializationProvider\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` android:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`authorities`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`applicationId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.androidx-startup\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` android:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`exported`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"false\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` tools:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`node`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"merge\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`meta`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` android:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"com.adyen.ipp.api.InPersonPaymentsInitializer\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` tools:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`node`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"remove\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`provider`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),_jsx(_components.p,{children:`To manually initialize that component at a later point, add the following code to the POS app.`}),_jsx(_components.p,{children:`For version 2.6.0 or later:`}),_jsxs(_components.p,{children:[`Since the SDK requires the application to be in the foreground to bind to the service, you need to trigger initialization when your main Activity is visible. Use `,_jsx(_components.code,{children:`repeatOnLifecycle`}),` to ensure that the initialization runs when the Activity is in the `,_jsx(_components.code,{children:`RESUMED`}),` state.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`override`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fun`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onCreate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(savedInstanceState: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Bundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` super`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onCreate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(savedInstanceState)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` lifecycleScope.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`launch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Suspend execution until the Activity is RESUMED`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` repeatOnLifecycle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(Lifecycle.State.RESUMED) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` state `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InPersonPaymentsTools.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initializeManually`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this@MainActivity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (state `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`is`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InitializationState.SuccessfulInitialization) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // SDK is ready`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Handle failure`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`For versions earlier than version 2.6.0:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`AppInitializer.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initializeComponent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(InPersonPaymentsInitializer::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.java)`})]}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`initialization-status-check`,children:`Initialization status check`}),_jsx(_components.p,{children:`To check the status of the SDK initialization, you can use one of the following options.`}),_jsx(_components.p,{children:`For version 2.6.0 or later:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`when`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` state `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InPersonPaymentsTools.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInitializationState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()){`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InitializationState.SuccessfulInitialization `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // SDK is ready. You can now safely proceed.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` is`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InitializationState.FailedInitialization `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Handle initialization failure. Log errors or notify the user.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Log.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MyApp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SDK initialization failed: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`state.failureReasons`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` ->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Unit`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`or for versions earlier than version 2.6.0 if you need more precise control over the state flow:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`InPersonPayments.initialized`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`filter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { it `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InitializationState.SuccessfulInitialization } `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Wait until it is true.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`take`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Take only one item.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`collect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { ready `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (ready) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InPersonPayments.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstallationId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` //...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`manage-pos-app-dependency-initialization`,children:`Manage POS app dependency initialization`}),_jsxs(_components.p,{children:[`The code that you add to the `,_jsx(_components.code,{children:`Application.onCreate()`}),` method is executed for all processes. In some cases, it can be beneficial to skip the re-execution of the code, for example the initialization of your dependency graph or analytics libraries.`]}),_jsx(_components.p,{children:`The following method evaluates specific conditions and returns a boolean value that indicates whether the initialization should be skipped.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (InPersonPaymentsTools.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`shouldSkipAppInitialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(context)) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Perform actions when initialization should be skipped`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Proceed with application initialization`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`Additionally, you can use the following functions:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`suspend InPersonPaymentsTools.getInitializationState()`}),`: this function observes the initialization state of the SDK and pauses the calling coroutine until the SDK initialization finishes and reaches a success or failure state. You can use this suspend function if an action in your app depends on the SDK being fully initialized.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`suspend InPersonPaymentsTools.initializeManually()`}),`: this function triggers initialization of the SDK and waits for the initialization to finish.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`4-use-the-warm-up-function`,children:`4. Use the warm-up function`}),_jsx(_components.p,{children:`To speed up initiating transactions, you can use the warm-up function. This function checks for a session, configuration changes, and security checks if needed.`}),_jsx(_components.p,{children:`As a best practice, call the warm-up function after the SDK has initialized:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`When the POS app starts.`}),`\n`,_jsx(_components.li,{children:`When the POS app returns to the foreground.`}),`\n`]}),_jsx(_components.p,{children:`To call the warm-up function:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`InPersonPayments.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`warmUp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),_jsx(Heading,{level:`2`,id:`5-optional-avoid-delays`,children:`5. (Optional) Avoid delays`}),_jsx(_components.p,{children:`You can avoid delays and speed up the transaction by preparing the card reader outside a transaction flow with configuration and security checks.`}),_jsx(_components.p,{children:`When you start a transaction, the Mobile SDK connects with the card reader to check the reader’s configuration. If the configuration is not up to date, the Mobile SDK sends the latest configuration files to the reader. This can take up to to 30 seconds. Additionally, the Mobile SDK performs a security check every 24 hours. To avoid a delay during the transaction flow, you can prepare the card reader by running these checks outside the transaction flow.`}),_jsx(_components.p,{children:`It is possible to start a transaction while the card reader preparation is running. There can be a short delay during the transaction while any remaining checks and configuration updates are completed.`}),_jsx(_components.p,{children:`We recommend preparing the device for transaction every 24 hours or when the configuration has changed.`}),_jsxs(_components.p,{children:[`To prepare the device outside a transaction flow, call the `,_jsx(_components.strong,{children:`DeviceManager`}),` `,_jsx(_components.code,{children:`prepareDeviceForTransaction`}),` function as follows, where the `,_jsx(_components.code,{children:`device`}),` is the card reader to prepare.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Get the DeviceManager`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deviceManager `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AdyenCardReaders.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(context).deviceManager`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Listen for when a device is connected`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deviceManager.connectionState.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`collect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { connectionState `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(connectionState `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`is`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CardReaderState.Connected) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` device `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` connectionState.cardReaderInfo`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Prepare the connected device`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deviceManager.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`prepareDeviceForTransaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(device)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`]})})}),_jsx(Heading,{level:`2`,id:`6-manage-the-device-manager-ui`,children:`6. Manage the Device Manager UI`}),_jsx(_components.p,{children:`To use the card reader, operators need to:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Connect the mobile device with the card reader through Bluetooth pairing or through USB using a dock or direct USB (if the Android device supports USB host mode).`}),`\n`,_jsx(_components.li,{children:`View an overview of card readers. For example, to switch to a different card reader.`}),`\n`,_jsx(_components.li,{children:`View details of the card reader they are using. For example, to check the battery charge level.`}),`\n`,_jsx(_components.li,{children:`Update the firmware of the card reader or the dock they are using.`}),`\n`]}),_jsx(_components.p,{children:`To handle these tasks, the SDK provides Device Manager functions that enable you to either:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Use the built-in UI.`}),`\n`,_jsx(_components.li,{children:`Build a custom UI.`}),`\n`]})]}),_jsxs(Tab,{title:`Use the built-in UI`,id:`use-the-built-in-ui`,children:[_jsx(_components.p,{children:`To use the built-in UI, you only need to:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Launch the Device Manager`}),`.`,_jsx(_components.br,{}),`\n`,`This automatically takes care of all screens and flows that end users need. For a preview, see:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#ui-for-card-reader-operations`,children:`UI for card reader operations`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#bt-pairing`,children:`Bluetooth pairing`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#updating-card-reader`,children:`Updating the card reader firmware`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#connecting-usb-dock`,children:`Connecting through a dock`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#updating-usb-dock`,children:`Updating the dock firmware`})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Recommended: `,_jsx(_components.strong,{children:`avoid delays when connected through Bluetooth`}),`.`,_jsx(_components.br,{}),`\n`,`When connected through Bluetooth, the card reader enters sleep mode after five minutes of inactivity. When you start a transaction after the reader has gone to sleep, there is a slight delay while the mobile device reconnects to the last connected reader.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Alert users to available firmware updates`}),`.`,_jsx(_components.br,{}),`\n`,`The built-in UI automatically signals that a firmware update is available. In practice however, end users often need an extra reminder. For a secure transaction flow, it is very important that end users update the devices. We therefore strongly recommend that you implement a command to check for firmware updates and create a UI to alert end users and direct them to the built-in screen for performing the update.`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Proceed as follows:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If you disabled automatic initialization of the Mobile SDK, `,_jsx(_components.a,{href:`#manage-automatic-initialization`,children:`initialize the SDK manually`}),`. If you are unsure of the status of the SDK initialization you can run a `,_jsx(_components.a,{href:`#initialization-status-check`,children:`status check`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`To use the device management screens built into the Mobile SDK for Android, call the following code corresponding to your launching method.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Launching from an Activity`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DeviceManagementActivity.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Launching from a Fragment`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`DeviceManagementActivity.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`requireActivity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Launching from Compose`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` context `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` LocalContext.current`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(context `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`? Activity)?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { activity `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DeviceManagementActivity.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(activity)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Avoid delays when connected through Bluetooth by taking either of the following measures:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Before starting the transaction, wake up the card reader by calling the `,_jsx(_components.code,{children:`DeviceManager.connect(cardReader: CardReader)`}),` function.`]}),`\n`,_jsxs(_components.li,{children:[`Regularly refresh the connection between the mobile device and the card reader by implementing a timer that calls the `,_jsx(_components.code,{children:`DeviceManager.connect(cardReader: CardReader)`}),` function every couple of minutes. However, implementing a timer can significantly decrease the battery life of the card reader.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`When connected through USB, the card reader is always ready for use without delay. There is no need to reconnect to the card reader before initiating a transaction.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Regularly check for firmware updates for the card reader and, if used, the dock:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To check for card reader updates, call the `,_jsx(_components.code,{children:`DeviceManager.firmwareUpdateState()`}),` function. The result returns the following possible values:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NoneAvailable`})}),_jsx(_components.td,{children:`There are no new updates available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DeviceUpdateAvailable`})}),_jsx(_components.td,{children:`A device firmware update is available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BluetoothUpdateAvailable`})}),_jsx(_components.td,{children:`A Bluetooth firmware update is available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`MultipleUpdatesAvailable`})}),_jsx(_components.td,{children:`Bluetooth and device firmware updates are available.`})]})]})]}),`\n`,_jsx(_components.p,{children:`If a new update is available, the result also returns the date by which transactions will be refused if the card reader is not updated to this firmware version. When connected through USB, Bluetooth updates cannot be completed and the SDK does not return information about available Bluetooth updates.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To check for dock updates, call the `,_jsx(_components.code,{children:`DeviceManager.dockFirmwareUpdateSummary()`}),` function. If a new update is available, the result returns `,_jsx(_components.code,{children:`AvailableDockFirmwareUpdate`}),` and the date by which transactions will be refused if the dock is not updated to this firmware version. If there is no new update, a null value is returned.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Create a UI to prompt end users to update their devices, redirecting them to the built-in UI for performing the update. This is in addition to the built-in screens that alert to available updates.`}),`\n`]}),`\n`]})]}),_jsxs(Tab,{title:`Build a custom UI`,id:`build-a-custom-ui`,\"data-child-heading-ids\":`[\"bluetooth-pairing\",\"updating-the-card-reader-firmware\",\"connecting-through-usb-using-a-dock\",\"updating-the-dock-firmware\",\"list-of-devicemanager-tools\",\"7-decide-on-transaction-ui-options\",\"add-a-logo\",\"configure-success-screen-duration\",\"customize-position-of-the-nfc-tap-indicator\",\"8-handle-a-payment\",\"9-handle-a-refund\",\"handle-a-referenced-refund\",\"handle-an-unreferenced-refund\",\"10-diagnose-the-device\",\"11-optional-clear-the-session-token\",\"11-optional-optimize-app-size-with-play-feature-delivery\",\"other-supported-features\",\"test-your-solution\",\"go-live\",\"get-the-live-sdk\",\"establish-a-live-session\",\"next-steps\"]`,children:[_jsxs(_components.p,{children:[`If you disabled automatic initialization of the Mobile SDK, you need to `,_jsx(_components.a,{href:`#manage-automatic-initialization`,children:`initialize the SDK manually`}),`.`]}),_jsxs(_components.p,{children:[`If you intend to build your own UI for device management, use the `,_jsx(_components.code,{children:`DeviceManager`}),` interface to obtain all the necessary information.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` deviceManager `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AdyenCardReaders.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(context).deviceManager`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`For an overview, see the `,_jsx(_components.a,{href:`#devicemanager-functions`,children:`List of DeviceManager functions`}),`. The next sections provide information about the Device Manager functions you can use when building a UI for:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#bt-pairing`,children:`Bluetooth pairing`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#updating-card-reader`,children:`Updating the card reader firmware`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#connecting-usb-dock`,children:`Connecting through USB using a dock`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#updating-usb-dock`,children:`Updating the dock firmware`})}),`\n`]}),_jsx(Heading,{level:`3`,id:`bluetooth-pairing`,children:`Bluetooth pairing`}),_jsx(_components.p,{children:`To build a UI for the Bluetooth pairing flow:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Get a list of nearby card readers by calling the `,_jsx(_components.code,{children:`DeviceManager.startBluetoothDiscovery()`}),` function.`]}),`\n`,_jsxs(_components.li,{children:[`Connect to a card reader by calling the `,_jsx(_components.code,{children:`DeviceManager.connect(cardReader: CardReader)`}),` function.`]}),`\n`,_jsxs(_components.li,{children:[`Check if the Bluetooth pairing succeeded by listening to the `,_jsx(_components.code,{children:`DeviceManager.connectionState`}),` flow. If the state changes to `,_jsx(_components.strong,{children:`CardReaderState.Connected`}),`, the reader was paired successfully.`]}),`\n`,_jsxs(_components.li,{children:[`To disconnect from a card reader, call the `,_jsx(_components.code,{children:`disconnect()`}),` function.`]}),`\n`,_jsxs(_components.li,{children:[`As an example, `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#bt-pairing`,children:`see the built-in UI screens`}),`.`]}),`\n`]}),_jsx(_components.p,{children:`When connected through Bluetooth, the card reader enters sleep mode after five minutes of inactivity. When you start a transaction after the reader has gone to sleep, there is a slight delay while the mobile device reconnects to the last connected reader. To avoid this delay, you can take either of the following measures:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Before starting the transaction, wake up the card reader by calling the `,_jsx(_components.code,{children:`DeviceManager.connect(cardReader: CardReader)`}),` function.`]}),`\n`,_jsxs(_components.li,{children:[`Regularly refresh the connection between the mobile device and the card reader by implementing a timer that calls the `,_jsx(_components.code,{children:`DeviceManager.connect(cardReader: CardReader)`}),` function every couple of minutes. However, implementing a timer can significantly decrease the battery life of the card reader.`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`updating-the-card-reader-firmware`,children:`Updating the card reader firmware`}),_jsx(_components.p,{children:`You must check for new firmware updates regularly, and provide a way to update the card reader to the latest version.`}),_jsx(_components.p,{children:`Firmware updates for the card reader are critical for secure transactions, and do not happen automatically.`}),_jsx(_components.p,{children:`It is required that you build logic into your POS app to:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Check for new firmware updates often. For example, when the app is launched.`}),`\n`,_jsx(_components.li,{children:`Handle the firmware update flow correctly within your POS app.`}),`\n`]}),_jsx(_components.p,{children:`Your UI must prompt end users to update the card reader firmware, and inform them about the progress and result of the update process.`}),_jsx(_components.p,{children:`To build your UI:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Check if updates are available by calling the `,_jsx(_components.code,{children:`DeviceManager.firmwareUpdateState()`}),` function. The available update can be for the device layer, the application layer, the Bluetooth layer, or multiple layers at the same time. The result returns the following possible values:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NoneAvailable`})}),_jsx(_components.td,{children:`There are no new updates available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DeviceUpdateAvailable`})}),_jsx(_components.td,{children:`A device firmware update is available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BluetoothUpdateAvailable`})}),_jsx(_components.td,{children:`A Bluetooth firmware update is available.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`MultipleUpdatesAvailable`})}),_jsx(_components.td,{children:`Bluetooth and device firmware updates are available.`})]})]})]}),`\n`,_jsx(_components.p,{children:`If a new update is available, the result also returns the date by which transactions will be refused if the card reader is not updated to this firmware version. When connected through USB, Bluetooth updates cannot be completed and the SDK does not return information about available Bluetooth updates.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Start the update using the `,_jsx(_components.code,{children:`DeviceManager.startFirmwareUpdate()`}),` function.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Listen to the `,_jsx(_components.code,{children:`FirmwareUpdatingState`}),` flow to build UI screens showing the progress and result of the update.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`State`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.Downloading`})}),_jsx(_components.td,{children:`The SDK retrieves all necessary files from Adyen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.UpdatingDevice`})}),_jsx(_components.td,{children:`The SDK installs the update on the card reader.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.Applying`})}),_jsx(_components.td,{children:`The SDK applies the update. The card reader will reboot and reconnect.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.Finished`})}),_jsxs(_components.td,{children:[`Indicates the process has completed.`,_jsx(`br`,{}),`Errors that can happen during software updates are:`]})]})]})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DownloadFailed`})}),_jsx(_components.td,{children:`Downloading the firmware update files did not succeed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UpdateFailed(needsBluetoothRecovery: Boolean)`})}),_jsxs(_components.td,{children:[`The update was not completed. The variable `,_jsx(_components.code,{children:`needsBluetoothRecovery`}),` indicates if the Bluetooth update failed and card reader must be reset before retrying the update.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`If the card reader must be reset before retrying the update, your UI should provide the following instructions:`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`In the Bluetooth settings of the mobile device, select “Forget This Device”.`}),`\n`,_jsx(_components.li,{children:`Re-pair the reader and retry installing the update.`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`As an example, `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#updating-card-reader`,children:`see the built-in UI screens`}),`.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`connecting-through-usb-using-a-dock`,children:`Connecting through USB using a dock`}),_jsx(_components.p,{children:`A USB connection is automatically established when the user connects the dock to power, connects the mobile device to the dock using the USB-C cable provided with the card reader, and places the reader in the dock.`}),_jsx(_components.p,{children:`Your UI must clearly show the difference between these situations:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The mobile device is connected to the dock through USB, but no card reader is placed in the dock.`}),`\n`,_jsx(_components.li,{children:`The card reader is placed in the dock, but the mobile device is connected to the card reader through Bluetooth.`}),`\n`,_jsx(_components.li,{children:`The card reader is placed in the dock and the mobile device is connected to the dock and the reader through USB.`}),`\n`]}),_jsx(_components.p,{children:`To build your UI for dock connections:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Connect to a dock by calling the `,_jsx(_components.code,{children:`connectToDock(usbAccessory: UsbAccessory)`}),` function.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Check if the connection succeeded by listening to the `,_jsx(_components.code,{children:`DeviceManager.dockConnectionState: StateFlow\u003cDockState>`}),` flow. If the state changes to `,_jsx(_components.strong,{children:`DockState.Connected`}),`, the reader and the dock were was connected successfully.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To refresh the USB connection to the dock, call the `,_jsx(_components.code,{children:`refreshConnectionStateForAttachedDock()`}),` function.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To disconnect from a dock, call the `,_jsx(_components.code,{children:`disconnect()`}),` function.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`As an example, `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#connecting-usb-doc`,children:`see the built-in UI screens`}),`.`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`When connected through USB, the card reader is always ready for use without delay. There is no need to reconnect to the card reader before initiating a transaction.`}),_jsx(Heading,{level:`3`,id:`updating-the-dock-firmware`,children:`Updating the dock firmware`}),_jsx(_components.p,{children:`You must check for new firmware updates regularly, and provide a way to update the dock to the latest version.`}),_jsx(_components.p,{children:`Firmware updates for the dock are critical for secure transactions, and do not happen automatically.`}),_jsx(_components.p,{children:`It is required that you build logic into your POS app to:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Check for new firmware updates often. For example, when the app is launched.`}),`\n`,_jsx(_components.li,{children:`Handle the firmware update flow correctly within your POS app.`}),`\n`]}),_jsx(_components.p,{children:`Your UI must prompt end users to update the dock firmware, and inform them about the progress and result of the update process.`}),_jsx(_components.p,{children:`To build your UI:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Check if updates are available by calling the `,_jsx(_components.code,{children:`DeviceManager.dockFirmwareUpdateSummary()`}),` function. If a new update is available, the result returns `,_jsx(_components.code,{children:`AvailableDockFirmwareUpdate`}),` and the date by which transactions will be refused if the dock is not updated to this firmware version. If there is no new update, a null value is returned.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Start the update using the `,_jsx(_components.code,{children:`DeviceManager.startDockFirmwareUpdate()`}),` function.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Listen to the `,_jsx(_components.code,{children:`FirmwareUpdatingState`}),` flow to build UI screens showing the progress and result of the update.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`State`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.Downloading`})}),_jsx(_components.td,{children:`The SDK retrieves all necessary files from Adyen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.UpdatingDevice`})}),_jsx(_components.td,{children:`The SDK installs the update on the dock.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.Applying`})}),_jsx(_components.td,{children:`The SDK applies the update.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FirmwareUpdatingState.Finished`})}),_jsxs(_components.td,{children:[`Indicates the process has completed.`,_jsx(`br`,{}),`Errors that can happen during software updates are:`]})]})]})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DownloadFailed`})}),_jsxs(_components.td,{children:[`Downloading the firmware update files did not succeed.`,_jsx(`br`,{}),`As an example, `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/understand#updating-usb-dock`,children:`see the built-in UI screens`}),`.`]})]})})]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`list-of-devicemanager-tools`,children:`List of DeviceManager tools`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`DeviceManager`}),` lets you scan for card readers through Bluetooth device discovery, connect and disconnect a card reader, connect and disconnect a USB dock, get information about the currently connected card reader, get information about the currently USB dock, and manage firmware updates.`]}),_jsx(_components.p,{children:`You can use the following functions:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`DeviceManager tool`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`connectionState: StateFlow\u003cReaderConnectedState>`})}),_jsx(_components.td,{children:`Returns the connection state of the currently connected card reader.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startBluetoothDiscovery(): Flow\u003cResult\u003cList\u003cDiscoveredDevice>>>`})}),_jsx(_components.td,{children:`Starts scanning for nearby card readers. Returns an error if scanning failed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stopBluetoothDiscovery()`})}),_jsx(_components.td,{children:`Stops scanning for nearby card readers.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`getKnownDevices(): List\u003cCardReaderDevice>`})}),_jsx(_components.td,{children:`Returns a list of paired card readers.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`connect(cardReaderDevice: CardReaderDevice)`})}),_jsx(_components.td,{children:`Connects to a card reader.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`disconnect()`})}),_jsx(_components.td,{children:`Disconnects from the currently connected card reader or USB dock.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`firmwareUpdateSummary(): Result\u003cAvailableFirmwareUpdate>`})}),_jsxs(_components.td,{children:[`Returns information about available firmware updates for the card reader that is currently connected to the mobile device. The result includes:`,_jsx(`br`,{}),_jsx(_components.code,{children:`requiresBluetoothConnection`}),`: indicates if a Bluetooth connection is required to update the card reader. `,_jsx(_components.code,{children:`requiredDate`}),`: `,_jsx(_components.strong,{children:`null`}),`, or the date by which transactions will be refused if the card reader is not updated to this firmware version.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startFirmwareUpdate()`})}),_jsx(_components.td,{children:`Implements the available card reader firmware update. Shows an error if the update failed because the card reader was connected through USB and the update required a Bluetooth connection.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dockConnectionState: StateFlow\u003cDockState>`})}),_jsx(_components.td,{children:`Returns the connection state of the currently connected USB dock.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`connectToDock(usbAccessory: UsbAccessory)`})}),_jsx(_components.td,{children:`Connects to a USB dock.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dockFirmwareUpdateSummary(): Result\u003cAvailableDockFirmwareUpdate?>`})}),_jsxs(_components.td,{children:[`Returns information about available firmware updates for the USB Dock that is currently connected to the mobile device. The result includes:`,_jsx(`br`,{}),_jsx(_components.code,{children:`requiredDate`}),`: `,_jsx(_components.strong,{children:`null`}),`, or the date by which transactions will be refused if the dock is not updated to this firmware version.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startDockFirmwareUpdate()`})}),_jsx(_components.td,{children:`Implements the available firmware update for the USB dock.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refreshConnectionStateForAttachedDock()`})}),_jsx(_components.td,{children:`Refreshes the connected and attached status of USB dock.`})]})]})]}),_jsx(Heading,{level:`2`,id:`7-decide-on-transaction-ui-options`,children:`7. Decide on transaction UI options`}),_jsx(_components.p,{children:`In this step you decide on the options that are available for customizing the transaction user interface.`}),_jsx(_components.p,{children:`If you want the UI to appear in dark mode, you need to enable this options in the settings of your mobile device.`}),_jsxs(_components.p,{children:[`When you `,_jsx(_components.a,{href:`#payment`,children:`start a transaction`}),`, you can customize the user interface using `,_jsx(_components.code,{children:`merchantUiParameters`}),` and the optional fields for the following UI options:`]}),_jsx(_components.p,{children:`**`}),_jsx(Heading,{level:`4`,id:`add-a-logo`,children:`Add a logo`}),_jsx(_components.p,{children:`To show a logo on your mobile device during the transaction flow use:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`merchantLogo`}),`: Format can be SVG (recommended), WEBP, JPEG, or PNG. The logo is shown at 100dp\\xA0x\\xA032dp (width\\xA0x\\xA0height) on top of the payment screen. Trim any transparent pixels from the logo asset, to show your logo as large as possible within the available space.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`..`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`merchantUiParameters `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MerchantUiParameters.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` merchantLogo `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` R.drawable.merchant_logo,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`**`}),_jsx(Heading,{level:`4`,id:`configure-success-screen-duration`,children:`Configure success screen duration`}),_jsx(_components.p,{children:`To specify how long the success screen shows after a successful transaction use:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`autoDismissDelay`}),`: If not specified, this success screen is dismissed after 4 seconds. You can set a time in milliseconds with a minimum of 0.5\\xA0seconds (500L) and a maximum of 4\\xA0seconds (4000L).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`..`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`merchantUiParameters `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MerchantUiParameters.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` autoDismissDelay `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.seconds,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`**`}),_jsx(Heading,{level:`4`,id:`customize-position-of-the-nfc-tap-indicator`,children:`Customize position of the NFC tap indicator`}),_jsxs(_components.p,{children:[`By default, the NFC tap indicator is an animation that points at the back of the device. You can customize the position of the NFC tap indicator on your mobile device screen to point at the location of your card reader. Then use`,_jsx(_components.code,{children:`CardReaderAnimationType`}),`. This allows you to show a chevron-type arrow (`,_jsx(_components.code,{children:`Simplified`}),`), pointing in the specified direction. If there is not enough room on the mobile device screen, no chevron-type arrow can be shown. Instead, a tap indicator is shown in the center of the screen.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Options for `,_jsx(_components.code,{children:`Simplified`}),` are: `,_jsx(_components.code,{children:`CenterRight`}),`, or `,_jsx(_components.code,{children:`CenterLeft`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`CenterLeft`}),_jsx(_components.th,{children:`CenterRight`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/pages/reuse/pos-mobile-sdk/android-build/transaction-ui-options/simplified_centerleft.svg`,alt:``})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/pages/reuse/pos-mobile-sdk/android-build/transaction-ui-options/simplified_centerright.svg`,alt:``})})]})})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`..`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`merchantUiParameters `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MerchantUiParameters.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cardReaderUiParameters `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CardReaderUiParameters.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` animation `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CardReaderAnimationType.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`simplified`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(Position.Center),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`8-handle-a-payment`,children:`8. Handle a payment`}),_jsx(_components.p,{children:`In this step you add code to start a transaction with:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/terminal-api`,children:`Terminal API`}),` payment request.`]}),`\n`,_jsx(_components.li,{children:`The card reader as the payment interface to use.`}),`\n`]}),_jsx(_components.p,{children:`To let the Mobile SDK handle transactions:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`In your POS app, create a Terminal API payment request with:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`MessageHeader.POIID`}),`: the installation ID of the SDK.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`If you create the Terminal API payment request in your POS app, use `,_jsx(_components.code,{children:`InPersonPayments.getInstallationId()`}),` as the `,_jsx(_components.code,{children:`POIID`}),` in the `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/terminal-api#request-message-header`,children:`MessageHeader`}),` of the request.`]}),`\n`,_jsxs(_components.li,{children:[`If you create the Terminal API payment request in the backend, this uses the `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#responses-201-installationId`,children:`installationId`}),` from the `,_jsxs(_components.a,{href:`#session`,children:[_jsx(_components.code,{children:`/auth/certificate`}),` response`]}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`The remaining `,_jsx(_components.code,{children:`MessageHeader`}),` parameters and the request body.`]}),`\n`,_jsxs(_components.p,{children:[`For details, see `,_jsx(_components.a,{href:`/point-of-sale/basic-tapi-integration/make-a-payment`,children:`Make a payment`}),` and `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/terminal-api/latest/post/payment`,children:`PaymentRequest`}),`.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create an instance of `,_jsx(_components.code,{children:`TransactionRequest`}),` using `,_jsx(_components.code,{children:`TransactionRequest.create(nexoRequest)`}),`, and pass the Terminal API payment request from your POS app or backend.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` transactionRequest `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TransactionRequest.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(nexoRequest)`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Get a `,_jsx(_components.code,{children:`PaymentInterface`}),` from `,_jsx(_components.code,{children:`InPersonPayments`}),` using `,_jsx(_components.code,{children:`InPersonPayments.getPaymentInterface(CardReader)`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentInterface `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InPersonPayments.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getPaymentInterface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(CardReader)`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Register a listener for the `,_jsx(_components.code,{children:`PaymentResult`}),` and pass the `,_jsx(_components.code,{children:`transactionResponse`}),` to your POS app. This is the Terminal API payment response, including data you can use to generate a receipt.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`InPersonPayments.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`registerForPaymentResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(context) { result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fold`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onSuccess `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { paymentResult: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PaymentResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ->`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /*`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Here is your success case logic, for example:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * if (paymentResult.success) \"Payment Successful\" else \"Payment Unsuccessful\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` onFailure `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { error: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Throwable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ->`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /*`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Here is your failure case logic, for example:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Log.e(\"InPersonPaymentsResult\", \"Payment Failed\", error)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Invoke `,_jsx(_components.code,{children:`InPersonPayments.performTransaction()`}),` with your transaction data, payment launcher, and `,_jsx(_components.a,{href:`/point-of-sale/mobile-ios/build/card-reader#enable-transactions`,children:`authentication service`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Then customize the user interface using `,_jsx(_components.code,{children:`merchantUiParameters`}),` with the `,_jsx(_components.a,{href:`#transaction-ui-options`,children:`optional fields that you decided on`}),` in the previous step. The following example invokes `,_jsx(_components.code,{children:`InPersonPayments.performTransaction()`}),` and includes parameters to add a custom logo and customizing the position of the NFC tap indicator on your mobile device screen:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`InPersonPayments.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`performTransaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` context `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this@DevAmountEntryActivity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentLauncher `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentLauncher,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentInterface `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result.paymentInterface,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` transactionRequest `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result.transactionRequest,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` merchantUiParameters `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MerchantUiParameters.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` merchantLogo `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` R.drawable.merchant_logo,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` tapToPayUiParameters `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TapToPayUiParameters.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` animation `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TapToPayAnimationType.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`front`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(NfcFrontPosition.TopCenter),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cardReaderUiParameters `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` CardReaderUiParameters`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` animation `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CardReaderAnimationType.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`simplified`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(Position.CenterLeft),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The Mobile SDK checks for a session, starts the transaction, and shows screens on your mobile device to help the customer.`}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`If the shopper does not present their payment method within 30 seconds, the payment request times out. If that happens, you need to make another payment request.`}),_jsx(Heading,{level:`2`,id:`9-handle-a-refund`,children:`9. Handle a refund`}),_jsxs(_components.p,{children:[`There are two types of refund: `,_jsx(_components.a,{href:`#referenced-refund`,children:`referenced`}),` and `,_jsx(_components.a,{href:`#unreferenced-refund`,children:`unreferenced`}),`. The main difference is that a referenced refund is connected to the original payment, and an unreferenced refund isn’t. That makes unreferenced refunds a bit riskier. For an overview of the differences, see `,_jsx(_components.a,{href:`/point-of-sale/basic-tapi-integration/refund-payment`,children:`Refund a payment`}),`.`]}),_jsxs(_components.p,{children:[`Refunds are usually `,_jsx(_components.em,{children:`not`}),` processed synchronously. When you send a request for a referenced or unreferenced refund, the Terminal API response only confirms we received the request.`]}),_jsx(_components.p,{children:`We inform you about the outcome of the refund asynchronously, through a webhook.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`For a referenced refund, we return a `,_jsx(_components.strong,{children:`CANCEL_OR_REFUND`}),` webhook.`]}),`\n`,_jsxs(_components.li,{children:[`For an unreferenced refund, we return a `,_jsx(_components.strong,{children:`REFUND_WITH_DATA`}),` webhook.`]}),`\n`]}),_jsxs(_components.p,{children:[`Depending on the card scheme and country/region where the card is used, unreferenced refunds are sometimes processed synchronously. In that case the Terminal API response includes an `,_jsx(_components.code,{children:`acquirerResponseCode`}),` to indicate the outcome.`]}),_jsxs(_components.p,{children:[`To learn the `,_jsx(_components.a,{href:`/point-of-sale/basic-tapi-integration/refund-payment/refund-webhooks`,children:`outcome of a refund`}),`, you need to set up webhooks.`]}),_jsx(Heading,{level:`3`,id:`handle-a-referenced-refund`,children:`Handle a referenced refund`}),_jsx(_components.p,{children:`The Terminal API request for a referenced refund is a reversal request. The SDK contains a dedicated function for this.`}),_jsx(_components.p,{children:`In your Android POS app, add code for the following steps:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Create a Terminal API reversal request with:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`MessageHeader.POIID`}),`: the installation ID of the SDK.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`If you create the Terminal API reversal request in your POS app, use `,_jsx(_components.code,{children:`InPersonPayments.getInstallationId()`}),` as the `,_jsx(_components.code,{children:`POIID`}),` in the `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/terminal-api#request-message-header`,children:`MessageHeader`}),` of the request.`]}),`\n`,_jsxs(_components.li,{children:[`If you create the Terminal API reversal request in the backend, this uses the `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#responses-201-installationId`,children:`installationId`}),` from the `,_jsxs(_components.a,{href:`#session`,children:[_jsx(_components.code,{children:`/auth/certificate`}),` response`]}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`The remaining `,_jsx(_components.code,{children:`MessageHeader`}),` parameters and the request body.`]}),`\n`,_jsxs(_components.p,{children:[`For details, see `,_jsx(_components.a,{href:`/point-of-sale/basic-tapi-integration/refund-payment/referenced`,children:`Referenced refund`}),` and `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/terminal-api/latest/post/reversal`,children:`ReversalRequest`}),`.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create an instance of `,_jsx(_components.code,{children:`TransactionRequest`}),` using `,_jsx(_components.code,{children:`TransactionReversalRequest.createReversal(nexoRequest: String)`}),`, and pass the Terminal API payment request from your POS app or backend.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Register a listener for the `,_jsx(_components.code,{children:`PaymentResult`}),` and pass the `,_jsx(_components.code,{children:`transactionResponse`}),` to your POS app. This is the Terminal API payment response, including data you can use to generate a receipt.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentLauncher `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InPersonPayments.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`registerForPaymentResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { refundResult `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Handle refund response here.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` //...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Invoke `,_jsx(_components.code,{children:`performReversal()`}),` with your transaction data and `,_jsx(_components.code,{children:`authenticationProvider`}),`.`,_jsx(_components.br,{}),`\n`,`Note that `,_jsx(_components.code,{children:`authenticationProvider`}),` is an implementation of the `,_jsx(_components.a,{href:`https://docs.adyen.com/#enable-transactions`,children:`AuthenticationProvider interface`}),`, which extracts the `,_jsx(_components.code,{children:`sdkData`}),` from the server response.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` suspend`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fun`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` performReversal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TransactionReversalRequest: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`TransactionReversalRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PaymentResult`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Check the `,_jsx(_components.code,{children:`refundResult`}),` that you receive in the `,_jsx(_components.code,{children:`paymentLauncher`}),` callback.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Pass the `,_jsx(_components.code,{children:`refundResult`}),` to your POS app.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`handle-an-unreferenced-refund`,children:`Handle an unreferenced refund`}),_jsxs(_components.p,{children:[`The Terminal API request for an unreferenced refund is a payment request with an additional `,_jsx(_components.code,{children:`paymentType`}),` parameter:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/*`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` * Assuming you've defined serializable [PaymentRequest] and [PaymentData] classes`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentRequest `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PaymentRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentData `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` PaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paymentType `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` PaymentType.Refund,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsxs(_components.p,{children:[`This means you can use the same code as for `,_jsx(_components.a,{href:`#payment`,children:`handling a payment`}),`. The only difference is the structure of the Terminal API payment request that you pass as the payload to the `,_jsx(_components.code,{children:`TransactionRequest`}),`.`]}),_jsxs(_components.p,{children:[`For the structure of the Terminal API request, see `,_jsx(_components.a,{href:`/point-of-sale/basic-tapi-integration/refund-payment/unreferenced`,children:`Unreferenced refund`}),`.`]}),_jsx(Heading,{level:`2`,id:`10-diagnose-the-device`,children:`10. Diagnose the device`}),_jsx(_components.p,{children:`We recommend implementing the Terminal API diagnosis request. This enables you to do the following:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Check for `,_jsx(_components.strong,{children:`security threats`}),` that would block transactions. If threats are detected that an operator can solve, the response includes information about the cause and solution of the problem.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Check the `,_jsx(_components.strong,{children:`expiry date of the SDK`}),` that is used on the mobile device. `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/manage#keep-the-mobile-sdk-up-to-date`,children:`Transactions will be blocked`}),` if mandatory updates are not carried out.`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`In your Android POS app, add code for the following steps:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Create a Terminal API diagnosis request with:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`MessageHeader.POIID`}),`: the installation ID of the SDK.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`If you create the Terminal API diagnosis request in your POS app, use `,_jsx(_components.code,{children:`InPersonPayments.getInstallationId()`}),` as the `,_jsx(_components.code,{children:`POIID`}),` in the `,_jsx(_components.a,{href:`/point-of-sale/design-your-integration/terminal-api#request-message-header`,children:`MessageHeader`}),` of the request.`]}),`\n`,_jsxs(_components.li,{children:[`If you create the Terminal API diagnosis request in the backend, this uses the `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate#responses-201-installationId`,children:`installationId`}),` from the `,_jsxs(_components.a,{href:`#session`,children:[_jsx(_components.code,{children:`/auth/certificate`}),` response`]}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`The remaining `,_jsx(_components.code,{children:`MessageHeader`}),` parameters.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`The request body consisting of `,_jsx(_components.code,{children:`DiagnosisRequest.HostDiagnosisFlag`}),`: set to `,_jsx(_components.strong,{children:`true`}),`, so that the SDK will try to perform a security scan.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For details, see `,_jsx(_components.a,{href:`/point-of-sale/diagnostics/request-diagnosis#diagnosis-request-mobile`,children:`Diagnose a Mobile SDK solution`}),` and `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/terminal-api/latest/post/diagnosis`,children:`DiagnosisRequest`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Create an instance of `,_jsx(_components.code,{children:`DiagnosisRequest`}),` using `,_jsx(_components.code,{children:`DiagnosisRequest.create(nexoRequest)`}),`, and pass the Terminal API diagnosis request from your POS app or backend.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`val`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` diagnosisRequest `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DiagnosisRequest.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(nexoRequest)`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Invoke `,_jsx(_components.code,{children:`InPersonPayments.performDiagnosis()`}),` with your diagnosis data and diagnosis launcher.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`kotlin`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`kotlin`,children:_jsxs(_components.code,{language:`kotlin`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`InPersonPayments.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`performDiagnosis`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(diagnosisRequest)`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Check the response that you received:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Base64-decode the `,_jsx(_components.code,{children:`attestationStatus`}),` value for information about any security issues. If issues are detected that can be resolved by the end user, the resulting JSON object includes messages with the details. These are the same `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/troubleshooting#error-messages-for-the-android-sdk`,children:`error messages`}),` that we show automatically on the end user’s mobile device when these issues are detected during a transaction.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.code,{children:`sdkExpiry`}),` for the date when the installed SDK version expires.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For a detailed explanation of the response, see `,_jsx(_components.a,{href:`/point-of-sale/diagnostics/request-diagnosis#diagnosis-request-mobile`,children:`Diagnose a Mobile SDK solution`}),`.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`11-optional-clear-the-session-token`,children:`11. (Optional) Clear the session token`}),_jsx(_components.p,{children:`There are several situations when you need to clear the existing session to remove all session information from your mobile device. When you have cleared the session, configuration updates are fetched and a new session is established when you start a new transaction or call the warm-up function.`}),_jsx(_components.p,{children:`As a best practice, clear the session to:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Re-establish a session after switching between merchant accounts or stores in your POS app and your Customer Area`}),`. If the device is reassigned from store A to store B and a transaction is started there, on the Adyen side the transaction will continue to appear to belong to store A instead of store B. Clearing the session prevents this issue.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Force a refresh of the configuration`}),`. After clearing the session, the latest configuration is fetched and stored on your mobile device the next time the Mobile SDK for Android connects to the Adyen backend.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Test the session establishment flow in your POS app`}),`, specifically how it interacts with your and Adyen’s backend to securely establish a session with the Mobile SDK for Android.`]}),`\n`]}),_jsx(_components.p,{children:`To clear the session:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Explicitly clear the communication session using `,_jsx(_components.code,{children:`InPersonPayments.clearSession()`}),` .`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#session`,children:`Establish a new communication session`}),`.`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`11-optional-optimize-app-size-with-play-feature-delivery`,children:`11. (Optional) Optimize app size with Play Feature Delivery`}),_jsxs(_components.p,{children:[`It is possible to optimize the size of your Android Mobile SDK-enabled app with `,_jsx(_components.a,{href:`https://developer.android.com/guide/playcore/feature-delivery/on-demand`,children:`Android’s Play Feature Delivery`}),`.`,_jsx(_components.br,{}),`\n`,`With Play Feature Delivery, you can separate features from the base module of your app. This means that instead of a large, single download, users initially receive only your app’s core functionalities (embedded features). Users can then later download and install the other (dynamic) features on demand. As a result, you will have a smaller initial app size, stay within `,_jsx(_components.a,{href:`https://support.google.com/googleplay/android-developer/answer/9859372?hl=en`,children:`Google Play’s size limits`}),`, and provide a faster download experience.`]}),_jsxs(_components.p,{children:[`After you have followed the `,_jsx(_components.a,{href:`https://developer.android.com/guide/playcore/feature-delivery`,children:`Google Play instructions`}),` to set up your app to use Play Feature Delivery, do the following:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Add this dependency to your app module implementation: `,_jsx(_components.code,{children:`com.adyen.ipp:dynamic-base:$version`})]}),`\n`,_jsx(_components.li,{children:`Add the other SDK dependencies to your feature module as you would normally do.`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://github.com/Adyen/adyen-pos-mobile-android/tree/main/app-dynamic`,children:`Refer to this example implementation`}),` of the Adyen POS Mobile SDK using an Android Dynamic Feature Module.`]}),_jsx(Heading,{level:`2`,id:`other-supported-features`,children:`Other supported features`}),_jsxs(_components.p,{children:[`In addition to `,_jsx(_components.a,{href:`#payment`,children:`payments`}),`, `,_jsx(_components.a,{href:`#referenced-refund`,children:`refunds`}),`, and `,_jsx(_components.a,{href:`#diagnosis`,children:`diagnosis`}),`, the Mobile solutions support other (payment) features. These are the same features that are supported in Terminal API integrations using Adyen-provided payment terminals.`]}),_jsxs(_components.p,{children:[`For some features you need to add parameters to your Terminal API payment request, similar to `,_jsx(_components.a,{href:`#unreferenced-refund`,children:`unreferenced refunds`}),` described above. Other features only require enabling the feature for your Adyen account. You can find the details on the pages dedicated to those features. Where the details differ between an integration using payment terminals and a mobile solution, this is clearly indicated.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feature`}),_jsx(_components.th,{children:`Supported with Card reader Android`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Diagnosis`}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/point-of-sale/partial-authorizations`,children:`Partial authorization`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Payment`}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/point-of-sale/pre-authorisation`,children:`Pre-authorization`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Refund, referenced`}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Refund, unreferenced`}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png`,alt:`-white_check_mark-`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/point-of-sale/offline-payment`,children:`Store and forward`}),` offline payments`]}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/x.png`,alt:`-x-`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/point-of-sale/surcharge`,children:`Surcharge`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/x.png`,alt:`-x-`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/point-of-sale/shopper-recognition/tax-free-shopping`,children:`Tax-free shopping`})}),_jsx(_components.td,{children:_jsx(_components.img,{src:`https://docs.adyen.com/user/data/smileys/emoji/x.png`,alt:`-x-`})})]})]})]}),_jsx(Heading,{level:`2`,id:`test-your-solution`,children:`Test your solution`}),_jsx(_components.p,{children:`To make test transactions:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Make sure you are using the test version of the Mobile SDK.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Initiate a test transaction using the following Adyen point-of-sale test cards to complete the payment:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/point-of-sale/testing-pos-payments/test-card-v3`,children:`White-green test card`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/point-of-sale/testing-pos-payments/test-card-v2`,children:`Blue-green test card`}),` version `,_jsx(_components.strong,{children:`2.4`}),` or later`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The instructions are the same for both cards; see either of the pages mentioned above.`}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`go-live`,children:`Go live`}),_jsx(_components.p,{children:`When you have finished testing your integration and are ready to go live:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If new to Adyen, get a `,_jsx(_components.a,{href:`/get-started-with-adyen#apply-for-your-live-account`,children:`live account`}),`. You need to have access to your organization’s live Customer Area to generate API credentials for the live environment.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`#get-the-live-sdk`,children:`Get the live SDK`}),`. You need to generate a new, live API key exclusively for downloading the SDK.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`#establish-a-live-session`,children:`Use the live endpoint for establishing a session`}),`. To access the live endpoint, you need to generate a new, live API key that is different from the API key used for downloading the SDK.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Optional. `,_jsx(_components.a,{href:`/point-of-sale/mobile-android/manage#google-play`,children:`Upload your app to Google Play`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/point-of-sale/mobile-android/manage#register-app`,children:`Register your app with Adyen`}),`.`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`get-the-live-sdk`,children:`Get the live SDK`}),_jsx(_components.p,{children:`When going live, you need to get the release version of the SDK, which is available on the live repository. To access it, you need to change the repository URL as well as your API key.`}),_jsx(_components.p,{children:`To pull in the live version of the SDK:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In your `,_jsx(_components.a,{href:`https://ca-live.adyen.com/`,children:`live Customer Area`}),`, generate a `,_jsx(_components.a,{href:`#add-sdk`,children:`new API key`}),` that only has the `,_jsx(_components.strong,{children:`Allow SDK download for POS developers`}),` role.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In your project’s `,_jsx(_components.code,{children:`build.gradle`}),` file, change the `,_jsx(_components.code,{children:`URL`}),` to `,_jsx(_components.code,{children:`https://pos-mobile.cdn.adyen.com/adyen-pos-android`}),` and replace `,_jsx(_components.code,{children:`API_KEY`}),` with your new API key.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Add the `,_jsx(_components.code,{children:`release`}),` dependency to your `,_jsx(_components.code,{children:`build.gradle`}),` file.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The live repository has both the `,_jsx(_components.code,{children:`debug`}),` and `,_jsx(_components.code,{children:`release`}),` artifacts. The `,_jsx(_components.code,{children:`-debug`}),` version can only access the test environment and the `,_jsx(_components.code,{children:`-release`}),` version can only access the live environment.`]}),`\n`,_jsx(_components.li,{children:`When you have access to the live repository, you no longer need to use the test repository.`}),`\n`,_jsxs(_components.li,{children:[`In case of other custom build variants, use `,_jsx(_components.code,{children:`\u003cbuildVariantName>Implementation 'com.adyen.ipp:pos-mobile-\u003ctype>:$version'`}),` where `,_jsx(_components.code,{children:`\u003ctype>`}),` can be release (for production builds) or debug (for debug or development builds).`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`groovy`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`groovy`,children:_jsxs(_components.code,{language:`groovy`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`val version `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2.2.0`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`releaseImplementation `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'com.adyen.ipp:pos-mobile-release:$version'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Be aware that importing additional modules will increase the size of your application.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// To optimize your app's size and build times, only include the specific payment features you require.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`releaseImplementation `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'com.adyen.ipp:payment-tap-to-pay-release:$version'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`releaseImplementation `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'com.adyen.ipp:payment-card-reader-release:$version'`})]}),`\n`]})})}),`\n`]}),`\n`]}),_jsx(Heading,{level:`3`,id:`establish-a-live-session`,children:`Establish a live session`}),_jsxs(_components.p,{children:[`When going live, you must change the `,_jsx(_components.a,{href:`https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate`,children:`/auth/certificate`}),` endpoint where you send requests to establish a secure communication session, as well as the API key that you use to authenticate those requests.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`To access the live endpoint, generate a new API key from your `,_jsx(_components.a,{href:`https://ca-live.adyen.com/`,children:`live Customer Area`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`The live endpoint URL to use depends on the region:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Australia: `,_jsx(_components.code,{children:`https://softposconfig-live-au.adyen.com/softposconfig/v{version}/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`Northeast Asia: `,_jsx(_components.code,{children:`https://softposconfig-live-nea.adyen.com/softposconfig/v{version}/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`Europe: `,_jsx(_components.code,{children:`https://softposconfig-live.adyen.com/softposconfig/v{version}/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`North East Asia: `,_jsx(_components.code,{children:`https://softposconfig-live-nea.adyen.com/softposconfig/v{version}/auth/certificate`})]}),`\n`,_jsxs(_components.li,{children:[`United States: `,_jsx(_components.code,{children:`https://softposconfig-live-us.adyen.com/softposconfig/v{version}/auth/certificate`})]}),`\n`]}),`\n`]}),`\n`]}),_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),_jsx(_components.p,{children:_jsx(_components.a,{href:`/point-of-sale/mobile-android/manage`,children:`required`})}),_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Manage your solution`,href:`/point-of-sale/mobile-android/manage`,children:_jsx(_components.p,{children:`Make your solution available and keep the software up-to-date.`})}),_jsx(Card,{title:`Checklists`,href:`/point-of-sale/mobile-android/checklists`,children:_jsx(_components.p,{children:`Get a list of what needs to be done to get started and go live with a Mobile solution.`})}),_jsx(Card,{title:`Error handling`,href:`/point-of-sale/mobile-android/troubleshooting`,children:_jsx(_components.p,{children:`Resolve errors that appear on the mobile Android device.`})}),_jsx(Card,{title:`Use the card reader`,href:`/point-of-sale/user-manuals/nyc1`,children:_jsx(_components.p,{children:`Learn how to connect and operate the NYC1 card reader.`})}),_jsx(Card,{title:`Use the card reader with a dock`,href:`/point-of-sale/user-manuals/nyc1-with-dock`,children:_jsx(_components.p,{children:`Learn how to connect and operate the NYC1 card reader and NYC1 dock.`})})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Card Reader Solution for Android","description":"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.","href":"/point-of-sale/mobile-android/build/card-reader"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Requirements","slug":"requirements","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"1. Add the SDK to your project","slug":"1-add-the-sdk-to-your-project","depth":2,"children":[]},{"title":"2. Establish a session","slug":"2-establish-a-session","depth":2,"children":[{"title":"Create a client key","slug":"create-a-client-key","depth":4,"children":[]},{"title":"Implement the request","slug":"implement-the-request","depth":4,"children":[]},{"title":"Endpoints to use","slug":"endpoints-to-use","depth":4,"children":[],"tabId":"payment-facilitator"}]},{"title":"3. Enable transactions","slug":"3-enable-transactions","depth":2,"children":[{"title":"Manage automatic initialization","slug":"manage-automatic-initialization","depth":3,"children":[],"tabId":"payment-facilitator"},{"title":"Initialization status check","slug":"initialization-status-check","depth":3,"children":[],"tabId":"payment-facilitator"},{"title":"Manage POS app dependency initialization","slug":"manage-pos-app-dependency-initialization","depth":3,"children":[],"tabId":"payment-facilitator"}],"tabId":"payment-facilitator"},{"title":"4. Use the warm-up function","slug":"4-use-the-warm-up-function","depth":2,"children":[],"tabId":"payment-facilitator"},{"title":"5. (Optional) Avoid delays","slug":"5-optional-avoid-delays","depth":2,"children":[],"tabId":"payment-facilitator"},{"title":"6. Manage the Device Manager UI","slug":"6-manage-the-device-manager-ui","depth":2,"children":[],"tabId":"payment-facilitator"},{"title":"Bluetooth pairing","slug":"bluetooth-pairing","depth":3,"children":[],"tabId":"build-a-custom-ui"},{"title":"Updating the card reader firmware","slug":"updating-the-card-reader-firmware","depth":3,"children":[],"tabId":"build-a-custom-ui"},{"title":"Connecting through USB using a dock","slug":"connecting-through-usb-using-a-dock","depth":3,"children":[],"tabId":"build-a-custom-ui"},{"title":"Updating the dock firmware","slug":"updating-the-dock-firmware","depth":3,"children":[],"tabId":"build-a-custom-ui"},{"title":"List of DeviceManager tools","slug":"list-of-devicemanager-tools","depth":3,"children":[],"tabId":"build-a-custom-ui"},{"title":"7. Decide on transaction UI options","slug":"7-decide-on-transaction-ui-options","depth":2,"children":[{"title":"Add a logo","slug":"add-a-logo","depth":4,"children":[],"tabId":"build-a-custom-ui"},{"title":"Configure success screen duration","slug":"configure-success-screen-duration","depth":4,"children":[],"tabId":"build-a-custom-ui"},{"title":"Customize position of the NFC tap indicator","slug":"customize-position-of-the-nfc-tap-indicator","depth":4,"children":[],"tabId":"build-a-custom-ui"}],"tabId":"build-a-custom-ui"},{"title":"8. Handle a payment","slug":"8-handle-a-payment","depth":2,"children":[],"tabId":"build-a-custom-ui"},{"title":"9. Handle a refund","slug":"9-handle-a-refund","depth":2,"children":[{"title":"Handle a referenced refund","slug":"handle-a-referenced-refund","depth":3,"children":[],"tabId":"build-a-custom-ui"},{"title":"Handle an unreferenced refund","slug":"handle-an-unreferenced-refund","depth":3,"children":[],"tabId":"build-a-custom-ui"}],"tabId":"build-a-custom-ui"},{"title":"10. Diagnose the device","slug":"10-diagnose-the-device","depth":2,"children":[],"tabId":"build-a-custom-ui"},{"title":"11. (Optional) Clear the session token","slug":"11-optional-clear-the-session-token","depth":2,"children":[],"tabId":"build-a-custom-ui"},{"title":"11. (Optional) Optimize app size with Play Feature Delivery","slug":"11-optional-optimize-app-size-with-play-feature-delivery","depth":2,"children":[],"tabId":"build-a-custom-ui"},{"title":"Other supported features","slug":"other-supported-features","depth":2,"children":[],"tabId":"build-a-custom-ui"},{"title":"Test your solution","slug":"test-your-solution","depth":2,"children":[],"tabId":"build-a-custom-ui"},{"title":"Go live","slug":"go-live","depth":2,"children":[{"title":"Get the live SDK","slug":"get-the-live-sdk","depth":3,"children":[],"tabId":"build-a-custom-ui"},{"title":"Establish a live session","slug":"establish-a-live-session","depth":3,"children":[],"tabId":"build-a-custom-ui"}],"tabId":"build-a-custom-ui"},{"title":"Next steps","slug":"next-steps","depth":2,"children":[],"tabId":"build-a-custom-ui"}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/adyen-preview/60f49d66a6c7e631/disable-image-open.js"],"subdomain":"adyen-preview","siteName":"Adyen Docs","title":"Card Reader Solution for Android - Adyen Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-07T22:51:53.158Z","originalFileLocation":"point-of-sale/mobile-android/build/card-reader.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Adyen Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Card Reader Solution for Android - Adyen Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Adyen Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://adyen-preview.mintlify.site/_mintlify/api/og/v2?division=Build+your+Android+mobile+solution\u0026amp;title=Card+Reader+Solution+for+Android\u0026amp;description=Integrate+your+POS+app+with+the+Adyen+Mobile+SDK+for+Android+to+make+mobile+payments+using+a+card+reader.\u0026amp;theme=8534ab0e95bc3dedc267edec\u0026amp;signature=5a3dd9aff91c78ec8d5fe9c70de2ccab2635f9f875dd4f172b05ca2736319894\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Card Reader Solution for Android - Adyen Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://adyen-preview.mintlify.site/_mintlify/api/og/v2?division=Build+your+Android+mobile+solution\u0026amp;title=Card+Reader+Solution+for+Android\u0026amp;description=Integrate+your+POS+app+with+the+Adyen+Mobile+SDK+for+Android+to+make+mobile+payments+using+a+card+reader.\u0026amp;theme=8534ab0e95bc3dedc267edec\u0026amp;signature=5a3dd9aff91c78ec8d5fe9c70de2ccab2635f9f875dd4f172b05ca2736319894\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/adyen-preview/tS4a7N9b_Xnl87WT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Adyen Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0abf53\">\u003clink data-mint-head rel=\"canonical\" href=\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/point-of-sale/mobile-android/build/card-reader.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://adyen-preview.mintlify.app/#organization\",\"name\":\"Adyen Docs\",\"url\":\"https://adyen-preview.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/adyen-preview/lASzPax-5LijrTyv/logo/adyen-logo-light.svg?fit=max\u0026auto=format\u0026n=lASzPax-5LijrTyv\u0026q=85\u0026s=2c1afa7588316f526e65513e790f5095\"}},{\"@type\":\"WebSite\",\"@id\":\"https://adyen-preview.mintlify.app#website\",\"name\":\"Adyen Docs\",\"url\":\"https://adyen-preview.mintlify.app\",\"publisher\":{\"@id\":\"https://adyen-preview.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader#webpage\",\"url\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader\",\"name\":\"Card Reader Solution for Android\",\"description\":\"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.\",\"dateModified\":\"2026-07-07T22:51:53.158Z\",\"isPartOf\":{\"@id\":\"https://adyen-preview.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In-person payments\",\"item\":\"https://adyen-preview.mintlify.app/point-of-sale\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android mobile solutions\",\"item\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Build your Android mobile solution\",\"item\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Card Reader Solution for Android\",\"item\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader#article\",\"headline\":\"Card Reader Solution for Android\",\"name\":\"Card Reader Solution for Android\",\"description\":\"Integrate your POS app with the Adyen Mobile SDK for Android to make mobile payments using a card reader.\",\"url\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader\",\"mainEntityOfPage\":{\"@id\":\"https://adyen-preview.mintlify.app/point-of-sale/mobile-android/build/card-reader#webpage\"},\"dateModified\":\"2026-07-07T22:51:53.158Z\",\"publisher\":{\"@id\":\"https://adyen-preview.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://adyen-preview.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Adyen Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Adyen Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/point-of-sale/mobile-android/build/card-reader.md","siteName":"Adyen Docs","nav":{"global":null,"tabs":[{"tab":"Payments","menu":[{"item":"Get started","description":"Start accepting payments with Adyen.","pages":[{"title":"Get started","href":"/get-started-with-adyen"}]},{"item":"Online payments","description":"Accept ecommerce payments on your website or in your mobile app.","pages":[{"title":"Online payments","href":"/online-payments"}]},{"item":"In-person payments","description":"Accept point-of-sale payments with our terminals and Tap to Pay.","groups":[{"group":"In-person payments","pages":[{"title":"In-person Payments","href":"/point-of-sale"},{"group":"What we support","root":{"title":"What We Support","href":"/point-of-sale/what-we-support"},"pages":[{"title":"Solutions","href":"/point-of-sale/what-we-support/solutions"},{"title":"Locations and Languages","href":"/point-of-sale/what-we-support/supported-languages"},{"group":"Payment methods","root":{"title":"Payment Methods","href":"/point-of-sale/what-we-support/payment-methods"},"pages":[{"title":"Add Payment Methods","href":"/point-of-sale/what-we-support/payment-methods/add-payment-methods"},{"title":"Manage Payment Methods","href":"/point-of-sale/what-we-support/payment-methods/manage-payment-methods"}]},{"title":"Terminals","href":"/point-of-sale/what-we-support/select-your-terminals"}]},{"group":"Integration overview","root":{"title":"Integration Overview","href":"/point-of-sale/get-started"},"pages":[{"title":"Terminal API Integration Checklist","href":"/point-of-sale/get-started/tapi-checklist"},{"title":"Terminal API Go-live Checklist","href":"/point-of-sale/get-started/go-live-tapi"}]},{"group":"Design your integration","root":{"title":"Design Your Integration","href":"/point-of-sale/design-your-integration"},"pages":[{"group":"Set up your account for in-person payments","root":{"title":"Set up Your Account for In-person Payments","href":"/point-of-sale/design-your-integration/determine-account-structure"},"pages":[{"title":"Automate Store Management","href":"/point-of-sale/design-your-integration/determine-account-structure/automate-store-management"},{"title":"Configure Features","href":"/point-of-sale/design-your-integration/determine-account-structure/configure-features"}]},{"group":"Choose an integration architecture","root":{"title":"Choose an Integration Architecture","href":"/point-of-sale/design-your-integration/choose-your-architecture"},"pages":[{"group":"Building a local integration","root":{"title":"Building a Local Integration","href":"/point-of-sale/design-your-integration/choose-your-architecture/local"},"pages":[{"title":"Protect with a Library","href":"/point-of-sale/design-your-integration/choose-your-architecture/local/protect-with-library"},{"title":"Protect with Your Own Code","href":"/point-of-sale/design-your-integration/choose-your-architecture/local/protect"}]},{"title":"Building a Cloud Integration","href":"/point-of-sale/design-your-integration/choose-your-architecture/cloud"}]},{"group":"Network and connectivity","root":{"title":"Network and Connectivity","href":"/point-of-sale/design-your-integration/network-and-connectivity"},"pages":[{"title":"Network Configuration","href":"/point-of-sale/design-your-integration/network-and-connectivity/network-configuration"},{"title":"Wi-Fi Profiles","href":"/point-of-sale/design-your-integration/network-and-connectivity/wi-fi-profiles"},{"title":"Cellular Failover","href":"/point-of-sale/design-your-integration/network-and-connectivity/cellular-failover"},{"title":"Bluetooth Beacons","href":"/point-of-sale/design-your-integration/network-and-connectivity/set-up-beacons"},{"title":"Bluetooth PAN and Tethering","href":"/point-of-sale/design-your-integration/network-and-connectivity/bluetooth-pan"},{"title":"Bluetooth Base Station","href":"/point-of-sale/design-your-integration/network-and-connectivity/bt-base-station"},{"title":"Networking Issues","href":"/point-of-sale/design-your-integration/network-and-connectivity/networking-issues"},{"title":"End of 2G/3G Network Coverage","href":"/point-of-sale/design-your-integration/network-and-connectivity/end-of-3g"}]},{"group":"Terminal API","root":{"title":"Terminal API","href":"/point-of-sale/design-your-integration/terminal-api"},"pages":[{"title":"Get the Terminal ID","href":"/point-of-sale/design-your-integration/terminal-api/get-the-terminal-id"}]},{"group":"Notifications and webhooks","root":{"title":"Notifications and Webhooks","href":"/point-of-sale/design-your-integration/notifications"},"pages":[{"group":"Display notifications","root":{"title":"Display Notifications","href":"/point-of-sale/design-your-integration/notifications/display-notifications"},"pages":[{"title":"Tender States","href":"/point-of-sale/design-your-integration/notifications/display-notifications/tender-state-reference-sheet"}]},{"title":"Event Notifications","href":"/point-of-sale/design-your-integration/notifications/event-notifications"},{"title":"Platform-generated Webhooks","href":"/point-of-sale/design-your-integration/notifications/standard-notifications"}]}]},{"group":"Implement the payment flow","root":{"title":"Implement the Payment Flow","href":"/point-of-sale/basic-tapi-integration"},"pages":[{"group":"Make a payment","root":{"title":"Make a Payment","href":"/point-of-sale/basic-tapi-integration/make-a-payment"},"pages":[{"title":"Greece Tax Regulations","href":"/point-of-sale/basic-tapi-integration/make-a-payment/greece-tax"}]},{"title":"Pass Application Information","href":"/point-of-sale/basic-tapi-integration/pass-application-information"},{"title":"Cancel an In-progress Transaction","href":"/point-of-sale/basic-tapi-integration/cancel-a-transaction"},{"title":"Generate Receipts","href":"/point-of-sale/basic-tapi-integration/generate-receipts"},{"group":"Refund a payment","root":{"title":"Refund a Payment","href":"/point-of-sale/basic-tapi-integration/refund-payment"},"pages":[{"title":"Referenced Refund","href":"/point-of-sale/basic-tapi-integration/refund-payment/referenced"},{"title":"Unreferenced Refund","href":"/point-of-sale/basic-tapi-integration/refund-payment/unreferenced"},{"title":"Cancel an Unreferenced Refund","href":"/point-of-sale/basic-tapi-integration/refund-payment/cancel-unreferenced"},{"title":"Outcome of a Refund","href":"/point-of-sale/basic-tapi-integration/refund-payment/refund-webhooks"}]},{"title":"Verify Transaction Status","href":"/point-of-sale/basic-tapi-integration/verify-transaction-status"}]},{"group":"Handle responses","root":{"title":"Handle Responses","href":"/point-of-sale/error-scenarios"},"pages":[{"title":"Terminal API Refusal Reasons","href":"/point-of-sale/error-scenarios/refusal-reasons-pos"},{"title":"Raw Responses","href":"/point-of-sale/error-scenarios/raw-acquirer-responses"},{"title":"Penalty Box","href":"/point-of-sale/error-scenarios/penalty-box"},{"title":"Time-outs","href":"/point-of-sale/error-scenarios/pos-timeouts"}]},{"group":"Test your integration","root":{"title":"Test Your Integration","href":"/point-of-sale/testing-pos-payments"},"pages":[{"title":"White-green Adyen Point-of-sale Test Card","href":"/point-of-sale/testing-pos-payments/test-card-v3"},{"title":"Blue-green Adyen Point-of-sale Test Card","href":"/point-of-sale/testing-pos-payments/test-card-v2"},{"title":"White Adyen Point-of-sale Test Card","href":"/point-of-sale/testing-pos-payments/test-card-v1"},{"title":"B2 Test Cards","href":"/point-of-sale/testing-pos-payments/b2-test-cards"}]},{"group":"Run diagnostics","root":{"title":"Run Diagnostics","href":"/point-of-sale/diagnostics"},"pages":[{"title":"Make a Diagnosis Request","href":"/point-of-sale/diagnostics/request-diagnosis"},{"title":"Check the Cloud Connection","href":"/point-of-sale/diagnostics/check-cloud-connection"}]},{"group":"Add information to a payment","root":{"title":"Add Information to a Payment","href":"/point-of-sale/add-data"},"pages":[{"title":"Use Tender Options","href":"/point-of-sale/add-data/tender-options"},{"title":"SaleToAcquirerData","href":"/point-of-sale/add-data/sale-to-acquirer-data"}]},{"title":"Card Application Selection","href":"/point-of-sale/aid-selection-rules"},{"title":"Cardholder Verification Methods","href":"/point-of-sale/cardholder-verification-methods"},{"title":"Cashback","href":"/point-of-sale/cashback-and-cash-out"},{"title":"Capture","href":"/point-of-sale/capturing-payments"},{"title":"Donations Using Giving","href":"/point-of-sale/donate"},{"group":"Dynamic currency conversion","root":{"title":"Dynamic Currency Conversion","href":"/point-of-sale/currency-conversion"},"pages":[{"title":"View the DCC Dashboard","href":"/point-of-sale/currency-conversion/download-and-use-the-dcc-overview-file"}]},{"group":"Installments","root":{"title":"Installments","href":"/point-of-sale/installments"},"pages":[{"title":"Installments in Brazil","href":"/point-of-sale/installments/brazil-installments"},{"title":"Installments in Japan","href":"/point-of-sale/installments/japan-installments"},{"title":"Installments in Mexico","href":"/point-of-sale/installments/mexico-installments"}]},{"group":"Mail order/telephone order (MOTO)","root":{"title":"Mail Order/Telephone Order (MOTO)","href":"/point-of-sale/mail-and-telephone-order-moto"},"pages":[{"title":"AVS Responses for Point of Sale","href":"/point-of-sale/mail-and-telephone-order-moto/avs-responses-pos"}]},{"title":"Manual Key Entry (MKE)","href":"/point-of-sale/enter-payment-manually"},{"title":"Offline Payments","href":"/point-of-sale/offline-payment"},{"title":"Payment Facilitators","href":"/point-of-sale/payment-facilitators"},{"group":"Reconciling totals","root":{"title":"Reconciling Totals","href":"/point-of-sale/reconciling-totals"},"pages":[{"title":"Log in and Log Out","href":"/point-of-sale/reconciling-totals/log-in-and-log-out"},{"title":"Retrieve Totals from the Terminal","href":"/point-of-sale/reconciling-totals/retrieve-totals-from-the-terminal"},{"title":"Reconcile a Balance Mismatch","href":"/point-of-sale/reconciling-totals/reconcile-a-balance-mismatch"}]},{"title":"Risk Management","href":"/point-of-sale/risk-management-pos"},{"group":"Surcharge","root":{"title":"Surcharge","href":"/point-of-sale/surcharge"},"pages":[{"title":"Configuration-based Surcharge","href":"/point-of-sale/surcharge/configuration"},{"title":"Dynamic Surcharge","href":"/point-of-sale/surcharge/dynamic"}]},{"group":"Tipping","root":{"title":"Tipping","href":"/point-of-sale/tipping"},"pages":[{"title":"Tipping from the POS App","href":"/point-of-sale/tipping/tipping-from-cash-register"},{"group":"Tipping from the terminal","root":{"title":"Tipping from the Terminal","href":"/point-of-sale/tipping/tipping-from-terminal"},"pages":[{"title":"Override Configured Tipping Options","href":"/point-of-sale/tipping/tipping-from-terminal/override-tipping-configuration"},{"title":"Override the Amount to Tip On","href":"/point-of-sale/tipping/tipping-from-terminal/change-amount-to-tip-on"}]},{"title":"Tipping on the Receipt","href":"/point-of-sale/tipping/tipping-on-receipt"}]},{"title":"Tokenization","href":"/point-of-sale/recurring-payments"},{"title":"Pre-authorization and Authorization Adjustment","href":"/point-of-sale/pre-authorisation"},{"title":"Autonomous Stores","href":"/point-of-sale/autonomous-stores"},{"group":"Card acquisition","root":{"title":"Card Acquisition","href":"/point-of-sale/card-acquisition"},"pages":[{"title":"Receive Card and Shopper Identifiers","href":"/point-of-sale/card-acquisition/identifiers"},{"title":"Shopper Insights","href":"/point-of-sale/card-acquisition/insights"}]},{"group":"Card recognition","root":{"title":"Card Recognition","href":"/point-of-sale/shopper-recognition"},"pages":[{"title":"Card-based Identification","href":"/point-of-sale/shopper-recognition/identification"},{"title":"Card Identification Before Refunding","href":"/point-of-sale/shopper-recognition/before-refund"},{"title":"Tax-free Shopping with Secure Card Capture","href":"/point-of-sale/shopper-recognition/tax-free-shopping"}]},{"title":"Custom Cards","href":"/point-of-sale/custom-cards"},{"group":"Shopper loyalty","root":{"title":"Shopper Loyalty","href":"/point-of-sale/loyalty"},"pages":[{"title":"Card and Shopper Identifiers for Loyalty Use Cases","href":"/point-of-sale/loyalty/payment-data"},{"title":"Wallet Passes","href":"/point-of-sale/loyalty/wallet-passes"}]},{"title":"NFC Tags Reading and Writing","href":"/point-of-sale/nfc-tags"},{"title":"Make Pay-at-table Payments","href":"/point-of-sale/pay-at-x"},{"title":"Quick Chip","href":"/point-of-sale/quick-chip"},{"group":"Shopper engagement","root":{"title":"Shopper Engagement","href":"/point-of-sale/shopper-engagement"},"pages":[{"title":"Create a Flow","href":"/point-of-sale/shopper-engagement/create-session"},{"group":"Display data on the terminal","root":{"title":"Display Data on the Terminal","href":"/point-of-sale/shopper-engagement/display-data"},"pages":[{"title":"Show a QR Code on the Terminal","href":"/point-of-sale/shopper-engagement/display-data/display-qr-code"},{"title":"Show a Virtual Receipt on the Terminal","href":"/point-of-sale/shopper-engagement/display-data/display-receipt"},{"title":"Show an Image on the Terminal","href":"/point-of-sale/shopper-engagement/display-data/display-image"},{"title":"Show the Standby Screen","href":"/point-of-sale/shopper-engagement/display-data/idle-display"}]},{"group":"Collect input","root":{"title":"Collect Input","href":"/point-of-sale/shopper-engagement/shopper-input"},"pages":[{"title":"Ask for Confirmation","href":"/point-of-sale/shopper-engagement/shopper-input/confirmation"},{"title":"Ask for a Signature","href":"/point-of-sale/shopper-engagement/shopper-input/signature"},{"title":"Ask to Select a Single Answer from a List","href":"/point-of-sale/shopper-engagement/shopper-input/menu"},{"title":"Ask to Select One or More Answers from a List","href":"/point-of-sale/shopper-engagement/shopper-input/multi-menu"},{"title":"Ask for Numeric Input","href":"/point-of-sale/shopper-engagement/shopper-input/digit"},{"title":"Ask for Amount Input","href":"/point-of-sale/shopper-engagement/shopper-input/amount"},{"title":"Ask for Phone Number Input","href":"/point-of-sale/shopper-engagement/shopper-input/phone-number"},{"group":"Ask for a rating","root":{"title":"Ask for a Rating","href":"/point-of-sale/shopper-engagement/shopper-input/rating"},"pages":[{"title":"Ask for a Rating\u0026mdash;single Key Press","href":"/point-of-sale/shopper-engagement/shopper-input/rating/rating-single-press"}]},{"title":"Ask for Text Input","href":"/point-of-sale/shopper-engagement/shopper-input/text"},{"title":"Cancel Collecting Input","href":"/point-of-sale/shopper-engagement/shopper-input/cancel-input"}]},{"title":"Print Data on the Terminal","href":"/point-of-sale/shopper-engagement/print-data"},{"title":"Third-party Interactions","href":"/point-of-sale/shopper-engagement/third-party-interactions"}]},{"group":"Standalone solution","root":{"title":"Standalone Solution","href":"/point-of-sale/standalone"},"pages":[{"group":"Build a standalone solution","root":{"title":"Build a Standalone Solution","href":"/point-of-sale/standalone/standalone-build"},"pages":[{"title":"Standalone Integration Checklist","href":"/point-of-sale/standalone/standalone-build/standalone-checklist"},{"title":"Standalone Go-live Checklist","href":"/point-of-sale/standalone/standalone-build/go-live-standalone"},{"title":"Standalone Setup","href":"/point-of-sale/standalone/standalone-build/set-up-standalone"}]},{"title":"Use a Standalone Terminal","href":"/point-of-sale/standalone/standalone-use"}]},{"group":"Get started manuals","root":{"title":"Get Started Manuals","href":"/point-of-sale/user-manuals"},"pages":[{"title":"e280 User Manual","href":"/point-of-sale/user-manuals/e280-user-manual"},{"title":"e285p and e285 User Manual","href":"/point-of-sale/user-manuals/e285-user-manual"},{"title":"M400 User Manual","href":"/point-of-sale/user-manuals/m400-user-manual"},{"title":"P400 Plus User Manual","href":"/point-of-sale/user-manuals/p400-plus-user-manual"},{"title":"UX300 User Manual","href":"/point-of-sale/user-manuals/ux300-user-manual"},{"title":"UX410 User Manual","href":"/point-of-sale/user-manuals/ux410-user-manual"},{"title":"V210 User Manual","href":"/point-of-sale/user-manuals/v210-user-manual"},{"title":"V240m Plus User Manual","href":"/point-of-sale/user-manuals/v240m-user-manual"},{"title":"V400c Plus User Manual","href":"/point-of-sale/user-manuals/v400c-user-manual"},{"title":"V400m User Manual","href":"/point-of-sale/user-manuals/v400m-user-manual"},{"title":"V400m with Bluetooth Base Station","href":"/point-of-sale/user-manuals/v400m-with-bt-base"},{"title":"AMS1 User Manual","href":"/point-of-sale/user-manuals/ams1-user-manual"},{"title":"M450 User Manual","href":"/point-of-sale/user-manuals/m450-user-manual"},{"title":"P630 User Manual","href":"/point-of-sale/user-manuals/p630-user-manual"},{"title":"S1E User Manual","href":"/point-of-sale/user-manuals/s1e-user-manual"},{"title":"S1E2L User Manual","href":"/point-of-sale/user-manuals/s1e2l-user-manual"},{"title":"S1F2 User Manual","href":"/point-of-sale/user-manuals/s1f2-user-manual"},{"title":"S1U2 User Manual","href":"/point-of-sale/user-manuals/s1u2-user-manual"},{"title":"SFO1 User Manual","href":"/point-of-sale/user-manuals/sfo1-user-manual"},{"title":"NYC1 Card Reader User Guide","href":"/point-of-sale/user-manuals/nyc1"},{"title":"NYC1 Card Reader with NYC1 Dock User Guide","href":"/point-of-sale/user-manuals/nyc1-with-dock"},{"group":"Deprecation of eVo terminals","root":{"title":"Deprecation of eVo Terminals","href":"/point-of-sale/user-manuals/terminal-deprecation"},"pages":[{"group":"e315 user manual","root":{"title":"e315 User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual"},"pages":[{"title":"Inspect Device Security - e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/inspect-device-security-e315"},{"title":"Charge the e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/charge-the-e315"},{"title":"Install an iPod or iPhone into the e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/install-an-ipod-or-iphone-into-the-e315"},{"title":"Turn on and Turn Off the e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/turn-on-and-turn-off-the-e315"},{"title":"Board the Terminal - e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/board-the-terminal-e315"},{"title":"Use the Admin Menu - e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/use-the-admin-menu-e315"},{"title":"Understand the LED Colors - e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/understand-the-led-colors-e315"},{"title":"Troubleshooting and Support - e315","href":"/point-of-sale/user-manuals/terminal-deprecation/e315-user-manual/troubleshooting-and-support-e315"}]},{"group":"e355 user manual","root":{"title":"e355 User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual"},"pages":[{"title":"Inspect Device Security - e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/inspect-device-security-e355"},{"title":"Charge the e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/charge-the-e355"},{"title":"Turn on and Off the e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/turn-on-and-off-the-e355"},{"title":"Connect the e355 to Your Wireless Network","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/connect-the-e355-to-your-wireless-network"},{"title":"Board the Terminal - e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/board-the-terminal-e355"},{"title":"Use the Admin Menu - e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/use-the-admin-menu-e355"},{"title":"View Device Info - e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/view-terminal-information-e355"},{"group":"Attach and use the e355 frame","root":{"title":"Attach and Use the e355 Frame","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/attach-and-use-the-e355-frame"},"pages":[{"title":"Attach a Tablet to the Frame","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/attach-and-use-the-e355-frame/attach-a-tablet-to-the-frame"},{"title":"Attach the e355 to the Frame","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/attach-and-use-the-e355-frame/attach-the-e355-to-the-frame"},{"title":"Remove a Tablet from the Frame","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/attach-and-use-the-e355-frame/remove-a-tablet-from-the-frame"},{"title":"Remove the e355 from the Frame","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/attach-and-use-the-e355-frame/remove-the-e355-from-the-frame"},{"title":"Connect the e355 Frame to a Power Source","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/attach-and-use-the-e355-frame/connect-the-e355-frame-to-a-power-source"}]},{"group":"Make a payment on the e355 over Bluetooth","root":{"title":"Make a Payment on the e355 over Bluetooth","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/make-a-payment-on-the-e355-over-bluetooth"},"pages":[{"title":"Step 1- Clean the Bluetooth Configuration","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/make-a-payment-on-the-e355-over-bluetooth/step-1-clean-the-bluetooth-configuration"},{"title":"Step 2 - Pair the e355 with a Mobile Device","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/make-a-payment-on-the-e355-over-bluetooth/step-2-pair-the-e355-with-a-mobile-device"},{"title":"Step 3 - Start a Transaction","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/make-a-payment-on-the-e355-over-bluetooth/step-3-start-a-transaction"},{"title":"Remove Configuration and Reboard","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/make-a-payment-on-the-e355-over-bluetooth/remove-configuration-and-reboard"},{"title":"Troubleshoot the Bluetooth Connection","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/make-a-payment-on-the-e355-over-bluetooth/troubleshoot-the-bluetooth-connection"}]},{"title":"Understand the LED Colors - e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/understand-the-led-colors-e355"},{"title":"Troubleshooting and Support - e355","href":"/point-of-sale/user-manuals/terminal-deprecation/e355-user-manual/troubleshooting-and-support-e355"}]},{"group":"MX925 user manual","root":{"title":"MX925 User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/mx925-user-manual"},"pages":[{"title":"Inspect Device Security - MX925","href":"/point-of-sale/user-manuals/terminal-deprecation/mx925-user-manual/inspect-device-security-mx925"},{"title":"Board the Terminal - MX925","href":"/point-of-sale/user-manuals/terminal-deprecation/mx925-user-manual/board-the-terminal-mx925"},{"title":"Use the Admin Menu - MX925","href":"/point-of-sale/user-manuals/terminal-deprecation/mx925-user-manual/use-the-admin-menu-mx925"},{"title":"View Device Info - MX925","href":"/point-of-sale/user-manuals/terminal-deprecation/mx925-user-manual/view-terminal-information-mx925"},{"title":"Troubleshooting and Support MX925","href":"/point-of-sale/user-manuals/terminal-deprecation/mx925-user-manual/troubleshooting-and-support-mx925"}]},{"group":"VX675 user manual","root":{"title":"VX675 User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual"},"pages":[{"title":"Inspect Device Security - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/inspect-device-security-vx675"},{"title":"Turn on and Turn Off the VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/turn-on-and-turn-off-the-vx675"},{"title":"Connect the VX675 to Your Wireless Network","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/connect-the-vx675-to-your-wireless-network"},{"title":"Install or Replace Paper Rolls - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/install-or-replace-paper-rolls-vx675"},{"title":"Board the Terminal - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/board-the-terminal-vx675"},{"title":"Use the Admin Menu - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/use-the-admin-menu-vx675"},{"title":"View Device Info - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/view-terminal-information-vx675"},{"title":"Make Special Payments - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/make-special-payments-vx675"},{"title":"Print a Summary of Transaction Totals - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/print-shift-and-end-of-day-reports-vx675"},{"title":"Perform a Refund in Standalone Mode - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/perform-a-refund-vx675"},{"title":"Troubleshooting and Support - VX675","href":"/point-of-sale/user-manuals/terminal-deprecation/vx675-user-manual/troubleshooting-and-support-vx675"}]},{"group":"VX680 user manual","root":{"title":"VX680 User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual"},"pages":[{"title":"Inspect Device Security - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/inspect-device-security-vx680"},{"title":"Charge the VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/charge-the-vx680"},{"title":"Turn on and Turn Off the VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/turn-on-and-turn-off-the-vx680"},{"title":"Install or Replace Paper Rolls - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/install-or-replace-paper-rolls-vx680"},{"title":"Connect the VX680 to Your Wi-Fi Network","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/connect-the-vx680-to-your-wi-fi-network"},{"title":"Board the Terminal - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/board-the-terminal-vx680"},{"title":"Use the Admin Menu - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/use-the-admin-menu-vx680"},{"title":"View Device Info - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/view-terminal-information-vx680"},{"title":"Make Special Payments - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/make-special-payments-vx680"},{"title":"Perform a Refund in Standalone Mode - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/perform-a-refund-vx680"},{"title":"Print a Summary of Transaction Totals - VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/print-shift-and-end-of-day-reports-vx680"},{"title":"Troubleshooting and Support VX680","href":"/point-of-sale/user-manuals/terminal-deprecation/vx680-user-manual/troubleshooting-and-support-vx680"}]},{"group":"VX690 user manual","root":{"title":"VX690 User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual"},"pages":[{"title":"Inspect Device Security - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/inspect-device-security-vx690"},{"title":"Install or Replace Paper Rolls - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/install-or-replace-paper-rolls-vx690"},{"title":"Connect the VX690 to Your Wireless Network","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/connect-the-vx690-to-your-wireless-network"},{"title":"Board the Terminal - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/board-the-terminal-vx690"},{"group":"Connect a VX690 to a base station with Bluetooth","root":{"title":"Connect a VX690 to a Base Station with Bluetooth","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/connect-a-vx690-to-a-base-station-with-bluetooth"},"pages":[{"title":"Understand the Bluetooth Base Station LED Colors","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/connect-a-vx690-to-a-base-station-with-bluetooth/understand-the-bluetooth-base-station-led-colors"}]},{"title":"Use the Admin Menu - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/use-the-admin-menu-vx690"},{"title":"View Device Info - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/view-terminal-information-vx690"},{"title":"Make Special Payments - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/make-special-payments-vx690"},{"title":"Perform a Refund in Standalone Mode - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/perform-a-refund-vx690"},{"title":"Print a Summary of Transaction Totals - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/print-shift-and-end-of-day-reports-vx690"},{"title":"Troubleshooting and Support - VX690","href":"/point-of-sale/user-manuals/terminal-deprecation/vx690-user-manual/troubleshooting-and-support-vx690"}]},{"group":"VX820 user manual","root":{"title":"VX820 User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-user-manual"},"pages":[{"title":"Inspect Device Security - VX820","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-user-manual/inspect-device-security-vx820"},{"title":"Board the Terminal - VX820","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-user-manual/board-the-terminal-vx820"},{"title":"Use the Admin Menu - VX820","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-user-manual/use-the-admin-menu-vx820"},{"title":"View Device Info - VX820","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-user-manual/view-terminal-information-vx820"},{"title":"Troubleshooting and Support VX820","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-user-manual/troubleshooting-and-support-vx820"}]},{"group":"VX820 Duet user manual","root":{"title":"VX820 Duet User Manual","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual"},"pages":[{"title":"Inspect Device Security - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/inspect-device-security-vx820-duet"},{"title":"Install or Replace Paper Rolls - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/install-or-replace-paper-rolls-vx820-duet"},{"title":"Board the Terminal - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/board-the-terminal-vx820-duet"},{"title":"Use the Admin Menu - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/use-the-admin-menu-vx820-duet"},{"title":"View Device Info - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/view-terminal-information-vx820-duet"},{"title":"Make Special Payments - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/make-special-payments-vx820-duet"},{"title":"Perform a Refund in Standalone Mode - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/perform-a-refund-vx820-duet"},{"title":"Print a Summary of Transaction Totals - VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/print-shift-and-end-of-day-reports-vx820-duet"},{"title":"Troubleshooting and Support VX820 Duet","href":"/point-of-sale/user-manuals/terminal-deprecation/vx820-duet-user-manual/troubleshooting-and-support-vx820-duet"}]}]},{"title":"S1E4Pro User Manual","href":"/point-of-sale/user-manuals/s1e4pro-user-manual"},{"title":"S1F4Pro User Manual","href":"/point-of-sale/user-manuals/s1f4pro-user-manual"}]},{"title":"Menus and Passcodes","href":"/point-of-sale/menu-access"},{"group":"Android terminals","root":{"title":"Android Terminals","href":"/point-of-sale/android-terminals"},"pages":[{"title":"Android App Requirements","href":"/point-of-sale/android-terminals/app-requirements"},{"group":"Deploy apps to your terminals","root":{"title":"Deploy Apps to Your Terminals","href":"/point-of-sale/android-terminals/deploy-apps"},"pages":[{"title":"Upload Apps and Certificates","href":"/point-of-sale/android-terminals/deploy-apps/upload"},{"title":"Schedule Deployment Using the Customer Area","href":"/point-of-sale/android-terminals/deploy-apps/schedule"},{"title":"Deploy Using Profiles","href":"/point-of-sale/android-terminals/deploy-apps/profiles"},{"title":"Schedule Terminal Actions to Deploy Apps","href":"/point-of-sale/android-terminals/deploy-apps/terminal-actions-api"}]},{"group":"Accessibility mode on Android terminals","root":{"title":"Accessibility Mode on Android Terminals","href":"/point-of-sale/android-terminals/accessibility-mode"},"pages":[{"title":"Turn on Accessibility Mode from the POS App","href":"/point-of-sale/android-terminals/accessibility-mode/accessibility-from-pos"},{"title":"Turn on Accessibility Mode from the Terminal","href":"/point-of-sale/android-terminals/accessibility-mode/accessibility-from-terminal"}]},{"group":"Barcode scanning","root":{"title":"Barcode Scanning","href":"/point-of-sale/android-terminals/scan-barcode"},"pages":[{"title":"Activate Barcode Scanning Using the Scan Button on the Terminal","href":"/point-of-sale/android-terminals/scan-barcode/button-scan"},{"title":"Activate Scanning a Single Barcode Using Terminal API","href":"/point-of-sale/android-terminals/scan-barcode/single-session"},{"title":"Activate Scanning Multiple Barcodes Using Terminal API","href":"/point-of-sale/android-terminals/scan-barcode/batch-session"}]},{"title":"Kiosk Mode","href":"/point-of-sale/android-terminals/kiosk-mode"},{"title":"Remote Troubleshooting","href":"/point-of-sale/android-terminals/start-remote-session"},{"title":"Customize Your Android Payment Terminals with Themes","href":"/point-of-sale/android-terminals/themes"}]},{"group":"Manage your terminal fleet","root":{"title":"Manage Your Terminal Fleet","href":"/point-of-sale/managing-terminals"},"pages":[{"title":"Order, Return, or Replace Terminals","href":"/point-of-sale/managing-terminals/order-terminals"},{"title":"Payment Terminal Security Inspection","href":"/point-of-sale/managing-terminals/security-inspection"},{"title":"Assign Terminals","href":"/point-of-sale/managing-terminals/assign-terminals"},{"title":"Board the Terminal","href":"/point-of-sale/managing-terminals/board-terminal"},{"title":"Customize Terminal Settings","href":"/point-of-sale/managing-terminals/customize-terminals"},{"title":"Manage Battery Power","href":"/point-of-sale/managing-terminals/battery-management"},{"title":"Maintain Performance","href":"/point-of-sale/managing-terminals/maintain-performance"}]},{"group":"Automate the management of your terminals","root":{"title":"Automate the Management of Your Terminals","href":"/point-of-sale/automating-terminal-management"},"pages":[{"title":"Order Terminals","href":"/point-of-sale/automating-terminal-management/order-terminals-api"},{"title":"Assign Terminals","href":"/point-of-sale/automating-terminal-management/assign-terminals-api"},{"title":"Use API Calls to Configure Terminals","href":"/point-of-sale/automating-terminal-management/configure-terminals-api"}]},{"group":"Troubleshooting terminals","root":{"title":"Troubleshooting Terminals","href":"/point-of-sale/pos-troubleshooting"},"pages":[{"title":"Run Connection Tests from the Terminal","href":"/point-of-sale/pos-troubleshooting/connection-tests"},{"title":"Run Hardware Tests","href":"/point-of-sale/pos-troubleshooting/hardware-tests"}]},{"title":"What We Support in Our Mobile Solutions","href":"/point-of-sale/ipp-mobile"},{"group":"Android mobile solutions","root":{"title":"Android Mobile Solutions","href":"/point-of-sale/mobile-android"},"pages":[{"title":"Android System Requirements","href":"/point-of-sale/mobile-android/requirements"},{"title":"Security of the Android Mobile Solutions","href":"/point-of-sale/mobile-android/security"},{"title":"Get-started and Go-live Checklists for Android","href":"/point-of-sale/mobile-android/checklists"},{"title":"Understand the Android Mobile Solutions","href":"/point-of-sale/mobile-android/understand"},{"group":"Build your Android mobile solution","root":{"title":"Build Your Android Mobile Solution","href":"/point-of-sale/mobile-android/build"},"pages":[{"title":"Tap to Pay on Android","description":"Integrate your Android POS app with the Mobile SDK to make Tap to Pay payments.","href":"/point-of-sale/mobile-android/build/tap-to-pay"},{"title":"Card Reader Solution for Android","href":"/point-of-sale/mobile-android/build/card-reader"},{"title":"Android Payments App","description":"Use our Payments app to enable Tap to Pay on your Android mobile devices without integrating our POS Mobile SDK.","href":"/point-of-sale/mobile-android/build/payments-app"}]},{"title":"Manage Your Android Mobile Solution","href":"/point-of-sale/mobile-android/manage"},{"title":"Error Handling","href":"/point-of-sale/mobile-android/troubleshooting"}]},{"group":"iOS mobile solutions","root":{"title":"iOS Mobile Solutions","href":"/point-of-sale/mobile-ios"},"pages":[{"title":"iOS System Requirements","href":"/point-of-sale/mobile-ios/requirements"},{"title":"Security of the iOS Mobile Solutions","href":"/point-of-sale/mobile-ios/security"},{"title":"Get-started and Go-live Checklists","href":"/point-of-sale/mobile-ios/checklists"},{"title":"Understand the iOS Mobile Solutions","href":"/point-of-sale/mobile-ios/understand"},{"group":"Build your iOS mobile solution","root":{"title":"Build Your iOS Mobile Solution","href":"/point-of-sale/mobile-ios/build"},"pages":[{"title":"Tap to Pay on iPhone","href":"/point-of-sale/mobile-ios/build/tap-to-pay"},{"title":"Card Reader Solution for iOS","href":"/point-of-sale/mobile-ios/build/card-reader"}]},{"title":"Manage Your iOS Mobile Solution","href":"/point-of-sale/mobile-ios/manage"},{"title":"Error Handling","href":"/point-of-sale/mobile-ios/troubleshooting"}]},{"group":"Update to a new release","root":{"title":"Update to a New Release","href":"/point-of-sale/release-updating"},"pages":[{"title":"Manually Schedule Terminal Software Updates","href":"/point-of-sale/release-updating/manual-deployment"}]},{"title":"Sneak Peek","href":"/point-of-sale/sneak-preview"},{"title":"Release Notes","href":"/point-of-sale/firmware-release-notes"},{"title":"Deprecation of Classic Libraries","href":"/point-of-sale/classic-library-deprecation"},{"group":"Alternative payment methods","root":{"title":"Alternative Payment Methods","href":"/point-of-sale/alternative-payment-methods"},"pages":[{"title":"Meal Voucher Payments in Brazil","href":"/point-of-sale/alternative-payment-methods/brazil-vouchers"},{"group":"Gift cards and other stored value cards","root":{"title":"Gift Cards and Other Stored Value Cards","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api"},"pages":[{"title":"Activate a Gift Card","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/activate"},{"title":"Deactivate or Cash Out a Gift Card","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/deactivate"},{"title":"Load Funds to a Gift Card","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/load-a-balance"},{"title":"Make a Gift Card Payment","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/payment"},{"title":"Check the Balance of a Gift Card","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/query-the-balance"},{"title":"Make a Refund to a Gift Card","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/refund-gift-cards"},{"title":"Undo a Load Transaction to a Gift Card","href":"/point-of-sale/alternative-payment-methods/gift-cards-terminal-api/void"}]},{"title":"One-time Numeric Code Payments","href":"/point-of-sale/alternative-payment-methods/otc-digit-based-payments"},{"title":"QR Code Wallet Payments","href":"/point-of-sale/alternative-payment-methods/qr-code-wallets"}]},{"title":"Partial Authorizations","href":"/point-of-sale/partial-authorizations"}]}]},{"item":"Omnichannel","description":"Get insights and build customer journeys across sales channels.","pages":[{"title":"Omnichannel","href":"/unified-commerce"}]},{"item":"Plugins","description":"Connect your existing commerce system to our payments platform.","pages":[{"title":"Plugins","href":"/plugins"}]}]},{"tab":"Adyen for Platforms","menu":[{"item":"Get started","description":"Discover which Adyen for Platforms offering is the best for you.","pages":[{"title":"Get started","href":"/adyen-for-platforms-model"}]},{"item":"Platforms","description":"Enable your users to accept online and in-person payments.","pages":[{"title":"Platforms","href":"/platforms"}]},{"item":"Marketplaces","description":"Allow sellers to accept online payments on your marketplace.","pages":[{"title":"Marketplaces","href":"/marketplaces"}]},{"item":"Business accounts","description":"Offer business accounts to your users.","pages":[{"title":"Business accounts","href":"/business-accounts"}]},{"item":"Capital","description":"Enable fast business financing for your users.","pages":[{"title":"Capital","href":"/capital"}]},{"item":"Embedded issuing","description":"Create physical and virtual cards for your users.","pages":[{"title":"Embedded issuing","href":"/issuing"}]},{"item":"Classic platforms","description":"Adyen for Platforms integrations before Aug 1, 2022.","pages":[{"title":"Classic platforms","href":"/classic-platforms"}]}],"pages":[{"title":"Adyen for Platforms","href":"/adyen-for-platforms-model"}]},{"tab":"Enterprise financial products","menu":[{"item":"Enterprise accounts","description":"Store and manage your business funds using an account with financial capabilities.","pages":[{"title":"Enterprise accounts","href":"/payouts/payout-service/enterprise-accounts"}]},{"item":"Enterprise issuing","description":"Create physical and virtual cards to manage your expenses.","pages":[{"title":"Enterprise issuing","href":"/issuing"}]},{"item":"Payouts","description":"Make payouts to third parties in multiple locations and currencies.","pages":[{"title":"Payouts","href":"/payouts"}]}],"pages":[{"title":"Enterprise financial products","href":"/payouts/payout-service/enterprise-accounts"}]},{"tab":"Business operations","menu":[{"item":"Account","description":"Manage your Adyen account configuration in your dashboard.","pages":[{"title":"Account","href":"/account"}]},{"item":"Reporting","description":"Get financial or operational reports for your business.","pages":[{"title":"Reporting","href":"/reporting"}]},{"item":"Risk management","description":"Detect payment fraud, reduce risk, and handle disputes.","pages":[{"title":"Risk management","href":"/risk-management"}]},{"item":"Adyen Uplift","description":"Optimize your integration by balancing payment conversion, fraud, and cost.","pages":[{"title":"Adyen Uplift","href":"/uplift"}]}],"pages":[{"title":"Business operations","href":"/account"}]},{"tab":"Development resources","menu":[{"item":"API credentials","description":"Authenticate your API requests with Adyen.","pages":[{"title":"API credentials","href":"/development-resources/api-credentials"}]},{"item":"Webhooks","description":"Get updates about your account, payments, and other integration aspects.","pages":[{"title":"Webhooks","href":"/development-resources/webhooks"}]},{"item":"Error codes and messages","description":"Learn about error responses to API requests.","pages":[{"title":"Error codes and messages","href":"/development-resources/error-codes"}]},{"item":"Release notes","description":"Keep track of the updates and changes in our products.","pages":[{"title":"Release notes","href":"/release-notes"}]},{"item":"More development resources","description":"Learn about testing, integration, and security best practices.","pages":[{"title":"More development resources","href":"/development-resources"}]}],"pages":[{"title":"Development resources","href":"/development-resources/api-credentials"}]},{"tab":"Industries and markets","menu":[{"item":"Industries","description":"See what features we recommend.","pages":[{"title":"Industries","href":"/industries"}]},{"item":"Markets","description":"Dive into discussions about specific markets.","pages":[{"title":"Markets","href":"/industries/markets"}]},{"item":"Peak season readiness","description":"Prepare for the busiest period in the year.","pages":[{"title":"Peak season readiness","href":"/industries/peak-season"}]}],"pages":[{"title":"Industries and markets","href":"/industries"}]}]},"basePath":"","title":"Card Reader Solution for Android - Adyen Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BA_UUN68.js","lightbox-handle-r17bVUz3.js"]}