Trades Callback
Trades Callbackrefers the process that our system sends POST request to merchant when the order completes.
Method: POST
Content-Type: application/x-www-form-urlencoded
Parameters:
name | type | DESC | e.g. |
---|---|---|---|
tradeno | string | Order number | e7b8ba3bdbf6ee68adc... |
outtradeno | string | Merchant order number | 20200202123ABC... |
amount | string | Amount | 20.68 |
ramount | string | Net amount | 20.58 |
endtime | string | Payment time | 2020-01-01 02:02:03 |
status | string | Order status: 1 Paid; | 1 |
remark | string | Remarks | test order |
sign | string | Signaure | e10adc3949bae20f883e... |
Expected responses
When merchant receives our system's request and confirms the order, please response a plain text response 'success'.
Content-Type:text/plain
Order status
- 0 = not processed
- 1 = completed
- 2 = timeout
- 4 = cancelled
The status of order 1(completed) and 4(cancelled) is final, and the status of order 0(not processed), 2(in settlement) and 3(abnormal settlement) are temporary, which can be modified to other states in the background