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

# 支付方式类型

> 卖家的多态 payment_method 结构详解。

`payment_method` 数组中的每个条目都会将一种支付方式类型映射到特定的服务提供商及其商户凭证。

## 结构

`payment_method` 数组使用多态的 `detail` 结构。detail 对象的结构取决于 `payment_method_type` 字段。

| 字段 | 类型 | 必填 | 描述 |
| :- | :- | :- | :- |
| `payment_method_type` | string (enum) | 是 | 支付方式类型：`CARD`、`APPLE_PAY`、`GOOGLE_PAY` 等。 |
| `detail` | object | 是 | 特定于类型的详情对象。包含 `card` 或 `wallet` 键。 |

### CARD 类型

**路径：** `detail.card.provider`

| 字段 | 类型 | 必填 | 描述 |
| :- | :- | :- | :- |
| `id` | string | 是 | 支付服务提供商标识符（例如 `CIELO`、`ADYEN`、`STRIPE`）。 |
| `merchant_id` | string | 是 | 该服务提供商为此卖家分配的商户 ID（MAX 255）。 |

### APPLE\_PAY 类型

**路径：** `detail.wallet.provider`

| 字段 | 类型 | 必填 | 描述 |
| :- | :- | :- | :- |
| `id` | string | 是 | 钱包服务提供商标识符（例如 `APPLE_PAY`）。 |
| `merchant_id` | string | 是 | 钱包服务提供商分配的商户 ID（MAX 255）。 |
| `payment_processing_key` | string | 是 | 支付处理私钥的 Base64 编码 .pem 内容。 |
| `payment_processing_certificate` | string | 是 | 支付处理证书的 Base64 编码 .pem 内容。 |
| `merchant_identity_key` | string | 是 | 商户身份私钥的 Base64 编码 .pem 内容。 |
| `merchant_identity_certificate` | string | 是 | 商户身份证书的 Base64 编码 .pem 内容。 |
| `merchant_identity_password` | string | 是 | 商户身份证书的密码（MAX 255）。 |


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