Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #78 from pagseguro/desenvolvimento
Browse files Browse the repository at this point in the history
fix: compatibility bug in checkout when using PHP 5.4
  • Loading branch information
s2it-moscou authored Jan 24, 2018
2 parents 602f8ed + 9d21635 commit f72d6bc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog
---------
3.5.1
- Corrigido bug de incompatibilidade com PHP 5.4 no checkout

3.5.0
- Não exibe meio de pagamento transparente na tela de checkout caso o mesmo não esteja habilitado ou configurado corretamente na conta do vendedor ou aplicação do PagSeguro configurada no módulo
- Exibe na interface administrativa o estado (ativo, inativo) dos meios de pagamento do checkout transparente da conta do PagSeguro configurada no módulo
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Com o módulo instalado e configurado, você pode pode oferecer o PagSeguro como
- Certifique-se de que não há instalação de outros módulos para o PagSeguro em seu sistema;
- Caso utilize a compilação do Magento, desative-a e limpe-a *(Sistema -> Ferramentas -> Compilação)*;
- Baixe a última versão do módulo **[nesse link](https://github.com/pagseguro/magento/raw/master/UOL_PagSeguro-3.5.0.tgz)** ou então baixe o repositório como arquivo zip através do botão do GitHub;
- Baixe a última versão do módulo **[nesse link](https://github.com/pagseguro/magento/raw/master/UOL_PagSeguro-3.5.1.tgz)** ou então baixe o repositório como arquivo zip através do botão do GitHub;
- Na área administrativa do seu Magento, acesse o menu *Sistema/System -> Magento Connect -> Magento Connect Manager*. Caso tenha uma versão anterior do módulo instalada faça a remoção agora;
- No Magento Connect Manger, dentro da seção Direct package file upload, clique em **Escolher arquivo/Choose file**, selecione o arquivo UOL_PagSeguro-x.x.x.tgz (baixado anteriormente), clique no botão de upload e acompanhe a instalação do módulo no console da página;
- Caso utilize a compilação, volte para a área administrativa do Magento, ative-a e execute-a novamente;
Expand Down
Binary file removed UOL_PagSeguro-3.5.0.tgz
Binary file not shown.
Binary file added UOL_PagSeguro-3.5.1.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public function defaultAction()
try {
/** @var Mage_Sales_Model_Order $order */
$order = Mage::getModel('sales/order')->load($this->getCheckout()->getLastOrderId());

if(empty($order->getData())) {
$orderData = $order->getData();
if(empty($orderData)) {
$this->norouteAction();
return;
}
Expand Down Expand Up @@ -125,7 +125,8 @@ public function directAction()
/** @var Mage_Sales_Model_Order $order */
$order = Mage::getModel('sales/order')->load($this->getCheckout()->getLastOrderId());

if(empty($order->getData())) {
$orderData = $order->getData();
if(empty($orderData)) {
$this->norouteAction();
return;
}
Expand Down Expand Up @@ -185,7 +186,8 @@ public function lightboxAction()
/** @var Mage_Sales_Model_Order $order */
$order = Mage::getModel('sales/order')->load($this->getCheckout()->getLastOrderId());

if(empty($order->getData())) {
$orderData = $order->getData();
if(empty($orderData)) {
$this->norouteAction();
return;
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/UOL/PagSeguro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
<config>
<modules>
<UOL_PagSeguro>
<version>3.5.0</version>
<version>3.5.1</version>
</UOL_PagSeguro>
</modules>
<global>
Expand Down

0 comments on commit f72d6bc

Please sign in to comment.