示例#1
0
        private EventProcessingInstruction OnOpsTransactionCancelEvent(object sender, OpsTransactionCancelPreviewEventArgs args)
        {
            EventProcessingInstruction retVal = EventProcessingInstruction.Continue;

            mTenderTriggeredByInterface = false;

            return(retVal);
        }
示例#2
0
        //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);
        }