<?php

/* WSTShop网上商店
 * 版权所有 2016-2066 广州商淘信息科技有限公司，并保留所有权利。
 * 官网地址:http://www.wstshop.net
 * 交流社区:http://bbs.shangtao.net
 * 联系QQ:153289970
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！未经本公司授权您只能在不用于商业目的的前提下对程序代码进行修改和使用；
 * 不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
 * 	配置账号信息
 */

class WxPayConf {
	
	static public $APPID;
	static public $APPSECRET;
	static public $MCHID;
	static public $KEY;
	static public $CURL_TIMEOUT;
	
	static public $SSLCERT_PATH;
	static public $SSLKEY_PATH;
	static public $SSLCA_PATH;
	
	static public $NOTIFY_URL;
	static public $RETURN_URL;
	// =======【基本信息设置】=====================================
	public function __construct($wxpayconfig = array()) {
	
		self::$APPID = $wxpayconfig['appid'];
		self::$APPSECRET = $wxpayconfig['appsecret'];
		self::$MCHID = $wxpayconfig['mchid'];
		self::$KEY = $wxpayconfig['key'];

		self::$SSLCERT_PATH = isset($wxpayconfig['apiclient_cert'])?$wxpayconfig['apiclient_cert']:"";
		self::$SSLKEY_PATH = isset($wxpayconfig['apiclient_key'])?$wxpayconfig['apiclient_key']:"";
		//self::$SSLCA_PATH = WSTRootPath().'/extend/wxpay/cert/rootca.pem';

		self::$CURL_TIMEOUT = $wxpayconfig['curl_timeout'];
		self::$NOTIFY_URL = $wxpayconfig['notifyurl'];
		self::$RETURN_URL = $wxpayconfig['returnurl'];
	
	}
}

?>