> ## 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 SDK：迁移到 v2.12

> 在您的应用中将 Yuno iOS SDK 从 v2.11.x 升级到 v2.12.0

# 迁移到 iOS SDK v2.12

2.12.0 版本从 `Yuno.initialize()` 中移除了 `cardFormType` 参数。卡片表单类型配置已移至 Yuno Dashboard。

## 变更内容

`Yuno.initialize()` 上的 `cardFormType` 参数已被移除。升级后若继续传入该参数，将导致**编译错误**。

## 步骤

### 从 Yuno.initialize() 中移除 `cardFormType`

**之前**：

```swift theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
Yuno.initialize(apiKey: "your_api_key", cardFormType: .oneStep)
```

**之后**：

```swift theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
Yuno.initialize(apiKey: "your_api_key")
// Configure in Dashboard → Checkout → Builder
```

### 在 Dashboard 中配置卡片表单类型

打开 **Dashboard → Checkout → Builder**，然后选择您的卡片表单类型：

* **One Step**：所有卡片字段显示在同一屏幕上
* **Multi Step**：卡片字段分布在多个屏幕上

Dashboard 中的设置适用于您账户下的所有 SDK 实例。


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