src/Common/Cmb/Data/Charge/ChargeData.php
protected function getReqData()
    {
        $reqData = [
            'dateTime' => $this->dateTime,
            'branchNo' => $this->branchNo,
            'merchantNo' => $this->merchantNo,
            'date' => $this->date ? $this->date : date('Ymd', time()),
            'orderNo' => $this->order_no,
            'amount' => $this->amount,
            'expireTimeSpan' => $this->timeout_express ? $this->timeout_express  : '',
            'payNoticeUrl' => $this->notifyUrl,
            'payNoticePara' => $this->return_param ? $this->return_param : '',
            'returnUrl' => $this->returnUrl ? $this->returnUrl : '',
            'clientIP' => $this->client_ip,
            'cardType' => $this->limitPay ? $this->limitPay : '',
            'agrNo' => $this->agr_no,
            'merchantSerialNo' => $this->serial_no ? $this->serial_no : '',
            'userID' => $this->user_id ? $this->user_id : '',
            'mobile' => $this->mobile ? $this->mobile : '',
            'lon' => $this->lon ? $this->lon : '',
            'lat' => $this->lat ? $this->lat : '',
            'riskLevel' => $this->risk_level ? $this->risk_level : '',
            'signNoticeUrl' => $this->signNoticeUrl ? $this->signNoticeUrl : '',
            'signNoticePara' => $this->return_param ? $this->return_param : '',

            // 暂时先不支持下面方式
            'extendInfo' => '',
            'extendInfoEncrypType' => '',
        ];

        // 这里不能进行过滤空值，招商的空值也要加入签名中
        return $reqData;
    }
protected function getReqData()
    {
        $reqData = [
            'dateTime' => $this->dateTime,
            'branchNo' => $this->branchNo,
            'merchantNo' => $this->merchantNo,
            'date' => $this->date ? $this->date : date('Ymd', time()),
            'orderNo' => $this->order_no,
            'amount' => $this->amount,
            'expireTimeSpan' => $this->timeout_express ? $this->timeout_express  : '',
            'payNoticeUrl' => $this->notifyUrl,
            'payNoticePara' => $this->return_param ? $this->return_param : '',
            'returnUrl' => $this->returnUrl ? $this->returnUrl : '',
            'clientIP' => $this->client_ip,
            'cardType' => $this->limitPay ? $this->limitPay : '',
            'agrNo' => $this->agr_no,
            'merchantSerialNo' => $this->serial_no ? $this->serial_no : '',
            'userID' => $this->user_id ? $this->user_id : '',
            'mobile' => $this->mobile ? $this->mobile : '',
            'lon' => $this->lon ? $this->lon : '',
            'lat' => $this->lat ? $this->lat : '',
            'riskLevel' => $this->risk_level ? $this->risk_level : '',
            'signNoticeUrl' => $this->signNoticeUrl ? $this->signNoticeUrl : '',
            'signNoticePara' => $this->return_param ? $this->return_param : '',

            // 暂时先不支持下面方式
            'extendInfo' => '',
            'extendInfoEncrypType' => '',
        ];

        // 这里不能进行过滤空值，招商的空值也要加入签名中
        return $reqData;
    }
protected function getReqData ( ) { $ reqData = [ 'dateTime' => $ this -> dateTime , 'branchNo' => $ this -> branchNo , 'merchantNo' => $ this -> merchantNo , 'date' => $ this -> date ? $ this -> date : date ( 'Ymd' , time ( ) ) , 'orderNo' => $ this -> order_no , 'amount' => $ this -> amount , 'expireTimeSpan' => $ this -> timeout_express ? $ this -> timeout_express : '' , 'payNoticeUrl' => $ this -> notifyUrl , 'payNoticePara' => $ this -> return_param ? $ this -> return_param : '' , 'returnUrl' => $ this -> returnUrl ? $ this -> returnUrl : '' , 'clientIP' => $ this -> client_ip , 'cardType' => $ this -> limitPay ? $ this -> limitPay : '' , 'agrNo' => $ this -> agr_no , 'merchantSerialNo' => $ this -> serial_no ? $ this -> serial_no : '' , 'userID' => $ this -> user_id ? $ this -> user_id : '' , 'mobile' => $ this -> mobile ? $ this -> mobile : '' , 'lon' => $ this -> lon ? $ this -> lon : '' , 'lat' => $ this -> lat ? $ this -> lat : '' , 'riskLevel' => $ this -> risk_level ? $ this -> risk_level : '' , 'signNoticeUrl' => $ this -> signNoticeUrl ? $ this -> signNoticeUrl : '' , 'signNoticePara' => $ this -> return_param ? $ this -> return_param : '' , // 暂时先不支持下面方式 'extendInfo' => '' , 'extendInfoEncrypType' => '' , ] ; // 这里不能进行过滤空值，招商的空值也要加入签名中 return $ reqData ; }
请求数据
请求数据