> ## 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 (iOS)

> Add a third-party native SDK (antifraud, 3DS, Revolut Pay) to the Yuno iOS 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 iOS 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]
>
> Installing a module does not make the SDK use it: a module runs only when the provider is enabled for your Yuno account and the backend requests it for the current transaction.

## Available modules

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

Package names:

| Module | Swift Package Manager product | Supported from |
| - | - | - |
| ClearSale antifraud | `YunoAntifraudClearsale` | 2.25.0 |
| Koin antifraud | `YunoAntifraudKoin` | 2.25.0 |
| Riskified antifraud | `YunoAntifraudRiskified` | 2.29.0 |
| Signifyd antifraud | `YunoAntifraudSignifyd` (separate package) | 2.30.0 |
| Netcetera 3DS | `Yuno3DSNetcetera` | 2.25.0 |
| Revolut Pay | CocoaPods pod `YunoRevolutPay`, see [Revolut Pay (CocoaPods only)](#revolut-pay-cocoapods-only) | 2.25.0 to 2.30.0 |

From YunoSDK 2.31.0 the modules are distributed only through Swift Package Manager and work with either `YunoSDK` or `YunoSDK-Static`.

Netcetera has extra setup steps (sandbox certificate), covered in [Netcetera 3DS (iOS)](https://docs.y.uno/docs/sdks/external-native-modules/netcetera-3ds-ios.md). Signifyd ships in its own package and needs a Signifyd token, covered in [Signifyd antifraud (iOS)](https://docs.y.uno/docs/sdks/external-native-modules/signifyd-ios.md).

## Installation

Every module lives in the same package as the Yuno SDK, so there is a single URL to add. In Xcode go to **File > Add Package Dependencies...**, add:

```
https://github.com/yuno-payments/yuno-sdk-ios
```

choose the **Up to Next Major Version** rule starting at `2.31.0`, and in the product list tick `YunoSDK` (dynamic) or `YunoSDK-Static` (static), never both, plus the modules you need (`YunoAntifraudClearsale`, `YunoAntifraudKoin`, `YunoAntifraudRiskified`, `Yuno3DSNetcetera`). Nothing else is required: each product brings its own vendor binary.

> [!NOTE]
>
> Signifyd is not in this package: it ships in `yuno-sdk-ios-signifyd` and needs your Signifyd token to download Signifyd's SDK. See [Signifyd antifraud (iOS)](https://docs.y.uno/docs/sdks/external-native-modules/signifyd-ios.md).

### Revolut Pay (CocoaPods only)

`YunoRevolutPay` is available only as a CocoaPods pod, and works with `YunoSDK` up to 2.30.0, the last version published on CocoaPods. Add it next to `YunoSDK` in your Podfile:

```ruby theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
platform :ios, '15.0'

target 'YourApp' do
  use_frameworks!

  pod 'YunoSDK', '~> 2.25'
  pod 'YunoRevolutPay', '~> 1.0'
end

# Revolut's dependencies declare an old deployment target that
# Xcode 14.3 or later cannot build as-is.
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
    end
  end
end
```

Then run:

```bash theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
pod install
```

> [!NOTE]
>
> Revolut Pay installs `lottie-ios` as a dependency, in the 4.4.1 to 4.5.x range.

> [!NOTE]
>
> `YunoRevolutPay` pins `RevolutPayments/RevolutPay` to `~> 3.16.0`, because the prebuilt binary is tied to that API. If your Podfile already declares `RevolutPayments`, align it to that range.

> [!NOTE]
>
> Revolut Pay returns to your app through a deeplink: forward it to `Yuno.receiveDeeplink(url)` as described in [Handle external browser return](https://docs.y.uno/docs/sdks/full-checkout/ios-payments#step-10-handle-external-browser-return-optional).

## Activating a module

Modules **register themselves** when the app launches, with either `YunoSDK` or `YunoSDK-Static`. No code is required beyond adding the product to your target.

Revolut Pay is the exception: call `YunoRevolutPay.register()` **once**, before `Yuno.initialize(...)`, for example in `application(_:didFinishLaunchingWithOptions:)`:

```swift theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
import YunoSDK
import YunoRevolutPay

YunoRevolutPay.register()

Yuno.initialize(apiKey: "YOUR_API_KEY", config: YunoConfig())
```

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

## Troubleshooting

> [accordion] Revolut Pay is installed but nothing changes
>
> Make sure you call `YunoRevolutPay.register()` before `Yuno.initialize(...)`.

> [accordion] pod install: required a higher minimum deployment target
>
> The `platform` line in your Podfile is below the module's minimum. Use `platform :ios, '15.0'` for `YunoRevolutPay`.

> [accordion] pod install: CocoaPods could not find compatible versions for pod YunoSDK
>
> `YunoRevolutPay` depends on `YunoSDK ~> 2.25`, and the last `YunoSDK` on CocoaPods is 2.30.0. If your Podfile pins an older SDK (for example `'2.24.1'`), relax it to that range.

> [accordion] pod install: CocoaPods could not find compatible versions for pod RevolutPayments
>
> `YunoRevolutPay` requires `RevolutPayments/RevolutPay ~> 3.16.0`. If your Podfile pins another version of `RevolutPayments`, align it to `'~> 3.16.0'` or remove the pin and let `YunoRevolutPay` bring it.

> [accordion] pod install: SDK does not contain 'libarclite' (YunoRevolutPay)
>
> Add the `post_install` hook shown in [Revolut Pay (CocoaPods only)](#revolut-pay-cocoapods-only) so every pod target builds for iOS 15.0.

> [accordion] Swift Package Manager: duplicate RiskifiedBeacon framework
>
> The `YunoAntifraudRiskified` product already brings Riskified's `RiskifiedBeacon` 1.6.4. If your app also adds Riskified's own package, remove it and keep only the Yuno product.

> [accordion] Revolut Pay never completes after coming back to the app
>
> The return deeplink is not reaching the Yuno SDK. Make sure your app declares a URL scheme, that incoming URLs are forwarded to `Yuno.receiveDeeplink(url)`, and that a `guard` on the scheme is not dropping the Revolut Pay return URL (`yourscheme://revolut-pay`).

> [accordion] Swift Package Manager: no such module 'CSBehavior' when importing YunoAntifraudClearsale
>
> Affects `YunoAntifraudClearsale` 1.0.0 only. The module registers itself, so you do not need to import it from Swift: remove the `import YunoAntifraudClearsale` line and the project builds.


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