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

# 接管 SDK

> 替换 SDK 默认行为的控制器：呈现视图、显示加载指示器和创建支付。

当您想自己完成 SDK 默认执行的操作时，请覆盖这些控制器。未覆盖时，SDK 保持其默认行为。覆盖后，SDK 会退让，并将该步骤交给您。

| 控制器 | 未覆盖 | 已覆盖 |
| - | - | - |
| [`showView`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/show-view)（iOS、Android、React Native） | SDK 以全屏方式呈现表单和操作视图。 | SDK 将视图交给您，由您嵌入自己的布局。 |
| [`showLoading`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/show-loading) | SDK 显示其自己的全屏加载指示器。 | SDK 隐藏其加载指示器，并向您报告加载状态。 |
| [`createPayment`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/create-payment) | SDK 在令牌化之后创建支付。 | SDK 交付一次性令牌，并等待您的 backend 创建支付。 |

每个控制器都有各自的页面，介绍其行为、各平台的签名和线程规则。

## 相关内容

* [`onStatus`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/on-status)。交易的最终结果。
* [监听事件](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/listen-to-events)。仅报告所发生情况的控制器。
* [控制器概览](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/overview.md)。各平台如何连接控制器。


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