Exemplo n.º 1
0
        /// <summary>
        /// 微信支付的代理服务
        /// </summary>
        /// <returns></returns>
        public void WeixinProxy()
        {
            string openId       = JsApiImplement.GetOpenId(); //获取当前openId
            string bussinessUrl = "";                         //业务网站支付地址

            if (!string.IsNullOrWhiteSpace(openId))
            {
                Redirect(bussinessUrl + "?openId=" + openId);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 支付页面
 /// </summary>
 /// <returns></returns>
 public ActionResult PayPage()
 {
     ViewBag.OpenId = JsApiImplement.GetOpenId();
     return(View());
 }