コード例 #1
0
        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);
        }
コード例 #2
0
        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();
        }