public function getSignMsg() { /*{{{*/ $signMsgVal = ''; foreach (self::getSequenceForSignMsg() as $param) { $value = isset($this->{$param}) ? $this->{$param} : ''; $signMsgVal = QPayCardConnector::appendParam($signMsgVal, $param, $value); } return strtoupper(md5($signMsgVal)); //安全校验域 }
private function _phoneCardForOrder($bossType, $amount, $cardNumber, $cardPwd, $order, DepositeOrder $depositeOrder) {/*{{{*/ $options['bossType'] = $bossType; $options['orderAmount'] = $amount; $options['cardNumber'] = $cardNumber; $options['cardPwd'] = $cardPwd; $options['bgUrl'] = BeanFinder::get('configs')->qpay_card_callback_url; $options['pageUrl'] = BeanFinder::get('configs')->qpay_card_callback_returnurl; if($order instanceof ScoreOrder) { $options['orderId'] = QPayCardConnector::DATA_TYPE_SCORE.$depositeOrder->id; } else if($order instanceof ServiceOrder) { $options['orderId'] = QPayCardConnector::DATA_TYPE_FLOW.$depositeOrder->id; } $options['payerName'] = $this->user->name; $options['orderTime'] = $depositeOrder->ctime; $qpay = new QPayCardConnector(); $qpay->buildRequest($options); return $this->getQpayArray($qpay); }/*}}}*/
public function qpayCardCallBack4return($request, $response) {/*{{{*/ $qpay = new QPayCardConnector(); $qpay->getResponse(); $this->_qpayCallBackImp($qpay, Pay::NAME_TYPE_QPAY_RETURN_CARD); //置回调状态 $this->_processDeposite4Return(); return parent::DIRECT_OUTPUT; }/*}}}*/