> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 商户接入

> 说明商户接入 GatePay 时的服务地址、凭证准备与通用请求头。

## 服务地址

`https://openplatform.gateapi.io`

如果你是第一次阅读 GatePay 文档，建议先阅读 [Quickstart](/essentials/version/100/cn/common/quickstart) 和 [商户接入指南](/essentials/version/100/cn/common/accessguide)，完成应用创建、签名联调和回调准备后，再按产品线进入对应 API 目录。

## 接入准备

1. 登录 GatePay 商户后台：[https://www.gate.com/zh/merchant#/get-started](https://www.gate.com/zh/merchant#/get-started)
2. 填写基本资料，申请成为商户
3. 进入应用配置页面，配置新应用
4. 查看已配置应用列表，获取应用 ClientId

## 生成密钥

1. 进入开发者页面，生成 **支付 API 秘钥**，用于支付类接口签名与回调验签
2. 进入开发者页面，生成 **授权秘钥**，用于授权类接口签名与验签
3. 配置回调地址，以便异步通知验签和状态确认

## 关键参数

| 参数        | 说明             |
| --------- | -------------- |
| 支付 API 秘钥 | 用于支付类请求签名和回调验签 |
| ClientId  | 用于标识应用身份       |

## 通用请求头

标准商户 API 使用以下通用请求头：

| 请求头                            | 说明                |
| ------------------------------ | ----------------- |
| X-GatePay-Certificate-ClientId | 应用 ClientId       |
| X-GatePay-Timestamp            | 请求发起时间的 UTC 毫秒时间戳 |
| X-GatePay-Nonce                | 请求随机串             |
| X-GatePay-Signature            | 按签名规则计算得到的请求签名    |

## SDK

最新官方 SDK 与客户端仓库统一维护在 [https://github.com/gate](https://github.com/gate)。

当前公开可见的多语言支持包括：

* [gatepay-sdk-java](https://github.com/gate/gatepay-sdk-java)
* [gatepay-sdk-go](https://github.com/gate/gatepay-sdk-go)
* [gatepay-sdk-python](https://github.com/gate/gatepay-sdk-python)
* [gatepay-sdk-android](https://github.com/gate/gatepay-sdk-android)
* [gatepay-sdk-ios](https://github.com/gate/gatepay-sdk-ios)
* [gatepay-call-payment-sdk-android](https://github.com/gate/gatepay-call-payment-sdk-android)
* [gatepay-call-payment-sdk-iOS](https://github.com/gate/gatepay-call-payment-sdk-iOS)

机构代理商户 API 的请求头规则请参见 [机构请求头](/api-reference/version/100/cn/common/institutionalCommonHeaders)。
