Query
You can query information about consumption transactions and refund transactions.
Info
{domain}/Servlet/QRcodeTradeQuery.do
https:/VMP/Servlet/QRcodeTradeQuery.do
Name | Type | Description | Required |
---|---|---|---|
querytype | String(30) | Query type, fixed: OUT_TRADE | |
out_trade_no | String(28) | Merchant order number | |
refund_no | String(28) | Merchant refund number, used for refund query | |
user_confirm_key | String(12) | User Key provided by eftPay | |
paytype | String(6) | Payment type | |
payment_type | String(20) | Wallet type | |
time | String | Time, format: yyyyMMddHHmmss | |
sign | String(64) | Signature |
Tips
When refund_no is not filled or is "", it returns order information based on out_trade_no, i.e., the trade_status is the status of the consumption order. Otherwise, it returns refund information based on refund_no, i.e., the trade_status is the status of the refund order.
Name | Type | Description | Requirement |
---|---|---|---|
return_status | String(3) | Return status code, "00" represents success. Note: This parameter cannot be used to determine the success of the transaction. Other status codes see Appendix 3 | Required |
return_char | String(100) | Return description, it may change and cannot be used as a condition for judgment | Required |
time | String | Time, format: yyyyMMddHHmmss Returned when return_status >= 00 | Optional |
sign | String(64) | Signature Returned when return_status >= 00 | Optional |
Name | Type | Description | Requirement |
---|---|---|---|
out_trade_no | String(28) | Merchant order number | Required |
extra_trade_no | String(28) | Merchant refund number, returned when querying refund | Optional |
eftpay_trade_no | String(28) | Eftpay order number | Required |
trade_status | String(32) | Transaction status, see Appendix 2 | Required |
user_confirm_key | String(12) | User Key provided by eftPay | Required |
trade_type | String(10) | Order type, see Appendix 4 | Required |
buyer_id | String(30) | User identifier | Required |
tid | String(20) | Terminal number, returned when there is a delivery in the request | Optional |
transaction_id | String(64) | Payment provider number | Required |
payment_type | String(8) | Wallet type | Required |
trade_time | String | Transaction time, format: yyyy-MM-dd HH:mm:ss | Required |
{
"user_confirm_key": "12345678",
"out_trade_no": "201908241040035",
"sign": "24db1adc94b18a416796695a3062398bf3908bff7647da4948b769bf118dff87",
"time": "20190824104052",
"paytype": "WeChat",
"payment_type": "WECHATCN",
"querytype": "OUT_TRADE"
}
{
"return_status": "00",
"return_char": "",
"sign": "6077b275107676aac219cb38d7970a8f3de607f47d6baa6320f337a4ca1358e2",
"time": "20190824104135",
"out_trade_no": "201908241040035",
"eftpay_trade_no": "08520005269190824104101935",
"trade_status": "TRADE_SUCCESS",
"user_confirm_key": "12345678",
"trade_type": "SALE",
"buyer_id": "2088012867786450",
"tid": "tid123",
"transaction_id": "2019082422001486450540740143",
"payment_type": "WECHATCN",
"trade_time": "2019-08-24 10:41:25",
"transaction_amount": "0.02",
"currency": "HKD",
"original_amount": "10.01",
"rate": ""
}