> 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/qu-dao-xuan-ze-ye-mian.md).

# 渠道选择页面

## Coda Paytype 讲解

## <mark style="color:purple;">**PayType = ID**</mark>

<figure><img src="https://files.readme.io/45b6f03-51b700c-image16.png" alt=""><figcaption></figcaption></figure>

在 CodaPay 中，`Paytype` 用于区分支付渠道。例如，商家发起请求时设置 `Paytype=23`（如示例），在拉起支付页面时系统会直接加载印尼的 XL 渠道。\
因此，商家需要设计一个渠道选择页面，让用户选择支付方式。用户选择后，商家根据用户选定的渠道发送相应的 `Paytype` 参数。

{% hint style="info" %}
Paytype参数请参考[**英文版文档**](https://coda-payments.gitbook.io/coda-private-technical-documentation/codapay/references/supported-payment-channels)
{% endhint %}

***

## <mark style="color:purple;">**PayType = 1**</mark>

<figure><img src="https://files.readme.io/9c6f08f-682d6a6-image21.png" alt=""><figcaption></figcaption></figure>

`Paytype=1` 是针对运营渠道（话费支付）设计的一个共用接口。

**特点**:

* 当商户请求 `Paytype=1` 时，等同于请求了商户接入的所有本地运营商渠道。用户仅需输入手机号，Coda 系统会自动识别用户的运营商并加载对应的支付页面。
* 如果系统无法通过手机号识别运营商（如泰国地区），Coda 系统会提示用户手动选择运营商，流程与普通渠道选择类似，区别在于支付页面的展示方式。

<figure><img src="https://files.readme.io/63db5bd-198325e-image19.png" alt=""><figcaption></figcaption></figure>

***

## <mark style="color:purple;">**Paytype = 0**</mark>

`Paytype=0` 是一种无需商户设计渠道选择页面的选项，由 Coda 的渠道页面直接呈现所有支付选项供用户选择。

**注意事项**:

* 该页面**不支持点卡渠道**显示。
* 使用 `Paytype=0` 前，需在商户后台完成额外配置，否则可能出现错误代码 **233**。详细配置请参考英文版文档 [**Payment Page Configuration**](https://coda-payments.gitbook.io/coda-private-technical-documentation/codapay/integration-guides/sandbox-environment/sandbox-configuration#payment-page-configuration)。

{% hint style="warning" %}
🚧 <mark style="color:orange;">**使用Paytype=0，需在后台额外配置，否则交易显示错误233。参考英文版**</mark> [Payment Page Configuration](https://coda-payments.gitbook.io/coda-private-technical-documentation/codapay/integration-guides/sandbox-environment/sandbox-configuration#payment-page-configuration)
{% endhint %}

<figure><img src="https://files.readme.io/1f704b5-Snipaste_2022-07-08_11-21-10.png" 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/zhi-fu-ye-mian-api-ji-cheng/qu-dao-xuan-ze-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.
