public static SendAuthorizeRequestData initSendAuthorizeRequestData() { SendAuthorizeRequestData sar = new SendAuthorizeRequestData(); sar.setEncodingMethod(ENCODINGMETHOD); sar.setMerchant(MERCHANT); sar.setSecurity(SECURITY); sar.setUrl_error("http://someurl.com/error/"); sar.setUrl_ok("http://someurl.com/ok/"); sar.setMonto(100); sar.setNrooperacion("20160920_04"); MedioDePago medioDePago = new TarjetaCredito("1", "6", true); sar.setMedioPago(medioDePago); return sar; }