Skip to content

Commit

Permalink
v.3.6.1
Browse files Browse the repository at this point in the history
- Pequena correção que impedia usuários do modulo PRO no modelo de assinatura de utilizar o Kiosk mode
- Correção na forma como as exceptions eram devolvidas para o cliente final no modo kiosk.
  • Loading branch information
r-martins committed Apr 20, 2018
1 parent 44a1f77 commit 42d37cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function preDispatch()
public function createOrderAction()
{
$kHelper = Mage::helper('ricardomartins_pagseguro/kiosk');
$pHelper = Mage::helper('ricardomartins_pagseguro');
if (!$kHelper->isActive()) {
return $this->redirectException($kHelper->__('Kiosk is not active.'));
}
Expand Down Expand Up @@ -76,13 +77,15 @@ public function createOrderAction()
'itemAmount1' => number_format($product->getFinalPrice(), 2, '.', ''),
'shippingAddressRequired' => false,
'redirectURL' => $successUrl,
'notificationURL' => Mage::getUrl('ricardomartins_pagseguro/notification')
'notificationURL' => Mage::getUrl('ricardomartins_pagseguro/notification'),
'email' => $pHelper->getMerchantEmail(),
'token' => $pHelper->getToken()
);

try{
$checkout = Mage::getModel('ricardomartins_pagseguro/abstract')->callApi($params, null, 'checkout');
}catch (Exception $e) {
$this->redirectException($e->getMessage());
return $this->redirectException($e->getMessage());
}

if(!isset($checkout->code)){
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/RicardoMartins/PagSeguro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<RicardoMartins_PagSeguro>
<version>3.6.0</version>
<version>3.6.1</version>
</RicardoMartins_PagSeguro>
</modules>
<global>
Expand Down

0 comments on commit 42d37cc

Please sign in to comment.