# 【商户-API支付】网站如何接入API支付？

### 接入API支付之前需要先完成注册操作

* **点击“应用列表”**

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

* **选择API接入支付，点击“接入”**

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

* **点击“添加应用”**

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

* **填写应用名称、回调地址等信息，然后点“提交”**

注意：回调地址格式，开头必须为http或https

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

* **创建成功后，我们可以看到新添加的API应用，并且会生产用于API调用的APP\_ID和APP\_SECRET，然后再参照API文档进行操作。**<mark style="color:red;">**提示： APP\_ID 和 APP\_SECRECT 非常重要，请勿显示在任何网页代码、网址参数中**</mark>

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


---

# Agent Instructions: 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:

```
GET https://doc.tokenpay.me/chinese/shi-yong-jiao-cheng/shang-hu-api-zhi-fu-wang-zhan-ru-he-jie-ru-api-zhi-fu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
