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

# WooCommerce 插件概述

> 了解 Yuno WooCommerce 插件的工作原理，以及如何在您的店铺中进行设置。

Yuno 的 WooCommerce 插件通过 Yuno Web SDK 和 PHP REST API 层，将 Yuno 的支付编排平台直接集成到您的 WooCommerce 店铺中。这是 Yuno 继 VTEX 之后支持的第二个电子商务插件。

> [!NOTE]
>
> 这是 MVP 版本。Yuno 正在根据商户反馈积极改进该插件。加入共享 Slack 中的 `WooCommerce` 频道，及时了解新版本发布信息。

## 插件简介

该插件将 Yuno 作为支付 gateway 添加到 WooCommerce 中，同时支持旧版短代码 checkout 和 WooCommerce 区块式 checkout。购物者无需离开您的店铺即可完成购买，并且随着 Yuno 将支付事件回报给 WooCommerce，订单状态会自动更新。

## 订单状态同步

Yuno 会让您的 WooCommerce 订单状态与底层支付状态保持同步：

| 支付结果 | WooCommerce 订单状态 |
| :- | :- |
| 支付成功，虚拟或可下载商品 | Completed |
| 支付成功，商品需要配送 | Processing |
| 支付失败 | Failed |

## 查看同步日志

插件的设置界面包含一个日志查看器，您可以在其中查看每个订单在 WooCommerce 与 Yuno 之间交换的消息，有助于排查未按预期同步的支付问题。

## 设置

1. 在您的 WooCommerce 管理后台中，进入 Yuno 支付 gateway 设置。
2. 输入您的 Yuno API 密钥。
3. 保存更改并启用该 gateway。

有关支持功能的完整列表和版本历史，请参阅 [WooCommerce 插件更新日志](https://docs.y.uno/changelog/plugins/woocommerce.md)。


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