Refund Asynchronous Notification
The server returns after receiving the refund notification from the payment provider.
Currently, only WeChat is supported.
Info
Provide notify_url
when a refund is needed.
Name | Type | Description | Requirement |
---|---|---|---|
notify_type | String(30) | Notification type Fixed: trade_status_sync | |
trade_type | String(10) | Transaction typeREFUND | |
user_confirm_key | String | User Key, provided by eftPay | |
trade_no | String(64) | Payment provider's order number | |
transaction_id | String(64) | Payment provider's order number | |
out_trade_no | String(28) | Merchant order number | |
eft_trade_no | String(28) | eftPay order number | |
eftpay_trade_no | String(28) | eftPay order number | |
total_fee | String(8) | Total order amount | |
currency | String(5) | Currency type | |
return_amount | String(8) | Refund amount | |
refund_no | String(28) | Refund order number | |
trade_status | String(32) | Transaction status, see Appendix 2 | |
gmt_payment | String | Transaction time, format:yyyy-MM-dd HH:mm:ss | |
wallet | String(20) | Wallet type | |
tid | String(20) | Merchant terminal number | |
time | String | Time, format:yyyyMMddHHmmss | |
sign | String(64) | Signature |
The following parameters must be returned after receiving the transaction notification
Name | Type | Description | Requirement |
---|---|---|---|
return_code | String(10) | Return code success/false | |
time | String | Time, format:yyyyMMddHHmmss | |
sign | String(64) | Signature |
{
"currency": "HKD",
"eft_trade_no": "18520003650610023041t5ruq5va732",
"eftpay_trade_no": "18520003650610023041t5ruq5va732",
"gmt_payment": "2020-01-20 10:35:34",
"notify_type": "trade_status_sync",
"out_trade_no": "rrn_1686280005985",
"refund_no": "R_rrn_1686280005985",
"return_amount": "0.29",
"time": "20230609110645",
"total_fee": "0.29",
"trade_no": "4200000994202001206533192063",
"trade_status": "TRADE_CLOSED",
"trade_type": "REFUND",
"transaction_id": "4200000994202001206533192063",
"user_confirm_key": "S0003469",
"wallet": "WECHATCN",
"sign": "b4fcff1e7bb7e3acb6dcdf4a5058776f33bee8313ef43674b1e4b9dcfcbb6d11"
}
{
"time": "20230609110645",
"sign": "8e80d3a03a8cf23e1427648fdf160431188740fbc371090c702c5a00bb6f347b",
"return_code": "success"
}