curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/checkout/order \
--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": "163",
"env": {
"terminalType": "APP"
},
"currency": "USDT",
"orderAmount": "118.75",
"merchantUserId": 123,
"goods": {
"goodsType": "02",
"goodsName": "Sipariş Ödemesi - 177",
"goodsDetail": "Sipariş No : 160"
},
"chain": "MATIC",
"fullCurrType": "USDT_MATIC"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "65466648727916544",
"fiatCurrency": "",
"fiatAmount": "",
"currency": "USDT",
"terminalType": "APP",
"expireTime": 1677573665219,
"qrContent": "http://openplatform.gate.io/qr/GA0cskPehKxQpshvm3Goeve8dHpwCl6yCHLSWUYrLqo=",
"location": "https://www.gate.com/cashier?prepayid=65466648727916544",
"payCurrency": "USDT",
"payAmount": "118.75",
"chain": {
"chain_type": "BSC",
"address": "0x86608d3C9f979b98a3b2417216eD859d313E339D",
"fullCurrType": "USDT_EOS"
},
"channelId": "123456",
"goodsName": "Sipariş Ödemesi - 177",
"inUsdt": "118.75"
}
}下收银台订单。
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/checkout/order \
--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": "163",
"env": {
"terminalType": "APP"
},
"currency": "USDT",
"orderAmount": "118.75",
"merchantUserId": 123,
"goods": {
"goodsType": "02",
"goodsName": "Sipariş Ödemesi - 177",
"goodsDetail": "Sipariş No : 160"
},
"chain": "MATIC",
"fullCurrType": "USDT_MATIC"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "65466648727916544",
"fiatCurrency": "",
"fiatAmount": "",
"currency": "USDT",
"terminalType": "APP",
"expireTime": 1677573665219,
"qrContent": "http://openplatform.gate.io/qr/GA0cskPehKxQpshvm3Goeve8dHpwCl6yCHLSWUYrLqo=",
"location": "https://www.gate.com/cashier?prepayid=65466648727916544",
"payCurrency": "USDT",
"payAmount": "118.75",
"chain": {
"chain_type": "BSC",
"address": "0x86608d3C9f979b98a3b2417216eD859d313E339D",
"fullCurrType": "USDT_EOS"
},
"channelId": "123456",
"goodsName": "Sipariş Ödemesi - 177",
"inUsdt": "118.75"
}
}商户在Gate商户后台注册应用时分配的clientId
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
请求生成时的UTC时间戳,milliseconds。请注意,GatePay不处理收到请求时间与这个时间戳差距大于10秒钟的请求
"1672905655498"
随机字符串,字符符合HTTP Header头部的规范,建议长度在32个字符以内,字符串组成为数字和字母
"9578"
请求签名。GatePay通过此签名来确定此请求是否合法
被代理的机构账户id
"2124538349"
商户订单号
订单币种,大写形式,如USDT、BTC等
订单金额,最小值0.000001,最高精度为6位
交易来源
Show child attributes
商品说明
Show child attributes
支付者在商户平台注册时的唯一ID
所选链名字,商户侧可调用/v1/pay/address/chains接口获取,接口请参考地址支付文档
包含链名字的币种字段,对应到具体链的具体币种
附加费, 指由消费者承担的费用
容差金额:当订单剩余未付金额 ≤ 设置的容差金额时,系统将自动视为支付成功,无需用户额外补款。
法币币种,大写形式,如EUR、GBP、USD、CNY、JPY、AUD、CAD、CHF
法币订单金额,最小值0.01,最高精度为2位
地址支付的付款币种,不传payCurrency就和currency相同
订单过期绝对时间单位毫秒。不设置时默认为1小时,最大过期时间为1小时
订单支付成功后返回跳转地址,最长256字符
订单支付失败后返回跳转地址,最长256字符
客户名称