public ContentResult PayNotify_Charge(string id) { var plugin = Core.PluginsManagement.GetPlugin <IPaymentPlugin>(id.Replace("-", ".")); var payInfo = plugin.Biz.ProcessNotify(_httpContextAccessor); if (payInfo != null) { var chargeApplyId = payInfo.OrderIds.FirstOrDefault(); MemberCapitalApplication.ChargeSuccess(chargeApplyId); var response = plugin.Biz.ConfirmPayResult(); return(Content(response)); } return(Content(string.Empty)); }
public ActionResult ChargeSuccess(string id) { Log.Info("pluginId:" + id); Plugin <IPaymentPlugin> plugin = PluginsManagement.GetPlugin <IPaymentPlugin>(id.Replace("-", ".")); PaymentInfo info = plugin.Biz.ProcessNotify(base.HttpContext.Request); if (info != null) { long chargeDetailId = info.OrderIds.FirstOrDefault <long>(); Log.Info("chargeApplyId:" + chargeDetailId); MemberCapitalApplication.ChargeSuccess(chargeDetailId); string content = plugin.Biz.ConfirmPayResult(); return(base.Content(content)); } Log.Info("payInfo:为空"); return(base.Content(string.Empty)); }
public ActionResult ChargeSuccess(string id) { Log.Info("pluginId:" + id); var plugin = Core.PluginsManagement.GetPlugin <IPaymentPlugin>(id.Replace("-", ".")); var payInfo = plugin.Biz.ProcessNotify(this.HttpContext.Request); if (payInfo != null) { var chargeApplyId = payInfo.OrderIds.FirstOrDefault(); Log.Info("chargeApplyId:" + chargeApplyId); MemberCapitalApplication.ChargeSuccess(chargeApplyId); var response = plugin.Biz.ConfirmPayResult(); return(Content(response)); } Log.Info("payInfo:为空"); return(Content(string.Empty)); }