订单查询
API URL:https://mapi.yabandpay.com/Payments
Method:POST
POST data type:Json
参数 | 类型 | 描述 | 是否必填 |
---|---|---|---|
user | String | 收银员账号的UID | 必填 |
sign | String | 签名 | 必填 |
method | String | v3.QueryOrder | 必填 |
time | Long | 时间戳 | 必填 |
- 参数
参数 | 类型 | 描述 | 是否必填 |
---|---|---|---|
trade_id | String | YabandPay订单编号 | 必填 |
签名示例:
拼接为URL方式并排序后的字符串
"method=v3.QueryOrder&time=1546588959&trade_id=a8d9be05-8b39-a766-dad0-553b0640d06a&user=016683"
得到的 stringA 使用 secret_key做签名
得到的签名如下:
"5c8dada0e7369f2b0e42887bda855a278f064b5d34c5aa4bfd03b74310c50102"
提交示例:
{
"user": "016683",
"sign": "5c8dada0e7369f2b0e42887bda855a278f064b5d34c5aa4bfd03b74310c50102",
"method": "v3.QueryOrder",
"time": 1546588959,
"data": {
"trade_id": "a8d9be05-8b39-a766-dad0-553b0640d06a"
}
}
返回示例:
{
"status": true,
"code": "200",
"data": {
"transaction_info": {
"trade_id": "a8d9be05-8b39-a766-dad0-553b0640d06a",
"merchant_name": "Yaband Telecom B.V.",
"store_name": "Test",
"cashier_email": "016683",
"cashier_name": "H Feng",
"pay_method": "online",
"sub_pay_method": "WeChat Pay",
"order_id": "20180902014018888",
"amount": "0.10",
"currency": "EUR",
"settlement_amount": "0.10",
"settlement_currency": "EUR",
"exchange_rate": "1",
"description": "YabandPay test",
"created_at": "1555496062",
"redirect_url": "",
"notify_url": "https://www.yabandpay.com/notify",
"state": "paid",
"time_out": "1440",
"amount_cny": "",
"merchant_cost": "0.01",
"transaction_id": "4200000298201904178716759138",
"yb_transaction_id": "c8823612-383f-35fc-f28d-c0eae039e870",
"acquirer_id": "4200000298201904178716759138",
"paid_at": "1555496139",
"fund_flow_status": "2",
"fund_flow_description": "settled",
"payer_profile": {
"payer_name": "",
"payer_ip": "",
"payer_bank_account": "",
"issuer_name": ""
},
"3ds_status": "Y",
"3ds_trxid": "1d0c6eb3-6282-4cf9-9549-884410918d2d",
"3ds_version": "2.2.0",
"refund_info": [
{
"refund_id": "d04b698f-b2f5-45fc-8d3a-3135f360b452",
"m_refund_id": "20240301143029616187",
"yb_transaction_id": "8828165c-d65a-483d-8d4a-939245c0e201",
"refund_time": "1555496301",
"state": "refund processing",
"refund_amount": "0.10",
"refund_currency": "EUR",
"refund_description": "Yaband Telecom B.V. refund",
"fund_flow_status": "0",
"fund_flow_description": "Uncleared",
"notify_url": "https://www.yabandpay.com/notify",
}
]
}
},
"message": ""
}
更多信息:
资金状态代码和描述:
fund_flow_status | fund_flow_description |
---|---|
0 | uncleared |
1 | cleared |
2 | settled |
参数说明:
返回参数说明请参阅异步通知