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
- Log in to your Customer Area.
- 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 the copy icon and store your client key securely in your system.
- Under Add allowed origins, enter your domains and select Add.
- 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:
-
Specify in your /paymentMethods request a combination of countryCode and amount.currency. This is used to determine which cards are available to the shopper.
-
Deserialize the /paymentMethods response, and get the object with
type
: scheme.
For showing stored cards, get the object withtype
: storedPaymentMethods. -
Add the Card Component:
a. Import the Card Component to your
build.gradle
file.implementation "com.adyen.checkout:card: