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

# 试用支付流程

> 在 sandbox 中运行 Yuno 支付流程，查看每个请求、响应和代码步骤

Yuno Flows 是一个交互式 sandbox，可逐步运行支付流程。您可以使用它在集成之前查看完整的支付过程，检查某项功能的请求和响应，或者比较 SDK 流程与 Direct API 流程。

> [card] [打开 Yuno Flows](https://yuno-flows.tools.y.uno/)
>
> 在 Yuno sandbox 中逐步运行支付。

> [!NOTE]
>
> Yuno Flows 在 Yuno sandbox 中使用测试卡运行。不会产生真实的资金流动，您也无需输入任何 API 密钥。

## 工作原理

**1. 选择流程**

按 **SDK** 或 **API** 筛选列表，然后选择一个流程。例如，SDK 的 **Default checkout**。

**2. 逐步浏览**

使用 **Back** 和 **Next** 或方向键。每个步骤都会说明发生了什么。

**3. 阅读面板**

在 **Code**、**Request** 和 **Response** 之间切换，查看调用背后的代码、商户发送的内容以及 Yuno 返回的内容。代码提供 curl、Node 和 Python 版本。若要自行运行，请使用您自己的 sandbox 密钥。

**4. 使用测试卡支付**

在购物者付款的步骤中，在演示商店中输入测试卡。

如果实时调用失败，该步骤会显示同一调用的录制运行，并标记为 **Recorded**。

## Yuno SDK 或 Direct API

> [card] [Yuno SDK](https://docs.y.uno/zh-hans/docs/yuno-sdk/how-a-transaction-flows.md)
>
> SDK 收集支付详细信息并将结果报告给您的应用。在某些流程中由 SDK 创建支付，在其他流程中则由您的 backend 创建。

> [card] [Direct API](https://docs.y.uno/zh-hans/docs/direct-integration-use-cases/direct-flow.md)
>
> 您的服务器直接向 Yuno 发送请求。您的公司会处理卡数据，因此需要遵守 PCI DSS 合规要求。

## 查找每个流程的指南

Yuno Flows 展示操作顺序。以下页面解释相关概念和参数。

> [card] [createPayment](https://docs.y.uno/zh-hans/docs/yuno-sdk/controllers/create-payment.md)
>
> 您的 backend 根据 SDK 令牌创建支付。

> [card] [注册](https://docs.y.uno/zh-hans/docs/yuno-sdk/features/enrollment.md)
>
> 无需购买即可保存卡片。

> [card] [3D Secure](https://docs.y.uno/zh-hans/docs/security-and-compliance/3d-secure.md)
>
> 处理发卡机构挑战。

> [card] [交易重试](https://docs.y.uno/zh-hans/docs/payment-features/transaction-retries.md)
>
> 使用其他服务提供商重试已拒绝的支付。

> [card] [分期付款](https://docs.y.uno/zh-hans/docs/payment-features/installments/index.md)
>
> 提供分期付款方案。

> [card] [订阅](https://docs.y.uno/zh-hans/docs/payment-features/subscriptions/index.md)
>
> 先对卡片扣款，然后续订。

> [card] [钱包](https://docs.y.uno/zh-hans/docs/wallets/index.md)
>
> 添加 Google Pay 和 Apple Pay。

> [card] [捕获支付](https://docs.y.uno/zh-hans/docs/direct-integration-use-cases/capture-payments.md)
>
> 先授权，稍后再捕获或退款。

> [card] [支付链接](https://docs.y.uno/zh-hans/docs/using-yuno/dashboard-overview/payment-links.md)
>
> 生成链接并跟踪其状态。

> [card] [存储凭证](https://docs.y.uno/zh-hans/docs/payment-features/stored-credentials.md)
>
> 重复使用已保存的卡片进行后续扣款。

## 后续步骤

> [card] [理解流程](https://docs.y.uno/zh-hans/docs/sdks/overview/understanding-flows.md)
>
> 支付和注册的图表和步骤序列。

> [card] [快速入门](https://docs.y.uno/zh-hans/docs/quickstart.md)
>
> 在 Yuno sandbox 中使用测试卡发送您的第一笔支付。


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