Jump to content

Product id in a PagSeguro's XML


Recommended Posts

Hi!

 

All my payments are made by the PagSeguro module. Its API returns me a XML everytime there's a status change. In this file, there's the product id field (items->item>id). An example:

 

<transaction>
<date>2013-02-05T12:20:15.000-02:00</date>
<code>0ACABBC4-F4EC-4CCD-8C5E-4322630B72A5</code>
<reference>PRS-67</reference>
<type>1</type>
<status>1</status>
<lastEventDate>2013-02-05T12:20:50.000-02:00</lastEventDate>
<paymentMethod>
 <type>2</type>
 <code>202</code>
</paymentMethod>
<grossAmount>599.30</grossAmount>
<discountAmount>0.00</discountAmount>
<feeAmount>30.31</feeAmount>
<netAmount>568.99</netAmount>
<extraAmount>0.00</extraAmount>
<installmentCount>1</installmentCount>
<itemCount>2</itemCount>
<items>
 <item>
  <id>5111151c225b7</id>
  <description>iPod Nano - Color : Black, Disk space : 16Go</description>
  <quantity>1</quantity>
  <amount>527.91</amount>
 </item>
 <item>
  <id>FRETE</id>
  <description>Frete</description>
  <quantity>1</quantity>
  <amount>71.39</amount>
 </item>
</items>
<sender>
...

The PagSeguro's API documentation's says this id is given by my e-commerce, the PretaShop in this case. Where could I found these ids in my database?

 

Thanks.

Link to comment
Share on other sites

×
×
  • Create New...