Examples of BBCheckout


Examples of br.com.caelum.stella.gateway.bb.BBCheckout

    // seleniumHelper.iniciarSelenium().configurarContextoDoTeste("file:///"+pathPastaPagina,"Testando integracao com Komerci");
  }

  @Test
  public void testSolicitarPagamentoComBoleto() throws Exception{
    BBCheckout checkout = new BBCheckout(BigDecimal.TEN,
        Calendar.getInstance(), BBTipoTransacao.BLOQUETO_BANCARIO,
        new DadosComprador("41900000", "Salvador", "Endereco de teste",
            "Alberto", "BA"), "Mensagem de teste", "123");
    // o numero a ser anexado pode ser diferente do numero do pedido
    BBDadosAutorizacaoPagamento dadosAutorizacaoPagamento = new BBSolicitaAutorizacaoPagamento(
        checkout, checkout.getNumeroDoPedido(), new Object[] { checkout
            .getNumeroDoPedido() }, new Object[] { checkout
            .getNumeroDoPedido() }).handle();
    HtmlViewerHelper htmlViewerHelper = new HtmlViewerHelper();
    Map<String, Object> fields = criarMapaComCampos(dadosAutorizacaoPagamento);
    htmlViewerHelper.body(
        "onload=document.getElementById('pagamento').submit();").form(
View Full Code Here

Examples of br.com.caelum.stella.gateway.bb.BBCheckout

  }
 
  @Test
  public void testSolicitarPagamentoComDebito() throws Exception{
    BBCheckout checkout = new BBCheckout(BigDecimal.TEN,
        Calendar.getInstance(), BBTipoTransacao.DEBITO_EM_CONTA,
        new DadosComprador("41900000", "Salvador", "Endereco de teste",
            "Alberto", "BA"), "Mensagem de teste", "12345");
    // o numero a ser anexado pode ser diferente do numero do pedido
    BBDadosAutorizacaoPagamento dadosAutorizacaoPagamento = new BBSolicitaAutorizacaoPagamento(
        checkout, checkout.getNumeroDoPedido(), new Object[] { checkout
            .getNumeroDoPedido() }, new Object[] { checkout
            .getNumeroDoPedido() }).handle();
    HtmlViewerHelper htmlViewerHelper = new HtmlViewerHelper();
    Map<String, Object> fields = criarMapaComCampos(dadosAutorizacaoPagamento);
    htmlViewerHelper.body(
        "onload=document.getElementById('pagamento').submit();").form(
View Full Code Here

Examples of br.com.caelum.stella.gateway.bb.BBCheckout

  }
 
  @Test
  public void testSolicitarPagamentoComCrediario() throws Exception{
    BBCheckout checkout = new BBCheckout(BigDecimal.TEN,
        Calendar.getInstance(), BBTipoTransacao.CREDIARIO_INTERNET,
        new DadosComprador("41900000", "Salvador", "Endereco de teste",
            "Alberto", "BA"), "Mensagem de teste", "12345");
    // o numero a ser anexado pode ser diferente do numero do pedido
    BBDadosAutorizacaoPagamento dadosAutorizacaoPagamento = new BBSolicitaAutorizacaoPagamento(
        checkout, checkout.getNumeroDoPedido(), new Object[] { checkout
            .getNumeroDoPedido() }, new Object[] { checkout
            .getNumeroDoPedido() }).handle();
    HtmlViewerHelper htmlViewerHelper = new HtmlViewerHelper();
    Map<String, Object> fields = criarMapaComCampos(dadosAutorizacaoPagamento);
    htmlViewerHelper.body(
        "onload=document.getElementById('pagamento').submit();").form(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.