/** * @param WxPayConfig $wxPayConfig */ public static function setConfig(WxPayConfig $wxPayConfig) { self::$config = $wxPayConfig; }
/** * 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(); }
/** * WxPayNotifyAbstract constructor. */ public function __construct() { parent::__construct(); $this->wxPayApi = WxPayFactory::WxPayApi(); }
/** * WxPayDataBase constructor. */ public function __construct() { $this->config = WxPayFactory::getConfig(); }