OsStudios_PagSeguroApi - Version 1.0.0.3

Version Notes

Some bugfixes and implementations.

- Corrected some bugfixes
- Some implmentations was made
- Corrected Extra Amount Node in OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml class where extra amout node sometimes is empty.
- The item description must have 100 characters only.
- Sometimes the shipping address does not exists. Now if shipping address does not exist the billing address is used.
- Sometimes the class OsStudios_PagSeguroApi_Model_System_Config_Source_Config throws an offset error in public method getNodeByAttribute.

Download this release

Release Info

Developer Tiago Sampaio
Extension OsStudios_PagSeguroApi
Version 1.0.0.3
Comparing to
See all releases


Code changes from version 1.0.0.2 to 1.0.0.3

app/code/community/OsStudios/PagSeguroApi/Model/Payment/Method/Api.php CHANGED
@@ -67,7 +67,7 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api extends OsStudios_PagSegur
67
  */
68
  public function initialize($paymentAction, $stateObject)
69
  {
70
- return $this->$paymentAction();
71
  }
72
 
73
 
@@ -81,41 +81,51 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api extends OsStudios_PagSegur
81
  $credentials = Mage::getSingleton('pagseguroapi/credentials');
82
  $url = sprintf('%s?email=%s&token=%s', $this->getConfigData('pagseguro_api_url'), $credentials->getAccountEmail(), $credentials->getAccountToken());
83
 
84
- $xml = Mage::getSingleton('pagseguroapi/payment_method_api_xml')->setOrder($this->_getOrder())->getXml();
 
85
 
86
- $client = new Zend_Http_Client($url);
87
- $client->setMethod(Zend_Http_Client::POST)
88
- ->setHeaders('Content-Type: application/xml; charset=ISO-8859-1')
89
- ->setRawData($xml->asXML(), 'text/xml');
90
-
91
- $request = $client->request();
92
 
93
- if(!$this->helper()->isXml(($body = $request->getBody()))) {
94
- Mage::log($this->helper()->__("When the system tried to authorize with login '%s' and token '%s' got '%s' as result.", $credentials->getAccountEmail(), $credentials->getAccountToken(), $request->getBody()), null, 'osstudios_pagseguro_unauthorized.log');
95
- Mage::throwException($this->helper()->__('A problem has occured while trying to authorize the transaction in PagSeguro.'));
96
- }
97
 
98
- $hasErrors = $this->_hasErrorInReturn($body);
99
- if(is_array($hasErrors)) {
100
- $message = implode("\n", $hasErrors);
101
- Mage::throwException($message);
102
- }
103
 
104
- $config = new Varien_Simplexml_Config($body);
105
- $result = $config->getNode()->asArray();
 
 
 
 
106
 
107
- if((!isset($result['code']) || !$this->_isValidPagSeguroResultCode($result['code'])) || !isset($result['date'])) {
108
- Mage::throwException($this->helper()->__('Your payment could not be processed by PagSeguro.'));
109
- }
110
 
111
- Mage::register($this->_identifierCodeRegistry, $result['code']);
 
 
112
 
113
- $history = Mage::getModel('pagseguroapi/payment_history');
114
- $history->setOrderId($this->_getOrder()->getId())
115
- ->setOrderIncrementId($this->_getOrder()->getRealOrderId())
116
- ->setPagseguroPaymentIdentifierCode($result['code'])
117
- ->setPagseguroTransactionDate($result['date'])
118
- ->save();
 
 
 
 
 
 
 
 
 
 
119
 
120
  return $this;
121
  }
@@ -203,10 +213,7 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api extends OsStudios_PagSegur
203
 
204
  foreach($xml->error as $error) {
205
  if($error->code) {
206
- $codes = Mage::getSingleton('pagseguroapi/system_config_source_error_codes');
207
- $message = $codes->getNodeByAttribute($error->code, 'value', 'message');
208
-
209
- $resultArr[] = $this->helper()->__($message);
210
  }
211
  }
212
  return $resultArr;
67
  */
68
  public function initialize($paymentAction, $stateObject)
69
  {
70
+ return $this->$paymentAction();
71
  }
72
 
73
 
81
  $credentials = Mage::getSingleton('pagseguroapi/credentials');
82
  $url = sprintf('%s?email=%s&token=%s', $this->getConfigData('pagseguro_api_url'), $credentials->getAccountEmail(), $credentials->getAccountToken());
83
 
84
+ try{
85
+ $xml = Mage::getSingleton('pagseguroapi/payment_method_api_xml')->setOrder($this->_getOrder())->getXml();
86
 
87
+ $client = new Zend_Http_Client($url);
88
+ $client->setMethod(Zend_Http_Client::POST)
89
+ ->setHeaders('Content-Type: application/xml; charset=ISO-8859-1')
90
+ ->setRawData($xml->asXML(), 'text/xml');
 
 
91
 
92
+ $request = $client->request();
 
 
 
93
 
94
+ if(!$this->helper()->isXml(($body = $request->getBody()))) {
95
+ Mage::log($this->helper()->__("When the system tried to authorize with login '%s' and token '%s' got '%s' as result.", $credentials->getAccountEmail(), $credentials->getAccountToken(), $request->getBody()), null, 'osstudios_pagseguro_unauthorized.log');
96
+ Mage::throwException($this->helper()->__('A problem has occured while trying to authorize the transaction in PagSeguro.'));
97
+ }
 
98
 
99
+ $errors = $this->_hasErrorInReturn($body);
100
+ if(is_array($errors)) {
101
+ $message = implode("\n", $errors);
102
+ Mage::throwException($message);
103
+ return;
104
+ }
105
 
106
+ $config = new Varien_Simplexml_Config($body);
107
+ $result = $config->getNode()->asArray();
 
108
 
109
+ if((!isset($result['code']) || !$this->_isValidPagSeguroResultCode($result['code'])) || !isset($result['date'])) {
110
+ Mage::throwException($this->helper()->__('Your payment could not be processed by PagSeguro.'));
111
+ }
112
 
113
+ Mage::register($this->_identifierCodeRegistry, $result['code']);
114
+
115
+ $history = Mage::getModel('pagseguroapi/payment_history');
116
+ $history->setOrderId($this->_getOrder()->getId())
117
+ ->setOrderIncrementId($this->_getOrder()->getRealOrderId())
118
+ ->setPagseguroPaymentIdentifierCode($result['code'])
119
+ ->setPagseguroTransactionDate($result['date'])
120
+ ->save();
121
+
122
+ } catch (Mage_Core_Exception $e) {
123
+ Mage::throwException($e->getMessage());
124
+ return $this;
125
+ } catch (Exception $e) {
126
+ Mage::throwException($e->getMessage());
127
+ return $this;
128
+ }
129
 
130
  return $this;
131
  }
213
 
214
  foreach($xml->error as $error) {
215
  if($error->code) {
216
+ $resultArr[] = Mage::helper('pagseguroapi')->__('Error: %s (%s)', $error->message, $error->code);
 
 
 
217
  }
218
  }
219
  return $resultArr;
app/code/community/OsStudios/PagSeguroApi/Model/Payment/Method/Api/Xml.php CHANGED
@@ -153,6 +153,7 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
153
  ->_getNodeMaxAge()
154
  ->_getNodeExtraAmount()
155
  ->_getNodeRedirectURL()
 
156
  ->_getNodeItems()
157
  ->_getNodeReference()
158
  ->_getNodeSender()
@@ -187,7 +188,6 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
187
  protected function _getNodeCurrency()
188
  {
189
  if($this->getOrder()) {
190
- //$this->_xml->addChild('currency', $this->getOrder()->getStoreCurrencyCode());
191
  $this->_xml->addChild('currency', 'BRL');
192
  }
193
  return $this;
@@ -237,9 +237,21 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
237
  */
238
  protected function _getNodeRedirectURL()
239
  {
240
- $this->_xml->addChild('redirectURL', Mage::getUrl('pagseguroapi/pay/success'));
241
  return $this;
242
  }
 
 
 
 
 
 
 
 
 
 
 
 
243
 
244
 
245
  /**
@@ -256,12 +268,12 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
256
  foreach($this->getOrder()->getAllVisibleItems() as $item) {
257
  $xmlItem = $xmlItems->addChild('item');
258
 
259
- $xmlItem->addChild('id', (string) $item->getProductId());
260
- $xmlItem->addChild('description', $item->getName());
261
- $xmlItem->addChild('amount', $this->_formatNumberToXml(($item->getRowTotal() / $item->getQtyOrdered())));
262
- $xmlItem->addChild('quantity', (int) $item->getQtyOrdered());
263
- $xmlItem->addChild('shippingCost', '0.00');
264
- $xmlItem->addChild('weight', (int) $item->getWeight());
265
  }
266
  }
267
 
@@ -277,7 +289,7 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
277
  protected function _getNodeReference()
278
  {
279
  if($this->getOrder()) {
280
- $this->_xml->addChild('reference', $this->getOrder()->getRealOrderId());
281
  }
282
  return $this;
283
  }
@@ -298,15 +310,12 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
298
 
299
  /**
300
  * @todo: Find another way to threat the phone number.
301
- *
302
  */
303
  $phone = preg_replace('/[^0-9]/', null, $this->getOrder()->getShippingAddress()->getTelephone());
304
 
305
  $digitCount = 8;
306
  if(($len = strlen($phone)) >= 11) {
307
  $digitCount = 9;
308
- } elseif($len == 10) {
309
- $digitCount = 8;
310
  }
311
 
312
  $areaCode = substr($phone, 0, ($len-$digitCount));
@@ -331,27 +340,30 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
331
  $xmlShipping = $this->_xml->addChild('shipping');
332
 
333
  if($this->getOrder()) {
334
- $shipping = $this->getOrder()->getShippingAddress();
335
 
336
- $xmlShipping->addChild('cost', $this->_formatNumberToXml($this->getOrder()->getShippingAmount()));
337
 
338
  $xmlShipping->addChild('type', Mage::getStoreConfig('payment/'.OsStudios_PagSeguroApi_Model_Payment::PAGSEGURO_METHOD_CODE_API.'/shipping_type'));
339
  $xmlAddress = $xmlShipping->addChild('address');
340
 
341
  if(is_array($shipping->getStreet())) {
342
- $street = implode(' - ', $shipping->getStreet());
343
- } elseif(is_string($shipping->getStreet())) {
344
- $street = $shipping->getStreet();
 
 
 
 
 
345
  }
346
 
347
- $address = $this->helper()->trataEndereco($street);
348
-
349
- $xmlAddress->addChild('street', $this->helper()->cleanStringToXml($address[0]));
350
- $xmlAddress->addChild('number', preg_replace('/[^0-9]/', null, $address[1]));
351
- $xmlAddress->addChild('complement');
352
- $xmlAddress->addChild('district', $this->helper()->cleanStringToXml($address[2]));
353
- $xmlAddress->addChild('postalCode', preg_replace('/[^0-9]/', null, $shipping->getPostcode()));
354
- $xmlAddress->addChild('city', $this->helper()->cleanStringToXml($shipping->getCity()));
355
 
356
  $regionCode = $this->helper()->cleanStringToXml($shipping->getRegionCode());
357
 
@@ -361,10 +373,18 @@ class OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml extends OsStudios_PagS
361
 
362
  return $this;
363
  }
364
-
365
-
366
- protected function _formatNumberToXml($value = 0.00)
 
 
 
 
 
 
 
367
  {
368
- return number_format($value, 2, '.', '');
369
  }
370
- }
 
153
  ->_getNodeMaxAge()
154
  ->_getNodeExtraAmount()
155
  ->_getNodeRedirectURL()
156
+ ->_getNodeNotificationURL()
157
  ->_getNodeItems()
158
  ->_getNodeReference()
159
  ->_getNodeSender()
188
  protected function _getNodeCurrency()
189
  {
190
  if($this->getOrder()) {
 
191
  $this->_xml->addChild('currency', 'BRL');
192
  }
193
  return $this;
237
  */
238
  protected function _getNodeRedirectURL()
239
  {
240
+ $this->_xml->addChild('redirectURL', (string) substr(Mage::getUrl('pagseguroapi/pay/success', array('order_id' => $this->getOrder()->getId())), 0, 255));
241
  return $this;
242
  }
243
+
244
+
245
+ /**
246
+ * Generates the <notificationURL/> node
247
+ *
248
+ * @return OsStudios_PagSeguro_Model_Api_Xml
249
+ */
250
+ protected function _getNodeNotificationURL()
251
+ {
252
+ $this->_xml->addChild('notificationURL', (string) substr(Mage::getUrl('pagseguroapi/returns'), 0, 255));
253
+ return $this;
254
+ }
255
 
256
 
257
  /**
268
  foreach($this->getOrder()->getAllVisibleItems() as $item) {
269
  $xmlItem = $xmlItems->addChild('item');
270
 
271
+ $xmlItem->addChild('id', (string) substr($item->getProductId(), 0, 100));
272
+ $xmlItem->addChild('description', (string) substr($item->getName(), 0, 100));
273
+ $xmlItem->addChild('amount', $this->_formatNumberToXml(($item->getRowTotal() / $item->getQtyOrdered())));
274
+ $xmlItem->addChild('quantity', (int) $item->getQtyOrdered());
275
+ $xmlItem->addChild('shippingCost', (double) '0.00');
276
+ $xmlItem->addChild('weight', (int) $item->getWeight());
277
  }
278
  }
279
 
289
  protected function _getNodeReference()
290
  {
291
  if($this->getOrder()) {
292
+ $this->_xml->addChild('reference', substr($this->getOrder()->getRealOrderId(), 0, 200));
293
  }
294
  return $this;
295
  }
310
 
311
  /**
312
  * @todo: Find another way to threat the phone number.
 
313
  */
314
  $phone = preg_replace('/[^0-9]/', null, $this->getOrder()->getShippingAddress()->getTelephone());
315
 
316
  $digitCount = 8;
317
  if(($len = strlen($phone)) >= 11) {
318
  $digitCount = 9;
 
 
319
  }
320
 
321
  $areaCode = substr($phone, 0, ($len-$digitCount));
340
  $xmlShipping = $this->_xml->addChild('shipping');
341
 
342
  if($this->getOrder()) {
343
+ $shipping = $this->getOrder()->getShippingAddress() ? $this->getOrder()->getShippingAddress() : $this->getOrder()->getBillingAddress();
344
 
345
+ $xmlShipping->addChild('cost', $this->_formatNumberToXml($this->getOrder()->getShippingAmount()));
346
 
347
  $xmlShipping->addChild('type', Mage::getStoreConfig('payment/'.OsStudios_PagSeguroApi_Model_Payment::PAGSEGURO_METHOD_CODE_API.'/shipping_type'));
348
  $xmlAddress = $xmlShipping->addChild('address');
349
 
350
  if(is_array($shipping->getStreet())) {
351
+ $address = $shipping->getStreet();
352
+ } else {
353
+ $address = array(
354
+ $shipping->getStreet(),
355
+ '0',
356
+ $this->helper()->__('Not Provided'),
357
+ $this->helper()->__('Not Provided')
358
+ );
359
  }
360
 
361
+ $xmlAddress->addChild('street', substr($this->helper()->cleanStringToXml($address[0]), 0, 80));
362
+ $xmlAddress->addChild('number', substr(preg_replace('/[^0-9]/', null, $address[1]), 0, 20));
363
+ $xmlAddress->addChild('complement', substr($this->helper()->cleanStringToXml($address[2]), 0, 40));
364
+ $xmlAddress->addChild('district', substr($this->helper()->cleanStringToXml($address[3]), 0, 60));
365
+ $xmlAddress->addChild('postalCode', substr(preg_replace('/[^0-9]/', null, $shipping->getPostcode()), 0, 8));
366
+ $xmlAddress->addChild('city', substr($this->helper()->cleanStringToXml($shipping->getCity()), 0, 60));
 
 
367
 
368
  $regionCode = $this->helper()->cleanStringToXml($shipping->getRegionCode());
369
 
373
 
374
  return $this;
375
  }
376
+
377
+
378
+ /**
379
+ * Formats number for XML purpose
380
+ *
381
+ * @param float $value
382
+ *
383
+ * @return float
384
+ */
385
+ protected function _formatNumberToXml($value = 0.00)
386
  {
387
+ return (double) number_format($value, 2, '.', '');
388
  }
389
+
390
+ }
app/code/community/OsStudios/PagSeguroApi/Model/System/Config/Source/Config.php CHANGED
@@ -22,7 +22,13 @@
22
 
23
  class OsStudios_PagSeguroApi_Model_System_Config_Source_Config
24
  {
25
-
 
 
 
 
 
 
26
  public function getAssociativeArray($index = 'value', $label = 'label')
27
  {
28
  $options = $this->toOptionArray();
@@ -34,10 +40,18 @@ class OsStudios_PagSeguroApi_Model_System_Config_Source_Config
34
  return $associative;
35
  }
36
 
 
 
 
 
 
 
 
 
37
  public function getNodeByAttribute($value, $index, $attribute)
38
  {
39
  $arr = $this->getAssociativeArray($index, $attribute);
40
- return $arr[$value];
41
  }
42
 
43
- }
22
 
23
  class OsStudios_PagSeguroApi_Model_System_Config_Source_Config
24
  {
25
+
26
+ /**
27
+ * @param string $index
28
+ * @param string $label
29
+ *
30
+ * @return array
31
+ */
32
  public function getAssociativeArray($index = 'value', $label = 'label')
33
  {
34
  $options = $this->toOptionArray();
40
  return $associative;
41
  }
42
 
43
+
44
+ /**
45
+ * @param $value
46
+ * @param $index
47
+ * @param $attribute
48
+ *
49
+ * @return null
50
+ */
51
  public function getNodeByAttribute($value, $index, $attribute)
52
  {
53
  $arr = $this->getAssociativeArray($index, $attribute);
54
+ return isset($arr[$value]) ? $arr[$value] : null;
55
  }
56
 
57
+ }
app/code/community/OsStudios/PagSeguroApi/controllers/PayController.php CHANGED
@@ -17,23 +17,36 @@
17
 
18
  class OsStudios_PagSeguroApi_PayController extends OsStudios_PagSeguroApi_Controller_Front_Action
19
  {
20
-
 
 
 
 
 
 
 
 
 
 
 
21
  /**
22
  * Shows success page after payment.
23
  *
24
  */
25
  public function successAction()
26
  {
27
- $session = $this->getOnepage()->getCheckout();
28
- if (!$session->getLastSuccessQuoteId()) {
29
- $this->_redirect('checkout/cart');
30
- return;
31
- }
 
 
 
 
 
32
 
33
- $lastQuoteId = $session->getLastQuoteId();
34
- $lastOrderId = $session->getLastOrderId();
35
- $lastRecurringProfiles = $session->getLastRecurringProfileIds();
36
- if (!$lastQuoteId || (!$lastOrderId && empty($lastRecurringProfiles))) {
37
  $this->_redirect('checkout/cart');
38
  return;
39
  }
17
 
18
  class OsStudios_PagSeguroApi_PayController extends OsStudios_PagSeguroApi_Controller_Front_Action
19
  {
20
+
21
+ /**
22
+ * Gets tha order id passed as a param in QueryString by PagSeguro
23
+ *
24
+ * @return int
25
+ */
26
+ protected function _getLastOrderId()
27
+ {
28
+ return (int) $this->getRequest()->getParam('order_id');
29
+ }
30
+
31
+
32
  /**
33
  * Shows success page after payment.
34
  *
35
  */
36
  public function successAction()
37
  {
38
+ $session = $this->getOnepage()->getCheckout();
39
+
40
+ $lastQuoteId = $session->getLastQuoteId();
41
+ $lastOrderId = $session->getLastOrderId() ? $session->getLastOrderId() : $this->_getLastOrderId();
42
+ $lastRecurringProfiles = $session->getLastRecurringProfileIds();
43
+
44
+ if (!$session->getLastSuccessQuoteId() && !$lastOrderId) {
45
+ $this->_redirect('checkout/cart');
46
+ return;
47
+ }
48
 
49
+ if (!$lastQuoteId || (!$lastOrderId && empty($lastRecurringProfiles))) {
 
 
 
50
  $this->_redirect('checkout/cart');
51
  return;
52
  }
app/code/community/OsStudios/PagSeguroApi/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  <config>
21
  <modules>
22
  <OsStudios_PagSeguroApi>
23
- <version>1.0.0.2</version>
24
  </OsStudios_PagSeguroApi>
25
  </modules>
26
  <global>
20
  <config>
21
  <modules>
22
  <OsStudios_PagSeguroApi>
23
+ <version>1.0.0.3</version>
24
  </OsStudios_PagSeguroApi>
25
  </modules>
26
  <global>
app/code/community/OsStudios/PagSeguroApi/etc/system.xml CHANGED
@@ -30,15 +30,18 @@
30
  <comment>
31
  <![CDATA[
32
  <a href="http://www.osstudios.com.br/" target="_blank" title="Os Studios Design - Desenvolvendo o Futuro Online!"><img style="border:none;" src="http://www.osstudios.com.br/skin/frontend/osstudios/osstudios/images/logo.png"/></a><br/><br/>
33
- Versão do Módulo: 1.0.0.0<br/>
34
  Desenvolvido por <b><a href="mailto:tiago.sampaio@osstudios.com.br">Tiago Sampaio</a></b><br/>
35
  Visite o website da <a href="http://www.osstudios.com.br" target="_blank">Os Studios Design</a>.
36
  <br/><br/>
37
  <hr style="border:none; border-top:1px solid #ccc; border-bottom:1px solid white;" />
38
  <br/>
39
- A URL para Retorno Automático e Notificações API do PagSeguro que você precisa configurar é http://www.sualoja.com.br/pagseguroapi/returns/.
 
 
40
  <br/>
41
- A URL para o redirecionamento de retorno á loja após a conclusão do pagamento no PagSeguro é http://www.sualoja.com.br/pagseguroapi/pay/success/
 
42
  <br/><br/>
43
  <hr style="border:none; border-top:1px solid #ccc; border-bottom:1px solid white;" />
44
  ]]>
30
  <comment>
31
  <![CDATA[
32
  <a href="http://www.osstudios.com.br/" target="_blank" title="Os Studios Design - Desenvolvendo o Futuro Online!"><img style="border:none;" src="http://www.osstudios.com.br/skin/frontend/osstudios/osstudios/images/logo.png"/></a><br/><br/>
33
+ Versão do Módulo: 1.0.0.3<br/>
34
  Desenvolvido por <b><a href="mailto:tiago.sampaio@osstudios.com.br">Tiago Sampaio</a></b><br/>
35
  Visite o website da <a href="http://www.osstudios.com.br" target="_blank">Os Studios Design</a>.
36
  <br/><br/>
37
  <hr style="border:none; border-top:1px solid #ccc; border-bottom:1px solid white;" />
38
  <br/>
39
+ A URL para Retorno Automático e Notificações API do PagSeguro é http://www.sualoja.com.br/pagseguroapi/returns/.<br/>
40
+ Esta informação já é enviada na requisição, porém a configuração dela é opcional.
41
+
42
  <br/>
43
+ A URL para o redirecionamento de retorno á loja após a conclusão do pagamento no PagSeguro é http://www.sualoja.com.br/pagseguroapi/pay/success/<br/>
44
+ Esta informação já é enviada na requisição, porém a configuração dela é opcional.
45
  <br/><br/>
46
  <hr style="border:none; border-top:1px solid #ccc; border-bottom:1px solid white;" />
47
  ]]>
app/design/adminhtml/default/default/layout/osstudios/pagseguroapi.xml DELETED
@@ -1,34 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Os Studios PagSeguro Api Payment Module
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category OsStudios
13
- * @package OsStudios_PagSeguroApi
14
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
17
- */
18
- -->
19
-
20
- <layout>
21
- <pagseguroapi_adminhtml_transaction_history>
22
- <reference name="content">
23
- <block type="pagseguroapi/adminhtml_transaction" name="pagseguroapi.returns.transaction" />
24
- </reference>
25
- </pagseguroapi_adminhtml_transaction_history>
26
- <pagseguroapi_adminhtml_transaction_grid>
27
- <block type="core/text_list" name="root" output="toHtml">
28
- <block type="pagseguroapi/adminhtml_transaction_grid" name="pagseguroapi.returns.transaction.grid"/>
29
- </block>
30
- </pagseguroapi_adminhtml_transaction_grid>
31
- <pagseguroapi_adminhtml_actions_updateorders>
32
-
33
- </pagseguroapi_adminhtml_actions_updateorders>
34
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/osstudios/pagseguroapi/info.phtml DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Os Studios PagSeguro Api Payment Module
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category OsStudios
12
- * @package OsStudios_PagSeguroApi
13
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
16
- */
17
- ?>
18
-
19
- <p><strong><?php echo $this->getMethod()->getTitle() ?></strong></p>
20
-
21
- <?php if ($this->getShowInfo()): ?>
22
- <br/>
23
- <ul class="pagseguro-infos">
24
- <li><label><strong><?php echo $this->__('Transaction ID')?></strong></label></li>
25
- <li><?php echo $this->getPagseguroInfo()->getPagseguroTransactionId() ?></li>
26
-
27
- <li><label><strong><?php echo $this->__('Transaction Date')?></strong></label></li>
28
- <li><?php echo Mage::getModel('core/date')->date('d/m/Y H:i:s', $this->getPagseguroInfo()->getPagseguroTransactionDate()) ?></li>
29
-
30
- <li><label><strong><?php echo $this->__('Payment Method')?></strong></label></li>
31
- <li>
32
- <?php if($this->getTransactionPaymentMethodTypeLabel()):?>
33
- <?php echo $this->__('%s (%s)', $this->getTransactionPaymentMethodTypeLabel(), $this->getTransactionPaymentMethodCodeLabel()) ?>
34
- <?php endif;?>
35
- </li>
36
-
37
- <li><label><strong><?php echo $this->__('Payment Status')?></strong></label></li>
38
- <li>
39
- <?php if($this->isPaid()):?>
40
- <?php echo $this->__('The payment was successfully registered in PagSeguro.') ?>
41
- <?php else:?>
42
- <span><?php echo $this->__('The status of the order is <b><i>%s</i></b> in PagSeguro.', $this->getTransactionStatusLabel()) ?></span><br/>
43
- <?php if($this->getShowPayBilletUrl()):?>
44
- <?php echo $this->__('By clicking <a href="%s" target="_blank">here</a> you can generate the billet againg for the customer.', $this->getBilletPayUrl())?>
45
- <?php endif;?>
46
- <?php if ($this->getShowPaylink()): ?>
47
- <?php echo $this->__('By clicking <a href="%s" target="_blank">here</a> you can help the customer to pay his order.', $this->getPayUrl())?></p>
48
- <?php endif; ?>
49
- <?php endif;?>
50
- </li>
51
- </ul>
52
- <br/>
53
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/layout/osstudios/pagseguroapi.xml DELETED
@@ -1,35 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Os Studios PagSeguro Api Payment Module
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category OsStudios
13
- * @package OsStudios_PagSeguroApi
14
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
17
- */
18
- -->
19
-
20
- <layout>
21
- <pagseguroapi_pay_success translate="label" module="pagseguroapi">
22
- <label>Transaction successfully registered in PagSeguro</label>
23
- <reference name="root">
24
- <action method="setTemplate"><template>page/1column.phtml</template></action>
25
- </reference>
26
- <reference name="content">
27
- <block type="pagseguroapi/api_success" name="pagseguro.success" />
28
- </reference>
29
- </pagseguroapi_pay_success>
30
- <checkout_onepage_index>
31
- <reference name="head">
32
- <action method="addCss"><stylesheet>css/pagseguroapi/checkout.css</stylesheet></action>
33
- </reference>
34
- </checkout_onepage_index>
35
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/osstudios/pagseguroapi/form.phtml DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
- /**
3
- * Os Studios PagSeguro Api Payment Module
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category OsStudios
12
- * @package OsStudios_PagSeguroApi
13
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
16
- */
17
- ?>
18
- <fieldset class="form-list">
19
- <ul id="payment_form_<?php echo $this->getMethodCode(); ?>" class="pagseguroapi-payment-method" style="display:none;">
20
- <?php if ($this->getShowMessage()): ?>
21
- <li><?php echo $this->getMessage(); ?></li>
22
- <?php endif; ?>
23
- <!--<li><img src="<?php echo $this->getSkinUrl('images/pagseguroapi/logo-pagseguro.gif')?>"/></li>-->
24
- <li><?php echo $this->getLayout()->createBlock('pagseguroapi/api_installments')->toHtml();?></li>
25
- </ul>
26
- </fieldset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/osstudios/pagseguroapi/info.phtml DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Os Studios PagSeguro Api Payment Module
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category OsStudios
12
- * @package OsStudios_PagSeguroApi
13
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
16
- */
17
- ?>
18
-
19
- <p><strong><?php echo $this->getMethod()->getTitle() ?></strong></p>
20
-
21
- <?php if ($this->getShowInfo()): ?>
22
- <br/>
23
- <ul class="pagseguro-infos">
24
- <li><label><strong><?php echo $this->__('Transaction ID')?></strong></label></li>
25
- <li><?php echo $this->getPagseguroInfo()->getPagseguroTransactionId() ?></li>
26
-
27
- <li><label><strong><?php echo $this->__('Transaction Date')?></strong></label></li>
28
- <li><?php echo Mage::getModel('core/date')->date('d/m/Y H:i:s', $this->getPagseguroInfo()->getPagseguroTransactionDate()) ?></li>
29
-
30
- <li><label><strong><?php echo $this->__('Payment Method')?></strong></label></li>
31
- <li>
32
- <?php if($this->getTransactionPaymentMethodTypeLabel()):?>
33
- <?php echo $this->__('%s (%s)', $this->getTransactionPaymentMethodTypeLabel(), $this->getTransactionPaymentMethodCodeLabel()) ?>
34
- <?php endif;?>
35
- </li>
36
-
37
- <li><label><strong><?php echo $this->__('Payment Status')?></strong></label></li>
38
- <li>
39
- <?php if($this->isPaid()):?>
40
- <?php echo $this->__('The payment was successfully registered in PagSeguro.') ?>
41
- <?php else:?>
42
- <span><?php echo $this->__('The status of the order is <b><i>%s</i></b> in PagSeguro.', $this->getTransactionStatusLabel()) ?></span><br/>
43
- <?php if($this->getShowPayBilletUrl()):?>
44
- <?php echo $this->__('Click <a href="%s" target="_blank">here</a> to generate your billet again.', $this->getBilletPayUrl())?>
45
- <?php endif;?>
46
- <?php if ($this->getShowPaylink()): ?>
47
- <?php echo $this->__('Click <a href="%s" target="_blank">here</a> to pay your order.', $this->getPayUrl())?></p>
48
- <?php endif; ?>
49
- <?php endif;?>
50
- </li>
51
- </ul>
52
- <br/>
53
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/osstudios/pagseguroapi/installments.phtml DELETED
@@ -1,91 +0,0 @@
1
- <?php
2
- /**
3
- * Os Studios PagSeguro Api Payment Module
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category OsStudios
12
- * @package OsStudios_PagSeguroApi
13
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
16
- */
17
- ?>
18
- <?php
19
- $quote = $this->getQuote();
20
- $grandTotal = $quote->getGrandTotal();
21
- ?>
22
- <div class="pagseguroapi-installments">
23
- <!--<p><?php echo $this->__('Billet')?></p>-->
24
- <ul class="payment-method-list billet-list">
25
- <li class="payment-item">
26
- <a href="javascript:void(0);" class="payment-link-flag billet" title="">Boletos</a>
27
- </li>
28
- </ul>
29
- <!--<p><?php echo $this->__('Online Debit')?></p>-->
30
- <ul class="payment-method-list bank-list">
31
- <li class="payment-item">
32
- <a href="javascript:void(0);" class="payment-link-flag bradesco" title="">Bradesco</a>
33
- </li>
34
- <li class="payment-item">
35
- <a href="javascript:void(0);" class="payment-link-flag itau" title="">Itaú</a>
36
- </li>
37
- <li class="payment-item">
38
- <a href="javascript:void(0);" class="payment-link-flag hsbc" title="">HSBC</a>
39
- </li>
40
- <li class="payment-item">
41
- <a href="javascript:void(0);" class="payment-link-flag bb" title="">Banco do Brasil</a>
42
- </li>
43
- </ul>
44
- <!--<p><?php echo $this->__('Credit Cards')?></p>-->
45
- <ul class="payment-method-list creditcard-list">
46
- <?php foreach($this->getCreditCards() as $code => $attributes):?>
47
- <?php if($attributes['active']):?>
48
- <li class="payment-item creditcard-item <?php echo $code?>">
49
- <a id="creditcard-<?php echo $code?>" href="javascript:void(0);" class="payment-link-flag creditcard-link-flag <?php echo $code?>" title="<?php echo $attributes['label']?>"><?php echo $attributes['label']?></a>
50
- </li>
51
- <?php endif;?>
52
- <?php endforeach;?>
53
- </ul>
54
- <?php if($this->showInstallments()):?>
55
- <div class="installment-table-container" style="display:block;">
56
- <p><?php echo $this->__('Take a look at the installments simulator for credit cards.')?></p>
57
- <table class="installment-table">
58
- <colgroup>
59
- <col width="150"/>
60
- <col width="120"/>
61
- <col width="150"/>
62
- </colgroup>
63
- <thead>
64
- <th class="grandtotal"><strong><?php echo $this->__('Grand Total')?></strong></th>
65
- <th class="qty"><strong><?php echo $this->__('Installment Qty.')?></strong></th>
66
- <th class="totalvalue"><strong><?php echo $this->__('Final Value')?></strong></th>
67
- </thead>
68
- <tbody>
69
- <?php $y = 1; ?>
70
- <?php foreach($this->getFactors() as $key => $factor):?>
71
- <?php
72
- $min = (float) Mage::getStoreConfig('osstudios_pagseguroapi/transaction/installments/min');
73
- if(!$min) {
74
- $min = 5;
75
- }
76
- if(($grandTotal * $factor) < $min) {
77
- break;
78
- }
79
- ?>
80
- <tr>
81
- <td class="grandtotal"><?php echo Mage::helper('core')->currency($grandTotal); ?></td>
82
- <td class="qty"><?php echo $this->__('%s time(s)', $y) ?></td>
83
- <td class="totalvalue"><?php echo Mage::helper('core')->currency($grandTotal * $factor)?></td>
84
- </tr>
85
- <?php $y++; ?>
86
- <?php endforeach;?>
87
- </tbody>
88
- </table>
89
- </div>
90
- <?php endif;?>
91
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/osstudios/pagseguroapi/success.phtml DELETED
@@ -1,61 +0,0 @@
1
- <?php
2
- /**
3
- * Os Studios PagSeguro Api Payment Module
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category OsStudios
12
- * @package OsStudios_PagSeguroApi
13
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
16
- */
17
- ?>
18
- <?php
19
-
20
- $transaction = $this->getPagseguroTransaction();
21
-
22
- ?>
23
- <?php if((Mage::helper('pagseguroapi')->openPagSeguroInOtherPage() && $this->getPagseguroPaymentUrl())):?>
24
- <script type="text/javascript">
25
- void(open('<?php echo $this->getPagseguroPaymentUrl()?>','_blank','resizable,location,menubar,toolbar,scrollbars,status'));
26
- </script>
27
- <?php endif;?>
28
-
29
- <div class="page-title">
30
- <h1><?php echo $this->__('Your order has been received.') ?></h1>
31
- </div>
32
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
33
- <h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
34
-
35
- <?php if ($this->getOrderId()):?>
36
- <?php if ($this->getCanViewOrder()) :?>
37
- <p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
38
- <?php else :?>
39
- <p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p>
40
- <?php endif;?>
41
-
42
- <?php if($transaction && $transaction->getPagseguroTransactionId()): ?>
43
- <p><?php echo $this->__('The transaction ID for your order in PagSeguro is: %s.', $transaction->getPagseguroTransactionId())?></p>
44
- <?php endif;?>
45
-
46
- <?php if($this->getPagseguroPaymentUrl()):?>
47
- <p><?php echo $this->__('Click <a href="%s" target="_blank">here</a> to pay your order.', $this->getPagseguroPaymentUrl())?></p>
48
- <?php endif;?>
49
-
50
- <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
51
- <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?>
52
- <p>
53
- <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
54
- <?php echo $this->getChildHtml() ?>
55
- </p>
56
- <?php endif;?>
57
- <?php endif;?>
58
-
59
- <div class="buttons-set">
60
- <button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
61
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/OsStudios_PagSeguroApi.xml DELETED
@@ -1,31 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Os Studios PagSeguro Api Payment Module
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category payment
13
- * @package OsStudios_PagSeguroApi
14
- * @copyright Copyright (c) 2013 Os Studios (www.osstudios.com.br)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- * @author Tiago Sampaio <tiago.sampaio@osstudios.com.br>
17
- */
18
- -->
19
-
20
- <config>
21
- <modules>
22
- <OsStudios_PagSeguroApi>
23
- <active>true</active>
24
- <codePool>community</codePool>
25
- <depends>
26
- <Mage_Payment/>
27
- <Mage_Sales/>
28
- </depends>
29
- </OsStudios_PagSeguroApi>
30
- </modules>
31
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/locale/pt_BR/OsStudios/PagSeguroApi.csv DELETED
@@ -1,164 +0,0 @@
1
- "Yes","Sim"
2
- "No","Não"
3
- "Enable","Habilitar"
4
- "Disable","Desabilitar"
5
- "Enabled","Habilitado"
6
- "Title","Título"
7
- "New Orders Status","Status Para Novos Pedidos"
8
- "PagSeguro Account E-mail","E-mail da Conta do PagSeguro"
9
- "Custom Address Model","Modelo de Endereço Personalizado"
10
- "Show Installment","Exibir Parcelamento"
11
- "No Interest Installment","Parcelamento Sem Juros"
12
- "Discount to no Installments Payment","Desconto á Vista"
13
- "Group Price","Agrupar Preço"
14
- "Add Message","Mensagem Adicional"
15
- "Shipping Price","Valor do Frete"
16
- "Use CMS Page as Return","Utilizar Página CMS como Retorno"
17
- "Use cURL","Usar cURL"
18
- "Allowed Coutries","Países Permitidos"
19
- "All Allowed Countries","Todos os Países Permitidos"
20
- "Specific Countries","Países Específicos"
21
- "Payments of Allowed Coutries","Permitir Pagamentos de Países"
22
- "Enable Logging","Habilitar Log"
23
- "Log Types","Tipos de Logs"
24
- "Separated","Separado"
25
- "As Product","Como Produto"
26
- "Grouped","Agrupado"
27
- "Max %sx","Até %sx"
28
- "Deactivated (%sx)","Desativado (%sx)"
29
- "Beginning and Ending Tags","Tags de Início e Fim"
30
- "PagSeguro Return Data","Dados de Retorno do PagSeguro"
31
- "PagSeguro Confirmation Status","Status de Confimação do PagSeguro"
32
- "PagSeguro Order Status","Status do Pedido no PagSeguro"
33
- "Separator","Separador"
34
- "Sort Order","Ordenação"
35
- "To activate automatic return from PagSeguro access your account and generate a token code and paste it here.","Para ativar o retorno automático do PagSeguro acesse sua conta, gere um código de token e cole aqui."
36
- "Check documentation to use this option.","Leia a documentação para utilizar esta opção."
37
- "To display this option please setup this into your account on PagSeguro.","Para mostrar esta opção, por favor, configure-a em sua conta no PagSeguro."
38
- "This option only works when the No Interest Installment is active.","Esta opção só funciona quando a opção de parcelamento sem jutos está ativa."
39
- "Enabling this configuration only one product will be sent to PagSeguro Checkout with the grand total of the order.","Habilitando esta configuração apenas um produto será enviado para o carrinho do PagSeguro com o total do pedido."
40
- "You will be redirected to PagSeguro after the order confirmation.","Você será redirecionado(a) para o PagSeguro após a confirmação do pedido."
41
- "This content is displayed when customer is choosing the payment method on checkout.","Esta mensagem será mostrada quando o cliente escolher PagSeguro UOL como opção de pagamento no checkout da compra."
42
- "Choose how the shipping price will be sent to PagSeguro Checkout.","Escolha como o valor do frete será enviado ao PagSeguro"
43
- "By default, this module uses the custom success page.","Por padrão, este módulo utiliza o página de sucesso personalizada."
44
- "Beginning of Return","Início do Retorno"
45
- "Post Data","Dados do Post"
46
- "End of Post Data","Fim de Dados do Post"
47
- "Ending of Return","Fim do Retorno"
48
- "Confirmation Success!","Sucesso na Confirmação!"
49
- "Confirmation Denied...","Confirmação Negada..."
50
- "Order #%s: %s","Pedido #%s: %s"
51
- "Payment confirmed (%s). PagSeguro Transaction: %s.","Pagamento confirmado (%s). Transação PagSeguro: %s."
52
- "Invoice Created!","Fatura Criada!"
53
- "Invoice Not Created!","Fatura Não Criada!"
54
- "Payment Returned.","Pagamento Devolvido."
55
- "Payment Canceled.","Pagamento Cancelado."
56
- "Updated Order Status: %s.","Status do Pedido Atualizado: %s."
57
- "ERROR: O value received is different from the stored one (STORED VALUE: %s / RECEIVED VALUE: %s).","ERRO: O valor recebido é diferente do valor original (VALOR ORIGINAL: %s / VALOR RECEBIDO: %s)."
58
- "ERROR: This order was not placed with this payment method.","ERRO: Neste pedido não foi utilizado o PagSeguro como forma de pagamento."
59
- "ERROR: The order reference was not found.","ERRO: Este número de pedido não foi encontrado no sistema."
60
- "Enable Default Return Process","Habilitar Processo de Retorno Automático"
61
- "Enable API Notifications Process","Habilitar Processo de Notificações API"
62
- "Days Range for Consult Orders","Consultar pedidos de 'N' dias anteriores"
63
- "This feature will be available in next versions of this module.","Este recurso estará disponível nas próximas versões deste módulo."
64
- "From %s day(s) before to now","De %s dia(s) anterior(es) até o momento"
65
- "PagSeguro General Configuration","Configurações Gerais do PagSeguro"
66
- "Closed","Fechado"
67
- "Canceled","Cancelado"
68
- "Payment Review","Revisando Pagamento"
69
- "Processing","Processando"
70
- "Holded","Congelado"
71
- "Range of days to consult orders in PagSeguro","Limite entre dias para consultar pedidos no PagSeguro"
72
- "Enables log process. To use this make sure the Magento's log system is enabled.","Habilita processo de log. Para utilizar este recurso certifique-se de que o log de sistema do Magento está habilitado."
73
- "Change the order to this status when PagSeguro send cancel notifications.","Alterar o pedido para este status quando o PagSeguro enviar notificações de cancelamento."
74
- "Change the order to this status when PagSeguro send approved payments notifications.","Alterar o pedido para este status quando o PagSeguro enviar notificações de pedidos com pagamento aprovado."
75
- "Enables notification via API from PagSeguro. To use this feature make sure this configuration is set into your account.","Habilita a notificação via API do PagSeguro. Para utilizar este recurso certifique-se de que esta opção está configurada em sua conta."
76
- "Enables the default return processo from PagSeguro.","Habilita o processo de returno automático padrão do PagSeguro."
77
- "Change Paid Orders to Status","Mudar Status de Pedidos Pagos Para"
78
- "Change Canceled Orders to Status","Mudar Status de Pedidos Cancelados Para"
79
- "Order was canceled by PagSeguro.","O pedido foi cancelado pelo PagSeguro."
80
- "Invoice #%s was created.","Fatura #%s criada."
81
- "Credit Card","Cartão de Crédito"
82
- "Billet","Boleto"
83
- "Online Debit","Débito Online"
84
- "PagSeguro Credit","Crédito PagSeguro"
85
- "Oi Paggo","Oi Paggo"
86
- "Not Provided","Não Informado"
87
- "Check for Order Updates","Verificar Status de Pedidos no PagSeguro"
88
- "Update Orders When Payment Update is Sent by PagSeguro","Atualizar Pedidos Quando Receber Atualizações do PagSeguro"
89
- "Enable the order to be updated when receive returns from PagSeguro.","Permite que o pedido seja atualizado automaticamente quando forem recebidas atualizações de pedidos pelo PagSeguro."
90
- "Defines the max times the payment code created by API call can be used. This parameter can be used as a secure control.","Determina o número máximo de vezes que o código de pagamento criado pela chamada à API de Pagamentos poderá ser usado. Este parâmetro pode ser usado como um controle de segurança."
91
- "Defines the time limit (in seconds) to use a payment code created by API call. This parameter can be used as a secure control.","Determina o prazo (em segundos) durante o qual o código de pagamento criado pela chamada à API de Pagamentos poderá ser usado. Este parâmetro pode ser usado como um controle de segurança."
92
- "Defines an extra amount to be added or discounted from the payment. This value can be presented as an additional tax amount or a dicount in case it is negative.","Especifica um valor extra que deve ser adicionado ou subtraído ao valor total do pagamento. Esse valor pode representar uma taxa extra a ser cobrada no pagamento ou um desconto a ser concedido, caso o valor seja negativo."
93
- "Defines the type of shipping method to be used. This information is used by PagSeguro to calculate, using Correios System, the shipping value based on the weight of the items.","Informa o tipo de frete a ser usado para o envio do produto. Esta informação é usada pelo PagSeguro para calcular, junto aos Correios, o valor do frete a partir do peso dos itens."
94
- "Max Uses","Número Máximo de Usos para o Código de Pagamento"
95
- "Max Age (Seconds)","Prazo de Validade do Código de Pagamento (Segundos)"
96
- "Extra Amount","Valor Adicional ou Desconto"
97
- "Shipping Method (PagSeguro)","Método de Frete (PagSeguro)"
98
- "Transaction ID","ID da Transação"
99
- "Transaction Date","Data da Transação"
100
- "Payment Method","Método de Pagamento"
101
- "Payment Status","Status do Pagamento"
102
- "The payment was successfully registered in PagSeguro.","O pagamento foi registrado com sucesso no PagSeguro."
103
- "The status of the order is <b><i>%s</i></b> in PagSeguro.","O pedido está com o status <b><i>%s</i></b> no PagSeguro."
104
- "By clicking <a href=""%s"" target=""_blank"">here</a> you can generate the billet againg for the customer.","Clicando <a href=""%s"" target=""_blank"">aqui</a> você poderá gerar o boleto novamente para o cliente."
105
- "By clicking <a href=""%s"" target=""_blank"">here</a> you can help the customer to pay his order.","Clicando <a href=""%s"" target=""_blank"">aqui</a> você poderá ajudar o cliente a pagar seu pedido."
106
- "Click <a href=""%s"" target=""_blank"">here</a> to generate your billet again.","Clique <a href=""%s"" target=""_blank"">aqui</a> para gerar seu boleto novamente."
107
- "Click <a href=""%s"" target=""_blank"">here</a> to pay your order.","Clique <a href=""%s"" target=""_blank"">aqui</a> para pagar seu pedido."
108
- "Open PagSeguro in Other Page","Abrir o PagSeguro em Outra Página"
109
- "Change Orders Automatically","Alterar Pedidos Automaticamente"
110
- "Cancel Orders Automatically","Cancelar Pedidos Automaticamente"
111
- "Invoice Orders Automatically","Faturar Pedidos Automaticamente"
112
- "Hold Order for Billet Payment Method","Congelar Pedido para Pagamentos Feitos com Boleto"
113
- "If set to true the PagSeguro page will be opened in other page and the current page will be the success page.","Se habilitado a página do PagSeguro será aberta em outra página do navegador enquanto a loja irá para a página de sucess."
114
- "If set to true the orders can be changed automatically by API returns from PagSeguro.","Se habilitado os pedidos poderão ser alterados automaticamente quando houver um retorno API do PagSeguro."
115
- "If set to true the order will be canceled automatically when PagSeguro cancel it.","Se habilitado o pedido será cancelado automaticamente quando o PagSeguro cancelar o pagamento."
116
- "If set to true the order will be invoiced automatically when PagSeguro approve the payment.","Se habilitado o pedido será faturado automaticamente quando o PagSeguro aprovar o pagamento."
117
- "If set to true the order will be holded until PagSeguro approve or cancel the payment.","Se habilitado o pedido será congelado até que o PagSeguro aprove ou cancele o pagamento."
118
- "PagSeguroApi: Exception occurred when trying to hold order automatically. Exception message: %s.","PagSeguroApi: Um erro ocorreu ao tentar congelar o pedido automaticamente. Mensagem de rrro: %s."
119
- "PagSeguroApi: Order cannot be invoiced automatically.","PagSeguroApi: O pedido não pode ser faturado automaticamente."
120
- "PagSeguroApi: Automatically invoiced by PagSeguroApi. PagSeguro confirmed the payment.","PagSeguroApi: Faturado automaticamente pelo PagSeguroApi. O PagSeguro confirmou o pagamento."
121
- "PagSeguroApi: Exception occurred when trying to invoice order automatically. Exception message: %s.","PagSeguroApi: Um erro ocorrou ao tentar faturar o pedido automaticamente. Mensagem de erro: %s."
122
- "PagSeguroApi: Automatically canceled by PagSeguroApi. PagSeguro has canceled the payment.","PagSeguroApi: Cancelado automaticamente pelo PagSeguroApi. O PagSeguro cancelou o pagamento."
123
- "PagSeguroApi: The order could not be automatically canceled by PagSeguroApi. PagSeguro has canceled the payment.","PagSeguroApi: O pedido não pode ser cancelado automaticamente pelo PagSeguroApi. O PagSeguro cancelou o pagamento."
124
- "PagSeguroApi: Exception occurred when trying to cancel order automatically. Exception message: %s.","PagSeguroApi: Um erro ocorreu ao tentar cancelar o pedido automaticamente. Mensagem de erro: %s."
125
- "Grand Total","Total do Pedido"
126
- "Installment Qty.","Qtd. de Parcelas"
127
- "Final Value","Valor Final"
128
- "%s time(s)","%s vez(es)"
129
- "Take a look at the installments simulator for credit cards.","A tabela abaixo é o simulador de parcelamento para cartões de crédito."
130
- "Billet","Boleto"
131
- "Online Debit","Débito Online"
132
- "Credit Cards","Cartões de Crédito"
133
- "Show Installments Simulator","Mostrar Simulador de Parcelamento"
134
- "Activates option to show installments simulator in checkout page.","Ativa a opção de mostrar o simulador de parcelamento na página de checkout."
135
- "Configurations","Configurações"
136
- "Transaction","Transação"
137
- "View History","Visualizar Histórico"
138
- "Transaction History (Consults and Notifications)","Histórico de Transações (Consultas e Notificações)"
139
- "Actions","Ações"
140
- "API Returns and Consults","Consultas e Retornos API"
141
- "Reference","Referência"
142
- "Type","Tipo"
143
- "Payment Method Type","Método de Pagamento"
144
- "Payment Method Code","Tipo do Método"
145
- "Fee Amount","Taxa do PagSeguro"
146
- "Installment Count","Qtd. Parcelas"
147
- "Received From","Fonte da Transação"
148
- "Last Event Date","Última Atualização"
149
- "Created At","Criado em"
150
- "Remove Transaction(s)","Excluir Transações"
151
- "Consults","Consultas"
152
- "Mass Consults","Consulta em Massa"
153
- "Notifications","Notificações"
154
- "Payment","Pagamento"
155
- "%s transaction(s) was successfully removed.","%s transações foram excluídas com sucesso."
156
- "Are you sure?","Você tem certeza?"
157
- "%s transactions was not validated by the system.","%s transações não foram validadas pelo sistema."
158
- "%s transactions were consulted in PagSeguro. %s successfully updated a transaction in the store.","%s transações foram consultadas no PagSeguro. %s foram atualizadas com sucesso na loja."
159
- "Allow Log Notifications","Permitir Logs de Notificação"
160
- "Allow Log Consults","Permitir Logs de Consultas"
161
- "Allow Log Mass Consults","Permitir Logs de Consultas em Massa"
162
- "Allow or disallow to log transaction by notifications.","Permite ou não logar as transações retornadas nas notificações do PagSeguro."
163
- "Allow or disallow to log transaction by consults.","Permite ou não logar as transações retornadas nas consultas ao PagSeguro."
164
- "Allow or disallow to log transaction by mass consults.","Permite ou não logar as transações retornadas nas consultas em massa ao PagSeguro."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,16 +1,15 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OsStudios_PagSeguroApi</name>
4
- <version>1.0.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>The most powerful module for PagSeguro API integration!</summary>
10
- <description>&lt;div id="product-view-tabs-branding"&gt;&#xD;
11
- &lt;/div&gt;&#xD;
12
- &lt;h2&gt;PagSeguroApi by Os Studios&lt;/h2&gt;&#xD;
13
- &lt;p&gt;&#xD;
14
  The newest module for Magento with UOL's PagSeguro new API system integration. It's full of new features!&#xD;
15
  With PagSeguroApi by Os Studios module you will be able to integrate your Magento Store with PagSeguro easily.&#xD;
16
  &lt;/p&gt;&#xD;
@@ -18,20 +17,22 @@ With PagSeguroApi by Os Studios module you will be able to integrate your Magent
18
  &lt;p&gt;&lt;strong&gt;See below some of the new features:&lt;/strong&gt;&lt;/p&gt;&#xD;
19
  &#xD;
20
  &lt;p&gt;&#xD;
21
- &lt;/p&gt;&lt;ul&gt;&#xD;
22
  &lt;li&gt;The blank page before redirect was removed and now you are redirected directly from the checkout page&lt;/li&gt;&#xD;
23
  &lt;li&gt;A new log panel where you can see all the notifications made by PagSeguro&lt;/li&gt;&#xD;
24
  &lt;li&gt;Now you can consult of orders up to 30 days old&lt;/li&gt;&#xD;
25
  &lt;li&gt;Now you don't need to configure the redirect page in PagSeguro panel: it's automatic*&lt;/li&gt;&#xD;
26
  &lt;li&gt;You can choose if the orders will be automatically invoiced, holded or canceled by the module&lt;/li&gt;&#xD;
27
  &lt;/ul&gt;&#xD;
28
- &lt;p&gt;&lt;/p&gt;&#xD;
29
  &#xD;
30
  &lt;p&gt;And so much more! Take a look!&lt;/p&gt;&#xD;
31
  &#xD;
32
  * It's necessary to setup PagSeguro to accept only API transactions in PagSeguro customer panel.&#xD;
33
  &#xD;
34
- &lt;hr&gt;&#xD;
 
 
35
  &#xD;
36
  &lt;p&gt;&#xD;
37
  O novo m&#xF3;dulo para integra&#xE7;&#xE3;o do Magento com a API do PagSeguro est&#xE1; cheio de novidades!&#xD;
@@ -41,25 +42,31 @@ Com o PagSeguroApi by Os Studios voc&#xEA; ser&#xE1; capaz de integrar sua loja
41
  &lt;p&gt;&lt;strong&gt;Veja abaixo algumas das novidades:&lt;/strong&gt;&lt;/p&gt;&#xD;
42
  &#xD;
43
  &lt;p&gt;&#xD;
44
- &lt;/p&gt;&lt;ul&gt;&#xD;
45
  &lt;li&gt;Remo&#xE7;&#xE3;o da p&#xE1;gina intermedi&#xE1;rio com a mensagem "Voc&#xEA; ser&#xE1; redirecionado ao site do PagSeguro"&lt;/li&gt;&#xD;
46
  &lt;li&gt;Voc&#xEA; ter&#xE1; um painel administrativo de log aonde poder&#xE1; ver todas as consultas feitas e notifica&#xE7;&#xF5;es enviadas pelo PagSeguro&lt;/li&gt;&#xD;
47
  &lt;li&gt;Voc&#xEA; poder&#xE1; fazer a consulta dos pedidos de at&#xE9; 30 dias anterioes&lt;/li&gt;&#xD;
48
  &lt;li&gt;N&#xE3;o &#xE9; necess&#xE1;rio configurar a p&#xE1;gina de redirecionamento no painel do PagSeguro, pois foi implementada uma p&#xE1;gina de redirecionamento din&#xE2;mica*&lt;/li&gt;&#xD;
49
  &lt;li&gt;Agora voc&#xEA; escolhe se os pedidos ser&#xE3;o faturados, congelados ou cancelados automaticamente pelo m&#xF3;dulo&lt;/li&gt;&#xD;
50
  &lt;/ul&gt;&#xD;
51
- &lt;p&gt;&lt;/p&gt;&#xD;
52
  &#xD;
53
  &lt;p&gt;E muito mais! Confira!&lt;/p&gt;&#xD;
54
  &#xD;
55
  * &#xC9; necess&#xE1;rio configurar o PagSeguro para aceitar apenas transa&#xE7;&#xF5;es via API.</description>
56
- <notes>Fixed Bugs&#xD;
57
  &#xD;
58
- - Corrected translations</notes>
59
- <authors><author><name>Tiago Sampaio</name><user>tiagosampaio</user><email>tiago.sampaio@osstudios.com.br</email></author></authors>
60
- <date>2013-05-04</date>
61
- <time>21:53:27</time>
62
- <contents><target name="magecommunity"><dir name="OsStudios"><dir name="PagSeguroApi"><dir name="Block"><dir name="Adminhtml"><dir name="Transaction"><file name="Grid.php" hash="a438969228b818ce32ff5d823d86a961"/></dir><file name="Transaction.php" hash="f55424b92529ff2b8c1b01d40c736288"/></dir><dir name="Api"><file name="Form.php" hash="a9f4868afa280d3b65405d5ad1652643"/><file name="Info.php" hash="18e5f655fe1dbd757cae6352cf98fdc1"/><file name="Installments.php" hash="9f4c1952f3e1b0b6f4c17472b3f15169"/><file name="Success.php" hash="5db8d1091ade7123af4acdb947dc9d23"/></dir></dir><dir name="Controller"><dir name="Adminhtml"><file name="Action.php" hash="89d2d0198afcc5fa8de2719cfbfa9494"/></dir><dir name="Front"><file name="Action.php" hash="dbcc3d9d1244b1128f61dedb38021ace"/></dir></dir><dir name="Helper"><file name="Data.php" hash="63f2320f4c7aebd375dd99f2e9666e86"/><file name="Visie.php" hash="824cf37c63d0fc497b25ad96e0cd0994"/></dir><dir name="Model"><file name="Abstract.php" hash="a5aef6993a8e16c5dd88d955906b0b8b"/><file name="Consulter.php" hash="5c25ff86326446ad4857046448900787"/><file name="Credentials.php" hash="59bceca387245280be81517bfb634cec"/><file name="Data.php" hash="4f139eab7c0e42710c3332db14ff0b35"/><dir name="Mysql4"><dir name="Payment"><dir name="History"><file name="Collection.php" hash="11c8648fcdc754a044b34a323120af85"/></dir><file name="History.php" hash="0618029aba8b7fe0f87aebf0600799c5"/></dir><dir name="Returns"><dir name="Transaction"><file name="Collection.php" hash="8c300445dc4f8c561e597ee9b1763ac0"/></dir><file name="Transaction.php" hash="a5b57527e2fd1a437e025ff206fabc70"/></dir></dir><file name="Observer.php" hash="eeba7d441f7d4f0ae0fc499db98dc3bf"/><dir name="Payment"><file name="History.php" hash="7112c8650830a337ac91718dfe3e6349"/><dir name="Method"><dir name="Api"><file name="Xml.php" hash="d33f502e4aadf0195b177b9dedd05690"/></dir><file name="Api.php" hash="89f6d3a2a1d91f5af1e4da007fbe344c"/></dir></dir><file name="Payment.php" hash="101fb3cd591c070b89aaa243a3cfc153"/><dir name="Resource"><dir name="Payment"><dir name="History"><file name="Collection.php" hash="329bcc58751e14b640e3d1b8c727a994"/></dir><file name="History.php" hash="0c8f78f4c21bd8e9621041ca0ccadfb0"/></dir><dir name="Returns"><dir name="Transaction"><file name="Collection.php" hash="2567d3b30cc3860f3e93bbaa5e62096d"/></dir><file name="Transaction.php" hash="456db82eb7cc61aa6eb9e856ca5f18e2"/></dir></dir><dir name="Returns"><file name="Transaction.php" hash="e02492a4d9c61c1f72b96fb2c3029bdb"/></dir><file name="Returns.php" hash="04a106a3966dced44e8e5a8eb921217c"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Config.php" hash="63aa7dd2805cd1fe3f19aa4ccd1b8602"/><dir name="Error"><file name="Codes.php" hash="ad905374b5e9ad09e7793dab32dbb3e5"/></dir><dir name="Shipping"><file name="Type.php" hash="5699c4a2973f0e33a8effb1239a77492"/></dir><dir name="Transaction"><dir name="Payment"><dir name="Methods"><file name="Codes.php" hash="d863e2f9772de9959b3ce785df36e8d2"/><file name="Types.php" hash="2137324a473da7267c03c67432e6641d"/></dir></dir><file name="Sources.php" hash="db0c9497894d84dc5cd6620a78e88acf"/><file name="Status.php" hash="3f7263f546087f190a07afb0d5002cef"/><file name="Types.php" hash="0f78fc633fb95f62795a85f91f605956"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ActionsController.php" hash="4c70b0afbf6d9f0ca32dfeef74935ec9"/><file name="TransactionController.php" hash="be83d9d5c5451f82957eecee62b2c0bf"/></dir><file name="PayController.php" hash="0cbc73ee29cb2e06d2409086e028d0e8"/><file name="ReturnsController.php" hash="3cdfa76198965181c9b42be89cd7c5aa"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6b602630e00354a545d81625f42d5c1d"/><file name="config.xml" hash="24eeef14584720550b13a2ca41876dc5"/><file name="system.xml" hash="e597ab280a0f28550bb14d4bad5147bb"/></dir><dir name="sql"><dir name="pagseguroapi_setup"><file name="mysql4-install-1.0.0.0.php" hash="4cdb7970ccbaee3f3c8832b468f815c7"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OsStudios_PagSeguroApi.xml" hash="b002e963d42cdabbc0221b9cd688e138"/></dir></target><target name="magelocale"><dir name="pt_BR"><dir name="OsStudios"><file name="PagSeguroApi.csv" hash="83679c0fa1293d1a778efc934c84ce76"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="osstudios"><file name="pagseguroapi.xml" hash="2b6dcd4e87a39e9c35bfa12e38746dfb"/></dir></dir><dir name="template"><dir name="osstudios"><dir name="pagseguroapi"><file name="info.phtml" hash="b2f9f7797631edb32cb09be38dadfbb9"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="osstudios"><file name="pagseguroapi.xml" hash="2ad1a01422f3be4a86eb1fe136177d1b"/></dir></dir><dir name="template"><dir name="osstudios"><dir name="pagseguroapi"><file name="form.phtml" hash="05188cb5f3186d4eba7a1bd92f722762"/><file name="info.phtml" hash="3e1c34b8612fda60243ebf217d726338"/><file name="installments.phtml" hash="4b5b338c3bd3b7e83f2197176bbb8010"/><file name="success.phtml" hash="71d20b8543253c9a19cc2dc98024f0af"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="pagseguroapi"><file name="checkout.css" hash="43c548dbb2e93f06dcd8dd18c0a01868"/></dir></dir><dir name="images"><dir name="pagseguroapi"><file name="cards-sprite.gif" hash="f2f7adf6e43729bcd2f40ed63d14a384"/><file name="logo-pagseguro.gif" hash="60ac1276c27b4b400e1f15c42cc8b2ed"/></dir></dir></dir></dir></dir></target></contents>
 
 
 
 
 
 
63
  <compatible/>
64
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
65
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OsStudios_PagSeguroApi</name>
4
+ <version>1.0.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>The most powerful module for PagSeguro API integration!</summary>
10
+ <description>Download this extension in &lt;a href="https://github.com/tiagosampaio/PagSeguroApi-by-OsStudios"&gt;Github&lt;/a&gt;&#xD;
11
+ &#xD;
12
+ &lt;p&gt;&#xD;
 
13
  The newest module for Magento with UOL's PagSeguro new API system integration. It's full of new features!&#xD;
14
  With PagSeguroApi by Os Studios module you will be able to integrate your Magento Store with PagSeguro easily.&#xD;
15
  &lt;/p&gt;&#xD;
17
  &lt;p&gt;&lt;strong&gt;See below some of the new features:&lt;/strong&gt;&lt;/p&gt;&#xD;
18
  &#xD;
19
  &lt;p&gt;&#xD;
20
+ &lt;ul&gt;&#xD;
21
  &lt;li&gt;The blank page before redirect was removed and now you are redirected directly from the checkout page&lt;/li&gt;&#xD;
22
  &lt;li&gt;A new log panel where you can see all the notifications made by PagSeguro&lt;/li&gt;&#xD;
23
  &lt;li&gt;Now you can consult of orders up to 30 days old&lt;/li&gt;&#xD;
24
  &lt;li&gt;Now you don't need to configure the redirect page in PagSeguro panel: it's automatic*&lt;/li&gt;&#xD;
25
  &lt;li&gt;You can choose if the orders will be automatically invoiced, holded or canceled by the module&lt;/li&gt;&#xD;
26
  &lt;/ul&gt;&#xD;
27
+ &lt;/p&gt;&#xD;
28
  &#xD;
29
  &lt;p&gt;And so much more! Take a look!&lt;/p&gt;&#xD;
30
  &#xD;
31
  * It's necessary to setup PagSeguro to accept only API transactions in PagSeguro customer panel.&#xD;
32
  &#xD;
33
+ &lt;hr /&gt;&#xD;
34
+ &#xD;
35
+ Fa&#xE7;a o download dessa extens&#xE3;o no &lt;a href="https://github.com/tiagosampaio/PagSeguroApi-by-OsStudios"&gt;Github&lt;/a&gt;&#xD;
36
  &#xD;
37
  &lt;p&gt;&#xD;
38
  O novo m&#xF3;dulo para integra&#xE7;&#xE3;o do Magento com a API do PagSeguro est&#xE1; cheio de novidades!&#xD;
42
  &lt;p&gt;&lt;strong&gt;Veja abaixo algumas das novidades:&lt;/strong&gt;&lt;/p&gt;&#xD;
43
  &#xD;
44
  &lt;p&gt;&#xD;
45
+ &lt;ul&gt;&#xD;
46
  &lt;li&gt;Remo&#xE7;&#xE3;o da p&#xE1;gina intermedi&#xE1;rio com a mensagem "Voc&#xEA; ser&#xE1; redirecionado ao site do PagSeguro"&lt;/li&gt;&#xD;
47
  &lt;li&gt;Voc&#xEA; ter&#xE1; um painel administrativo de log aonde poder&#xE1; ver todas as consultas feitas e notifica&#xE7;&#xF5;es enviadas pelo PagSeguro&lt;/li&gt;&#xD;
48
  &lt;li&gt;Voc&#xEA; poder&#xE1; fazer a consulta dos pedidos de at&#xE9; 30 dias anterioes&lt;/li&gt;&#xD;
49
  &lt;li&gt;N&#xE3;o &#xE9; necess&#xE1;rio configurar a p&#xE1;gina de redirecionamento no painel do PagSeguro, pois foi implementada uma p&#xE1;gina de redirecionamento din&#xE2;mica*&lt;/li&gt;&#xD;
50
  &lt;li&gt;Agora voc&#xEA; escolhe se os pedidos ser&#xE3;o faturados, congelados ou cancelados automaticamente pelo m&#xF3;dulo&lt;/li&gt;&#xD;
51
  &lt;/ul&gt;&#xD;
52
+ &lt;/p&gt;&#xD;
53
  &#xD;
54
  &lt;p&gt;E muito mais! Confira!&lt;/p&gt;&#xD;
55
  &#xD;
56
  * &#xC9; necess&#xE1;rio configurar o PagSeguro para aceitar apenas transa&#xE7;&#xF5;es via API.</description>
57
+ <notes>Some bugfixes and implementations.&#xD;
58
  &#xD;
59
+ - Corrected some bugfixes&#xD;
60
+ - Some implmentations was made&#xD;
61
+ - Corrected Extra Amount Node in OsStudios_PagSeguroApi_Model_Payment_Method_Api_Xml class where extra amout node sometimes is empty.&#xD;
62
+ - The item description must have 100 characters only.&#xD;
63
+ - Sometimes the shipping address does not exists. Now if shipping address does not exist the billing address is used.&#xD;
64
+ - Sometimes the class OsStudios_PagSeguroApi_Model_System_Config_Source_Config throws an offset error in public method getNodeByAttribute.&#xD;
65
+ </notes>
66
+ <authors><author><name>Tiago Sampaio</name><user>tiagosampaio</user><email>tiago@tiagosampaio.com</email></author></authors>
67
+ <date>2013-12-08</date>
68
+ <time>15:19:22</time>
69
+ <contents><target name="magecommunity"><dir name="OsStudios"><dir name="PagSeguroApi"><dir name="Block"><dir name="Adminhtml"><dir name="Transaction"><file name="Grid.php" hash="a438969228b818ce32ff5d823d86a961"/></dir><file name="Transaction.php" hash="f55424b92529ff2b8c1b01d40c736288"/></dir><dir name="Api"><file name="Form.php" hash="a9f4868afa280d3b65405d5ad1652643"/><file name="Info.php" hash="18e5f655fe1dbd757cae6352cf98fdc1"/><file name="Installments.php" hash="9f4c1952f3e1b0b6f4c17472b3f15169"/><file name="Success.php" hash="5db8d1091ade7123af4acdb947dc9d23"/></dir></dir><dir name="Controller"><dir name="Adminhtml"><file name="Action.php" hash="89d2d0198afcc5fa8de2719cfbfa9494"/></dir><dir name="Front"><file name="Action.php" hash="dbcc3d9d1244b1128f61dedb38021ace"/></dir></dir><dir name="Helper"><file name="Data.php" hash="63f2320f4c7aebd375dd99f2e9666e86"/><file name="Visie.php" hash="824cf37c63d0fc497b25ad96e0cd0994"/></dir><dir name="Model"><file name="Abstract.php" hash="a5aef6993a8e16c5dd88d955906b0b8b"/><file name="Consulter.php" hash="5c25ff86326446ad4857046448900787"/><file name="Credentials.php" hash="59bceca387245280be81517bfb634cec"/><file name="Data.php" hash="4f139eab7c0e42710c3332db14ff0b35"/><dir name="Mysql4"><dir name="Payment"><dir name="History"><file name="Collection.php" hash="11c8648fcdc754a044b34a323120af85"/></dir><file name="History.php" hash="0618029aba8b7fe0f87aebf0600799c5"/></dir><dir name="Returns"><dir name="Transaction"><file name="Collection.php" hash="8c300445dc4f8c561e597ee9b1763ac0"/></dir><file name="Transaction.php" hash="a5b57527e2fd1a437e025ff206fabc70"/></dir></dir><file name="Observer.php" hash="eeba7d441f7d4f0ae0fc499db98dc3bf"/><dir name="Payment"><file name="History.php" hash="7112c8650830a337ac91718dfe3e6349"/><dir name="Method"><dir name="Api"><file name="Xml.php" hash="bf3987270387eb302f3e403c2853a376"/></dir><file name="Api.php" hash="aff2957080b5ad2995a4e7658dfde482"/></dir></dir><file name="Payment.php" hash="101fb3cd591c070b89aaa243a3cfc153"/><dir name="Resource"><dir name="Payment"><dir name="History"><file name="Collection.php" hash="329bcc58751e14b640e3d1b8c727a994"/></dir><file name="History.php" hash="0c8f78f4c21bd8e9621041ca0ccadfb0"/></dir><dir name="Returns"><dir name="Transaction"><file name="Collection.php" hash="2567d3b30cc3860f3e93bbaa5e62096d"/></dir><file name="Transaction.php" hash="456db82eb7cc61aa6eb9e856ca5f18e2"/></dir></dir><dir name="Returns"><file name="Transaction.php" hash="e02492a4d9c61c1f72b96fb2c3029bdb"/></dir><file name="Returns.php" hash="04a106a3966dced44e8e5a8eb921217c"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Config.php" hash="265abccff73b4ec6e62d41dde6ca8c33"/><dir name="Error"><file name="Codes.php" hash="ad905374b5e9ad09e7793dab32dbb3e5"/></dir><dir name="Shipping"><file name="Type.php" hash="5699c4a2973f0e33a8effb1239a77492"/></dir><dir name="Transaction"><dir name="Payment"><dir name="Methods"><file name="Codes.php" hash="d863e2f9772de9959b3ce785df36e8d2"/><file name="Types.php" hash="2137324a473da7267c03c67432e6641d"/></dir></dir><file name="Sources.php" hash="db0c9497894d84dc5cd6620a78e88acf"/><file name="Status.php" hash="3f7263f546087f190a07afb0d5002cef"/><file name="Types.php" hash="0f78fc633fb95f62795a85f91f605956"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ActionsController.php" hash="4c70b0afbf6d9f0ca32dfeef74935ec9"/><file name="TransactionController.php" hash="be83d9d5c5451f82957eecee62b2c0bf"/></dir><file name="PayController.php" hash="05af0d056ff54e8cea9070d8997ba635"/><file name="ReturnsController.php" hash="3cdfa76198965181c9b42be89cd7c5aa"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6b602630e00354a545d81625f42d5c1d"/><file name="config.xml" hash="ca8967d20160e6c9c70bfa143ac14452"/><file name="system.xml" hash="6985bebee521cb7f62f4edd4a17c4f35"/></dir><dir name="sql"><dir name="pagseguroapi_setup"><file name="mysql4-install-1.0.0.0.php" hash="4cdb7970ccbaee3f3c8832b468f815c7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="app"><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="osstudios"><file name="pagseguroapi.xml" hash=""/></dir></dir><dir name="template"><dir name="osstudios"><dir name="pagseguroapi"><file name="info.phtml" hash=""/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="osstudios"><file name="pagseguroapi.xml" hash=""/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="app"><dir name="etc"><dir name="modules"><file name="OsStudios_PagSeguroApi.xml" hash=""/></dir></dir></dir></target><target name="magelocale"><dir name="app"><dir name="locale"><dir name="pt_BR"><dir name="OsStudios"><file name="PagSeguroApi.csv" hash=""/></dir></dir></dir></dir></target></contents>
70
  <compatible/>
71
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
72
  </package>
skin/frontend/base/default/css/pagseguroapi/checkout.css DELETED
@@ -1,40 +0,0 @@
1
- .pagseguroapi-installments { overflow:auto; }
2
-
3
- .pagseguroapi-installments .payment-method-list { display:block; overflow:auto; margin-bottom:15px; }
4
- .pagseguroapi-installments .payment-method-list .payment-item { float:left; border:none; margin:2px; }
5
- .pagseguroapi-installments .payment-method-list .payment-item a.payment-link-flag { display:block; text-indent:-99999px; width:71px; height:28px; background:url('../../images/pagseguroapi/cards-sprite.gif') no-repeat white; border:none; }
6
-
7
- .pagseguroapi-installments .payment-method-list .payment-item a.visa { background-position:0 0; }
8
- .pagseguroapi-installments .payment-method-list .payment-item a.mastercard { background-position:0 -28px; }
9
- .pagseguroapi-installments .payment-method-list .payment-item a.diners { background-position:0 -56px; }
10
- .pagseguroapi-installments .payment-method-list .payment-item a.amex { background-position:0 -84px; }
11
- .pagseguroapi-installments .payment-method-list .payment-item a.hipercard { background-position:0 -112px; }
12
- .pagseguroapi-installments .payment-method-list .payment-item a.aura { background-position:0 -140px; }
13
- .pagseguroapi-installments .payment-method-list .payment-item a.elo { background-position:0 -476px; }
14
- .pagseguroapi-installments .payment-method-list .payment-item a.plenocard { background-position:0 -504px; }
15
- .pagseguroapi-installments .payment-method-list .payment-item a.personalcard { background-position:0 -532px; }
16
- .pagseguroapi-installments .payment-method-list .payment-item a.brasilcard { background-position:0 -560px; }
17
- .pagseguroapi-installments .payment-method-list .payment-item a.jcb { background-position:0 -588px; }
18
- .pagseguroapi-installments .payment-method-list .payment-item a.discover { background-position:0 -616px; }
19
- .pagseguroapi-installments .payment-method-list .payment-item a.fortbrasil { background-position:0 -644px; }
20
- .pagseguroapi-installments .payment-method-list .payment-item a.cardban { background-position:0 -672px; }
21
- .pagseguroapi-installments .payment-method-list .payment-item a.valecard { background-position:0 -700px; }
22
- .pagseguroapi-installments .payment-method-list .payment-item a.cabal { background-position:0 -728px; }
23
-
24
- .pagseguroapi-installments .payment-method-list .payment-item a.billet { background-position:0 -308px; }
25
-
26
- .pagseguroapi-installments .payment-method-list .payment-item a.bradesco { background-position:0 -168px; }
27
- .pagseguroapi-installments .payment-method-list .payment-item a.itau { background-position:0 -196px; }
28
- .pagseguroapi-installments .payment-method-list .payment-item a.hsbc { background-position:0 -224px; }
29
- .pagseguroapi-installments .payment-method-list .payment-item a.bb { background-position:0 -252px; }
30
-
31
- .pagseguroapi-installments .installment-table { border:solid 1px #ccc; }
32
- .pagseguroapi-installments .installment-table th,
33
- .pagseguroapi-installments .installment-table td { padding:2px 5px; border-bottom:solid 1px #efefef; }
34
-
35
- .pagseguroapi-installments .installment-table th { color:#5E8AB4; background-color:#D0DCE1; }
36
-
37
-
38
- .pagseguroapi-installments .installment-table .grandtotal,
39
- .pagseguroapi-installments .installment-table .totalvalue { text-align:right; }
40
- .pagseguroapi-installments .installment-table .qty { text-align:center; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/base/default/images/pagseguroapi/cards-sprite.gif DELETED
Binary file
skin/frontend/base/default/images/pagseguroapi/logo-pagseguro.gif DELETED
Binary file