Пример #1
0
        private void posPinpad_ErrorEvent(int ResultCode, int ResultCodeExtended, int ErrorLocus, ref int pErrorResponse)
        {
            NetTracer.Warning("Peripheral [PinPad] - Error Event Result Code: {0} ExtendedResultCode: {1}", ResultCode, ResultCodeExtended);

            IPinPadInfo args = Peripherals.InternalApplication.BusinessLogic.Utility.CreatePinPadInfo();

            args.DataEvent    = false;
            args.Status       = PinPadEntryStatus.Error;
            args.EncryptedPIN = string.Empty;
            args.AdditionalSecurityInformation = string.Empty;

            if (EntryCompleteEvent != null)
            {
                EntryCompleteEvent(this, args);
            }
        }
Пример #2
0
        /// <summary>
        /// Handles the Data event received from POS PinPad device.
        /// Triggered if the customer successfully enters pin or cancel the transaction.
        /// </summary>
        /// <param name="status"></param>
        private void posPinpad_DataEvent(int status)
        {
            NetTracer.Information("Peripheral [PinPad] - Data Event");

            IPinPadInfo args = Peripherals.InternalApplication.BusinessLogic.Utility.CreatePinPadInfo();

            args.DataEvent    = true;
            args.Status       = (PinPadEntryStatus)status;
            args.EncryptedPIN = oposPinpad.EncryptedPIN;
            args.AdditionalSecurityInformation = oposPinpad.AdditionalSecurityInformation;

            if (EntryCompleteEvent != null)
            {
                EntryCompleteEvent(this, args);
            }
        }