private function _lakalaForOrder($amount, $order, DepositeOrder $depositeOrder)
    {/*{{{*/
        $options['amount'] = $amount;
        $options['payInformUrl'] = BeanFinder::get('configs')->lakala_callback_url;

        if($order instanceof ScoreOrder)
        {
            $options['orderId'] = LaKaLaConnector::DATA_TYPE_SCORE.$depositeOrder->id;                                                                            
        }
        else if($order instanceof ServiceOrder)
        {
            $options['orderId'] = LaKaLaConnector::DATA_TYPE_FLOW.$depositeOrder->id;
        }
        else if($order instanceof DepositeOrder)
        {
            $options['orderId'] = LaKaLaConnector::DATA_TYPE_MONEY.$depositeOrder->id;
        }

        $lakala = new LaKaLaConnector();
        return $lakala->getFrontPayUrl($options['orderId'], $options['amount'], $options['payInformUrl']);
    }/*}}}*/
Exemplo n.º 2
0
    public function laKaLaCallBack($request, $response)
    {/*{{{*/
        $lakala = new LaKaLaConnector();                                                                                
        $lakala->getResponse();                                                                                           
        $this->_checkPayable($lakala, Pay::NAME_TYPE_LAKALA);

		$ret = $this->_callbackImp4notify();
        //跳转
	    $this->_jump2resultUrl4returnUrl();
        return parent::DIRECT_OUTPUT;
    }/*}}}*/