private EventProcessingInstruction OnOpsTransactionCancelEvent(object sender, OpsTransactionCancelPreviewEventArgs args) { EventProcessingInstruction retVal = EventProcessingInstruction.Continue; mTenderTriggeredByInterface = false; return(retVal); }
//Handle this event to execute before any other tender event in the FI module private EventProcessingInstruction OnOpsTmedPreviewEvent(object sender, OpsTmedEventArgs args) { EventProcessingInstruction retVal = EventProcessingInstruction.Continue; if (mTenderTriggeredByInterface) { mTenderTriggeredByInterface = false; return(EventProcessingInstruction.Continue); } //this is a Credit card tender media if (args.TmedDef.OptionBits.CheckBit(43)) //check Tender Media Option Bit 43 - Do Not Print CC Voucher (this should be ON in ever Credit/Debit card Tender Media) { if (!BeginPayment(args.Total, args.TmedDef.ObjectNumber)) { retVal = EventProcessingInstruction.AbortEvent; } } return(retVal); }