/// <summary> /// 冲正预处理 /// </summary> /// <param name="creditCard">银行卡信息</param> /// <param name="preMsg">上次支付的信息</param> /// <returns></returns> public byte[] CancelPay(CreditCard creditCard, byte[] preMsg, string posSerialNo) { IPayPreTeatment payPreObj = PaymentPlatFormFactory.GetPayPreTreatmentFactory().GetPayPreObj(creditCard); return(payPreObj.CancelPay(preMsg, creditCard, posSerialNo)); }
/// <summary> /// 查询预处理 /// </summary> /// <param name="equipment">设备信息</param> /// <returns></returns> public byte[] Query(Model.VisualSelfServiceEquipment equipment) { if (equipment == null) { throw new ArgumentException("无效的设备信息"); } IPayPreTeatment payPreObj = PaymentPlatFormFactory.GetPayPreTreatmentFactory().GetPayPreObj(equipment.creditCard); return(payPreObj.Query(equipment.TerminalNo, equipment.PinBlock, equipment.creditCard)); }