WeiXinHelper/WeiPay/PayConfig.cs

(完整代码) 2KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;

namespace WeiXinHelper.WeiPay
{
    public class PayConfig
    {
        /// <summary>
        /// 人民币
        /// </summary>
        public static string Tenpay = "1";  //币种

        /// <summary>
        /// mchid , 微信支付商户号
        /// </summary>
        public static string MchId =SysConfig.GetConfigByKey(SC.CommonKey.TenPayV3_MchId); 

        /// <summary>
        /// appid,应用ID, 在微信公众平台中 “开发者中心”栏目可以查看到
        /// </summary>
        public static string AppId =  SysConfig.GetConfigByKey(SC.CommonKey.TenPayV3_AppId); 

        /// <summary>
        /// appsecret ,应用密钥, 在微信公众平台中 “开发者中心”栏目可以查看到
        /// </summary>
        public static string AppSecret = SysConfig.GetConfigByKey(SC.CommonKey.TenPayV3_AppSecret);

        /// <summary>
        /// paysignkey,API密钥,在微信商户平台中“账户设置”--“账户安全”--“设置API密钥”,只能修改不能查看
        /// </summary>
        public static string AppKey =SysConfig.GetConfigByKey(SC.CommonKey.TenPayV3_Key);  

        /// <summary>
        /// 支付起点页面地址,也就是send.aspx页面完整地址
        /// 用于获取用户OpenId,支付的时候必须有用户OpenId,如果已知可以不用设置
        /// </summary>
        public static string SendUrl = SysConfig.GetConfigByKey(SC.CommonKey.TenPayV3_SendURL);  


        /// <summary>
        /// 支付页面,请注意测试阶段设置授权目录,在微信公众平台中“微信支付”---“开发配置”--修改测试目录   
        /// 注意目录的层次,比如我的:http://www.xxxx.com/wxpay   *必须以斜杠结尾 nc.dzwan.com
        /// </summary>
        public static string PayUrl = SysConfig.GetConfigByKey(SC.CommonKey.TenPayV3_PayUrl); 


        /// <summary>
        ///  支付通知页面,请注意测试阶段设置授权目录,在微信公众平台中“微信支付”---“开发配置”--修改测试目录   
        /// 支付完成后的回调处理页面,替换成notify_url.asp所在路径
        /// </summary>
        public static string NotifyUrl = SysConfig.GetConfigByKey(SC.CommonKey.TenPayV3_TenpayNotify);


    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。