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

# 支付方式对象

> 介绍用于背对背支付集成的支付方式对象的属性

## 属性

此对象表示可与客户关联、用于背对背（back-to-back）支付的支付方式。

**id** `string`

支付方式的唯一标识符（MAX 64; MIN 36）。

示例：693ed90e-5aa9-11ed-9b6a-0242ac120002

**name** `string`

支付方式名称（MAX 255; MIN 3）。

示例：CARD

**description** `string`

支付方式描述（MAX 255; MIN 3）。

示例：CARD

**type** `enum`

支付方式类型（MAX 255; MIN 3）。

可能的枚举值：请查看[
支付类型列表](https://docs.y.uno/zh-hans/reference/payment-type-list.md)。

**category** `enum`

支付方式类别（MAX 255; MIN 3）。

示例：CARD

**country** `enum`

客户所在的国家/地区（MAX 2; MIN 2; [ISO 3166-1](https://docs.y.uno/zh-hans/reference/country-reference.md)）。

可能的枚举值：请查看[国家/地区参考](https://docs.y.uno/zh-hans/reference/country-reference.md)。

**last\_successfully\_used** `bool`

表示该已注册的支付方式是否为客户最近一次成功使用的支付方式。

示例：True

**last\_successfully\_used\_at** `timestamp`

如果该已注册的支付方式是客户最近一次成功使用的支付方式，
表示最近一次成功支付的日期。

示例："2023-01-24T12:50:43.938087Z"

**workflow** `enum`

支付工作流，表示集成将使用 Yuno 的 SDK，还是采用背对背
连接。

可能的枚举值：如果为 `CHECKOUT`，您将使用 Yuno SDK。如果为 `DIRECT`，
您将使用背对背集成。

**card\_data** `object`

指定卡片的详细信息。

**属性**

**iin** `integer`

发卡机构识别号（IIN）是指由金融机构发行的支付卡卡号的
前几位数字（MAX 8; MIN 6）。

示例：45079900

**lfd** `integer`

卡号的后四位（MAX 4; MIN 4）。

示例：0010

**expiration\_month** `integer`

卡片的有效期月份（MAX 2; MIN 2），仅适用于通过 PCI 认证的商户。

示例：12

**expiration\_year** `integer`

卡片的有效期年份（MAX 2; MIN 2），仅适用于通过 PCI 认证的商户。

示例：12

**number\_length** `integer`

卡号的长度（MAX 19; MIN 8）。

示例：41961111

**security\_code\_length** `integer`

卡片安全码的长度（MAX 4; MIN 3）。

示例：123

**brand** `string`

卡品牌信息（MAX 255; MIN 3）。

示例：VISA

**issuer** `string`

卡片的发卡机构（MAX 255; MIN 3）。

示例：Banco Galicia

**category** `string`

卡片发卡机构的类别（MAX 255; MIN 3）。

示例：Gold

**type** `string`

卡片发卡机构的类型（MAX 255; MIN 3）。

示例：CREDIT、DEBIT 或 PREPAID

**callback\_url** `string`

在服务提供商环境中完成注册后，用于返回客户的 URL。仅在集成替代
支付方式时需要（MAX: 64; MIN: 36）。

示例：[https://www.company.com/customer\_1231324](https://www.company.com/customer_1231324)

**verify** `object`

表示是否通过验证交易来验证支付。您需要在 CARD 路由中
定义服务提供商。

**属性**

**vault\_on\_success** `boolean`

表示是否通过验证交易来验证支付。默认为 False。

**currency** `enum`

卡片验证的币种（MAX 3; MIN 3; [ISO 4217](https://docs.y.uno/zh-hans/reference/country-reference.md)）。

可能的枚举值：请查看[国家/地区参考](https://docs.y.uno/zh-hans/reference/country-reference.md)。

**status** `enum`

支付方式的状态（MAX 255; MIN 5）。

可能的枚举值：请查看[支付方式
状态](https://docs.y.uno/zh-hans/reference/customer-sessions-enrollment/enrollment-workflow.md#payment-method-status)。

**vaulted\_token** `string`

之前已注册的支付方式的存储令牌（MAX 64; MIN 36）。

示例：321c12f6-42c2-45b7-bf0c-f2f767b31948

**created\_at** `timestamp`

支付方式的创建日期和时间（MAX 27; MIN 27; [ISO
8601](https://en.wikipedia.org/wiki/ISO_8601)）。

示例：2022-05-09T20:46:54.786342Z

**updated\_at** `timestamp`

支付方式的最后更新日期和时间（MAX 27; MIN 27; [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)）。

示例：2022-05-09T20:46:54.786342Z


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