diff --git a/app/Service/v3/CCBPayment.php b/app/Service/v3/CCBPayment.php index 6fdcded..c9cd67a 100644 --- a/app/Service/v3/CCBPayment.php +++ b/app/Service/v3/CCBPayment.php @@ -427,4 +427,28 @@ class CCBPayment return $this->apiRequest($uri, $params); } + /** + * 10.1 订单信息查询 + * @param string $Main_Ordr_No 主订单编号 + * @param string $Py_Trn_No 支付流水号,主订单号与支付流水号必输其一 + * @return array + */ + public function orderInfQuery(string $Main_Ordr_No, string $Py_Trn_No = '') + { + $uri = '/online/direct/OrderInfQuery'; + + $params = [ + 'Ittparty_Stm_Id' => $this->ittpartyStmId, + 'Py_Chnl_Cd' => $this->pyChnlCd, + 'Ittparty_Tms' => $this->getTimestamp(), + 'Ittparty_Jrnl_No' => $this->genSerialNumber(), + 'Mkt_Id' => $this->mktId, + 'Main_Ordr_No' => $Main_Ordr_No, + 'Py_Trn_No' => $Py_Trn_No, + 'Vno' => '4', + ]; + + return $this->apiRequest($uri, $params); + } + } \ No newline at end of file