public void Process(CreditCardProcessingData creditCardProcessingData) { InteractionService.UserIntraction.BlurMainWindow(); SelectedTicket = creditCardProcessingData.Ticket; _viewModel.CanPreAuth = !PreauthDataCache.ContainsKey(SelectedTicket.Id); _viewModel.TenderedAmount = creditCardProcessingData.TenderedAmount; _viewModel.Gratuity = (creditCardProcessingData.TenderedAmount * Settings.GratuityRate) / 100; _viewModel.AuthCode = ""; _view = new ExternalProcessorView(_viewModel); _view.ShowDialog(); }