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

# 更快的 checkout

> SDK 的内置表单开箱即可为您的购物者做些什么。

SDK 渲染一个内置表单：卡号、有效期、安全码和持卡人姓名，以及在支付方式需要时的客户和地址字段。本页上的所有功能都随表单开箱即用：无需配置，无需额外代码。

## 展开表单

配置我们的展开式表单后，每种支付方式的表单都会在支付方式列表中
直接以展开状态显示，购物者无需额外点击即可输入详细信息。您可以在
您的 [Yuno Dashboard](https://dashboard.y.uno/) 中通过 **Checkout Builder**
启用此功能，无需代码。

![表单已展开的列表](https://mintcdn.com/yuno-3979e326/wcaoTPfNIXrvnpRG/images/yuno-sdk/form-behavior/unfolded.gif?s=0803de018ffafe36a120fbe12dcf2e04)

展开式：表单已经打开，购物者只需输入。

## 这就是我们表单的样子

同一种设计，在每个平台上原生渲染。

> [tab] 银行卡
>
> ![内置银行卡表单](https://mintcdn.com/yuno-3979e326/wcaoTPfNIXrvnpRG/images/yuno-sdk/form-behavior/form-card.png?fit=max\&auto=format\&n=wcaoTPfNIXrvnpRG\&q=85\&s=4a4a0007648a9683e2abda72b9954b95)

> [tab] 替代支付方式
>
> ![替代支付方式的内置表单](https://mintcdn.com/yuno-3979e326/wcaoTPfNIXrvnpRG/images/yuno-sdk/form-behavior/form-apm.png?fit=max\&auto=format\&n=wcaoTPfNIXrvnpRG\&q=85\&s=4be6348ad92c006fc91fb03cccbf8e67)
>
> APM 表单：只包含该支付方式所需的客户详细信息，别无其他。

> [!NOTE]
>
> 表单显示多少个字段，取决于该支付方式的服务提供商
> 以及您选择要求的任何额外信息。这两项都可以在
> 您的 [Yuno Dashboard](https://dashboard.y.uno/) 中通过 **Checkout Builder** 进行配置。

## 光标会为您移动

购物者只需输入。每个字段填写完成后，焦点会跳到下一个字段，无需在字段之间点击。卡号会在输入时自动格式化，并识别卡品牌。

![在银行卡字段之间自动跳转](https://mintcdn.com/yuno-3979e326/wcaoTPfNIXrvnpRG/images/yuno-sdk/form-behavior/auto-advance.gif?s=5150fb4a0800e1afd7d762b196236500)

焦点会自动前进：卡号 → 有效期 → CVV → 姓名。

## 地址自动填写

设备上保存的银行卡只需点击一下即可填入。在 iOS 和 Android 上，当购物者输入邮政编码时，SDK 会为其补全街道、城市和州。在 Web 上，地址自动填写取决于您账户的地址自动填写设置。开启后，地址表单会提供地址搜索，并且对于巴西，会根据邮政编码补全地址。关闭后，购物者需自行输入地址字段。

![根据邮政编码自动填写地址](https://mintcdn.com/yuno-3979e326/wcaoTPfNIXrvnpRG/images/yuno-sdk/form-behavior/address-autofill.gif?s=142cbab1143318ca79b9d463d5c7bad0)

输入邮政编码，SDK 会填写其余内容。

## 相关内容

* [显示支付方式列表](https://docs.y.uno/zh-hans/docs/yuno-sdk/features/payment-methods-list.md)。预构建的支付方式列表，包含快捷按钮。
* [设置 checkout 样式](https://docs.y.uno/zh-hans/docs/yuno-sdk/features/styling.md)。自定义表单的视觉外观。
* [TransactionConfig](https://docs.y.uno/zh-hans/docs/yuno-sdk/reference/objects-you-pass.md#transaction-config)。完整的配置参考。


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