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

# 支付

> 介绍支付对象、其状态生命周期，以及交易与支付之间的关系。

## 什么是支付？

支付代表用户的一笔交易，与所使用的处理商或支付方式无关。

支付会收集订单的关键详情，包括客户信息、总金额、币种、商品、配送详情等。要深入了解订单与支付之间的交互，请参阅[交易](https://docs.y.uno/zh-hans/docs/basic-concepts/transactions.md)页面。

## 支付工作流

以下工作流展示了可能的支付状态及其相互关系。每笔支付都有一个遵循标准化生命周期的状态，确保所有支付方式具备一致的能力。支付会经历一系列状态，直至完成。下图说明了基于交易状态的可能结果。

![支付状态生命周期示意图，展示支付可能经历的各个状态以及状态之间的转换](https://mintcdn.com/yuno-3979e326/MTlogjS0_SlxtlJG/images/reference/payments-1/image1.png?fit=max\&auto=format\&n=MTlogjS0_SlxtlJG\&q=85\&s=5995a4eb906f223e38272bd6db0d5941)

有关状态码和消息的更多详细信息，请参阅[支付 API 参考](https://docs.y.uno/reference/payments/status-and-response-codes/payment.md)。

## 支付与交易

一笔支付由多笔交易组成，这些交易决定其最终结果。如果您为支付方式路由启用了不同的连接（例如欺诈预防、3D Secure 或服务提供商回退），Yuno 会将相应的交易添加到该支付中。这些交易会成为支付生命周期的一部分。

在 Yuno Dashboard 的 [Payments](https://docs.y.uno/zh-hans/docs/using-yuno/dashboard-overview/payments.md) 部分中，您可以查看并导出所有支付和交易详情。

有关交易如何影响支付结果的更多详细信息，请参阅[交易](https://docs.y.uno/zh-hans/docs/basic-concepts/transactions.md)部分。


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