Opa, estou usando o checkout transparente do Pagseguro, mas, se eu informo uma quantidade de parcelas maior que 1, numa venda com cartão de crédito, recebo o erro: installment value invalid value:
Meu xml de envio:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<payment>
<mode>default</mode>
<method>creditCard</method>
<sender>
<name>Leonidas Wander</name>
<email>*************@sandbox.pagseguro.com.br</email>
<phone>
<areaCode>99</areaCode>
<number>999999999</number>
</phone>
<documents>
<document>
<type>CPF</type>
<value>99999999999</value>
</document>
</documents>
<hash>**************************************</hash>
</sender>
<currency>BRL</currency>
<notificationURL>https://www.site.com.br/notificacao</notificationURL>
<items>
<item>
<id>0001</id>
<description>Compra Pacote </description>
<quantity>1</quantity>
<amount>200.00</amount>
</item>
</items>
<extraAmount>0.00</extraAmount>
<reference>P2EV2</reference>
<shipping>
<address>
<street>Rua Santa Maria</street>
<number>11</number>
<complement></complement>
<district>Petrópolis</district>
<city>Maceió</city>
<state>AL</state>
<country>ATA</country>
<postalCode>99999999</postalCode>
</address>
<type>3</type>
<cost>0.00</cost>
</shipping>
<creditCard>
<token>********************</token>
<installment>
<quantity>2</quantity>
<value>100.00</value>
</installment>
<holder>
<name>Leonidas Waaa</name>
<documents>
<document>
<type>CPF</type>
<value>99999999999</value>
</document>
</documents>
<birthDate>01/01/1900</birthDate>
<phone>
<areaCode>99</areaCode>
<number>999999999</number>
</phone>
</holder>
<billingAddress>
<street>Rua Santa Maria</street>
<number>11</number>
<complement></complement>
<district>Petrópolis</district>
<city>Maceió</city>
<state>AL</state>
<country>ATA</country>
<postalCode>99999999</postalCode>
</billingAddress>
</creditCard>
</payment>
Estes valores da parcela, são retornados pelo próprio Pagseguro. Ao informar apenas uma parcelo, ou seja, o valor total, a transação é realizada.
<installment>
e o<item><amount>
são os mesmos enviados.