> ## 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 的行为都相同：用它们来驱动您自己的 UI，或用新的总额来响应钱包页面。

| 控制器 | 触发时机 | 平台 |
| - | - | - |
| [`onInstallmentSelected`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/on-installment-selected) | 购物者在银行卡表单中选择或更改分期选项。 | Web（`card.onInstallmentSelected`）、iOS、Android、React Native |
| [`onCardInfoChanged`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/on-card-info-changed) | 银行卡查询返回购物者正在输入的银行卡的品牌、类型、类别、发卡机构和国家/地区，或该卡不再适用。 | iOS、Android（`TransactionConfig.onCardInfoChanged`） |
| [`onShippingAddressChanged`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/on-shipping-address-changed) | 购物者在钱包支付页面中选择或更改收货地址。 | Web（`externalButtons.onShippingAddressChanged`）、iOS、Android、React Native |
| `onChange` | SDK 渲染的表单的有效性发生变化。交易开始时以及每次变化时，处理程序都会收到 `{ form: { isValid } }`。当您使用 `showPayButton: false` 隐藏 SDK 的支付按钮时，可在调用 `transaction.submit()` 之前用它来启用您自己的按钮。 | Web |

`onInstallmentSelected`、`onCardInfoChanged` 和 `onShippingAddressChanged` 各有一个页面，介绍您会收到什么、需要返回什么，以及各平台的签名。

## 相关内容

* [`onStatus`](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/on-status)。交易的最终结果。
* [接管 SDK](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/take-over-the-sdk)。替换默认行为的控制器。
* [控制器概览](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.