OsStudios_PagSeguro - Version 1.0.0.2

Version Notes

- Corrigido o script para o Google Analytics capturar as informações do pedido realizado na página de sucesso ao retorno do PagSeguro.

Agradecimentos especiais ao Lukao e kleintech pela solicitação desta correção.

Sugestões de melhorias serão sempre bem vindas.

Tiago Sampaio

Download this release

Release Info

Developer Tiago Sampaio
Extension OsStudios_PagSeguro
Version 1.0.0.2
Comparing to
See all releases


Code changes from version 1.0.0.1 to 1.0.0.2

app/code/community/OsStudios/PagSeguro/controllers/PayController.php CHANGED
@@ -118,6 +118,11 @@ class OsStudios_PagSeguro_PayController extends OsStudios_PagSeguro_Controller_F
118
  $this->_redirect($pagseguro->getConfigData('return_page', $storeId));
119
  } else {
120
  $this->loadLayout();
 
 
 
 
 
121
  $this->renderLayout();
122
  }
123
 
118
  $this->_redirect($pagseguro->getConfigData('return_page', $storeId));
119
  } else {
120
  $this->loadLayout();
121
+
122
+ $session = $this->getCheckout();
123
+ $lastOrderId = $session->getLastOrderId();
124
+ Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($lastOrderId)));
125
+
126
  $this->renderLayout();
127
  }
128
 
package.xml CHANGED
@@ -1,15 +1,12 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OsStudios_PagSeguro</name>
4
- <version>1.0.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">GNU General Public License (GPL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>New Module for PagSeguro UOL and Magento Commerce Integration.&#xD;
10
- _________________________________________________________&#xD;
11
- &#xD;
12
- Novo m&#xF3;dulo para integra&#xE7;&#xE3;o completa com PagSeguro da UOL.</summary>
13
  <description>Este &#xE9; mais novo m&#xF3;dulo para uma integra&#xE7;&#xE3;o completa com o sistema de pagamentos da UOL: O PagSeguro.&#xD;
14
  Com ele seus pedidos ser&#xE3;o automaticamente atualizados e voc&#xEA; poder&#xE1; ter um log de todos os retornos que o PagSeguro enviou.&#xD;
15
  Este m&#xF3;dulo inclui compatibilidade com os 3 tipos de retornos que o PagSeguro oferece atualmente: O retorno autom&#xE1;tico de dados, as notifica&#xE7;&#xF5;es via API e consulta por datas. Isso mesmo, agora voc&#xEA; mesmo pode consultar o status de seus pedidos no PagSeguro.&#xD;
@@ -18,18 +15,17 @@ A inten&#xE7;&#xE3;o &#xE9; melhorar este m&#xF3;dulo e trazer aos usu&#xE1;rios
18
  Mais novidades vir&#xE3;o em novas vers&#xF5;es do m&#xF3;dulo.&#xD;
19
  &#xD;
20
  Tiago Sampaio</description>
21
- <notes>Principais caracter&#xED;sticas desta vers&#xE3;o:&#xD;
22
- &#xD;
23
- Adicionado suporte &#xE1; vers&#xE3;o do php 5.0.0.&#xD;
24
  &#xD;
25
- Novas funcionalidades ser&#xE3;o implementadas em vers&#xF5;es futuras.&#xD;
26
- Por favor, mandem sugest&#xF5;es de melhorias.&#xD;
 
27
  &#xD;
28
  Tiago Sampaio</notes>
29
  <authors><author><name>Tiago Sampaio</name><user>tiagosampaio</user><email>tiago.sampaio@osstudios.com.br</email></author></authors>
30
- <date>2012-07-13</date>
31
- <time>02:33:52</time>
32
- <contents><target name="magecommunity"><dir name="OsStudios"><dir name="PagSeguro"><dir name="Block"><file name="Form.php" hash="85e0fe2291a2f552f8ffee3d5561cdd6"/><file name="Info.php" hash="48bea09184d59f6988d0227373ef7a6a"/><file name="Installments.php" hash="3d45ef51c55dbeed6c659de36674fd95"/><file name="Paylink.php" hash="a7470e6823f3315dd09fdfb0e67fb3aa"/><file name="Success.php" hash="1bd7869509fa55b5dcd846e71171d334"/></dir><dir name="Controller"><dir name="Front"><file name="Abstract.php" hash="3247a8eff971714f2ff48231a07acec0"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0da4017c42c01d3015f5ea55cf0431d1"/><file name="Visie.php" hash="2acce09b47957826fb6cbc8e2cb14a3c"/></dir><dir name="Model"><file name="Abstract.php" hash="2b312c44f3cd61c182ffe46b94a94889"/><file name="Credentials.php" hash="8549eb93ecdcedd57a3b069728628f45"/><file name="Data.php" hash="61eddf60cb710d9528a81a731a5bb411"/><file name="Hpp.php" hash="3d58ba66c3d8ea6871db1b15b69187c2"/><file name="Observer.php" hash="a8868681036d6458af2795b7061f8385"/><file name="Payment.php" hash="0436db471d26854d0f6b7a320b94c679"/><dir name="Returns"><file name="Orders.php" hash="7f4f5c93e51f6d731380c27858b241d0"/><dir name="Types"><file name="Abstract.php" hash="4202b796dcb5911707bbe271e0ab8766"/><file name="Api.php" hash="6a893399575730524eb3ba4873deeffd"/><file name="Consult.php" hash="6a70b87dfa80f576a661613b79a82f10"/><file name="Default.php" hash="4be1cd2c2dfc8190060345f6c8c9b675"/><dir name="Transactions"><file name="Transaction.php" hash="35f8808dcddb6f327746f39eddd5b6e8"/></dir></dir></dir><file name="Returns.php" hash="10562590c7edbd7819b7b86003f0b944"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Consult"><file name="Daysrange.php" hash="3ed461eebd5f2f3d3ae42504857c3b4d"/></dir><file name="Installments.php" hash="92b9f158728dddffa59019d55b02cd54"/><dir name="Log"><file name="Types.php" hash="d3531519b190e0292bf621d40a84d79e"/></dir><dir name="Order"><dir name="Status"><file name="Canceled.php" hash="915b1695727373e9406e943686554cac"/><file name="Paid.php" hash="68bab90c7deb65ebdf685066b7d1b891"/></dir></dir><file name="Returnpage.php" hash="043bb9e72a54689ed4a66bb42b5c80fd"/><dir name="Shipping"><file name="Price.php" hash="a4969209b222ba796bb02688ba1b8ec7"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReturnsController.php" hash="22f02655a4df65fe17cd9f5a8ca70730"/></dir><file name="PayController.php" hash="f4311fc72544cc190316b772d00ba2b7"/><file name="ReturnsController.php" hash="eae1c1a55cfdb32a75d3b752b133d875"/></dir><dir name="etc"><file name="adminhtml.xml" hash="93d02fa37ade1e290b0b9e38c403895f"/><file name="config.xml" hash="ca3479edd642367bfaa7a71a9e1ab8a1"/><file name="system.xml" hash="bf3c5debd8faf1bca988ab6f65ef3022"/></dir><dir name="sql"><dir name="pagseguro_setup"><file name="mysql4-install-1.0.0.0.php" hash="4662650efc35c4a18a5dcc83497a4259"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="osstudios_pagseguro.xml" hash="750ad708caea1153c14db343ebf238bc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="osstudios_pagseguro.xml" hash="cbde89eb22841640a304778253af56a6"/></dir><dir name="template"><dir name="osstudios"><dir name="pagseguro"><file name="form.phtml" hash="1f19cc8d7a52a34592ac1b69b1d8bcc4"/><file name="info.phtml" hash="be06a349d56803db37a36f5565f194f6"/><file name="installments.phtml" hash="efa44d37350bd7b6b72e54c45cbb20d0"/><file name="installments_template.phtml" hash="e524c238796b7508086beed3da683ad2"/><file name="paylink.phtml" hash="604895889e401ba8156308b5ad4892e9"/><file name="success.phtml" hash="dbb9f8b5fa4090a9c1b075647d473859"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="pt_BR"><file name="OsStudios_PagSeguro.csv" hash="67f110cb567bcffec97c6d83a14cbb76"/></dir></target><target name="mage"><dir name="."><dir name="app"><dir name="etc"><dir name="modules"><file name="OsStudios_PagSeguro.xml" hash="d1d8999b039ca46c553a83e80457d56c"/></dir></dir></dir></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>5.0.0</min><max>5.4.4</max></php></required></dependencies>
35
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OsStudios_PagSeguro</name>
4
+ <version>1.0.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">GNU General Public License (GPL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Novo m&#xF3;dulo para integra&#xE7;&#xE3;o completa com PagSeguro da UOL.</summary>
 
 
 
10
  <description>Este &#xE9; mais novo m&#xF3;dulo para uma integra&#xE7;&#xE3;o completa com o sistema de pagamentos da UOL: O PagSeguro.&#xD;
11
  Com ele seus pedidos ser&#xE3;o automaticamente atualizados e voc&#xEA; poder&#xE1; ter um log de todos os retornos que o PagSeguro enviou.&#xD;
12
  Este m&#xF3;dulo inclui compatibilidade com os 3 tipos de retornos que o PagSeguro oferece atualmente: O retorno autom&#xE1;tico de dados, as notifica&#xE7;&#xF5;es via API e consulta por datas. Isso mesmo, agora voc&#xEA; mesmo pode consultar o status de seus pedidos no PagSeguro.&#xD;
15
  Mais novidades vir&#xE3;o em novas vers&#xF5;es do m&#xF3;dulo.&#xD;
16
  &#xD;
17
  Tiago Sampaio</description>
18
+ <notes>- Corrigido o script para o Google Analytics capturar as informa&#xE7;&#xF5;es do pedido realizado na p&#xE1;gina de sucesso ao retorno do PagSeguro.&#xD;
 
 
19
  &#xD;
20
+ Agradecimentos especiais ao Lukao e kleintech pela solicita&#xE7;&#xE3;o desta corre&#xE7;&#xE3;o.&#xD;
21
+ &#xD;
22
+ Sugest&#xF5;es de melhorias ser&#xE3;o sempre bem vindas.&#xD;
23
  &#xD;
24
  Tiago Sampaio</notes>
25
  <authors><author><name>Tiago Sampaio</name><user>tiagosampaio</user><email>tiago.sampaio@osstudios.com.br</email></author></authors>
26
+ <date>2012-08-02</date>
27
+ <time>13:34:22</time>
28
+ <contents><target name="magecommunity"><dir name="OsStudios"><dir name="PagSeguro"><dir name="Block"><file name="Form.php" hash="85e0fe2291a2f552f8ffee3d5561cdd6"/><file name="Info.php" hash="48bea09184d59f6988d0227373ef7a6a"/><file name="Installments.php" hash="3d45ef51c55dbeed6c659de36674fd95"/><file name="Paylink.php" hash="a7470e6823f3315dd09fdfb0e67fb3aa"/><file name="Success.php" hash="1bd7869509fa55b5dcd846e71171d334"/></dir><dir name="Controller"><dir name="Front"><file name="Abstract.php" hash="3247a8eff971714f2ff48231a07acec0"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0da4017c42c01d3015f5ea55cf0431d1"/><file name="Visie.php" hash="2acce09b47957826fb6cbc8e2cb14a3c"/></dir><dir name="Model"><file name="Abstract.php" hash="2b312c44f3cd61c182ffe46b94a94889"/><file name="Credentials.php" hash="8549eb93ecdcedd57a3b069728628f45"/><file name="Data.php" hash="61eddf60cb710d9528a81a731a5bb411"/><file name="Hpp.php" hash="3d58ba66c3d8ea6871db1b15b69187c2"/><file name="Observer.php" hash="a8868681036d6458af2795b7061f8385"/><file name="Payment.php" hash="0436db471d26854d0f6b7a320b94c679"/><dir name="Returns"><file name="Orders.php" hash="7f4f5c93e51f6d731380c27858b241d0"/><dir name="Types"><file name="Abstract.php" hash="4202b796dcb5911707bbe271e0ab8766"/><file name="Api.php" hash="6a893399575730524eb3ba4873deeffd"/><file name="Consult.php" hash="6a70b87dfa80f576a661613b79a82f10"/><file name="Default.php" hash="4be1cd2c2dfc8190060345f6c8c9b675"/><dir name="Transactions"><file name="Transaction.php" hash="35f8808dcddb6f327746f39eddd5b6e8"/></dir></dir></dir><file name="Returns.php" hash="10562590c7edbd7819b7b86003f0b944"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Consult"><file name="Daysrange.php" hash="3ed461eebd5f2f3d3ae42504857c3b4d"/></dir><file name="Installments.php" hash="92b9f158728dddffa59019d55b02cd54"/><dir name="Log"><file name="Types.php" hash="d3531519b190e0292bf621d40a84d79e"/></dir><dir name="Order"><dir name="Status"><file name="Canceled.php" hash="915b1695727373e9406e943686554cac"/><file name="Paid.php" hash="68bab90c7deb65ebdf685066b7d1b891"/></dir></dir><file name="Returnpage.php" hash="043bb9e72a54689ed4a66bb42b5c80fd"/><dir name="Shipping"><file name="Price.php" hash="a4969209b222ba796bb02688ba1b8ec7"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ReturnsController.php" hash="22f02655a4df65fe17cd9f5a8ca70730"/></dir><file name="PayController.php" hash="c18a1ef989a1f9a8672d5b5413a84b99"/><file name="ReturnsController.php" hash="eae1c1a55cfdb32a75d3b752b133d875"/></dir><dir name="etc"><file name="adminhtml.xml" hash="93d02fa37ade1e290b0b9e38c403895f"/><file name="config.xml" hash="ca3479edd642367bfaa7a71a9e1ab8a1"/><file name="system.xml" hash="bf3c5debd8faf1bca988ab6f65ef3022"/></dir><dir name="sql"><dir name="pagseguro_setup"><file name="mysql4-install-1.0.0.0.php" hash="4662650efc35c4a18a5dcc83497a4259"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="osstudios_pagseguro.xml" hash="750ad708caea1153c14db343ebf238bc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="osstudios_pagseguro.xml" hash="cbde89eb22841640a304778253af56a6"/></dir><dir name="template"><dir name="osstudios"><dir name="pagseguro"><file name="form.phtml" hash="1f19cc8d7a52a34592ac1b69b1d8bcc4"/><file name="info.phtml" hash="be06a349d56803db37a36f5565f194f6"/><file name="installments.phtml" hash="efa44d37350bd7b6b72e54c45cbb20d0"/><file name="installments_template.phtml" hash="e524c238796b7508086beed3da683ad2"/><file name="paylink.phtml" hash="604895889e401ba8156308b5ad4892e9"/><file name="success.phtml" hash="dbb9f8b5fa4090a9c1b075647d473859"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="pt_BR"><file name="OsStudios_PagSeguro.csv" hash="67f110cb567bcffec97c6d83a14cbb76"/></dir></target><target name="mage"><dir name="."><dir name="app"><dir name="etc"><dir name="modules"><file name="OsStudios_PagSeguro.xml" hash="d1d8999b039ca46c553a83e80457d56c"/></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>5.0.0</min><max>5.4.4</max></php></required></dependencies>
31
  </package>