> ## 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 让商户能够使用安全的支付链接处理逾期或被拒绝的支付。当信用卡过期或被报告为被盗或遗失时，您可以生成支付链接，通过 email 或短信分享给客户，让他们轻松更新支付信息。

此功能专为自行运营订阅引擎、需要更新信用卡信息以便使用新的 `vaulted_token` 继续为其客户处理支付的商户而设计。

## 工作原理

### 接收支付链接

当用户需要更新支付信息时，他们会收到一个安全的支付链接。通过此链接，他们可以使用信用卡或借记卡完成任何待处理的支付。要创建用于注册的支付链接，请务必包含以下字段：

* `customer_payer.id`：之前 [创建的客户](https://docs.y.uno/reference/customers/create-customer.md) 的 ID
* `one_time_use`：将其设置为 `true`，确保支付链接只能使用一次
* `vault_on_success`：将其设置为 `true`，在支付成功后注册该信用卡

### 自动注册

通过该链接成功完成支付后，Yuno 会自动为客户生成新的 `vaulted_token`。

### 继续扣款

获得 `vaulted_token` 后，您可以继续执行订阅计划。使用 [获取支付方式](https://docs.y.uno/reference/payment-methods-direct-workflow/retrieve-enrolled-payment-methods-api.md) endpoint 访问客户的支付方式。

如需了解有关创建和管理支付链接的更多信息，请参阅 [支付链接 API 参考](https://docs.y.uno/reference/payment-links/create-payment-link.md)。


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