Package br.com.caelum.stella.gateway.visa

Examples of br.com.caelum.stella.gateway.visa.VISAVerificacaoRetornoIntegracaoViaHttp.handle()


        one(request).getParameter("ars");will(returnValue("autorizada"));
        one(request).getParameter("tid");will(returnValue("12345678"));       
      }
    });
    VISAVerificacaoRetornoIntegracaoViaHttp retornoIntegracaoViaHttp = new VISAVerificacaoRetornoIntegracaoViaHttp(request,VISAHttpReturnBuilder.CANCELAMENTO_RETORNO_BUILDER);
    VISACancelamentoReturn cancelamentoReturn = (VISACancelamentoReturn)retornoIntegracaoViaHttp.handle();
   
   
 
 
  @Test
View Full Code Here


        one(request).getParameter("bank");will(returnValue("4739"));
        one(request).getParameter("Authent");will(returnValue("0"));
      }
    });
    VISAVerificacaoRetornoIntegracaoViaHttp retornoIntegracaoViaHttp = new VISAVerificacaoRetornoIntegracaoViaHttp(request,VISAHttpReturnBuilder.CONSULTA_RETORNO_BUILDER);
    VISAConsultaReturn consultaReturn = (VISAConsultaReturn)retornoIntegracaoViaHttp.handle();
   
   
 
}
View Full Code Here

        one(request).getParameter("arp");will(returnValue("1332"));
        one(request).getParameter("Pan");will(returnValue("4739856348950"));       
      }
    });
    VISAVerificacaoRetornoIntegracaoViaHttp retornoIntegracaoViaHttp = new VISAVerificacaoRetornoIntegracaoViaHttp(request,VISAHttpReturnBuilder.AUTORIZACAO_RETORNO_BUILDER);
    VISAAutorizacaoReturn autorizacaoReturn = (VISAAutorizacaoReturn)retornoIntegracaoViaHttp.handle();
    Assert.assertEquals(BigDecimal.ONE.setScale(2),autorizacaoReturn.getCheckout().getPrice());
   
  }
 
  @Test
View Full Code Here

        one(request).getParameter("tid");will(returnValue("12345678"));
        one(request).getParameter("cap");will(returnValue("200"));
      }
    });
    VISAVerificacaoRetornoIntegracaoViaHttp retornoIntegracaoViaHttp = new VISAVerificacaoRetornoIntegracaoViaHttp(request,VISAHttpReturnBuilder.CAPTURA_RETORNO_BUILDER);
    VISACapturaReturn capturaReturn = (VISACapturaReturn)retornoIntegracaoViaHttp.handle();
    Assert.assertEquals(new BigDecimal(2).setScale(2),capturaReturn.getCap());
   
 
 
  @Test
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.