--- title: "Wero Android Component" description: "Add Wero to your Components integration." url: "https://docs.adyen.com/payment-methods/wero/android-component" source_url: "https://docs.adyen.com/payment-methods/wero/android-component.md" canonical: "https://docs.adyen.com/payment-methods/wero/android-component" last_modified: "2026-09-25T16:52:14+02:00" language: "en" --- # Wero Android Component Add Wero to your Components integration. You can add Wero to your existing integration. The following instructions show only what you must add to your integration specifically for Wero. If an instruction on this page corresponds with a step in the main integration guide, it includes a link to corresponding step of the main integration guide. The additions you must make depends on the [server-side flow](https://docs.adyen.com/online-payments/build-your-integration) that your integration uses: ## Sessions flow Component ### Before-You-Begin ## Requirements | Requirement | Description | | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - | | **Integration type** | Make sure that you have an existing Sessions flow [Android Components integration](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Android). | | | **Checkout API** | Make sure that you use Checkout API v68 or later. | | | **Redirect handling** | Make sure that your existing integration is set up to [handle the redirect](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Android\&integration=Components#handle-the-redirect). `action.type`: **redirect** | | | **Setup steps** | Before you begin, [add Wero in your Customer Area](https://docs.adyen.com/payment-methods/add-payment-methods). | | ### Add-Parameters-Sessions-Request ## Add additional parameters to your /sessions request You do not need to add any parameters when you [create a payment session](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Android\&integration=Components#create-a-payment-session). ### Import-Component ## Import the Component for Wero To [import the library](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Android\&integration=Components#import) and include the module for Wero. ### Tab: With Jetpack Compose **Import the module with Compose** ```java implementation "com.adyen.checkout:redirect:YOUR_VERSION" implementation "com.adyen.checkout:components-compose:YOUR_VERSION" ``` ### Tab: Without Jetpack Compose **Import the module without Compose** ```java implementation "com.adyen.checkout:redirect:YOUR_VERSION" ``` ### Add-Configuration ## Add additional configuration for Wero [Add a configuration object](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Android\&integration=Components#3-optional-add-a-configuration-object) with the following parameters: | Parameter | Required | Description | | ---------------------- | -------- | -------------------------------------------------------------------- | | setSubmitButtonVisible | | Set to **false** to hide the submit button. The default is **true**. | **Add a configuration object** ```kotlin val checkoutConfiguration = CheckoutConfiguration( ... ) { redirect { setSubmitButtonVisible(value) } } ``` ### Launch-And-Show ## Launch and show the Component for Wero To [create the Component](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Android\&integration=Components#launch-and-show) for Wero, use the `WeroComponent` class. ### Tab: With Jetpack Compose **Launch and show the Component** ```kotlin import com.adyen.checkout.components.compose.get // Get the payment method. val paymentMethod = checkoutSession.getPaymentMethod(PaymentMethodTypes.WERO) @Composable private fun ComposableWeroComponent() { // Keep a reference to this Component in case you need to access it later. val redirectComponent = WeroComponent.PROVIDER.get( checkoutSession = checkoutSession, paymentMethod = paymentMethod, configuration = checkoutConfiguration, componentCallback = callback, // This key is required to ensure a new Component gets created for each different screen or payment session. // Generate a new value for this key every time you need to reset the Component. key = "YOUR_UNIQUE_KEY_FOR_THIS_COMPONENT", ) // This is your composable, a wrapper around our xml view. AdyenComponent( component = redirectComponent, modifier = YOUR_MODIFIER, ) } ``` ### Tab: Without Jetpack Compose ```kotlin // Get the payment method. val paymentMethod = checkoutSession.getPaymentMethod(PaymentMethodTypes.WERO) val redirectComponent = WeroComponent.PROVIDER.get( activity, // Your activity or fragment. checkoutSession, paymentMethod, checkoutConfiguration, componentCallback ) // Attach the Component to your view. binding.redirectView.attach(redirectComponent, activity) // Your activity or fragment. ``` ## Test and go live From your checkout page, you are always redirected to a test payment page where you can simulate different Wero result codes. * AUTHORIZED : Successful payment * REFUSED : Refused payment * CANCELLED : Cancelled payment * ERROR : Technical failure The test payment page redirects you back to your checkout page after selecting a result code. ## Advanced flow Component ## Requirements | Requirement | Description | | | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - | | **Integration type** | Make sure that you have an existing Advanced flow [Android Components integration](https://docs.adyen.com/online-payments/build-your-integration/advanced-flow?platform=Android). | | | **Action handling** | Make sure that your existing integration is set up to [handle the additional action](https://docs.adyen.com/online-payments/build-your-integration/advanced-flow/?platform=Android\&integration=Components#additional-action). `action.type`: **redirect**. | | | **Setup steps** | Before you begin, [add Wero in your Customer Area](https://docs.adyen.com/payment-methods/add-payment-methods). | | ### Import ## Import the Component for Wero To [import the library](https://docs.adyen.com/online-payments/build-your-integration/advanced-flow/?platform=Android\&integration=Components#import) and include the module for Wero. ### Tab: With Jetpack Compose **Import the module with Compose** ```java implementation "com.adyen.checkout:redirect:YOUR_VERSION" implementation "com.adyen.checkout:components-compose:YOUR_VERSION" ``` ### Tab: Without Jetpack Compose **Import the module without Compose** ```java implementation "com.adyen.checkout:redirect:YOUR_VERSION" ``` ### Add Configuration ## Add additional configuration for Wero [Add a configuration object](https://docs.adyen.com/online-payments/build-your-integration/advanced-flow/?platform=Android\&integration=Components#3-optional-add-a-configuration-object) with the following parameters: | Parameter | Required | Description | | ---------------------- | -------- | -------------------------------------------------------------------- | | setSubmitButtonVisible | | Set to **false** to hide the submit button. The default is **true**. | **Add a configuration object** ```kotlin val checkoutConfiguration = CheckoutConfiguration( ... ) { redirect { setSubmitButtonVisible(value) } } ``` ### Launch And Show ## Launch and show the Component for Wero To [create the Component](https://docs.adyen.com/online-payments/build-your-integration/advanced-flow/?platform=Android\&integration=Components#launch-and-show) for Wero, use the `WeroComponent` class. ### Tab: With Jetpack Compose **Launch and show the Component** ```kotlin import com.adyen.checkout.components.compose.get // Create the payment method object from the /paymentMethods response. val paymentMethod = paymentMethodsApiResponse?.paymentMethods.orEmpty().firstOrNull { it.type == PaymentMethodTypes.WERO } @Composable private fun ComposableWeroComponent() { // Keep a reference to this Component in case you need to access it later. val redirectComponent = WeroComponent.PROVIDER.get( paymentMethod = paymentMethod, configuration = checkoutConfiguration, componentCallback = callback, // This key is required to ensure a new Component gets created for each different screen or payment session. // Generate a new value for this key every time you need to reset the Component. key = "UNIQUE_KEY_PER_COMPONENT", ) // This is your composable, a wrapper around our xml view. AdyenComponent( component = redirectComponent, modifier = YOUR_MODIFIER, ) } ``` ### Tab: Without Jetpack Compose ```kotlin // Create the payment method object from the /paymentMethods response. val paymentMethod = paymentMethodsApiResponse?.paymentMethods.orEmpty().firstOrNull { it.type == PaymentMethodTypes.WERO } val redirectComponent = WeroComponent.PROVIDER.get( activity, // Your activity or fragment. paymentMethod, checkoutConfiguration, componentCallback, ) //Attach the Component to your view. binding.redirectView.attach(redirectComponent, activity) // Your activity or fragment. ``` ### Add Parameters Payments Request ## Add additional parameters to your /payments request You do not need to add any parameters to the [/payments](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments) request when you [make a payment](https://docs.adyen.com/online-payments/build-your-integration/advanced-flow/?platform=Android\&integration=Components#make-a-payment). ## Test and go live From your checkout page, you are always redirected to a test payment page where you can simulate different Wero result codes. * AUTHORIZED : Successful payment * REFUSED : Refused payment * CANCELLED : Cancelled payment * ERROR : Technical failure The test payment page redirects you back to your checkout page after selecting a result code.