> 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/zhi-fu-ye-mian-api-ji-cheng/zhong-ding-xiang-di-zhi-ye-mian.md).

# 重定向地址/页面

{% hint style="info" %}

## 如何配置重定向地址

* 沙盒环境的 URL 可以在 Coda后台 -> 集成 -> Codapay -> Sandbox Configuration 中进行配置。请参考[此处](/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-pei-zhi-he-sheng-chan-huan-jing-pei-zhi.md)。
* 生产环境的配置可以在 Coda后台 -> 集成 -> Codapay -> Production Configuration 中进行。
  {% endhint %}

{% hint style="warning" %}
🚧 <mark style="color:orange;">**三个必需要配置的重定向地址。若没有重定向页面的分类需求，可以重复使用同一个重定向地址**</mark>

1. Complete Landing Page URL (电子钱包/运营商，完成支付页面后的页面）
2. ATM pending landing page URL （ 银行支付流程,待支付页面）
3. Pending OTC Landing Page URL （线下支付流程，待支付页面）
   {% endhint %}

关于ATM/Pending OTC Landing Page URL， 这是由于银行和线下支付流程通常都不是立即支付的, 用户填完支付信息后就需要被重导到一个“**支付正在进行中状态**”的页面。

因此Coda建议这两个页面可以放 **“订单已确定，现在等待支付状态，请根据支付页面指示进行支付”** 类似的页面展现给用户看。

## 重定向参数

<table><thead><tr><th width="105">Name</th><th width="116">Type</th><th width="93">Length</th><th>Description</th></tr></thead><tbody><tr><td>TxnId</td><td>Numeric</td><td>N/A</td><td>请求Coda获得的TxnID 单号</td></tr><tr><td>OrderId</td><td>String</td><td>64</td><td>商家Order ID</td></tr></tbody></table>

## 重定向地址格式

Complete Landing Page Url (完成支付的页面)\
<http://new.merchant.com/complete.php?TxnId=XXXXXXXXX&OrderId=YYYYYYYYY>

ATM pending landing Page URL (银行支付流程,待支付页面）\
<http://new.merchant.com/atm-pending.php?TxnId=XXXXXXXXX&OrderId=YYYYYYYYY>

Pending OTC Landing Page URL (线下支付流程，待支付页面）\
<http://new.merchant.com/otc-pending.php?TxnId=XXXXXXXXX&OrderId=YYYYYYYYY>


---

# 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/zhi-fu-ye-mian-api-ji-cheng/zhong-ding-xiang-di-zhi-ye-mian.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.
