> ## 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.

# iOS Reference

> Reference all iOS SDK parameters, YunoConfig options, and enrollment delegate configuration

> [!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.

Parameters, customizations, and advanced features for all Yuno iOS SDK flows. For integration setup, see [Payment flows (iOS)](https://docs.y.uno/docs/sdks/full-checkout/ios-payments), [Enrollment flows (iOS)](https://docs.y.uno/docs/sdks/card-enrollment/ios-enrollment.md), and [integration modes](https://docs.y.uno/docs/sdks/overview/choose-integration.md).

## Key parameters (checkout session creation)

When creating a checkout session on your backend for payment flows, the following parameters are commonly used across iOS SDKs:

| Parameter | Required | Description |
| - | - | - |
| `amount` | Yes | The primary transaction amount object containing `currency` (ISO 4217 code) and `value` (numeric amount in that currency). |
| `alternative_amount` | No | An alternative currency representation of the transaction amount with the same structure as `amount` (`currency` and `value`). Useful for multi-currency scenarios. For example, you can display prices to customers in their preferred currency (for example, USD) while processing the payment in the local currency (for example, COP). |

## Payment parameters (full reference)

Parameters for payment flows. All parameters used in [Payment flows (iOS)](https://docs.y.uno/docs/sdks/full-checkout/ios-payments) are listed here with full detail.

| Parameter | Type | Required | Description |
| - | - | - | - |
| `checkoutSession` | string | Yes | Checkout session ID from your backend (Create checkout session API). Required for all payment flows. |
| `countryCode` | string | Yes | ISO country code where the payment runs (for example, `BR`, `US`). Determines available payment methods and compliance. |
| `language` | string | No | Language code for the SDK UI (for example, `en`, `pt-BR`). Optional. See [Supported languages](https://docs.y.uno/docs/sdks/resources/languages-supported.md) when available. |
| `viewController` | UIViewController | Yes\* | The view controller that presents the payment flow. The SDK uses it to present modals and capture result. |
| `yunoCreatePayment(with:)` | delegate | Yes | Delegate method: create the payment on your backend using the one-time token provided by the SDK. After creating the payment via the API, inform the SDK so it can continue the flow. |
| `yunoPaymentResult(_:)` | delegate | No | Delegate method: invoked when the payment flow finishes. Receives a `Yuno.Result` enum value (`.succeeded`, `.fail`, `.processing`, `.reject`, `.userCancelled`, `.internalError`). These values map to [payment statuses](https://docs.y.uno/reference/getting-started/response-codes.md). Use for UI updates or navigation. |

## YunoConfig options (initialize)

Runtime behavior and appearance are configured via `YunoConfig` when calling `Yuno.initialize(apiKey:config:)`. All parameters used across iOS payment and enrollment flows are listed below. For visual styling (fonts, colors, buttons), see [SDK customizations (iOS)](https://docs.y.uno/docs/sdks/customization/ios.md).

| Parameter | Type | Required | Description |
| - | - | - | - |
| `appearance` | Appearance | No | Custom appearance (fonts, colors, buttons). Use `Yuno.Appearance(...)` to set `fontFamily`, `accentColor`, `buttonBackgroundColor`, `buttonTitleColor`, and related fields. See [SDK customizations (iOS)](https://docs.y.uno/docs/sdks/customization/ios.md) for all options. |
| `saveCardEnabled` | boolean | No | When `true`, allows the user to save or enroll the card during payment. Requires backend support for vaulting. |

## Enrollment parameters (full reference)

Parameters for enrollment flows. All parameters used in [Enrollment flows (iOS)](https://docs.y.uno/docs/sdks/card-enrollment/ios-enrollment.md) are listed here with full detail.

| Parameter | Type | Required | Description |
| - | - | - | - |
| `customerSession` | string | Yes | Customer session ID from Create customer session API. Required. Associates the enrolled payment method with a specific customer. |
| `countryCode` | string | Yes | ISO country code (for example, `BR`, `US`). Required for enrollment. |
| `language` | string | No | Language code for the SDK UI. Optional. |
| `viewController` | UIViewController | Yes\* | The view controller that presents the enrollment flow. Required for delegate-based enrollment. |
| `yunoEnrollmentResult(_:)` | delegate | No | Delegate method: invoked when enrollment finishes. Receives the result (for example, vaulted token, status). Use for UI updates or navigation. |
| `YunoConfig` | YunoConfig | No | Same options as payment (for example, `appearance`, `saveCardEnabled`, `keepLoader`). See the preceding [YunoConfig options (initialize)](#yunoconfig-options-initialize). |

## Enrolling payment methods

You can enroll payment methods (store cards for future use) during the payment flow or via dedicated enrollment flows. For payment flows, enable save card in `YunoConfig` and set `payment_method.vault_on_success` (or equivalent) when creating the checkout session where supported. For dedicated enrollment, see [Enrollment flows (iOS)](https://docs.y.uno/docs/sdks/card-enrollment/ios-enrollment.md).


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