支付
法币支付状态通知
法币支付订单状态变更时,GatePay 发送 bizType 为 PAY_FIAT 的 webhook 通知。
商户须校验签名,处理成功后返回 {"returnCode":"SUCCESS","returnMessage":""}。通知失败时按 通知概览 中的间隔重试;亦可调用订单查询接口获取最新状态。
WEBHOOK
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.
概述
本页说明webhook fiatPaymentNotify。完整的参数、响应结构与示例由上方关联的 OpenAPI 或 webhook 定义渲染。
法币支付订单状态变更时,GatePay 向商户配置的 callback URL 发送异步通知(bizType 为 PAY_FIAT)。
说明
触发情形
- 法币支付订单状态发生改变时(如支付成功、超出支付时间、订单取消或关闭等),GatePay 向商户注册时配置的 callback URL 发送通知
- 若通知投递失败,重试规则见 通知概览。
bizType 为 PAY_FIAT)。下单时若选择法币,平台会按实时汇率转换为加密货币收款。
消息结构
| 字段名 | 类型 | 说明 |
|---|---|---|
bizType | string | 固定为 PAY_FIAT |
bizId | string | 预付单 ID(订单 ID) |
bizStatus | string | 订单状态,见下表 |
client_id | string | 创建订单的商户 client_id(部分回调可能不返回,以实际为准) |
data | string | 订单数据 JSON 字符串 |
消息结构示例
bizStatus 枚举值
| 值 | 说明 |
|---|---|
PAY_SUCCESS | 订单支付成功 |
PAY_ERROR | 订单支付遇到错误 |
PAY_CLOSE | 订单被商户关闭或订单超时 |
data 字段说明
| 字段名 | 类型 | 说明 |
|---|---|---|
merchantTradeNo | string | 商户交易号 |
productType | string | 创建订单时的 goodsType |
productName | string | 创建订单时的 goodsName |
tradeType | string | 创建订单时的 terminalType |
goodsName | string | 商品名称 |
terminalType | string | 终端类型 |
currency | string | 订单币种(法币) |
orderAmount | string | 订单金额 |
expectCurrency | string | 商户指定营收币种 |
actualCurrency | string | 平台向商户结算的实际币种 |
actualAmount | string | 对应 actualCurrency 的金额 |
payerId | int64 | 支付用户 UID;无 Gate 账户支付时为 0 |
createTime | int64 | 订单创建时间(毫秒) |
transactionID | string | 平台交易 ID(部分历史回调亦可能为 transactionId,建议兼容解析) |
channelId | string | 客户名称 / 渠道标识 |
doneAmountOnChain | string | 链上已确认金额 |
waitAmountOnChain | string | 链上待确认金额 |
回调示例
法币支付成功(bizStatus=PAY_SUCCESS)
订单关闭(bizStatus=PAY_CLOSE)
支付异常(bizStatus=PAY_ERROR)
请求体
application/json

