Exemplo n.º 1
0
        public void FinalizaPagamento(EndPaymentCommand endPaymentCommand)
        {
            try
            {
                CheckPinPad();

                // Se não foi lançada nenhuma exceção é porque a transação foi finalizada com sucesso
                CliSiTefMethods.FinalizaFuncaoSiTefInterativo(1, new StringBuilder(endPaymentCommand.CupomFiscal), new StringBuilder(endPaymentCommand.DataFiscal), new StringBuilder(endPaymentCommand.HoraFiscal), null);
            }
            catch (Exception e) { throw e; }
        }
Exemplo n.º 2
0
        public IActionResult Finaliza([FromBody] EndPaymentCommand endPaymentCommand)
        {
            _tefService.FinalizaPagamento(endPaymentCommand);

            return(Ok());
        }