> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# External Native Modules (Android)

> Add a third-party native SDK (antifraud, 3DS, Revolut Pay) to the Yuno Android SDK without changing your payment code.

> [!NOTE]
>
> **This page documents a legacy SDK.** Starting a new integration? Use the [Yuno SDK](https://docs.y.uno/docs/yuno-sdk/get-started.md). Already on a legacy SDK? Follow the [migration guide](https://docs.y.uno/docs/yuno-sdk/migration/overview.md).
>
> The new **Yuno SDK** (Web v2.x, iOS v3.x, Android v3.x, React Native v2.x) replaces the Full, Lite, Seamless, Render, Headless, and Secure Fields SDKs with one API across every platform. Legacy SDKs remain supported side by side during the transition and are scheduled for deprecation in **2027**. Contact your Account Manager for migration planning.

The Yuno Android SDK stays small on purpose: every third-party native SDK ships as a **separate, optional module**. You add only the modules your integration needs, and the Yuno SDK picks them up automatically when a checkout uses the matching provider. Your payment and enrollment code does not change.

> [!NOTE]
>
> Modules are activated by your Yuno account configuration, not by code: the SDK uses a module only when Yuno indicates it is needed for the current transaction. If a provider is not configured for your account, its module is simply never used.

## How it works

1. You add the module to your app as a Gradle dependency, next to the Yuno SDK.
2. When the app starts, the module registers itself with the Yuno SDK. There is no code to write.
3. During checkout, the Yuno SDK asks the backend which providers apply to the transaction and uses the matching module: for example, it collects a device fingerprint and attaches it to the payment, or runs the 3D Secure challenge natively instead of in a WebView.

## Available modules

| Module | What it adds | Minimum Android |
| - | - | - |
| ClearSale antifraud | Collects the ClearSale device fingerprint and attaches it to the payment | 6.0 (API 23) |
| Koin antifraud | Collects the Koin device fingerprint and attaches it to the payment | 6.0 (API 23) |
| Riskified antifraud | Starts the Riskified beacon with the checkout session and attaches that session to the payment | 6.0 (API 23) |
| [Signifyd antifraud](https://docs.y.uno/docs/sdks/external-native-modules/signifyd-android.md) | Runs Signifyd's device profiling and attaches the Signifyd session to the payment | 6.0 (API 23) |
| [Netcetera 3DS](https://docs.y.uno/docs/sdks/external-native-modules/netcetera-3ds-android.md) | Runs 3D Secure challenges natively in your app, for payments and enrollment | 6.0 (API 23) |
| Revolut Pay | Runs the Revolut Pay checkout natively, on top of Revolut's official SDK | 6.0 (API 23) |

Maven coordinates and compatibility:

| Module | Dependency | Current version | Requires `android-sdk` |
| - | - | - | - |
| ClearSale antifraud | `com.yuno.payments:yuno-sdk-antifraud-clearsale` | `1.0.1` | `2.25.0` or higher |
| Koin antifraud | `com.yuno.payments:yuno-sdk-antifraud-koin` | `1.0.0` | `2.25.0` or higher |
| Riskified antifraud | `com.yuno.payments:yuno-sdk-antifraud-riskified` | `1.0.0` | `2.27.0` or higher |
| Signifyd antifraud | `com.yuno.payments:yuno-sdk-antifraud-signifyd` | `1.0.0` | `2.29.0` or higher |
| Netcetera 3DS | `com.yuno.payments:yuno-sdk-3ds-netcetera` | `1.0.1` | `2.16.0` or higher |
| Revolut Pay | `com.yuno.payments:yuno-sdk-revolut-pay` | `1.0.0` | `2.24.0` or higher |

All modules are published to the same repository as the Yuno SDK (`https://yunopayments.jfrog.io/artifactory/snapshots-libs-release`). A module does not pin a specific Yuno SDK version: you stay in control of the `android-sdk` version, as long as it is at or above the minimum in the table. Netcetera has extra setup (a second Maven repository and a sandbox certificate), covered in [Netcetera 3DS (Android)](https://docs.y.uno/docs/sdks/external-native-modules/netcetera-3ds-android.md). Signifyd needs Signifyd's private registry and your own Signifyd token, covered in [Signifyd antifraud (Android)](https://docs.y.uno/docs/sdks/external-native-modules/signifyd-android.md).

## Installation

Add the modules you need to your app module's build file, next to the Yuno SDK dependency. Each module already brings its vendor SDK and its own dependencies, so nothing else is required.

> [tab] Groovy DSL
>
> In `build.gradle`:
>
> ```groovy theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> dependencies {
>     implementation "com.yuno.payments:android-sdk:2.29.0"
>
>     // Add only the modules your account uses
>     implementation "com.yuno.payments:yuno-sdk-antifraud-clearsale:1.0.1"
>     implementation "com.yuno.payments:yuno-sdk-antifraud-koin:1.0.0"
>     implementation "com.yuno.payments:yuno-sdk-antifraud-riskified:1.0.0"
>     implementation "com.yuno.payments:yuno-sdk-antifraud-signifyd:1.0.0"
>     implementation "com.yuno.payments:yuno-sdk-3ds-netcetera:1.0.1"
>     implementation "com.yuno.payments:yuno-sdk-revolut-pay:1.0.0"
> }
> ```

> [tab] Kotlin DSL
>
> In `build.gradle.kts`:
>
> ```kotlin theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> dependencies {
>     implementation("com.yuno.payments:android-sdk:2.29.0")
>
>     // Add only the modules your account uses
>     implementation("com.yuno.payments:yuno-sdk-antifraud-clearsale:1.0.1")
>     implementation("com.yuno.payments:yuno-sdk-antifraud-koin:1.0.0")
>     implementation("com.yuno.payments:yuno-sdk-antifraud-riskified:1.0.0")
>     implementation("com.yuno.payments:yuno-sdk-antifraud-signifyd:1.0.0")
>     implementation("com.yuno.payments:yuno-sdk-3ds-netcetera:1.0.1")
>     implementation("com.yuno.payments:yuno-sdk-revolut-pay:1.0.0")
> }
> ```

> [!NOTE]
>
> The Netcetera module also needs Netcetera's Maven repository declared in your project, because its 3DS SDK is not hosted on Maven Central. The exact lines are in [Netcetera 3DS (Android)](https://docs.y.uno/docs/sdks/external-native-modules/netcetera-3ds-android.md#step-1-declare-the-netcetera-maven-repository). The Signifyd module needs Signifyd's private registry and a download token from Signifyd, as shown in [Signifyd antifraud (Android)](https://docs.y.uno/docs/sdks/external-native-modules/signifyd-android.md). The other modules need no extra repository: Riskified and Revolut Pay pull their vendor SDKs from Maven Central.

## Activating a module

Every module **registers itself** with the Yuno SDK when your app process starts, through [Jetpack App Startup](https://developer.android.com/topic/libraries/app-startup). No code is required: keep initializing the Yuno SDK exactly as you do today.

```kotlin theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
import com.yuno.sdk.Yuno

Yuno.initialize(
    applicationContext = this,
    apiKey = "YOUR_API_KEY",
)
```

> [!TIP]
>
> Once a module is registered the Yuno SDK uses it automatically. You do not need to change any payment, enrollment or 3DS code.

To confirm a module loaded, filter Logcat by its tag right after the app starts. Each module prints one line when it registers:

```bash theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
adb logcat -s KoinAntifraud
adb logcat -s ClearSaleAntifraud
adb logcat -s RiskifiedAntifraud
adb logcat -s SignifydAntifraud
```

Revolut Pay registers silently; it only logs under the `YunoRevolutPay` tag when your `android-sdk` is older than 2.24.0 and the module could not register.

> [accordion] If your app disables App Startup
>
> Some apps remove the App Startup content provider from their manifest (`androidx.startup.InitializationProvider` with `tools:node="remove"`) to control startup work themselves. In that case the modules cannot register on their own. Run their initializers yourself, once, before `Yuno.initialize(...)`, using App Startup's manual API:
>
> ```kotlin theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> import androidx.startup.AppInitializer
> import com.yuno.antifraud.clearsale.ClearSaleAntifraudInitializer
> import com.yuno.antifraud.koin.KoinAntifraudInitializer
> import com.yuno.antifraud.riskified.RiskifiedAntifraudInitializer
> import com.yuno.antifraud.signifyd.SignifydAntifraudInitializer
> import com.yuno.revolut.RevolutPayInitializer
> import com.yuno.threedsecure.netcetera.Netcetera3DSInitializer
>
> val initializer = AppInitializer.getInstance(applicationContext)
> initializer.initializeComponent(ClearSaleAntifraudInitializer::class.java)
> initializer.initializeComponent(KoinAntifraudInitializer::class.java)
> initializer.initializeComponent(RiskifiedAntifraudInitializer::class.java)
> initializer.initializeComponent(SignifydAntifraudInitializer::class.java)
> initializer.initializeComponent(Netcetera3DSInitializer::class.java)
> initializer.initializeComponent(RevolutPayInitializer::class.java)
> ```
>
> Initialize only the modules you installed; the example lists all of them for reference.

## What each module needs from your app

### ClearSale antifraud

* Sends ClearSale's own session id to Yuno as the payment's `customer.device_fingerprint`. Nothing changes in the data you send.
* Collection runs when the shopper confirms the payment. It is bounded by the `timeout` configured for the ClearSale provider in your Yuno account (5 seconds by default). Keep that timeout above 1 second, otherwise collection times out and the payment continues without a fingerprint.
* Declares `INTERNET`, `ACCESS_NETWORK_STATE` and `ACCESS_WIFI_STATE`; they are merged into your manifest automatically.
* Never requests or uses location. It works whether or not your app, or a library such as `react-native-maps`, pulls in `play-services-location`, including version 21 and above.

> [!NOTE]
>
> Version `1.0.0` did not send the ClearSale fingerprint when your app resolved `play-services-location` 21 or later. Use `1.0.1` or later; no change to `android-sdk` is required.

> [accordion] Migrating from the legacy com.yuno.fraud-prevention:clearsale dependency
>
> If your app integrated ClearSale directly through the former `com.yuno.fraud-prevention:clearsale` dependency:
>
> 1. Remove that dependency from your app's build file and add `yuno-sdk-antifraud-clearsale` instead.
> 2. Remove the `onCreateYunoClearSale`, `onResumeYunoClearSale` and `onStopYunoClearSale` calls from your Activity lifecycle methods.
> 3. Stop passing the ClearSale session id as `merchantSessionId`. The Yuno SDK now collects and sends it for you.

### Koin antifraud

* Sends the Koin device fingerprint to Yuno as the payment's `customer.device_fingerprint`. Nothing changes in the data you send.
* Declares `INTERNET`; it is merged into your manifest automatically.
* Never requests or uses location. The Koin SDK is initialized with its geolocation feature disabled, so the module does not read `ACCESS_FINE_LOCATION` or `ACCESS_COARSE_LOCATION` even when your app holds them.

### Riskified antifraud

* Starts Riskified's device beacon whenever your checkout configuration enables Riskified, and sends the beacon session to Yuno as the payment's `customer.device_fingerprint`, for any payment method including Google Pay.
* Brings Riskified's Android SDK (`nogoogle` variant) from Maven Central: no Google Play services dependency and no location tracking.
* Declares `INTERNET`; it is merged into your manifest automatically. The module removes the `READ_PHONE_STATE` permission declared by Riskified's SDK, so it never reaches your app.

### Signifyd antifraud

* Runs Signifyd's device profiling whenever your checkout configuration enables Signifyd, and sends the Signifyd session id to Yuno in the payment's `payment_method.device_fingerprints`, for any payment method. Nothing changes in the data you send.
* Needs Signifyd's private registry and your own Signifyd token to download Signifyd's SDK at build time. The registry, the token setup, the permissions and the data it collects are in [Signifyd antifraud (Android)](https://docs.y.uno/docs/sdks/external-native-modules/signifyd-android.md).

### Netcetera 3DS

* Runs the 3D Secure challenge inside your app, for payments and card enrollment, instead of the WebView-based challenge. If your app customizes the Yuno SDK styles, they propagate to the challenge screen.
* Needs Netcetera's Maven repository in your project and, for sandbox testing only, a certificate provided by your Yuno TAM. Both steps are in [Netcetera 3DS (Android)](https://docs.y.uno/docs/sdks/external-native-modules/netcetera-3ds-android.md).

### Revolut Pay

* After you create the payment and call `continuePayment()`, the SDK hands the shopper to the Revolut app when it is installed, otherwise to Revolut's web flow, and brings them back automatically. Supported in the Full, Lite, Seamless and Render flows.
* Declares the return deeplink `yunorevolut://<your.application.id>` and the package visibility for the Revolut app; both are merged into your manifest automatically.
* Brings Revolut's Android SDK (`com.revolut:revolutpay`) from Maven Central.
* In Render the checkout lives inside your own Activity: do not finish it on back press while the Revolut screen is showing, so the shopper can return and the final status can be delivered.

## Troubleshooting

> [accordion] The module is installed but the fingerprint or native challenge never shows up
>
> Check, in this order:
>
> 1. The provider is enabled for your Yuno account. Modules only run when the backend asks for that provider on the transaction; ask your Yuno TAM if you are not sure.
> 2. The module registered at startup: filter Logcat by `KoinAntifraud`, `ClearSaleAntifraud`, `RiskifiedAntifraud` or `SignifydAntifraud` and look for the `registered` line.
> 3. Your app is not removing the App Startup provider from the manifest. If it is, run the module initializers manually as described in [Activating a module](#activating-a-module).

> [accordion] Crash at runtime with NoSuchMethodError or NoSuchFieldError mentioning com.yuno
>
> Your `android-sdk` is older than the version the module requires. Bump it to the minimum listed in [Available modules](#available-modules), or higher.

> [accordion] Gradle: could not find com.netcetera.threeds…
>
> Netcetera's SDK is not on Maven Central. Declare Netcetera's Maven repository as shown in [Netcetera 3DS (Android)](https://docs.y.uno/docs/sdks/external-native-modules/netcetera-3ds-android.md#step-1-declare-the-netcetera-maven-repository).

> [accordion] Gradle: 401 Unauthorized or could not find com.signifyd:profiling
>
> Your build could not download Signifyd's SDK. Check that Signifyd's registry is declared as shown in [Signifyd antifraud (Android)](https://docs.y.uno/docs/sdks/external-native-modules/signifyd-android.md#installation) and that `signifydGithubToken` holds a valid token from Signifyd, on your machine and in your CI.

> [accordion] Logcat: Missing API\_KEY param; skipping Signifyd profiling
>
> Signifyd is enabled for the checkout session, but no Signifyd SDK key is served for your account, so the payment continues without a Signifyd fingerprint. Contact your Yuno TAM.

> [accordion] Logcat: NoClassDefFoundError com.google.android.gms.location.LocationServices (ClearSale)
>
> Printed only by version `1.0.0` when your app does not include `play-services-location`. It is caught inside the ClearSale SDK and the fingerprint is still collected. Version `1.0.1` no longer looks for the location library: update to it and the trace goes away.

> [accordion] Payments go through but without a ClearSale fingerprint
>
> If you are on version `1.0.0` and your app resolves `play-services-location` 21 or higher, update to `1.0.1`. Otherwise, the provider `timeout` configured in your Yuno account is too low for ClearSale's capture (which waits 500 ms before generating the session id). Keep it at 1 second or more; the default is 5 seconds.

> [accordion] Manifest merger conflict on androidx.startup.InitializationProvider
>
> Another library in your app also uses App Startup with a conflicting declaration. Merge both with `tools:node="merge"` on the provider, or run the module initializers manually as described in [Activating a module](#activating-a-module).

> [!NOTE]
>
> R8 / ProGuard rules for every module and its vendor SDK ship as consumer rules. No manual configuration is required when minifying your app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.