Ejemplo n.º 1
0
            /// <summary>
            /// OPOS device error event handler.
            /// </summary>
            /// <param name="resultCode">The result code.</param>
            /// <param name="resultCodeExtended">The result code extended.</param>
            /// <param name="errorLocus">The error locus.</param>
            /// <param name="errorResponseRef">The error response reference.</param>
            /// <exception cref="System.NotImplementedException">Not yet implemented.</exception>
            private void OnPinPadErrorEvent(int resultCode, int resultCodeExtended, int errorLocus, ref int errorResponseRef)
            {
                var ex = new PeripheralException(PeripheralException.PeripheralEventError, "Error Event from Peripheral with error code {0}", resultCode);

                RetailLogger.Log.HardwareStationPeripheralError("OposPinPad", resultCode, resultCodeExtended, ex);
                throw ex;
            }
Ejemplo n.º 2
0
            private void OnMsrErrorEvent(int resultCode, int resultCodeExtended, int errorLocus, ref int errorResponse)
            {
                var ex = new PeripheralException(PeripheralException.PeripheralEventError, "Error Event from Peripheral with error code {0}", resultCode);

                RetailLogger.Log.HardwareStationPerpheralError("Magnetic Swipe Reader (MSR)", resultCode, resultCodeExtended, ex);

                throw ex;
            }