Payment-method icon

Card Component v4.x.x integration

Add card payments to your existing Components integration.

This page explains how to add cards to your existing Android Components integration.

Our Card Component renders the available cards in your payment form, and securely collects sensitive card information, so it doesn't touch your server.

Requirements

Requirement Description
Integration type Make sure that you have an existing Advanced flow Android Components integration.
Setup steps Before you begin:

Get your client key

  1. Log in to your Customer Area.
  2. Go to Developers > API credentials, and select the credential username for your integration, for example ws@Company.[YourCompanyAccount].
  3. Under Client settings > Authentication select the Client key tab.
  4. Select Generate client key.
  5. Select the copy icon and store your client key securely in your system.
  6. Under Add allowed origins, enter your domains and select Add.
  7. Select Save changes.

Show the available cards in your payment form

For information about the supported locations and currencies for each card, refer to Payment methods.

To show the Card Component in your payment form, you need to:

  1. Specify in your /paymentMethods request a combination of countryCode and amount.currency. This is used to determine which cards are available to the shopper.

  2. Deserialize the /paymentMethods response, and get the object with type: scheme.
    For showing stored cards, get the object with type: storedPaymentMethods.

  3. Add the Card Component:

    a. Import the Card Component to your build.gradle file.

      implementation "com.adyen.checkout:card: