Exemple #1
0
        public static string tenpay_notify = "http://*****/payReturnUrl.aspx";    //支付完成后的回调处理页面;

        static TenpayUtil()
        {
            /*tenpay      = System.Configuration.ConfigurationSettings.AppSettings["tenpay"];*/
            bargainor_id  = PluginUtils.GetPluginSet().BargainorId;
            tenpay_key    = PluginUtils.GetPluginSet().TenpayKey;
            tenpay_return = string.Format("http://{0}/Tenpay/Return", BrnMall.Core.BMAConfig.MallConfig.SiteUrl);;
            tenpay_notify = string.Format("http://{0}/Tenpay/Notify", BrnMall.Core.BMAConfig.MallConfig.SiteUrl);
        }
Exemple #2
0
        /// 获得支付手续费
        /// </summary>
        /// <param name="productAmount">商品合计</param>
        /// <param name="buyTime">购买时间</param>
        /// <param name="partUserInfo">购买用户</param>
        /// <returns></returns>
        public decimal GetPayFee(decimal productAmount, DateTime buyTime, PartUserInfo partUserInfo)
        {
            PluginSetInfo pluginSetInfo = PluginUtils.GetPluginSet();

            if (productAmount >= pluginSetInfo.FreeMoney)
            {
                return(0M);
            }
            else
            {
                return(pluginSetInfo.PayFee);
            }
        }
Exemple #3
0
 public static void ReSet()
 {
     bargainor_id = PluginUtils.GetPluginSet().BargainorId;
     tenpay_key   = PluginUtils.GetPluginSet().TenpayKey;
 }