outOrderId = $outOrderId; $this->oglOrdId = $oglOrdId; $this->oglOrdDate = $oglOrdDate; $this->transAmt = $transAmt; } /** * 交易码 * * @return string */ public function getTrscode() :string { return 'TRANS0107'; } /** * 聚合:tran(退款不需要) * * @return string */ public function getProCd() :string { return ''; } /** * 费率通道(退款不需要) * * @return integer */ public function getChanelType() :int { return 0; } /** * 返回回调处理类型 ['pay', 'agent', 'refund'] 默认pay 代付agent 退款refund * * @return string */ public function getNotifyType() { return 'refund'; } public function getTransData(string $mchtCd) :array { $reqData['trscode'] = $this->getTrscode(); $reqData['mchtCd'] = $mchtCd; $reqData['outOrderId'] = $this->outOrderId; $reqData['oglOrdId'] = $this->oglOrdId; $reqData['oglOrdDate'] = $this->oglOrdDate; $reqData['transAmt'] = $this->transAmt; return $reqData; } }