method | 说明 | 参数 | 返回值 |
---|---|---|---|
query | 支付订单查询 | string $orderSn | Collection |
支付订单
$pay = new \fengkui\Pay\Unionpay($unionConfig);
$order = [
'order_sn' => '1718354454', // 商户端订单编号
'txn_time' => '20240614084054' // 订单支付时间(txnTime)
];
$result = $pay->query($order);
支付返回参数
相关返回参数说明,请参考这里,查看「返回参数」一栏。
返回示例
{
"accNo": "6216***********0018",
"accessType": "0",
"bizType": "000000",
"currencyCode": "156",
"encoding": "UTF-8",
"issuerIdentifyMode": "0",
"merId": "777290058207330",
"orderId": "1718354454",
"origRespCode": "00",
"origRespMsg": "成功[0000000]",
"queryId": "192406140840544025268",
"respCode": "00",
"respMsg": "成功[0000000]",
"settleAmt": "1",
"settleCurrencyCode": "156",
"settleDate": "0614",
"signMethod": "01",
"traceNo": "402526",
"traceTime": "0614084054",
"txnAmt": "1",
"txnSubType": "01",
"txnTime": "20240614084054",
"txnType": "01",
"version": "5.1.0"
}