After the order is completed, the system will automatically send a notification message to the callback address (notifyUrl) associated with the order to inform the final status of the order.
Push 6 times: 10 seconds, 30 seconds, 60 seconds, 300 seconds, 600 seconds, 900 seconds
Push URL
eg. https://www.qpay.ink/notify
Push Method
POST
Push Parameters
| Name | Field Type | Is it required? | Signature | Description |
|---|---|---|---|---|
| AppId | string | Yes | Yes | Project APP ID |
| orderNo | number | Yes | Yes | QPay order number. |
| merchantOrderNo | number | Yes | Yes | Merchant order number. |
| actualCrypto | number | Yes | Yes | The actual amount of USDT received. |
| crypto | number | Yes | Yes | Original USDT order amount. |
| updatetime | number | Yes | Yes | Order update time. |
| createtime | number | Yes | Yes | The time the order was created. |
| timestamp | number | Yes | Yes | Timestamp, used to participate in signature calculation. |
| status | number | Yes | Yes | Order status, pending,success, failed |
| chainType | number | Yes | Yes | Payment type, trc20 or erc20. |
| poundage | number | Yes | Yes | Order handling fee. |
| father_merchantOrderNo | number | Yes | Yes | The original merchant order number. |
| hash | number | Yes | Yes | Transaction HASHID. |
| signature | number | Yes | Yes | Data Signature,Refer to the signature algorithm below. |
function makeSignBysend($params, $appKey)
{
$str = $params['AppId']
.$params['orderNo']
. $params['merchantOrderNo']
. $params['hash']
. $params['actualCrypto']
. $params['chainType']
. $params['timestamp'];
return strtoupper(hash_hmac('sha256', $str, $appKey));
}
Refer to the above method to calculate the signature.