Пример #1
0
        private void CancelNow()
        {
            try
            {
                EnablePaymentButton(ButtonState.Pay);
                CancelStatus status = _kioskHandler.CancelTransaction();

                _Logger.AddText(string.Format("CancelTransaction return {0}", status), Messagetype.FromKiosk);

                // wait for built-in Kiosk 'CANCELLING' message to show
                System.Threading.Thread.Sleep(3000);
                IdleMessage();
            }
            catch (Exception ex)
            {
                _Logger.AddText(ex.Message, Messagetype.Error);
            }
            _isTransaction = false;
        }