curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/transactions/native \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"merchantTradeNo": "118223456797",
"env": {
"terminalType": "APP"
},
"goods": {
"goodsName": "NF2T",
"goodsDetail": "nef-book"
}
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "50984376880599040",
"terminalType": "APP",
"expireTime": 1674118228000,
"location": "https://www.gate.io/webpay?prepayid=55583289224171652",
"qrContent": "http://openplatform.gate.io/qr/amaA9duknMfGKvM5H77Q0STgoTgVPmbPyuPDzlFvJO8="
}
}下web端、扫码待支付订单。
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/transactions/native \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"merchantTradeNo": "118223456797",
"env": {
"terminalType": "APP"
},
"goods": {
"goodsName": "NF2T",
"goodsDetail": "nef-book"
}
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "50984376880599040",
"terminalType": "APP",
"expireTime": 1674118228000,
"location": "https://www.gate.io/webpay?prepayid=55583289224171652",
"qrContent": "http://openplatform.gate.io/qr/amaA9duknMfGKvM5H77Q0STgoTgVPmbPyuPDzlFvJO8="
}
}商户在Gate商户后台注册应用时分配的clientId
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
请求生成时的UTC时间戳,milliseconds。请注意,GatePay不处理收到请求时间与这个时间戳差距大于10秒钟的请求
"1672905655498"
随机字符串,字符符合HTTP Header头部的规范,建议长度在32个字符以内,字符串组成为数字和字母
"9578"
请求签名。GatePay通过此签名来确定此请求是否合法
被代理的机构账户id
"2124538349"
商户订单号,不大于32字节
交易来源APP、WEB、WAP、MINIAPP、OTHERS
Show child attributes
商品说明
Show child attributes
加密货币币种,大写形式,如USDT、BTC等
加密货币订单金额,最小值0.000001,最高精度为6位,订单金额范围在[0.0001,500000]
法币币种,大写形式,如EUR、GBP、USD、CNY、JPY、AUD、CAD、CHF
法币订单金额,最小值0.01,最高精度为2位
商户实际要求入账的币种,如果商户要求入账币种与订单币种不一致,可使用此字段指定实际收入币种
订单过期时间,UTC时间戳,millisecond。不设置时默认为1小时,最大过期时间为1小时
订单支付成功后返回跳转地址,最长256字符
订单支付失败后返回跳转地址,最长256字符
客户名称