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

60 lines
2.5 KiB

пре 3 година
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Web;
  4. namespace WxPayAPI
  5. {
  6. /**
  7. *
  8. */
  9. public class WxPayConfig
  10. {
  11. //=======【基本信息设置】=====================================
  12. /*
  13. * APPIDAPPID
  14. * MCHID
  15. * KEY
  16. * APPSECRETsecertJSAPI支付的时候需要配置
  17. */
  18. public static string APPID = Basic.BLL.siteconfig.getConfig("appid");
  19. public static string MCHID = Basic.BLL.siteconfig.getConfig("mchid");
  20. public static string KEY = Basic.BLL.siteconfig.getConfig("key");
  21. public static string APPSECRET = Basic.BLL.siteconfig.getConfig("appsecret");
  22. //=======【证书路径设置】=====================================
  23. /* ,退
  24. */
  25. public const string SSLCERT_PATH = "cert/apiclient_cert.p12";
  26. public const string SSLCERT_PASSWORD = "1233410002";
  27. //=======【支付结果通知url】=====================================
  28. /* url
  29. */
  30. public static string NOTIFY_URL = "http://" + HttpContext.Current.Request.Url.Host.ToString() + "/pay/wechatNative/ResultPay.aspx";
  31. //=======【商户系统后台机器IP】=====================================
  32. /*
  33. */
  34. public const string IP = "8.8.8.8";
  35. //=======【代理服务器设置】===================================
  36. /* IP和端口号分别为0.0.0.00
  37. */
  38. public const string PROXY_URL = "0";
  39. //=======【上报信息配置】===================================
  40. /* 0.; 1.; 2.
  41. */
  42. public const int REPORT_LEVENL = 1;
  43. //=======【日志级别】===================================
  44. /* 0.1.; 2.; 3.
  45. */
  46. public const int LOG_LEVENL = 3;
  47. }
  48. }