5. Direct Debit Callback
Description
- This interface is implemented by the merchant to receive direct debit transaction result notifications
- PayCools platform actively calls this interface when direct debit transaction status changes
URL
Request Method
| Parameter Name | Required | Type | Description |
| Content-Type | Yes | string | application/json |
Callback Parameters
| Field Name | Type | Required | Description |
| eventName | string | Yes | Event name: directdebit.payment.success / directdebit.payment.failed |
| mchOrderId | string | Yes | Merchant order number |
| transactionId | string | Yes | PayCools unique transaction serial number |
| amount | integer | Yes | Transaction amount (unit: cents) |
| transactionStatus | string | Yes | Transaction status: PENDING / COMPLETE / FAILED |
| createTime | string | Yes | Transaction creation time |
| returnTime | string | Yes | Callback/return time |
| channelCode | string | Yes | Payment channel code |
| remark | string | No | Remark |
| failedCode | integer | No | Failure code (returned when failed) |
| failedMessage | string | No | Failure message (returned when failed) |
| sign | string | Yes | Signature |
Success Callback Example
Failure Callback Example
Response Example