You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
3.2 KiB
C#

using HuizhongLibrary.Common.Configuration;
using System;
using System.Collections.Generic;
using System.Web;
namespace WxPayAPI
{
/**
*
*/
public class WxPayConfig
{
//=======【基本信息设置】=====================================
/*
* APPIDAPPID
* MCHID
* KEY
* APPSECRETsecertJSAPI
*/
public static string SetupPath = AppDomain.CurrentDomain.BaseDirectory + "Web.config";
public static string APPID = ConfigurationSourceSection.LoadXml_Attribute(SetupPath, "appId2");// "wx0a895a6721484fb0";// "wx36c993c30d3b6f0b";//"wxdf1f17164598d212";////"wx2428e34e0e7dc6ef";
public static string MCHID = ConfigurationSourceSection.LoadXml_Attribute(SetupPath, "MCHID");// "1438351202";//"10021220";// "1233410002";
public static string KEY = ConfigurationSourceSection.LoadXml_Attribute(SetupPath, "KEY");//"G6g1D7EcO5nphIfdxPVRwugxSZmEj7hF";// "cnHR45zLWk6GDs7UBo1FmcKJKvGx7tVC";//"e10adc3849ba56abbe56e056f20f883e";
public static string APPSECRET = ConfigurationSourceSection.LoadXml_Attribute(SetupPath, "appSecret2");//"meishimeikejiaoyukeji57487345027";//"f3e4a23c29d2652f967b1a845869735f";// "ef393a0a66954f84c04875360c46b3e0";// "51c56b886b5be869567dd389b3e5d1d6";
//=======【证书路径设置】=====================================
/* ,退
*/
public static string SSLCERT_PATH = ConfigurationSourceSection.LoadXml_Attribute(SetupPath, "SSLCERT_PATH");//"cert/apiclient_cert.p12";
public static string SSLCERT_PASSWORD = ConfigurationSourceSection.LoadXml_Attribute(SetupPath, "SSLCERT_PASSWORD"); //"1438351202";//"10021220";//"1233410002";
//=======【支付结果通知url】=====================================
/* url
*/
public static string NOTIFY_URL = ConfigurationSourceSection.LoadXml_Attribute(SetupPath, "NOTIFY_URL");// "http://szxy.edu-oto.com/Phone/ResultNotifyPage.aspx";
//=======【商户系统后台机器IP】=====================================
/*
*/
public const string IP = "";//"8.8.8.8";
//=======【代理服务器设置】===================================
/* IP0.0.0.00
*/
public const string PROXY_URL = "";
//=======【上报信息配置】===================================
/* 0.; 1.; 2.
*/
public const int REPORT_LEVENL = 1;
//=======【日志级别】===================================
/* 0.1.; 2.; 3.
*/
public const int LOG_LEVENL = 0;
}
}