Exemplo n.º 1
0
 public function _initialize()
 {
     parent::_initialize();
     $this->return_url = "http://" . $_SERVER['HTTP_HOST'] . "/Mpay/payreturn";
     $this->notify_url = "http://" . $_SERVER['HTTP_HOST'] . "/Mpay/paynotice";
     $this->member_url = "http://" . $_SERVER['HTTP_HOST'] . "/member";
     try {
         import('App.Api.llpay');
         $this->payCore = llpay::getInstance();
     } catch (Exception $e) {
         $this->errLog($e, '_initialize');
         die($e->getMessage());
     }
 }
Exemplo n.º 2
0
 public static function getInstance()
 {
     if (is_null(self::$_instance) || isset(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }