> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codapay/ji-cheng-zhi-nan/sha-he-huan-jing-ce-shi-zhi-nan/sha-he-mo-ni-qi-ce-shi-zhi-nan.md).

# 沙盒模拟器测试指南

{% hint style="info" %}
👍 <mark style="color:blue;">**模拟器功能适用于管理员和技术角色成员**</mark>
{% endhint %}

### **步骤 1：登录** [**Coda 后台**](https://portal.coda.co/#/integration/codapay/publisher-settings)

***

### **步骤 2：通过侧边菜单进入** 集成 > Codapay > 沙盒测试

### 发起支付请求

* 选择标题（Title）并输入请求参数
* 点击“Send Request” 按钮以生成Coda订单交易 ID

<figure><img src="/files/G0ZMI5aDnuHGV74ZWzYK" alt=""><figcaption></figcaption></figure>

### 支付页面

* 当您在Payment Page页面点击“Generate Payment Page”后，您可以查看移动端和桌面端的测试页面 URL。
* 直接点击 URL 链接，在新标签页中打开支付页面。

<figure><img src="/files/ohqyWh1BwCXx1mHe1S1s" alt=""><figcaption><p>生成支付页面</p></figcaption></figure>

### 支付模拟器

<figure><img src="/files/D7E1mA0AvHs2XWpfdaC3" alt=""><figcaption></figcaption></figure>

填写以下信息：

| Field                        | Description                                                                                                                                                                                                                                                               | Example Value     |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
| Payment Method Name          | 支付渠道名称                                                                                                                                                                                                                                                                    | 从渠道列表中选择          |
| Transaction ID               | <p>Coda 订单号 <br></p><p>有几种方式可以获取 Coda Transaction ID：</p><ol><li>从 Coda 支付页面复制。</li><li>从开发者工具中获取，右键点击并选择“检查”(Inspect)，进入网络 (Network)标签页查找 Transaction ID。</li><li>从 InitResult 响应体中获取，详情请参考此<a href="/pages/NtwMPRSj4Z4bfAr9JhEt#cheng-gong-xiang-ying">处</a>。</li></ol> | 70xxxxxxxxxxxxxxx |
| Payment Status               | 您可以从此字段中选择相应的订单状态，以模拟实际订单可能遇到的不同状态。                                                                                                                                                                                                                                       | 成功或列表中任何现有的错误代码   |
| Total Price (Local currency) | Coda 支付页面中商品的价格 / 商品价格，以本地货币为准                                                                                                                                                                                                                                            | 数字                |

<figure><img src="/files/udvWR5zKa7H81zSrOYip" alt=""><figcaption></figcaption></figure>

### 订单支付状态查询

输入请求参数以查看成功支付状态的响应结果。您可以在自己的系统中实现支付状态检查流程，以验证每笔交易的支付结果。

<figure><img src="/files/I50H6dNZ0kXkD3jA8KzU" alt=""><figcaption></figcaption></figure>

点击“Send Request”以查收接口响应结果：

<figure><img src="/files/xPiOscYubpxfGHINFeq0" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codapay/ji-cheng-zhi-nan/sha-he-huan-jing-ce-shi-zhi-nan/sha-he-mo-ni-qi-ce-shi-zhi-nan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
