Appearance
3、Repayment Notify
3.1、Repayment Notify interface
Type:POST
Content-Type:application/json
Description: This API is used to notify the payment result, including parameters such as merchant information, order status, and user information.
Body-parameters:
| Parameter | Type | Description |
|---|---|---|
| amount | BigDecimal | The total payment amount (unit: cents, minimum value 1000) |
| payOrderId | string | The application order ID |
| code | Integer | The payment status code (e.g., success). |
| mchOrderNo | string | The unique merchant order number. |
| subject | string | Product name |
| sign | string | The signature for validation. |
| reqTime | string | The timestamp of the request. |
| createdAt | string | The timestamp when the order was created. |
| state | Integer | The payment state (Payment Status:0 - Order Generated 1 - Payment in Progress 2 - Payment Successful 3 - Payment Failed 4 - Cancelled 5 - Refunded 6 - Order Closed). |
Request-example:
js
{
"amount": 210800,
"payOrderId": "P1889977259465543682",
"code": "success",
"mchOrderNo": "R1655T1737554677110",
"subject": "",
"sign": "F83542B538F7DB47EE53D0D2C6B866F4",
"reqTime": 1739441025205,
"createdAt": 1739440681615,
"state": 2
}3.2、Successfully received the response.
Description: Successfully accepted, please return SUCCESS.
•sign:
•type: String
•describe: A signature of the data used to verify the authenticity and integrity of the response. The receiver needs to perform signature verification on the returned data based on the same signature algorithm.
