Skip to main content

Boleto

The full list of request body parameters and possible outcomes can be found here.

Request a "Redirect" Baloto payment#

RequestBoletoSource boletoSource = RequestBoletoSource.builder()        .country()        .description()        .integrationType(IntegrationType.REDIRECT)        .payer(RequestBoletoSource.Payer.builder().build())        .build();
PaymentRequest request = PaymentRequest.boleto(boletoSource, Currency.BRL, 100L);
PaymentResponse response = api.paymentsClient().requestAsync(request).get();

Request a "Direct" Baloto payment#

RequestBoletoSource boletoSource = RequestBoletoSource.builder()        .country()        .description()        .integrationType(IntegrationType.DIRECT)        .payer(RequestBoletoSource.Payer.builder().build())        .build();
PaymentRequest request = PaymentRequest.boleto(boletoSource, Currency.BRL, 100L);
PaymentResponse response = api.paymentsClient().requestAsync(request).get();