protected override string OnNotify(System.Web.HttpContext context) { ResultNotify resultNotify = new ResultNotify(context); string error; string out_trade_no; var a = resultNotify.ProcessNotify(out error, out out_trade_no); if (a) { PayHistory order = OnlinePayBusiness.Instance.GetOrder(out_trade_no, ThisCompanyType); Confirm(order, GetType(), order.Amount); } return ""; }
protected override string OnNotify(System.Web.HttpContext context) { ResultNotify resultNotify = new ResultNotify(context); string error; string out_trade_no; var a = resultNotify.ProcessNotify(out error, out out_trade_no); if (a) { PayHistory order = OnlinePayBusiness.Instance.GetOrder(out_trade_no, ThisCompanyType); Confirm(order, GetType(), order.Amount); } return(""); }
protected override string OnNotify(System.Web.HttpContext context) { ResultNotify resultNotify = new ResultNotify(context); var result = resultNotify.ProcessNotify(); var a = result.GetValue("return_code").ToString() == "SUCCESS"; if (a) { var out_trade_no = result.GetValue("out_trade_no").ToString(); PayHistory order = OnlinePayBusiness.Instance.GetOrder(out_trade_no, ThisCompanyType); Confirm(order, GetType(), order.Amount); } return(result.ToXml());; }