/// <summary> /// 保存商家收款扫码结果 /// </summary> /// <returns></returns> public bool SaveMerchScanResult(SxfScanPayResponse sxfResult, out TradeOrder order) { var tradeResult = new TradeResult(sxfResult); var succ = SaveMchTradeResult(tradeResult, out order); return(succ); }
public TradeResult(SxfScanPayResponse sxfRsp) { CreateDT = DateTime.Now; MchId3 = sxfRsp.MerchantId; OutTradeNo = sxfRsp.PayOrderNo; PayChannel = PayTradeHelper.Convert2EnumValue <PayChannel>(sxfRsp.PayChannel); ReceiptAmount = sxfRsp.TxAmt * PayConst.CENT_2_YUAN_RATE; TradeState = PayTradeHelper.Convert2EnumValue <SxfPayState>(sxfRsp.PayResult); SignType = sxfRsp.SignType; TradeDate = DateTime.Now.ToString("yyyyMMdd"); TradeTime = DateTime.Now.ToString("HHmmss"); TradeType = (short)QctTradeType.Income; Signature = sxfRsp.Signature; Version = sxfRsp.Version; }