7. Direct Debit Notification
Descrption
- This interface should be implemented by merchant. The function is that when a direct debit transaction has been completed, Platform will call this interface to notify the merchant of the transaction details.
URL
Method
| Parameter name | Required | Type of data | Description |
| Content-Type | Y | string | application/json |
Request Body
| Parameter Name | Required | Type | Description |
| param | Yes | string | param |
| sign | Yes | string | signature |
param
| Parameter name | Required | Type of data | Description |
| eventName | Yes | string | Event name( direct.debit.success , direct.debit.failed ) |
| mchOrderId | Yes | string | Merchant order ID, alphanumeric, max length 32 |
| transactionId | Yes | string | Platform transaction ID |
| amount | Yes | long | Payment amount (Unit is in cents) |
| transactionStatus | Yes | string | Transaction status(PENDING , COMPLETED, FAILED) |
| createTime | Yes | string | Payment create time |
| returnTime | Yes | string | Payment finish time |
| channelCode | Yes | string | Channel Code |
| remark | Yes | string | Remark |
| failedCode | No | integer | Failed Code |
| failedMessage | No | string | Failed Message |
Request Example
Request Body
How to construct request body for Platform
Response Parameters
| Parameter Name | Type | Description |
| code | integer | Response code, fixed as 10000 |
| message | string | Response message, fixed as Success |
Response Example