curl --request POST \
--url https://openplatform.gateapi.io/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-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="
}
}Users can pay by scanning the QR codes provided by Gate and displayed by the 3rd party merchants. After 3rd party merchants register merchant information and complete the technical integration with Gate Pay, merchants can obtain different QR codes for different product orders, and will display the QR codes for users to scan to pay for the orders The users use the Gate APP to scan the QR codes The users confirm the payment by entering the payment password and clicking the “Confirm” button After the payment is completed, Gate will notify the merchants and the users of the payment status
curl --request POST \
--url https://openplatform.gateapi.io/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-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="
}
}The clientId assigned when the merchant registers an application in the Gate merchant console.
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
Request signature. GatePay uses this signature to verify whether the request is valid.
UTC timestamp in milliseconds when the request is generated. GatePay will not process requests where the difference from the receive time exceeds 10 seconds.
"1672905655498"
Random string. Must comply with HTTP header rules; recommended length is within 32 characters, composed of digits and letters.
"9578"
Merchant Order Number
"118223456797"
Show child attributes
Show child attributes
Crypto order currency in uppercase, such as USDT, BTC, etc.
"USDT"
Fiat order currency in uppercase form, such as EUR, GBP, USD, CNY, JPY, AUD, CAD, CHF.
"CNY"
Fiat order amount, with a maximum precision of 2 digits.
"100"
Crypto order amount, with up to 6 decimal places, ranging from 0.000001 to 50000.
"100"
Order Expiration Time in UTC Timestamp, with millisecond precision. The default is 1 hour if not set, and the maximum expiration time is 1 hour.
"1674118228000"
The URL to return to after a successful payment. Maximum length of 256 characters.
"http://47.99.158.63:8205/payment/callback"
The URL to return to after a failed payment. Maximum length of 256 characters.
""
Client Name.
""