예제 #1
0
 /**
  * @param WxPayConfig $wxPayConfig
  */
 public static function setConfig(WxPayConfig $wxPayConfig)
 {
     self::$config = $wxPayConfig;
 }
예제 #2
0
 /**
  * JsApiPay constructor.
  * @param int $curl_timeout
  */
 public function __construct($curl_timeout = 2)
 {
     $this->curl_timeout = $curl_timeout;
     $this->config = WxPayFactory::getConfig();
     $this->wxPayApi = WxPayFactory::WxPayApi();
 }
예제 #3
0
 /**
  * WxPayNotifyAbstract constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->wxPayApi = WxPayFactory::WxPayApi();
 }
예제 #4
0
 /**
  * WxPayDataBase constructor.
  */
 public function __construct()
 {
     $this->config = WxPayFactory::getConfig();
 }