3
I am implemented the payment part with credit card however when I will 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 installments?
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")));