protected void Page_Load(object sender, EventArgs e) { // 设置 Response编码格式为GB2312 Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312"); p1_MerId = "10000432521"; // 商家ID keyValue = "8UPp0KE8sq73zVP370vko7C39403rtK1YwX40Td6irH216036H27Eb12792t"; // 商家密钥 // 设置请求地址 Buy.NodeAuthorizationURL = @"http://tech.yeepay.com:8080/robot/debug.action"; //test //Buy.NodeAuthorizationURL = @"https://www.yeepay.com/app-merchant-proxy/node"; //生产 // 商家设置用户购买商品的支付信息. //易宝支付平台统一使用GBK/GB2312编码方式,参数如用到中文,请注意转码 // 商户订单号,选填. //若不为"",提交的订单号必须在自身账户交易中唯一;为""时,易宝支付会自动生成随机的商户订单号. p2_Order = Request.Form["p2_Order"]; // 支付金额,必填. //单位:元,精确到分. p3_Amt = Request.Form["p3_Amt"]; //交易币种,固定值"CNY". p4_Cur = "CNY"; //商品名称 //用于支付时显示在易宝支付网关左侧的订单产品信息. p5_Pid = Request.Form["p5_Pid"]; //商品种类 p6_Pcat = Request.Form["p6_Pcat"]; //商品描述 p7_Pdesc = Request.Form["p7_Pdesc"]; //商户接收支付成功数据的地址,支付成功后易宝支付会向该地址发送两次成功通知. p8_Url = Request.Form["p8_Url"]; //送货地址 //为“1”: 需要用户将送货地址留在易宝支付系统;为“0”: 不需要,默认为 ”0”. p9_SAF = "0"; //商户扩展信息 //商户可以任意填写1K 的字符串,支付成功时将原样返回. pa_MP = Request.Form["pa_MP"]; //银行编码 //默认为"",到易宝支付网关.若不需显示易宝支付的页面,直接跳转到各银行、神州行支付、骏网一卡通等支付页面,该字段可依照附录:银行列表设置参数值. pd_FrpId = Request.Form["pd_FrpId"]; //应答机制 //为"1": 需要应答机制;为"0": 不需要应答机制. pr_NeedResponse = Request.Form["pr_NeedResponse"]; //创建一个Form //创建GET方式的url htmlCodeGet = Buy.CreateBuyUrl(p1_MerId, keyValue, p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse); }
protected void Page_Load(object sender, EventArgs e) { Buy.LogFileName = "c:/YeePay_HTML.txt"; base.Response.ContentEncoding = Encoding.GetEncoding("gb2312"); p1_MerId = this.so["OnlinePay_YeePay_UserNumber"].Value.ToString(); keyValue = this.so["OnlinePay_YeePay_MD5Key"].Value.ToString(); Buy.NodeAuthorizationURL = "https://www.yeepay.com/app-merchant-proxy/node"; this.p3_Amt = Utility.GetRequest("PayMoney"); long newPayNumber = -1L; string returnDescription = ""; if (Procedures.P_GetNewPayNumber(base._Site.ID, base._User.ID, "yeepay", (double)_Convert.StrToLong(this.p3_Amt, 0L), 0.0, ref newPayNumber, ref returnDescription) < 0) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName); } else if ((newPayNumber < 0L) || (returnDescription != "")) { PF.GoError(1, returnDescription, base.GetType().BaseType.FullName); } else { this.p2_Order = newPayNumber.ToString(); this.p4_Cur = "CNY"; this.p5_Pid = ""; this.p6_Pcat = ""; this.p7_Pdesc = ""; this.p8_Url = Utility.GetUrl() + "/Home/Room/OnlinePay/YeePay/Receive.aspx"; this.p9_SAF = "0"; this.pa_MP = Encrypt.EncryptString(PF.GetCallCert(), base._User.ID.ToString()); this.pd_FrpId = ""; this.pr_NeedResponse = "0"; this.htmlCodeGet = Buy.CreateBuyUrl(p1_MerId, keyValue, this.p2_Order, this.p3_Amt, this.p4_Cur, this.p5_Pid, this.p6_Pcat, this.p7_Pdesc, this.p8_Url, this.p9_SAF, this.pa_MP, this.pd_FrpId, this.pr_NeedResponse); base.Response.Redirect(this.htmlCodeGet); } }
private const string keyValue = "4I9A2hY6s87441M910498Ip01E2YJMNbiz904202DJr8P520au43LS2I9M6K"; // 商家密钥 /// <summary> /// 易宝普通支付 /// </summary> /// <param name="p2_Order">商户订单号</param> /// <param name="p3_Amt">支付金额,单位:元,精确到分</param> /// <param name="sPoints">充值点数</param> /// <param name="pa_MP">商户扩展信息,用户账号</param> /// <param name="pd_FrpId">银行编码</param> /// <returns></returns> public static string CreateBuyUrl(string p2_Order, string p3_Amt, string sPoints, string pa_MP, string pd_FrpId, string p8_Url) { // 设置请求地址 Buy.NodeAuthorizationURL = @"https://www.yeepay.com/app-merchant-proxy/node"; // 商家设置用户购买商品的支付信息. //易宝支付平台统一使用GBK/GB2312编码方式,参数如用到中文,请注意转码 //交易币种,固定值"CNY". string p4_Cur = "CNY"; StringBuilder sbText = new StringBuilder(); sbText.Append("到武林"); sbText.Append(sPoints); sbText.Append("武林币"); string p5_Pid = sbText.ToString(); string p6_Pcat = "wulin B";//商品种类 //商品描述 string p7_Pdesc = "wulinbi"; //商户接收支付成功数据的地址,支付成功后易宝支付会向该地址发送两次成功通知. //p8_Url = Request.Form["p8_Url"]; //送货地址为“1”: 需要用户将送货地址留在易宝支付系统;为“0”: 不需要,默认为 ”0”. string p9_SAF = "0"; //应答机制为"1": 需要应答机制;为"0": 不需要应答机制. string pr_NeedResponse = "1"; return(Buy.CreateBuyUrl(p1_MerId, keyValue, p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse)); }
/// <summary> /// /// </summary> /// <param name="orderid"></param> /// <param name="orderAmt"></param> /// <param name="bankcode"></param> /// <returns></returns> public string GetPayUrl(string orderid, decimal orderAmt, string bankcode) { string puserid = this.SuppAccount; string puserkey = this.SuppKey; HttpContext.Current.Response.ContentEncoding = Encoding.GetEncoding("gb2312"); Buy.NodeAuthorizationURL = "https://www.yeepay.com/app-merchant-proxy/node"; if (!string.IsNullOrEmpty(this.PostBankUrl)) { Buy.NodeAuthorizationURL = this.PostBankUrl; } string p2_Order = orderid; string p3_Amt = decimal.Round(orderAmt, 2).ToString(CultureInfo.InvariantCulture); string p4_Cur = "CNY"; string p5_Pid = SysConfig.PaymentSetting.yeepay_pid; string p6_Pcat = SysConfig.PaymentSetting.yeepay_pcat; string p7_Pdesc = SysConfig.PaymentSetting.yeepay_pdesc; /*代理支付页*/ string p8_Url = NotifyUrl;//Configuration.GetConfig().SiteDomain string p9_SAF = "1"; //if (!string.IsNullOrEmpty(orderInfo.returnurl)) //p9_SAF = "1"; string pa_MP = ""; string pd_FrpId = Bank.GetBankCode(bankcode); string pr_NeedResponse = "1"; return(Buy.CreateBuyUrl(puserid, puserkey, p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse) + "&noLoadingPage=1"); }
protected void Page_Load(object sender, EventArgs e) { // 设置 Response编码格式为GB2312 Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312"); // 商户订单号,选填. //若不为"",提交的订单号必须在自身账户交易中唯一;为""时,易宝支付会自动生成随机的商户订单号. p2_Order = Request.Form["p2_Order"]; // 支付金额,必填. //单位:元,精确到分. p3_Amt = Request.Form["p3_Amt"]; //交易币种,固定值"CNY". p4_Cur = "CNY"; //商品名称 //用于支付时显示在易宝支付网关左侧的订单产品信息. p5_Pid = Request.Form["p5_Pid"]; //商品种类 p6_Pcat = Request.Form["p6_Pcat"]; //商品描述 p7_Pdesc = Request.Form["p7_Pdesc"]; //商户接收支付成功数据的地址,支付成功后易宝支付会向该地址发送两次成功通知. p8_Url = Request.Form["p8_Url"]; //送货地址 //为“1”: 需要用户将送货地址留在易宝支付系统;为“0”: 不需要,默认为 ”0”. p9_SAF = "0"; //商户扩展信息 //商户可以任意填写1K 的字符串,支付成功时将原样返回. pa_MP = Request.Form["pa_MP"]; //银行编码 //默认为"",到易宝支付网关.若不需显示易宝支付的页面,直接跳转到各银行、神州行支付、骏网一卡通等支付页面,该字段可依照附录:银行列表设置参数值. pd_FrpId = Request.Form["pd_FrpId"]; //应答机制 //默认为"1": 需要应答机制; pr_NeedResponse = "1"; string url = Buy.CreateBuyUrl(p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse); Response.Redirect(url); }
protected void Button1_Click(object sender, EventArgs e) { string errorUrl = "/Manage/Pay/Yeepay/Default.aspx"; //出错跳转地址 //商品名称(商户) string companyName = UiCommon.StringConfig.CompanyNameOfPay; //支付人 string userName = txtUserName.Text.Trim(); //支付金额 string payMoney = PayMoney.Text.Trim(); //支付类型 Web_RMBCost.PayType int payTypeLog = 1; //类型信息 Web_RMBCost.Typeinfo string typeInfoLog = "易宝支付网关支付"; //与易宝的交易订单号 string out_trade_no = DateTime.Now.ToString("yyyyMMddHHmmssfffffff"); BLL.Member mem = new BLL.Member(); int otherPayMoney = mem.UserTodayOtherPayMoney(userName); //是否超出今天充值限制额 if (Convert.ToInt32(payMoney) > otherPayMoney) { Response.Write("<script>alert('您今天能充值金额数不能大于" + otherPayMoney + "。');location.href='" + errorUrl + "';</script>"); Response.End(); } //插入支付订单日志 new BLL.Member().Add3PayOrder(userName, Convert.ToInt32(payMoney), payTypeLog, typeInfoLog, out_trade_no); //开始调用支付网关 //设置编码 Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312"); //#if !debug #region 正式代码 p1_MerId = StringConfig.YeepayMerID; // 商家ID keyValue = StringConfig.YeepayKey; // 商家密钥 Buy.NodeAuthorizationURL = StringConfig.YeepayNodeAuthorizationURL; #endregion //#endif //#region 测试代码 //p1_MerId = "10000432521"; // 商家ID //keyValue = "8UPp0KE8sq73zVP370vko7C39403rtK1YwX40Td6irH216036H27Eb12792t"; // 商家密钥 // 设置请求地址 //Buy.NodeAuthorizationURL = @"http://tech.yeepay.com:8080/robot/debug.action"; //test //#endregion p2_Order = out_trade_no; p3_Amt = payMoney; //交易币种,固定值"CNY". p4_Cur = "CNY"; //商品名称 //用于支付时显示在易宝支付网关左侧的订单产品信息. p5_Pid = ""; //商品种类 p6_Pcat = ""; //商品描述 p7_Pdesc = ""; //商户接收支付成功数据的地址,支付成功后易宝支付会向该地址发送两次成功通知. //p8_Url = "http://*****:*****@#" + Convert.ToInt32(poupon).ToString(); // ---end //银行编码 //默认为"",到易宝支付网关.若不需显示易宝支付的页面,直接跳转到各银行、神州行支付、骏网一卡通等支付页面,该字段可依照附录:银行列表设置参数值. pd_FrpId = ""; //应答机制 //为"1": 需要应答机制;为"0": 不需要应答机制. pr_NeedResponse = "1"; Response.Redirect(Buy.CreateBuyUrl(p1_MerId, keyValue, p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse)); }
protected void btnPay_Click(object sender, EventArgs e) { string strAccounts = CtrlHelper.GetText(txtPayAccounts); string strReAccounts = CtrlHelper.GetText(txtPayReAccounts); int salePrice = Utility.StrToInt(this.hdfSalePrice.Value, 0); if (strAccounts == "") { RenderAlertInfo(true, "抱歉,请输入充值帐号。", 2); return; } if (strReAccounts != strAccounts) { RenderAlertInfo(true, "抱歉,两次输入的帐号不一致。", 2); return; } if (salePrice < 10) { RenderAlertInfo(true, "抱歉,充值金额不足10元,无法充值。", 2); return; } OnLineOrder onlineOrder = new OnLineOrder(); onlineOrder.ShareID = 3; onlineOrder.OrderID = PayHelper.GetOrderIDByPrefix("YB"); #region 订单处理 if (Fetch.GetUserCookie() == null) { onlineOrder.OperUserID = 0; } else { onlineOrder.OperUserID = Fetch.GetUserCookie().UserID; } onlineOrder.Accounts = strAccounts; onlineOrder.CardTotal = 1; onlineOrder.CardTypeID = salePrice < 30 ? 1 : salePrice < 60 ? 2 : salePrice < 120 ? 3 : 4; onlineOrder.OrderAmount = salePrice; onlineOrder.IPAddress = GameRequest.GetUserIP(); //生成订单 Message umsg = treasureFacade.RequestOrder(onlineOrder); if (!umsg.Success) { RenderAlertInfo(true, umsg.Content, 2); return; } #endregion #region 提交给易宝处理 // 商户订单号,选填. //若不为"",提交的订单号必须在自身账户交易中唯一;为""时,易宝支付会自动生成随机的商户订单号. string p2_Order = onlineOrder.OrderID; // 支付金额,必填. //单位:元,精确到分. string p3_Amt = salePrice.ToString("f0"); //交易币种,固定值"CNY". string p4_Cur = "CNY"; //商品名称 //用于支付时显示在易宝支付网关左侧的订单产品信息. string p5_Pid = salePrice < 30 ? "蓝钻会员卡" : salePrice < 60 ? "黄钻会员卡" : salePrice < 120 ? "白钻会员卡" : "红钻会员卡"; //商品种类 string p6_Pcat = ""; //商品描述 string p7_Pdesc = ""; //商户接收支付成功数据的地址,支付成功后易宝支付会向该地址发送两次成功通知. string p8_Url = "http://" + HttpContext.Current.Request.Url.Authority + "/Pay/PayYBReceive.aspx"; //送货地址 //为“1”: 需要用户将送货地址留在易宝支付系统;为“0”: 不需要,默认为 ”0”. string p9_SAF = "0"; //商户扩展信息 //商户可以任意填写1K 的字符串,支付成功时将原样返回. string pa_MP = onlineOrder.Accounts; //银行编码 //默认为"",到易宝支付网关.若不需显示易宝支付的页面,直接跳转到各银行、神州行支付、骏网一卡通等支付页面,该字段可依照附录:银行列表设置参数值. string pd_FrpId = ""; //应答机制 //默认为"1": 需要应答机制; string pr_NeedResponse = "1"; string url = Buy.CreateBuyUrl(p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse); Response.Redirect(url); #endregion }
public static string CreateUrl(string p1_MerId, string keyValue, string p2_Order, string p3_Amt, string p4_Cur, string p5_Pid, string p8_Url, string p9_SAF, string pa_MP, string pd_FrpId) { return(Buy.CreateBuyUrl(p1_MerId, keyValue, p2_Order, p3_Amt, "CNY", p5_Pid, "", "", p8_Url, p9_SAF, pa_MP, pd_FrpId, "", "", "1")); }
protected void Page_Load(object sender, EventArgs e) { //设置 log 文件地址 Buy.LogFileName = "c:/YeePay_HTML.txt"; // 设置 Response编码格式为GB2312 Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312"); p1_MerId = so["OnlinePay_YeePay_UserNumber"].Value.ToString(); //"10000432521"; // 商家ID keyValue = so["OnlinePay_YeePay_MD5Key"].Value.ToString(); //"8UPp0KE8sq73zVP370vko7C39403rtK1YwX40Td6irH216036H27Eb12792t"; // 商家密钥 // 设置请求地址 //Buy.NodeAuthorizationURL = @"http://tech.yeepay.com:8080/robot/debug.action"; //test Buy.NodeAuthorizationURL = @"https://www.yeepay.com/app-merchant-proxy/node"; //生产 // 商家设置用户购买商品的支付信息. //易宝支付平台统一使用GBK/GB2312编码方式,参数如用到中文,请注意转码 // 支付金额,必填. //单位:元,精确到分. p3_Amt = Shove._Web.Utility.GetRequest("PayMoney"); // 商户订单号,选填. //若不为"",提交的订单号必须在自身账户交易中唯一;为""时,易宝支付会自动生成随机的商户订单号. long newPayNumber = -1; string returnDescription = ""; //产生内部充值编号 if (DAL.Procedures.P_GetNewPayNumber(_Site.ID, _User.ID, "yeepay", Shove._Convert.StrToLong(p3_Amt, 0), 0, ref newPayNumber, ref returnDescription) < 0) { PF.GoError(ErrorNumber.DataReadWrite, "数据库繁忙,请重试", this.GetType().BaseType.FullName); return; } if ((newPayNumber < 0) || (returnDescription != "")) { PF.GoError(ErrorNumber.Unknow, returnDescription, this.GetType().BaseType.FullName); return; } p2_Order = newPayNumber.ToString(); //交易币种,固定值"CNY". p4_Cur = "CNY"; //商品名称 //用于支付时显示在易宝支付网关左侧的订单产品信息. p5_Pid = ""; //商品种类 p6_Pcat = ""; //商品描述 p7_Pdesc = ""; //商户接收支付成功数据的地址,支付成功后易宝支付会向该地址发送两次成功通知. p8_Url = Shove._Web.Utility.GetUrl() + "/Home/Room/OnlinePay/YeePay/Receive.aspx"; //送货地址 //为“1”: 需要用户将送货地址留在易宝支付系统;为“0”: 不需要,默认为 ”0”. p9_SAF = "0"; //商户扩展信息 //商户可以任意填写1K 的字符串,支付成功时将原样返回. pa_MP = Shove._Security.Encrypt.EncryptString(PF.GetCallCert(), _User.ID.ToString()); //银行编码 //默认为"",到易宝支付网关.若不需显示易宝支付的页面,直接跳转到各银行、神州行支付、骏网一卡通等支付页面,该字段可依照附录:银行列表设置参数值. pd_FrpId = ""; //应答机制 //为"1": 需要应答机制;为"0": 不需要应答机制. pr_NeedResponse = "0"; //创建一个Form //创建GET方式的url htmlCodeGet = Buy.CreateBuyUrl(p1_MerId, keyValue, p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse); Response.Redirect(htmlCodeGet); //htmlCodePost = Buy.CreateBuyForm(p1_MerId, keyValue, p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse, "frmYeepay"); }
protected void Button1_Click(object sender, EventArgs e) { //非法操作时重定向的URL地址 // string toUrl = "/Manage/Pay/Yeepay2/Default.aspx"; //银行支付通道编码 //与易宝的交易订单号 string out_trade_no = string.Empty; string bankCode = CommonManager.Web.Request("params", "").Trim(); if (bankCode.ToUpper() == "BANK") //网银充值 { bankCode = CommonManager.Web.RequestForm("rtypeBank", "").ToUpper(); payType = "银行卡充值"; out_trade_no = DateTime.Now.ToString("yyyyMMddHHmmssfffffff"); } else //点卡充值 { bankCode = CommonManager.Web.RequestForm("rtype", "").ToUpper(); out_trade_no = "ka" + DateTime.Now.ToString("yyMMddHHmmssfffffff"); switch (bankCode.ToLower()) { case "szx-net": payType = "神州行充值卡充值"; break; case "unicom-net": payType = "联通卡充值"; break; case "ypcard-net": payType = "易宝一卡通充值"; break; case "zhengtu-net": payType = "征途游戏卡充值"; break; case "sndacard-net": payType = "盛大游戏卡充值"; break; case "qqcard-net": payType = "Q币支付"; break; case "junnet-net": payType = "全国骏网一卡通充值"; break; } } BLL.Member mem = new BLL.Member(); string userName = txtUserName.Text.Trim(); //判断输入的用户是否存在 if (!mem.ExistName(userName)) { Response.Write("<script>alert('找不到您要充值的用户帐号,请检查输入是否有误');history.go(-1);</script>"); Response.End(); } //判断玩家充值时,不能在游戏中 if (mem.IsInRoomOrGame(userName)) { Response.Write("<script>alert('要充值的帐号正在游戏中,请先退出游戏再进行充值');history.go(-1);</script>"); Response.End(); } string money = PayMoney.Text.Trim(); //判断面值是否正确 if (string.IsNullOrEmpty(money) || !CommonManager.String.IsInteger(money) || int.Parse(money) <= 0) { CommonManager.Web.RegJs(this, "alert('金额只能输入大于0的整数。');history.back();", false); return; } int otherPayMoney = mem.UserTodayOtherPayMoney(userName); //是否超出今天充值限制额 if (Convert.ToInt32(money) > otherPayMoney) { Response.Write("<script>alert('您今天能充值金额数不能大于" + otherPayMoney + "。');history.go(-1);</script>"); Response.End(); } //接收第三方支付平台返回支付结果的页面地址,为绝对地址 string receivePageUrl = UiCommon.StringConfig.WebSiteName + "/Manage/pay/Yeepay2/Return.aspx"; //商品名称(商户) string companyName = UiCommon.StringConfig.CompanyNameOfPay; //支付类型 Web_RMBCost.PayType int payTypeLog = 3; //类型信息 Web_RMBCost.Typeinfo string typeInfoLog = "易宝支付_" + payType; //插入支付订单日志 //by YMH 2012-9-5 充值积分 //积分充值存在 if (ConfigurationManager.AppSettings["IsPayToPoint"] == "1" && rblPayType.SelectedValue == "point" && ddlGameList.SelectedValue != "") { pa_MP = "2"; //充积分 new BLL.Member().Add3PayOrder(userName, Convert.ToInt32(money), typeInfoLog, out_trade_no, ddlGameList.SelectedValue); } else { pa_MP = "0"; //充金币 new BLL.Member().Add3PayOrder(userName, Convert.ToInt32(money), payTypeLog, typeInfoLog, out_trade_no); } //开始调用支付网关 //设置编码 Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312"); //#if !debug #region 正式代码 p1_MerId = StringConfig.YeepayMerID; // 商家ID keyValue = StringConfig.YeepayKey; // 商家密钥 Buy.NodeAuthorizationURL = StringConfig.YeepayNodeAuthorizationURL; #endregion //#endif p2_Order = out_trade_no; p3_Amt = money; //交易币种,固定值"CNY". p4_Cur = "CNY"; //商品名称 //用于支付时显示在易宝支付网关左侧的订单产品信息. p5_Pid = ""; //商品种类 p6_Pcat = ""; //商品描述 p7_Pdesc = ""; //商户接收支付成功数据的地址,支付成功后易宝支付会向该地址发送两次成功通知. p8_Url = UiCommon.StringConfig.WebSiteName + "/Manage/Pay/Yeepay2/Return.aspx"; //送货地址 //为“1”: 需要用户将送货地址留在易宝支付系统;为“0”: 不需要,默认为 ”0”. p9_SAF = "0"; //商户扩展信息 //商户可以任意填写1K 的字符串,支付成功时将原样返回. 用这个字段判断是否是点卡 点卡手续费20% // pa_MP = ""; //银行编码 //默认为"",到易宝支付网关.若不需显示易宝支付的页面,直接跳转到各银行、神州行支付、骏网一卡通等支付页面,该字段可依照附录:银行列表设置参数值. pd_FrpId = bankCode; //应答机制 //为"1": 需要应答机制;为"0": 不需要应答机制. pr_NeedResponse = "1"; // Response.Write(p1_MerId.ToString() + " <br> " + keyValue.ToString() + " <br> " + p2_Order.ToString() + " <br> " + p3_Amt.ToString() + " <br> " + p4_Cur.ToString() + " <br> " + p5_Pid.ToString() + " <br> " + p6_Pcat.ToString() + " <br> " + p7_Pdesc.ToString() + " <br> " + p8_Url.ToString() + " <br> " + p9_SAF.ToString() + " <br> " + pa_MP.ToString() + " <br> " + pd_FrpId.ToString() + " <br> " + pr_NeedResponse); // Response.End(); Response.Redirect(Buy.CreateBuyUrl(p1_MerId, keyValue, p2_Order, p3_Amt, p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, pd_FrpId, pr_NeedResponse)); }
/// <summary> /// 创建网上支付地址 /// </summary> /// <param name="p3_Amt">金额</param> /// <param name="p5_Pid">商品名称</param> /// <param name="p6_Pcat">商品种类</param> /// <param name="p7_Pdesc">商品描述</param> /// <param name="p8_Url">客户端接收支付成功后数据的网页地址(绝对路径)</param> /// <param name="pa_MP">商户扩展信息</param> /// <returns></returns> public string CreateBuyUrl(string p3_Amt, string p5_Pid, string p6_Pcat, string p7_Pdesc, string p8_Url, string pa_MP) { return(Buy.CreateBuyUrl(p1_MerId, keyValue, "", p3_Amt, "CNY", p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, "0", pa_MP, "", "0")); }