How the parcel installment works with PagSeguro

3

I am implementing the payment part with credit card but when I put the installments it returns me the following error:

HTTP 400 - BAD_REQUEST [THE REQUEST CANNOT BE FULFILLED DUE TO BAD SYNTAX]
53041 - installment value invalid value: 5002.00

I think it should be due to the values, how and the correct implementation of the installment?

Code:

    request.setShippingType(ShippingType.SEDEX);

    request.setShippingCost(new BigDecimal("2.00"));

    request.addItem(new Item("1", //
            "Notebook Prata", //
            Integer.valueOf(1), //
            new BigDecimal("2500.00")));

    request.addItem(new Item("2", //
            "Notebook Rosa", //
            Integer.valueOf(1), //
            new BigDecimal("2500.00")));


    request.setInstallment(new Installment(2, new BigDecimal("5002.00")));
    
asked by anonymous 09.05.2017 / 20:34

0 answers