Skip to main content

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.

NameTypeDescriptionRequirement
notify_typeString(30)Notification type
Fixed:trade_status_sync
trade_typeString(10)Transaction type
REFUND
user_confirm_keyStringUser Key, provided by eftPay
trade_noString(64)Payment provider's order number
transaction_idString(64)Payment provider's order number
out_trade_noString(28)Merchant order number
eft_trade_noString(28)eftPay order number
eftpay_trade_noString(28)eftPay order number
total_feeString(8)Total order amount
currencyString(5)Currency type
return_amountString(8)Refund amount
refund_noString(28)Refund order number
trade_statusString(32)Transaction status, see Appendix 2
gmt_paymentStringTransaction time, format:yyyy-MM-dd HH:mm:ss
walletString(20)Wallet type
tidString(20)Merchant terminal number
timeStringTime, format:yyyyMMddHHmmss
signString(64)Signature

The following parameters must be returned after receiving the transaction notification

NameTypeDescriptionRequirement
return_codeString(10)Return code
success/false
timeStringTime, format:yyyyMMddHHmmss
signString(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"
}