๐Ÿ›’ Submit Order

Used to generate payment data of specified digital currency, merchants can guide users to jump to the UPay checkout counter for payment through the payment link. After the user 's payment is successful, the system will immediately issue a callback notification .

Note: Users must pay strictly according to the order amount. If the payment amount is inconsistent, the order will not be processed .

URL๏ผš /api/pay/apply

Method๏ผš POST

Parameter Type๏ผš application/json

Parameter ๏ผš

Field Name Field Type Required sign Instruction

appid

string(8)

True

True

Merchant APP ID

plat_order_sn

string(14-32)

True

True

The order number generated by this platform.

order_sn

string(14-32)

True

True

The order number generated independently by the merchant must be unique on the merchant 's end.

chain_type

string(1)

True

True

Network:

1: Tron (TRC20)

2: Ethereum (ERC20)

3: PayPal (PYUSD)

pay_usdt

string(10)

True

True

USDT amount, accurate to 2 decimal places

attach

string(64)

False

False

User-defined data, if it is not empty, will be returned as is when calling back to notify_url.

notify_url

string(256)

True

True

The callback address for receiving asynchronous notifications. It must be a directly accessible URL and cannot contain parameters, session verification, or csrf verification.

callback_url

string(256)

False

False

After the payment is successful, the front-end redirects the address. Be sure to include "http://"or "https://"at the beginning

sign

string(32)

True

True

Data sign, see: sign Algorithm

Return value data parameter๏ผš

Field Name Field Type Instruction

appid

string

Merchant APP ID

plat_order_sn

string

This platform order number

address

string

Wallet address, merchants can display this address for users to pay.

img

string

Payment QR code , merchants can display this QR code for users to pay.

pay_url

string

Chinese cashier url, merchants can jump directly to this url for users to pay.

en_pay_url

string

English cashier url, merchants can jump directly to this url for users to pay.

timeout

string

Payment address timeout.

Last updated