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

# 支付方式

> 说明支付方式与处理商的区别，以及 Yuno 中注册流程与同步流程的差异。

Yuno 提供与各类处理商和支付方式的广泛连接，并持续扩大覆盖范围。本页介绍可用的支付方式、它们的功能，以及它们在 Yuno 平台中的组织方式。

## 什么是支付方式？

为了更好地理解支付流程，必须区分支付方式和处理商。

* **支付方式**：支付方式是收集客户支付信息并将其发送给处理商进行支付处理的方式。常见的支付方式包括：
  * 信用卡/借记卡
  * 数字钱包（Apple Pay、Google Pay）
  * 银行转账（iDeal）
  * 先买后付服务（Klarna）
  * 区域性支付方式（UPI、Pix）
* **处理商**：处理商充当商户银行与客户银行之间的中介：它们管理退款和取消，并负责实际处理支付方式所获取的信息。

## 支付方式之间的差异

支付方式在处理方式上可能存在显著差异。此外，有些支付方式支持注册，有些则不支持。支付方式可以根据其**注册特性**和**用户交互**进行划分。

### 用户交互

支付方式的工作流可能因各处理商的能力以及客户完成支付所需的操作而有所不同。主要分为两种类型：同步和异步。

* **同步**：客户点击 **Pay** 后，同步支付方式会立即提供最终结果，支付由商户在后台创建。在这种情况下，您无需 webhooks 即可得知结果，因为结果会在支付响应中给出。
* **异步**：相比之下，异步支付方式需要客户执行额外的步骤才能完成支付。这些支付会处于 `PENDING` 中间状态，直到客户完成支付或处理商将最终结果通知 Yuno。为及时了解这些状态，请务必在您的 Yuno 账户中配置 [Webhooks](https://docs.y.uno/zh-hans/docs/basic-concepts/webhooks-1.md)，以获得即时更新。

### 注册

在 Yuno 中，**注册**是指存储客户支付方式信息以供将来购买使用的过程。这使客户或商户能够发起交易，而无需客户额外输入信息。

* **可注册的支付方式**：Yuno 提供多种可注册的支付方式，包括**信用卡/借记卡**和替代支付方式（主要是钱包），客户可以提供其账户信息以用于将来的支付。
* **不可注册的支付方式**：无法注册的支付方式通常是替代支付方式，例如依赖银行转账或现金支付的方式，这类方式可能需要客户在每次支付时执行操作。

![比较可注册与不可注册支付方式以及同步与异步支付流程的示意图](https://mintcdn.com/yuno-3979e326/MTlogjS0_SlxtlJG/images/reference/payment-methods/image1.png?fit=max\&auto=format\&n=MTlogjS0_SlxtlJG\&q=85\&s=fa57ab009c6fefe016a5175ca15c052f)


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