internal void PaySuccess(string payAccount, string tradeNo, PayInterface payInterface, PayAccountType payAccountType, string channelTradeNo) { PayAccount = payAccount; TradeNo = tradeNo; IsPoolpay = payInterface == DataTransferObject.Common.PayInterface.Virtual; PayInterface = payInterface; PayAccountType = payAccountType; ChannelTradeNo = channelTradeNo; }
static bool PostponeApplyformPaySuccess(decimal applyformId, string payAccount, string payTradeNo, string channelTradeNo, DateTime payTime, PayInterface payInterface, PayAccountType payAccountType, string account) { var result = false; decimal?orderId = null; var request = string.Format("申请单:{0} 支付账号:{1} 流水号:{2} 支付时间:{3} 支付接口:{4} 支付账号类型:{5} 操作员账号:{6} 通道流水号:{7} ", applyformId, payAccount, payTradeNo, payTime, payInterface.GetDescription(), payAccountType.GetDescription(), account, channelTradeNo); var response = string.Empty; try { orderId = ApplyformProcessService.PostponeFeePaySuccess(applyformId, payAccount, payTradeNo, channelTradeNo, payTime, payInterface, payAccountType, account); result = true; response = "处理成功"; } catch (Exception ex) { LogService.SaveExceptionLog(ex, "申请单支付通知 " + request); response = "处理失败 " + ex.Message; } if (orderId.HasValue) { var tradementLog = new Log.Domain.TradementLog { OrderId = orderId.Value, ApplyformId = applyformId, Request = request, Response = response, Time = DateTime.Now, Remark = "支付成功通知" }; LogService.SaveTradementLog(tradementLog); } return(result); }
static bool OrderPaySuccess(decimal orderId, string payAccount, string payTradeNo, string channelTradeNo, DateTime payTime, PayInterface payInterface, PayAccountType payAccountType, string operatorAccount) { var result = false; var request = string.Format("订单:{0} 支付账号:{1} 流水号:{2} 支付时间:{3} 支付接口:{4} 支付账号类型:{5} 操作员账号:{6} 通道流水号:{7} ", orderId, payAccount, payTradeNo, payTime, payInterface.GetDescription(), payAccountType.GetDescription(), operatorAccount, channelTradeNo); var response = string.Empty; try { OrderProcessService.PaySuccess(orderId, payAccount, payTradeNo, channelTradeNo, payTime, payInterface, payAccountType, operatorAccount); result = true; response = "处理成功"; } catch (Exception ex) { LogService.SaveExceptionLog(ex, "订单支付通知 " + request); response = "处理失败 " + ex.Message; } var tradementLog = new Log.Domain.TradementLog { OrderId = orderId, Request = request, Response = response, Time = DateTime.Now, Remark = "支付成功通知", }; LogService.SaveTradementLog(tradementLog); return(result); }
internal void PaySuccess(string payAccount, string payTradeNo, PayInterface payInterface, PayAccountType payAccountType, DateTime payTime, string channelTradeNo) { Tradement.PaySuccess(payAccount, payTradeNo, payInterface, payAccountType, channelTradeNo); Applier.TradeSuccess(payTime); Applier.Owner.Account = payAccount; Accepter.TradeSuccess(payTime); }
/// <summary> /// 采购支付改期费成功 /// </summary> /// <param name="postponeApplyformId">改期申请单号</param> /// <param name="payAccount">支付账号</param> /// <param name="payTradeNo">支付交易流水号</param> /// <param name="payInterface">支付接口</param> /// <param name="payAccountType">支付账号类型</param> /// <param name="payTime">支付时间</param> public static Distribution.Domain.Bill.Pay.PostponePayBill PurchaserPaySuccessForPostpone(decimal postponeApplyformId, string payAccount, string payTradeNo, PayInterface payInterface, PayAccountType payAccountType, DateTime payTime, string channelTradeNo) { var payBill = DistributionQueryService.QueryPostponePayBill(postponeApplyformId); if (payBill == null) { throw new NotFoundException("无 " + postponeApplyformId + " 的记录"); } payBill.PaySuccess(payAccount, payTradeNo, payInterface, payAccountType, payTime, channelTradeNo); return(payBill); }
/// <summary> /// 采购支付订单金额成功 /// </summary> /// <param name="orderId">订单号</param> /// <param name="account">支付账号</param> /// <param name="payTradeNo">支付交易流水号</param> /// <param name="payInterface">支付接口</param> /// <param name="payAccountType">支付账号类型</param> /// <param name="payTime">支付时间</param> public static Distribution.Domain.Bill.Pay.NormalPayBill PurchaserPaySuccessForOrder(decimal orderId, string account, string payTradeNo, PayInterface payInterface, PayAccountType payAccountType, DateTime payTime, string channelTradeNo) { var payBill = DistributionQueryService.QueryNormalPayBill(orderId); if (payBill == null) { throw new NotFoundException("无 " + orderId + " 的记录"); } payBill.PaySuccess(account, payTradeNo, payInterface, payAccountType, payTime, channelTradeNo); return(payBill); }