private void PagarCrediario(double valor, int quantidadeParcelas, long codSolicitacaoPagamento) { IDetalhesCrediario detalhes = new DetalhesCrediario { QuantidadeParcelas = quantidadeParcelas, }; int resultado = clienteCappta.PagamentoCrediario(valor, detalhes); if (resultado != 0) { this.CriarMensagemErroPainel(resultado); return; } this.processandoPagamento = true; this.IterarOperacaoTef(valor, TipoCartao.CREDIARIO, codSolicitacaoPagamento); }
private void OnExecutaPagamentoCrediarioClick(object sender, EventArgs e) { double valor = (double)NumericUpDownValorPagamentoCrediario.Value; IDetalhesCrediario detalhes = new DetalhesCrediario { QuantidadeParcelas = (int)NumericUpDownQuantidadeParcelasPagamentoCrediario.Value, }; if (this.DeveIniciarMultiCartoes()) { this.IniciarMultiCartoes(); } int resultado = this.cliente.PagamentoCrediario(valor, detalhes); if (resultado != 0) { this.CriarMensagemErroPainel(resultado); return; } this.processandoPagamento = true; this.IterarOperacaoTef(); }