Skip to main content
If you want to accept Tap to Pay payments on your Android mobile device but do not want to integrate our POS Mobile SDK, you can download the Adyen Payments app from the Google Play store. You can then use the Payments app to connect your own POS app to the Adyen payments platform and authenticate payment requests in a compliant way. This page explains how to build the Payments app solution. Before you begin, see Understand the solutions to help you decide if the Payments app is the right solution for your situation.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

How it works

When building the various flows, you will use Android App Links to call specific parts of the Android Payments app. To build an Android Payments app solution for Tap to Pay:
  1. Build the boarding flow. The Payments app must be boarded on every Android mobile device where the app is installed.
  2. Build the payment flow.
In addition, do the following:
  • Build the reboarding flow. Reboarding enables you to switch to processing though a different store or merchant account using the same app instance and mobile device.
  • Implement an API request to revoke an app instance for cases when the mobile device is defective, stolen, or no longer needed for payments.

1. Board the app

After you download the Payments app from the Google Play store to a mobile device, you need to board the Payments app on that device. Boarding is a three-step process:
  1. Check the boarding status.
    From your POS app, you call a link to check if the Payments app is boarded. If the Payments app is not boarded, you receive a “boarding request token”.
  2. Authenticate the app instance.
    From your back-end, you send an API request that includes the boarding request token. In the response, you receive a one-time boarding token that is unique for the combination of Payments app instance and device.
  3. Finish boarding the app.
    From your POS app, you call a link that includes the boarding token. The response confirms that the Payments app is now boarded, and includes an installation ID that you need to pass in your transaction requests.

1.1 Check the boarding status

To start the boarding flow, you call an App Link from your POS app to check if the Adyen Payments app is already boarded.
  1. From your POS app, call the link. The App Link format is as follows:
    https://www.adyen.com/test/boarded?returnUrl=URLEncoder(your_scheme)
    In this format:
    • https://www.adyen.com/test/ is the test base URL.
    • boarded is the path to use for boarding checks.
    • returnUrl is the URL-encoded URL where you want to receive the response.
    The following example shows how you could build the App Link in your Kotlin project. Build an App Link to check if the Payments app is boarded
    App Link example
  2. Check the response you receive at your returnUrl and decide what to do next:
    • If boarded is true: save the installationId, which you will need in your payment requests. You do not need to continue with the boarding process and you are ready to make a payment.
    • If boarded is false: pass the installationId and boardingRequestToken to your back-end and go to step 2 of the boarding process.
    The response consists of the URL-encoded base URL where you want to receive the response and the following parameters:
Example response