Freight in application Asp Net PagSeguro

0

I tried to find my question in other posts in the PagSeguro community, but I could not find it.

I can connect my application to the PagSeguro production base. When I get to the payment part, I can not calculate the freight. In my application the client informs the address in the register and this information is passed inside the tag.

I set up my account to calculate freight by weight and step in the XML field the value of the weight correctly.

I'm wondering if I need to spend any more tags together. I read the documentation and saw that in some cases I need to pass the tags and also, but I do not understand if you need it when it is freight by weight. What more tags do I need to send in XML type by weight?

My goal is to calculate Freight by PagSeguro and not by my application. My application only sends product information and address. Can you help me please? Here's how my sending XML is being generated:

 <?xml version="1.0" encoding="utf-8" ?> 
<checkout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <sender>
 <name>Mauro Oliveira</name> 
 <email>[email protected]</email> 
 <phone>
 <areaCode>11</areaCode> 
 <number>953803046</number> 
 </phone>
 <ip>::1</ip> 
 <documents>
 <document>
 <type>CPF</type> 
 <value>38995063831</value> 
 </document>
 </documents>
 </sender>
 <currency>BRL</currency> 
 <items>
 <item>
 <id>133</id> 
 <description>Vestido Manga Longa</description> 
 <amount>15.00</amount> 
 <quantity>1</quantity> 
 <weight>10</weight> 
 </item>
 </items>
 <redirectURL>http://stilespeciale.gear.host/Carrinho/PedidoConcluido?pedidoId=165</redirectURL> 
 <reference>165</reference> 
 <shipping>
 <address>
 <street>Canario</street> 
 <number>07</number> 
 <district>Moema</district> 
 <city>São Paulo</city> 
 <state>SP</state> 
 <country>BRA</country> 
 <postalCode>04521000</postalCode> 
 </address>
 <type>3</type> 
 <cost>0</cost> 
 </shipping>
 <maxAge>600</maxAge> 
 <maxUses>1</maxUses> 
 </checkout>
    
asked by anonymous 03.04.2018 / 02:44

0 answers