Buscape_PagamentoDigital - Version 0.1.7

Version Notes

Buscapé Pagamento Digital é compatível com Magento Enterprise Edition 1.7.0.0 ou superior, Professional Edition 1.9.0.0 ou superior, e Magento Community Edition 1.3.3.0 ou superior.

Download this release

Release Info

Developer Magento Core Team
Extension Buscape_PagamentoDigital
Version 0.1.7
Comparing to
See all releases


Code changes from version 0.1.6 to 0.1.7

Files changed (37) hide show
  1. app/code/community/Buscape/PagamentoDigital/Block/Html/Head.php +2 -3
  2. app/code/community/Buscape/PagamentoDigital/Block/Info/Geral.php +48 -0
  3. app/code/community/Buscape/PagamentoDigital/Block/Info/Prazo.php +48 -0
  4. app/code/community/Buscape/PagamentoDigital/Block/Info/Vista.php +48 -0
  5. app/code/community/Buscape/PagamentoDigital/Block/Return.php +2 -1
  6. app/code/community/Buscape/PagamentoDigital/Helper/Data.php +1 -1
  7. app/code/community/Buscape/PagamentoDigital/Model/Geral.php +2 -0
  8. app/code/community/Buscape/PagamentoDigital/Model/Observer.php +38 -0
  9. app/code/community/Buscape/PagamentoDigital/Model/Prazo.php +2 -0
  10. app/code/community/Buscape/PagamentoDigital/Model/Source/Country.php +18 -0
  11. app/code/community/Buscape/PagamentoDigital/Model/Source/Specificcountries.php +18 -0
  12. app/code/community/Buscape/PagamentoDigital/Model/Standard.php +23 -12
  13. app/code/community/Buscape/PagamentoDigital/Model/Vista.php +2 -0
  14. app/code/community/Buscape/PagamentoDigital/controllers/StandardController.php +31 -4
  15. app/code/community/Buscape/PagamentoDigital/etc/config.xml +22 -2
  16. app/code/community/Buscape/PagamentoDigital/sql/pagamentodigital_setup/mysql4-install-0.1.7.php +19 -0
  17. app/design/adminhtml/default/default/template/buscape/pagamentodigital/form/geral.phtml +87 -0
  18. app/design/adminhtml/default/default/template/buscape/pagamentodigital/form/prazo.phtml +68 -0
  19. app/design/adminhtml/default/default/template/buscape/pagamentodigital/form/vista.phtml +62 -0
  20. app/design/adminhtml/default/default/template/buscape/pagamentodigital/info/geral.phtml +26 -0
  21. app/design/adminhtml/default/default/template/buscape/pagamentodigital/info/prazo.phtml +26 -0
  22. app/design/adminhtml/default/default/template/buscape/pagamentodigital/info/vista.phtml +26 -0
  23. app/design/frontend/base/default/template/buscape/pagamentodigital/form/geral.phtml +3 -3
  24. app/design/frontend/base/default/template/buscape/pagamentodigital/form/prazo.phtml +3 -3
  25. app/design/frontend/base/default/template/buscape/pagamentodigital/info/geral.phtml +26 -0
  26. app/design/frontend/base/default/template/buscape/pagamentodigital/info/prazo.phtml +26 -0
  27. app/design/frontend/base/default/template/buscape/pagamentodigital/info/vista.phtml +26 -0
  28. app/design/frontend/base/default/template/buscape/pagamentodigital/payment.phtml +4 -4
  29. app/design/frontend/base/default/template/buscape/pagamentodigital/return.phtml +2 -1
  30. app/design/frontend/default/default/template/buscape/pagamentodigital/form/geral.phtml +2 -2
  31. app/design/frontend/default/default/template/buscape/pagamentodigital/form/prazo.phtml +2 -2
  32. app/design/frontend/default/default/template/buscape/pagamentodigital/info/geral.phtml +26 -0
  33. app/design/frontend/default/default/template/buscape/pagamentodigital/info/prazo.phtml +26 -0
  34. app/design/frontend/default/default/template/buscape/pagamentodigital/info/vista.phtml +26 -0
  35. app/design/frontend/default/default/template/buscape/pagamentodigital/payment.phtml +4 -4
  36. app/design/frontend/default/default/template/buscape/pagamentodigital/return.phtml +2 -1
  37. package.xml +4 -4
app/code/community/Buscape/PagamentoDigital/Block/Html/Head.php CHANGED
@@ -20,11 +20,10 @@
20
 
21
  class Buscape_PagamentoDigital_Block_Html_Head extends Mage_Page_Block_Html_Head
22
  {
 
23
  protected function _construct()
24
  {
25
  $this->setTemplate('buscape/pagamentodigital/head.phtml');
26
  }
27
-
28
-
29
-
30
  }
20
 
21
  class Buscape_PagamentoDigital_Block_Html_Head extends Mage_Page_Block_Html_Head
22
  {
23
+
24
  protected function _construct()
25
  {
26
  $this->setTemplate('buscape/pagamentodigital/head.phtml');
27
  }
28
+
 
 
29
  }
app/code/community/Buscape/PagamentoDigital/Block/Info/Geral.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ class Buscape_PagamentoDigital_Block_Info_Geral extends Mage_Payment_Block_Info
22
+ {
23
+ protected function _construct()
24
+ {
25
+ parent::_construct();
26
+ $this->setTemplate('buscape/pagamentodigital/info/geral.phtml');
27
+ }
28
+
29
+ public function getLinkPayment($order)
30
+ {
31
+ if ($this->getRequest()->getRouteName() != 'checkout') {
32
+ $_order = $order;
33
+ $incrementid = $_order->getData('increment_id');
34
+ $quoteid = $_order->getData('quote_id');
35
+
36
+ $hash = Mage::getModel('core/encryption')->encrypt($incrementid . ":" . $quoteid);
37
+ $method = $_order->getPayment()->getMethod();
38
+
39
+ switch ($method) {
40
+ case 'pagamentodigital_geral':
41
+ case 'pagamentodigital_vista':
42
+ case 'pagamentodigital_prazo':
43
+ return '<span>Para efetuar o pagamento, <a href="' . Mage::getBaseUrl() . 'pagamentodigital/standard/paymentbackend/order/' . $hash . '">clique aqui</a>.</span>';
44
+ break;
45
+ }
46
+ }
47
+ }
48
+ }
app/code/community/Buscape/PagamentoDigital/Block/Info/Prazo.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ class Buscape_PagamentoDigital_Block_Info_Prazo extends Mage_Payment_Block_Info
22
+ {
23
+ protected function _construct()
24
+ {
25
+ parent::_construct();
26
+ $this->setTemplate('buscape/pagamentodigital/info/prazo.phtml');
27
+ }
28
+
29
+ public function getLinkPayment($order)
30
+ {
31
+ if ($this->getRequest()->getRouteName() != 'checkout') {
32
+ $_order = $order;
33
+ $incrementid = $_order->getData('increment_id');
34
+ $quoteid = $_order->getData('quote_id');
35
+
36
+ $hash = Mage::getModel('core/encryption')->encrypt($incrementid . ":" . $quoteid);
37
+ $method = $_order->getPayment()->getMethod();
38
+
39
+ switch ($method) {
40
+ case 'pagamentodigital_geral':
41
+ case 'pagamentodigital_vista':
42
+ case 'pagamentodigital_prazo':
43
+ return '<span>Para efetuar o pagamento, <a href="' . Mage::getBaseUrl() . 'pagamentodigital/standard/paymentbackend/order/' . $hash . '">clique aqui</a>.</span>';
44
+ break;
45
+ }
46
+ }
47
+ }
48
+ }
app/code/community/Buscape/PagamentoDigital/Block/Info/Vista.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ class Buscape_PagamentoDigital_Block_Info_Vista extends Mage_Payment_Block_Info
22
+ {
23
+ protected function _construct()
24
+ {
25
+ parent::_construct();
26
+ $this->setTemplate('buscape/pagamentodigital/info/vista.phtml');
27
+ }
28
+
29
+ public function getLinkPayment($order)
30
+ {
31
+ if ($this->getRequest()->getRouteName() != 'checkout') {
32
+ $_order = $order;
33
+ $incrementid = $_order->getData('increment_id');
34
+ $quoteid = $_order->getData('quote_id');
35
+
36
+ $hash = Mage::getModel('core/encryption')->encrypt($incrementid . ":" . $quoteid);
37
+ $method = $_order->getPayment()->getMethod();
38
+
39
+ switch ($method) {
40
+ case 'pagamentodigital_geral':
41
+ case 'pagamentodigital_vista':
42
+ case 'pagamentodigital_prazo':
43
+ return '<span>Para efetuar o pagamento, <a href="' . Mage::getBaseUrl() . 'pagamentodigital/standard/paymentbackend/order/' . $hash . '">clique aqui</a>.</span>';
44
+ break;
45
+ }
46
+ }
47
+ }
48
+ }
app/code/community/Buscape/PagamentoDigital/Block/Return.php CHANGED
@@ -20,9 +20,10 @@
20
 
21
  class Buscape_PagamentoDigital_Block_Return extends Mage_Core_Block_Template
22
  {
23
-
24
  protected function getReturn()
25
  {
26
 
27
  }
 
28
  }
20
 
21
  class Buscape_PagamentoDigital_Block_Return extends Mage_Core_Block_Template
22
  {
23
+
24
  protected function getReturn()
25
  {
26
 
27
  }
28
+
29
  }
app/code/community/Buscape/PagamentoDigital/Helper/Data.php CHANGED
@@ -128,5 +128,5 @@ class Buscape_Pagamentodigital_Helper_Data extends Mage_Core_Helper_Data
128
  'qty' => $qty,
129
  'amount' => (float)$amount,
130
  );
131
- }
132
  }
128
  'qty' => $qty,
129
  'amount' => (float)$amount,
130
  );
131
+ }
132
  }
app/code/community/Buscape/PagamentoDigital/Model/Geral.php CHANGED
@@ -26,6 +26,8 @@ class Buscape_PagamentoDigital_Model_Geral extends Buscape_PagamentoDigital_Mode
26
 
27
  protected $_blockType = 'pagamentodigital/geral';
28
 
 
 
29
  public function getOrderPlaceRedirectUrl()
30
  {
31
  return Mage::getUrl('pagamentodigital/standard/payment', array('_secure' => true, 'type' => 'geral'));
26
 
27
  protected $_blockType = 'pagamentodigital/geral';
28
 
29
+ protected $_infoBlockType = 'pagamentodigital/info_geral';
30
+
31
  public function getOrderPlaceRedirectUrl()
32
  {
33
  return Mage::getUrl('pagamentodigital/standard/payment', array('_secure' => true, 'type' => 'geral'));
app/code/community/Buscape/PagamentoDigital/Model/Observer.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ class Buscape_PagamentoDigital_Model_Observer extends Varien_Object
22
+ {
23
+ public function sendEmailFrontend()
24
+ {
25
+ $session = Mage::getSingleton('checkout/session');
26
+ $lastSuccessOrderId = $session->getData('last_real_order_id');
27
+
28
+ $order = Mage::getModel('sales/order')->loadByAttribute('increment_id',$lastSuccessOrderId);
29
+
30
+ $sendNewOrderEmail = Mage::getStoreConfig('sales_email/order/enabled');
31
+ if ($sendNewOrderEmail && !$order->getData('email_sent')) {
32
+ $order->sendNewOrderEmail();
33
+ $order->setEmailSent(true);
34
+ $order->save();
35
+ }
36
+ }
37
+
38
+ }
app/code/community/Buscape/PagamentoDigital/Model/Prazo.php CHANGED
@@ -26,6 +26,8 @@ class Buscape_PagamentoDigital_Model_Prazo extends Buscape_PagamentoDigital_Mode
26
 
27
  protected $_blockType = 'pagamentodigital/prazo';
28
 
 
 
29
  public function getOrderPlaceRedirectUrl()
30
  {
31
  return Mage::getUrl('pagamentodigital/standard/payment', array('_secure' => true, 'type' => 'prazo'));
26
 
27
  protected $_blockType = 'pagamentodigital/prazo';
28
 
29
+ protected $_infoBlockType = 'pagamentodigital/info_prazo';
30
+
31
  public function getOrderPlaceRedirectUrl()
32
  {
33
  return Mage::getUrl('pagamentodigital/standard/payment', array('_secure' => true, 'type' => 'prazo'));
app/code/community/Buscape/PagamentoDigital/Model/Source/Country.php CHANGED
@@ -1,4 +1,22 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  class Buscape_PagamentoDigital_Model_Source_Country
4
  {
1
  <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
 
21
  class Buscape_PagamentoDigital_Model_Source_Country
22
  {
app/code/community/Buscape/PagamentoDigital/Model/Source/Specificcountries.php CHANGED
@@ -1,4 +1,22 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  class Buscape_PagamentoDigital_Model_Source_Specificcountries
4
  {
1
  <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
 
21
  class Buscape_PagamentoDigital_Model_Source_Specificcountries
22
  {
app/code/community/Buscape/PagamentoDigital/Model/Standard.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Buscape
16
  * @package Buscape_PagamentoDigital
17
- * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
@@ -80,16 +80,6 @@ class Buscape_PagamentoDigital_Model_Standard extends Mage_Payment_Model_Method_
80
  return $this->getCheckout()->getQuote();
81
  }
82
 
83
- /**
84
- * Using internal pages for input payment data
85
- *
86
- * @return bool
87
- */
88
- public function canUseInternal()
89
- {
90
- return false;
91
- }
92
-
93
  /**
94
  * Using for multiple shipping address
95
  *
@@ -113,8 +103,12 @@ class Buscape_PagamentoDigital_Model_Standard extends Mage_Payment_Model_Method_
113
  {
114
  parent::validate();
115
  $currency_code = $this->getQuote()->getBaseCurrencyCode();
 
 
 
 
116
  if (!in_array($currency_code,$this->_allowCurrencyCode)) {
117
- Mage::throwException(Mage::helper('pagamentodigital')->__('A moeda selecionada ('.$currency_code.') não é compatível com o Pagamento Digital'));
118
  }
119
  return $this;
120
  }
@@ -170,6 +164,15 @@ class Buscape_PagamentoDigital_Model_Standard extends Mage_Payment_Model_Method_
170
  {
171
  $orderIncrementId = $this->getCheckout()->getLastRealOrderId();
172
 
 
 
 
 
 
 
 
 
 
173
  $order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
174
 
175
  $isOrderVirtual = $order->getIsVirtual();
@@ -184,6 +187,12 @@ class Buscape_PagamentoDigital_Model_Standard extends Mage_Payment_Model_Method_
184
 
185
  $shipping_description = $order->getData('shipping_description');
186
 
 
 
 
 
 
 
187
  $sArr = array(
188
  'email_loja' => $this->getConfigData('emailID'),
189
  'tipo_integracao' => "PAD",
@@ -200,6 +209,7 @@ class Buscape_PagamentoDigital_Model_Standard extends Mage_Payment_Model_Method_
200
  'email' => $a->getEmail(),
201
  'meio_pagamento' => $payment_type,
202
  'tipo_frete' => $shipping_description,
 
203
  );
204
 
205
  if ($items) {
@@ -220,6 +230,7 @@ class Buscape_PagamentoDigital_Model_Standard extends Mage_Payment_Model_Method_
220
  $i++;
221
  }
222
  $sArr["desconto"] = is_numeric( $discountAmount ) ? sprintf('%.2f',$discountAmount) : 0;
 
223
  }
224
 
225
  $totalArr = $order->getBaseGrandTotal();
14
  *
15
  * @category Buscape
16
  * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
80
  return $this->getCheckout()->getQuote();
81
  }
82
 
 
 
 
 
 
 
 
 
 
 
83
  /**
84
  * Using for multiple shipping address
85
  *
103
  {
104
  parent::validate();
105
  $currency_code = $this->getQuote()->getBaseCurrencyCode();
106
+ if (!$currency_code){
107
+ $session = Mage::getSingleton('adminhtml/session_quote');
108
+ $currency_code = $session->getQuote()->getBaseCurrencyCode();
109
+ }
110
  if (!in_array($currency_code,$this->_allowCurrencyCode)) {
111
+ Mage::throwException(Mage::helper('pagamentodigital')->__('A moeda selecionada ('.$currency_code.') não é compatível com o Pagamento Digital'));
112
  }
113
  return $this;
114
  }
164
  {
165
  $orderIncrementId = $this->getCheckout()->getLastRealOrderId();
166
 
167
+ if (!$orderIncrementId) {
168
+ $quoteidbackend = $this->getCheckout()->getData('pagamentodigital_quote_id');
169
+ $order = Mage::getModel('sales/order')->loadByAttribute('quote_id', $quoteidbackend);
170
+ $orderIncrementId = $order->getData('increment_id');
171
+ }
172
+ else {
173
+ $order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
174
+ }
175
+
176
  $order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
177
 
178
  $isOrderVirtual = $order->getIsVirtual();
187
 
188
  $shipping_description = $order->getData('shipping_description');
189
 
190
+ if (Mage::getStoreConfig('dev/buscape_connect/pdidplataforma')) {
191
+ $pdidplataforma = Mage::getStoreConfig('dev/buscape_connect/pdidplataforma');
192
+ } else {
193
+ $pdidplataforma = '461'; /* ID plataforma Pagamento Digital (Magento) */
194
+ }
195
+
196
  $sArr = array(
197
  'email_loja' => $this->getConfigData('emailID'),
198
  'tipo_integracao' => "PAD",
209
  'email' => $a->getEmail(),
210
  'meio_pagamento' => $payment_type,
211
  'tipo_frete' => $shipping_description,
212
+ 'id_plataforma' => $pdidplataforma
213
  );
214
 
215
  if ($items) {
230
  $i++;
231
  }
232
  $sArr["desconto"] = is_numeric( $discountAmount ) ? sprintf('%.2f',$discountAmount) : 0;
233
+ $sArr["acrescimo"] = is_numeric( $order->getData("base_tax_amount") ) ? sprintf('%.2f',$order->getData("base_tax_amount")) : 0;
234
  }
235
 
236
  $totalArr = $order->getBaseGrandTotal();
app/code/community/Buscape/PagamentoDigital/Model/Vista.php CHANGED
@@ -26,6 +26,8 @@ class Buscape_PagamentoDigital_Model_Vista extends Buscape_PagamentoDigital_Mode
26
 
27
  protected $_blockType = 'pagamentodigital/vista';
28
 
 
 
29
  public function getOrderPlaceRedirectUrl()
30
  {
31
  return Mage::getUrl('pagamentodigital/standard/payment', array('_secure' => true, 'type' => 'vista'));
26
 
27
  protected $_blockType = 'pagamentodigital/vista';
28
 
29
+ protected $_infoBlockType = 'pagamentodigital/info_vista';
30
+
31
  public function getOrderPlaceRedirectUrl()
32
  {
33
  return Mage::getUrl('pagamentodigital/standard/payment', array('_secure' => true, 'type' => 'vista'));
app/code/community/Buscape/PagamentoDigital/controllers/StandardController.php CHANGED
@@ -40,6 +40,34 @@ class Buscape_PagamentoDigital_StandardController extends Mage_Core_Controller_F
40
  $this->renderLayout();
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  public function errorAction()
44
  {
45
  $this->loadLayout();
@@ -83,7 +111,6 @@ class Buscape_PagamentoDigital_StandardController extends Mage_Core_Controller_F
83
  */
84
  public function redirectAction()
85
  {
86
-
87
  /*
88
  * caso precise para identificar o tipo de modelo.
89
  * Ex: $this->getResponse()->setBody($this->getLayout()->createBlock('pagamentodigital/redirect_{$type}}')->toHtml());
@@ -94,7 +121,7 @@ class Buscape_PagamentoDigital_StandardController extends Mage_Core_Controller_F
94
  $session = Mage::getSingleton('checkout/session');
95
 
96
  $session->setPagamentodigitalQuoteId($session->getQuoteId());
97
-
98
  $this->getResponse()->setHeader("Content-Type", "text/html; charset=ISO-8859-1", true);
99
 
100
  $this->getResponse()->setBody($this->getLayout()->createBlock('pagamentodigital/redirect')->toHtml());
@@ -131,8 +158,8 @@ class Buscape_PagamentoDigital_StandardController extends Mage_Core_Controller_F
131
  * variables. However, you don't want to "process" the order until you
132
  * get validation from the return post.
133
  */
134
- public function successAction() {
135
-
136
  $_type = $this->getRequest()->getParam('type', false);
137
 
138
  //$token = $this->getApi()->getConfigData('token');
40
  $this->renderLayout();
41
  }
42
 
43
+ public function paymentbackendAction()
44
+ {
45
+ $this->loadLayout();
46
+ $this->renderLayout();
47
+
48
+ $hash = explode("/order/", $this->getRequest()->getOriginalRequest()->getRequestUri());
49
+ $hashdecode = explode(":", Mage::getModel('core/encryption')->decrypt($hash[1]));
50
+
51
+ $order = Mage::getModel('sales/order')
52
+ ->getCollection()
53
+ ->addFieldToFilter('increment_id', $hashdecode[0])
54
+ ->addFieldToFilter('quote_id', $hashdecode[1])
55
+ ->fetchItem();
56
+
57
+ if ($order) {
58
+ $session = Mage::getSingleton('checkout/session');
59
+ $session->setLastQuoteId($order->getData('quote_id'));
60
+ $session->setLastOrderId($order->getData('entity_id'));
61
+ $session->setLastSuccessQuoteId($order->getData('quote_id'));
62
+ $session->setLastRealOrderId($order->getData('increment_id'));
63
+ $session->setPagamentodigitalQuoteId($order->getData('quote_id'));
64
+ $this->_redirect('pagamentodigital/standard/payment/type/geral');
65
+ } else {
66
+ Mage::getSingleton('checkout/session')->addError('URL informada é inválida!');
67
+ $this->_redirect('checkout/cart');
68
+ }
69
+ }
70
+
71
  public function errorAction()
72
  {
73
  $this->loadLayout();
111
  */
112
  public function redirectAction()
113
  {
 
114
  /*
115
  * caso precise para identificar o tipo de modelo.
116
  * Ex: $this->getResponse()->setBody($this->getLayout()->createBlock('pagamentodigital/redirect_{$type}}')->toHtml());
121
  $session = Mage::getSingleton('checkout/session');
122
 
123
  $session->setPagamentodigitalQuoteId($session->getQuoteId());
124
+
125
  $this->getResponse()->setHeader("Content-Type", "text/html; charset=ISO-8859-1", true);
126
 
127
  $this->getResponse()->setBody($this->getLayout()->createBlock('pagamentodigital/redirect')->toHtml());
158
  * variables. However, you don't want to "process" the order until you
159
  * get validation from the return post.
160
  */
161
+ public function successAction()
162
+ {
163
  $_type = $this->getRequest()->getParam('type', false);
164
 
165
  //$token = $this->getApi()->getConfigData('token');
app/code/community/Buscape/PagamentoDigital/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <Buscape_PagamentoDigital>
25
- <version>0.1.6</version>
26
  </Buscape_PagamentoDigital>
27
  </modules>
28
  <global>
@@ -67,6 +67,26 @@
67
  <class>Buscape_PagamentoDigital_Helper</class>
68
  </pagamentodigital>
69
  </helpers>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  </global>
71
  <frontend>
72
  <secure_url>
@@ -77,7 +97,7 @@
77
  <use>standard</use>
78
  <args>
79
  <module>Buscape_PagamentoDigital</module>
80
- <frontName>Buscape_PagamentoDigital</frontName>
81
  </args>
82
  </pagamentodigital>
83
  </routers>
22
  <config>
23
  <modules>
24
  <Buscape_PagamentoDigital>
25
+ <version>0.1.7</version>
26
  </Buscape_PagamentoDigital>
27
  </modules>
28
  <global>
67
  <class>Buscape_PagamentoDigital_Helper</class>
68
  </pagamentodigital>
69
  </helpers>
70
+ <events>
71
+ <checkout_onepage_controller_success_action>
72
+ <observers>
73
+ <pagamentodigital_observer>
74
+ <type>singleton</type>
75
+ <class>pagamentodigital/observer</class>
76
+ <method>sendEmailFrontend</method>
77
+ </pagamentodigital_observer>
78
+ </observers>
79
+ </checkout_onepage_controller_success_action>
80
+ <checkout_multishipping_controller_success_action>
81
+ <observers>
82
+ <pagamentodigital_observer>
83
+ <type>singleton</type>
84
+ <class>pagamentodigital/observer</class>
85
+ <method>sendEmailFrontend</method>
86
+ </pagamentodigital_observer>
87
+ </observers>
88
+ </checkout_multishipping_controller_success_action>
89
+ </events>
90
  </global>
91
  <frontend>
92
  <secure_url>
97
  <use>standard</use>
98
  <args>
99
  <module>Buscape_PagamentoDigital</module>
100
+ <frontName>pagamentodigital</frontName>
101
  </args>
102
  </pagamentodigital>
103
  </routers>
app/code/community/Buscape/PagamentoDigital/sql/pagamentodigital_setup/mysql4-install-0.1.7.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category Buscape
16
+ * @package Buscape_PagamentoDigital
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
app/design/adminhtml/default/default/template/buscape/pagamentodigital/form/geral.phtml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <fieldset class="form-list">
22
+ <?php
23
+ $_code = $this->getMethodCode();
24
+ $_standardPD = Mage::getSingleton('pagamentodigital/geral');
25
+
26
+ $totals = Mage::getSingleton('adminhtml/session_quote')->getQuote()->collectTotals();
27
+ ?>
28
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
29
+ <ul class="forma_pagamento">
30
+ <li style="float:left;width:350px;">
31
+ <ul>
32
+ <li><label class="required"><em>*</em> Selecione uma Forma de Pagamento </label></li>
33
+ </ul>
34
+ </li>
35
+ <li style="float:left;width:350px;">
36
+ <ul>
37
+ <li style="float:left;width:80px;">
38
+ <input type="radio" name="payment[cc_type]" value="10" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdgeral').value='YES';"/><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_boleto.gif" alt="Pagável em qualquer agência bancária, correios ou casas lotéricas até a data de vencimento." title="Pagável em qualquer agência bancária, correios ou casas lotéricas até a data de vencimento." />
39
+ </li>
40
+ <li style="float:left;width:80px;">
41
+ <input type="radio" name="payment[cc_type]" value="58" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_bb.gif" alt="Transferência on-line via Banco do Brasil" title="Transferência on-line via Banco do Brasil" />
42
+ </li>
43
+ <li style="float:left;width:80px;">
44
+ <input type="radio" name="payment[cc_type]" value="59" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_bradesco.gif" alt="Transferência on-line via Banco Bradesco" title="Transferência on-line via Banco Bradesco" />
45
+ </li>
46
+ <li style="float:left;width:80px;">
47
+ <input type="radio" name="payment[cc_type]" value="60" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_itau.gif" alt="Transferência on-line via Banco Itaú" title="Transferência on-line via Banco Itaú" />
48
+ </li>
49
+ </ul>
50
+ </li>
51
+ <li style="float:left;width:350px;">
52
+ <ul>
53
+ <li style="float:left;width:80px;">
54
+ <input type="radio" name="payment[cc_type]" value="1" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_visa.gif" alt="Visa" title="Visa" />
55
+
56
+ </li>
57
+ <li style="float:left;width:80px;">
58
+ <input type="radio" name="payment[cc_type]" value="2" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_master.gif" alt="Master" title="Master" />
59
+ </li>
60
+ <li style="float:left;width:80px;">
61
+ <input type="radio" name="payment[cc_type]" value="37" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_americans.gif" alt="American Express" title="American Express" />
62
+
63
+ </li>
64
+ <li style="float:left;width:80px;">
65
+ <input type="radio" name="payment[cc_type]" value="45" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_aura.gif" alt="Aura" title="Aura" />
66
+
67
+ </li>
68
+ <li style="float:left;width:80px;">
69
+ <input type="radio" name="payment[cc_type]" value="55" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_diners.gif" alt="Diners" title="Diners" />
70
+ </li>
71
+ <li style="float:left;width:80px;">
72
+ <input type="radio" name="payment[cc_type]" value="56" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdgeral').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_hipercard.gif" alt="Hipercard" title="Hipercard" />
73
+ </li>
74
+ </ul>
75
+ </li>
76
+ <li style="float:left;width:350px;">
77
+ <ul>
78
+ <li><input id="campo_obrigatorio_pdgeral" type="hidden" class="required-entry" /></li>
79
+ </ul>
80
+ </li>
81
+ <li style="clear:both;"></li>
82
+ <li id="simulador" style="display:none;">
83
+ <a href='javascript://' onclick="window.open('https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('grand_total') ?>&key=<?php echo $_standardPD->getConfigData('lojaID') ?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas') ?>','', 'top=110,left=180,width=430,height=340,maximize=no,toolbar=no, location=no,status=no,menubar=no,scrollbars=auto,scrolling=yes,resizable=no');" >Simulador de Parcelas</a>
84
+ </li>
85
+ </ul>
86
+ </ul>
87
+ </fieldset>
app/design/adminhtml/default/default/template/buscape/pagamentodigital/form/prazo.phtml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <fieldset class="form-list">
22
+ <?php
23
+ $_code = $this->getMethodCode();
24
+ $_standardPD = Mage::getSingleton('pagamentodigital/prazo');
25
+
26
+ $totals = Mage::getSingleton('adminhtml/session_quote')->getQuote()->collectTotals();
27
+ ?>
28
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
29
+ <ul class="forma_pagamento">
30
+ <li style="float:left;width:350px;">
31
+ <ul>
32
+ <li><label class="required"><em>*</em> Selecione uma Forma de Pagamento </label></li>
33
+ </ul>
34
+ </li>
35
+ <li style="float:left;width:350px;">
36
+ <ul>
37
+ <li style="float:left;width:80px;">
38
+ <input type="radio" name="payment[cc_type]" value="1" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdprazo').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_visa.gif" alt="Visa" title="Visa" />
39
+ </li>
40
+ <li style="float:left;width:80px;">
41
+ <input type="radio" name="payment[cc_type]" value="2" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdprazo').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_master.gif" alt="Master" title="Master" />
42
+ </li>
43
+ <li style="float:left;width:80px;">
44
+ <input type="radio" name="payment[cc_type]" value="37" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdprazo').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_americans.gif" alt="American Express" title="American Express" />
45
+ </li>
46
+ <li style="float:left;width:80px;">
47
+ <input type="radio" name="payment[cc_type]" value="45" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdprazo').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_aura.gif" alt="Aura" title="Aura" />
48
+ </li>
49
+ <li style="float:left;width:80px;">
50
+ <input type="radio" name="payment[cc_type]" value="55" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdprazo').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_diners.gif" alt="Diners" title="Diners" />
51
+ </li>
52
+ <li style="float:left;width:80px;">
53
+ <input type="radio" name="payment[cc_type]" value="56" onclick="document.getElementById('simulador').style.display = 'block';document.getElementById('campo_obrigatorio_pdprazo').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_hipercard.gif" alt="Hipercard" title="Hipercard" />
54
+ </li>
55
+ </ul>
56
+ </li>
57
+ <li style="float:left;width:350px;">
58
+ <ul>
59
+ <li><input id="campo_obrigatorio_pdprazo" type="hidden" class="required-entry" /></li>
60
+ </ul>
61
+ </li>
62
+ <li style="clear:both;"></li>
63
+ <li id="simulador" style="display:none;">
64
+ <a href='javascript://' onclick="window.open('https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('grand_total') ?>&key=<?php echo $_standardPD->getConfigData('lojaID') ?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas') ?>','', 'top=110,left=180,width=430,height=340,maximize=no,toolbar=no, location=no,status=no,menubar=no,scrollbars=auto,scrolling=yes,resizable=no');" >Simulador de Parcelas</a>
65
+ </li>
66
+ </ul>
67
+ </ul>
68
+ </fieldset>
app/design/adminhtml/default/default/template/buscape/pagamentodigital/form/vista.phtml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <fieldset class="form-list">
22
+ <?php
23
+ $_code = $this->getMethodCode();
24
+ $_standardPD = Mage::getSingleton('pagamentodigital/vista');
25
+
26
+ $totals = Mage::getSingleton('adminhtml/session_quote')->getQuote()->collectTotals();
27
+ ?>
28
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
29
+ <ul class="forma_pagamento">
30
+ <li style="float:left;width:350px;">
31
+ <ul>
32
+ <li><label class="required"><em>*</em> Selecione uma Forma de Pagamento </label></li>
33
+ </ul>
34
+ </li>
35
+ <li style="float:left;width:350px;">
36
+ <ul>
37
+ <li style="float:left;width:80px;">
38
+ <input type="radio" name="payment[cc_type]" value="10" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdvista').value='YES';"/><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_boleto.gif" alt="Pagável em qualquer agência bancária, correios ou casas lotéricas até a data de vencimento." title="Pagável em qualquer agência bancária, correios ou casas lotéricas até a data de vencimento." />
39
+ </li>
40
+ <li style="float:left;width:80px;">
41
+ <input type="radio" name="payment[cc_type]" value="58" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdvista').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_bb.gif" alt="Transferência on-line via Banco do Brasil" title="Transferência on-line via Banco do Brasil" />
42
+ </li>
43
+ <li style="float:left;width:80px;">
44
+ <input type="radio" name="payment[cc_type]" value="59" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdvista').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_bradesco.gif" alt="Transferência on-line via Banco Bradesco" title="Transferência on-line via Banco Bradesco" />
45
+ </li>
46
+ <li style="float:left;width:80px;">
47
+ <input type="radio" name="payment[cc_type]" value="60" onclick="document.getElementById('simulador').style.display = 'none';document.getElementById('campo_obrigatorio_pdvista').value='YES';" /><img src="https://www.pagamentodigital.com.br/webroot/img/img_meios/pagamento_itau.gif" alt="Transferência on-line via Banco Itaú" title="Transferência on-line via Banco Itaú" />
48
+ </li>
49
+ </ul>
50
+ </li>
51
+ <li style="float:left;width:350px;">
52
+ <ul>
53
+ <li><input id="campo_obrigatorio_pdvista" type="hidden" class="required-entry" /></li>
54
+ </ul>
55
+ </li>
56
+ <li style="clear:both;"></li>
57
+ <li id="simulador" style="display:none;">
58
+ <a href='javascript://' onclick="window.open('https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('grand_total') ?>&key=<?php echo $_standardPD->getConfigData('lojaID') ?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas') ?>','', 'top=110,left=180,width=430,height=340,maximize=no,toolbar=no, location=no,status=no,menubar=no,scrollbars=auto,scrolling=yes,resizable=no');" >Simulador de Parcelas</a>
59
+ </li>
60
+ </ul>
61
+ </ul>
62
+ </fieldset>
app/design/adminhtml/default/default/template/buscape/pagamentodigital/info/geral.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/adminhtml/default/default/template/buscape/pagamentodigital/info/prazo.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/adminhtml/default/default/template/buscape/pagamentodigital/info/vista.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/frontend/base/default/template/buscape/pagamentodigital/form/geral.phtml CHANGED
@@ -24,8 +24,8 @@
24
  $_standardPD = Mage::getSingleton('pagamentodigital/geral');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
- $shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
-
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
31
  <ul class="forma_pagamento">
@@ -82,7 +82,7 @@
82
  </li>
83
  <li style="clear:both;"></li>
84
  <li id="simulador" style="display:none;">
85
- <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('subtotal')+$shippingAmount?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="430" height="350" style="background:transparent; border:0px; overflow-y:hidden; overflow-x:hidden;" frameborder="0" /> </iframe>
86
  </li>
87
  </ul>
88
  </ul>
24
  $_standardPD = Mage::getSingleton('pagamentodigital/geral');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
+ //$shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
+
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
31
  <ul class="forma_pagamento">
82
  </li>
83
  <li style="clear:both;"></li>
84
  <li id="simulador" style="display:none;">
85
+ <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('grand_total')?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="530" height="350" style="background:transparent; border:0px; overflow-y:hidden; overflow-x:hidden;" frameborder="0" /> </iframe>
86
  </li>
87
  </ul>
88
  </ul>
app/design/frontend/base/default/template/buscape/pagamentodigital/form/prazo.phtml CHANGED
@@ -24,8 +24,8 @@
24
  $_standardPD = Mage::getSingleton('pagamentodigital/prazo');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
- $shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
-
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
31
  <ul class="forma_pagamento">
@@ -67,7 +67,7 @@
67
  </li>
68
 
69
  <li style="display:block;">
70
- <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('subtotal')+$shippingAmount?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="430" height="350" style="background:transparent; border:0px" frameborder="0" > </iframe>
71
  </li>
72
  </ul>
73
  </ul>
24
  $_standardPD = Mage::getSingleton('pagamentodigital/prazo');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
+ //$shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
+
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
31
  <ul class="forma_pagamento">
67
  </li>
68
 
69
  <li style="display:block;">
70
+ <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('grand_total')?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="530" height="350" style="background:transparent; border:0px" frameborder="0" > </iframe>
71
  </li>
72
  </ul>
73
  </ul>
app/design/frontend/base/default/template/buscape/pagamentodigital/info/geral.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/frontend/base/default/template/buscape/pagamentodigital/info/prazo.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/frontend/base/default/template/buscape/pagamentodigital/info/vista.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/frontend/base/default/template/buscape/pagamentodigital/payment.phtml CHANGED
@@ -21,7 +21,7 @@
21
 
22
  <style>
23
 
24
- #overlay{
25
  background-image: url(<?php echo $this->getSkinUrl('images/buscape/pagamentodigital/overlay.png')?>);
26
  display:block;
27
  position: absolute;
@@ -42,7 +42,7 @@
42
  Sua compra est&aacute; em processo de finaliza&ccedil;&atilde;o.<br />
43
  Caso a p&aacute;gina de finaliza&ccedil;&atilde;o de pagamento n&atilde;o se inicie automaticamente, <a href="#" id="pd_lightbox">Clique Aqui</a><br /><br />
44
  <object type="application/x-shockwave-flash" data="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" width="468" height="60"><param name="movie" value="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" /><param name="wmode" value="transparent"/></object>
45
- <div id="overlay">
46
  <center>
47
  <div id="lightbox" style="padding: 10px;background-color: #fff;width: 980px;margin-top: 50px" >
48
 
@@ -59,10 +59,10 @@
59
  <script type="text/javascript">
60
  document.getElementById('pd_form').setAttribute("target", "pd_frame");
61
  document.getElementById('pd_form').submit();
62
- document.getElementById('overlay').onclick = function (){
63
  this.style.display = "none";
64
  };
65
  document.getElementById('pd_lightbox').onclick = function (){
66
- document.getElementById('overlay').style.display = "block";
67
  };
68
  </script>
21
 
22
  <style>
23
 
24
+ #overlay-pd{
25
  background-image: url(<?php echo $this->getSkinUrl('images/buscape/pagamentodigital/overlay.png')?>);
26
  display:block;
27
  position: absolute;
42
  Sua compra est&aacute; em processo de finaliza&ccedil;&atilde;o.<br />
43
  Caso a p&aacute;gina de finaliza&ccedil;&atilde;o de pagamento n&atilde;o se inicie automaticamente, <a href="#" id="pd_lightbox">Clique Aqui</a><br /><br />
44
  <object type="application/x-shockwave-flash" data="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" width="468" height="60"><param name="movie" value="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" /><param name="wmode" value="transparent"/></object>
45
+ <div id="overlay-pd">
46
  <center>
47
  <div id="lightbox" style="padding: 10px;background-color: #fff;width: 980px;margin-top: 50px" >
48
 
59
  <script type="text/javascript">
60
  document.getElementById('pd_form').setAttribute("target", "pd_frame");
61
  document.getElementById('pd_form').submit();
62
+ document.getElementById('overlay-pd').onclick = function (){
63
  this.style.display = "none";
64
  };
65
  document.getElementById('pd_lightbox').onclick = function (){
66
+ document.getElementById('overlay-pd').style.display = "block";
67
  };
68
  </script>
app/design/frontend/base/default/template/buscape/pagamentodigital/return.phtml CHANGED
@@ -18,6 +18,7 @@
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
 
21
  <script type="text/javascript">
22
  parent.window.location = "<?php echo Mage::getUrl('checkout/onepage/success', array('_secure' => true));?>";
23
- </script>
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
+
22
  <script type="text/javascript">
23
  parent.window.location = "<?php echo Mage::getUrl('checkout/onepage/success', array('_secure' => true));?>";
24
+ </script>
app/design/frontend/default/default/template/buscape/pagamentodigital/form/geral.phtml CHANGED
@@ -24,7 +24,7 @@
24
  $_standardPD = Mage::getSingleton('pagamentodigital/geral');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
- $shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
 
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
@@ -82,7 +82,7 @@
82
  </li>
83
  <li style="clear:both;"></li>
84
  <li id="simulador" style="display:none;">
85
- <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('subtotal')+$shippingAmount?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="430" height="350" style="background:transparent; border:0px; overflow-y:hidden; overflow-x:hidden;" frameborder="0" /> </iframe>
86
  </li>
87
  </ul>
88
  </ul>
24
  $_standardPD = Mage::getSingleton('pagamentodigital/geral');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
+ //$shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
 
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
82
  </li>
83
  <li style="clear:both;"></li>
84
  <li id="simulador" style="display:none;">
85
+ <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('grand_total')?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="530" height="350" style="background:transparent; border:0px; overflow-y:hidden; overflow-x:hidden;" frameborder="0" /> </iframe>
86
  </li>
87
  </ul>
88
  </ul>
app/design/frontend/default/default/template/buscape/pagamentodigital/form/prazo.phtml CHANGED
@@ -24,7 +24,7 @@
24
  $_standardPD = Mage::getSingleton('pagamentodigital/prazo');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
- $shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
 
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
@@ -67,7 +67,7 @@
67
  </li>
68
 
69
  <li style="display:block;">
70
- <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('subtotal')+$shippingAmount?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="430" height="350" style="background:transparent; border:0px" frameborder="0" > </iframe>
71
  </li>
72
  </ul>
73
  </ul>
24
  $_standardPD = Mage::getSingleton('pagamentodigital/prazo');
25
 
26
  $totals = Mage::getSingleton('checkout/session')->getQuote()->collectTotals();
27
+ //$shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
28
 
29
  ?>
30
  <ul id="payment_form_<?php echo $_code ?>" style="display:none">
67
  </li>
68
 
69
  <li style="display:block;">
70
+ <iframe src="https://www.pagamentodigital.com.br/site/calcula_parcelamento_cliente.php?valor=<?php echo $totals->getData('grand_total')?>&key=<?php echo $_standardPD->getConfigData('lojaID')?>&nmp=<?php echo $_standardPD->getConfigData('qtdParcelas')?>" width="530" height="350" style="background:transparent; border:0px" frameborder="0" > </iframe>
71
  </li>
72
  </ul>
73
  </ul>
app/design/frontend/default/default/template/buscape/pagamentodigital/info/geral.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/frontend/default/default/template/buscape/pagamentodigital/info/prazo.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/frontend/default/default/template/buscape/pagamentodigital/info/vista.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte.developer@buscape-inc.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <p>
22
+ <strong>
23
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
24
+ </strong>
25
+ </p>
26
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
app/design/frontend/default/default/template/buscape/pagamentodigital/payment.phtml CHANGED
@@ -21,7 +21,7 @@
21
 
22
  <style>
23
 
24
- #overlay{
25
  background-image: url(<?php echo $this->getSkinUrl('images/buscape/pagamentodigital/overlay.png')?>);
26
  display:block;
27
  position: absolute;
@@ -42,7 +42,7 @@
42
  Sua compra est&aacute; em processo de finaliza&ccedil;&atilde;o.<br />
43
  Caso a p&aacute;gina de finaliza&ccedil;&atilde;o de pagamento n&atilde;o se inicie automaticamente, <a href="#" id="pd_lightbox">Clique Aqui</a><br /><br />
44
  <object type="application/x-shockwave-flash" data="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" width="468" height="60"><param name="movie" value="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" /><param name="wmode" value="transparent"/></object>
45
- <div id="overlay">
46
  <center>
47
  <div id="lightbox" style="padding: 10px;background-color: #fff;width: 980px;margin-top: 50px" >
48
 
@@ -59,10 +59,10 @@
59
  <script type="text/javascript">
60
  document.getElementById('pd_form').setAttribute("target", "pd_frame");
61
  document.getElementById('pd_form').submit();
62
- document.getElementById('overlay').onclick = function (){
63
  this.style.display = "none";
64
  };
65
  document.getElementById('pd_lightbox').onclick = function (){
66
- document.getElementById('overlay').style.display = "block";
67
  };
68
  </script>
21
 
22
  <style>
23
 
24
+ #overlay-pd{
25
  background-image: url(<?php echo $this->getSkinUrl('images/buscape/pagamentodigital/overlay.png')?>);
26
  display:block;
27
  position: absolute;
42
  Sua compra est&aacute; em processo de finaliza&ccedil;&atilde;o.<br />
43
  Caso a p&aacute;gina de finaliza&ccedil;&atilde;o de pagamento n&atilde;o se inicie automaticamente, <a href="#" id="pd_lightbox">Clique Aqui</a><br /><br />
44
  <object type="application/x-shockwave-flash" data="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" width="468" height="60"><param name="movie" value="https://www.pagamentodigital.com.br/site/banner/campanhas/_24x/05/PD_Institucional_468x60.swf?oas=https://www.pagamentodigital.com.br" /><param name="wmode" value="transparent"/></object>
45
+ <div id="overlay-pd">
46
  <center>
47
  <div id="lightbox" style="padding: 10px;background-color: #fff;width: 980px;margin-top: 50px" >
48
 
59
  <script type="text/javascript">
60
  document.getElementById('pd_form').setAttribute("target", "pd_frame");
61
  document.getElementById('pd_form').submit();
62
+ document.getElementById('overlay-pd').onclick = function (){
63
  this.style.display = "none";
64
  };
65
  document.getElementById('pd_lightbox').onclick = function (){
66
+ document.getElementById('overlay-pd').style.display = "block";
67
  };
68
  </script>
app/design/frontend/default/default/template/buscape/pagamentodigital/return.phtml CHANGED
@@ -18,6 +18,7 @@
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
 
21
  <script type="text/javascript">
22
  parent.window.location = "<?php echo Mage::getUrl('checkout/onepage/success', array('_secure' => true));?>";
23
- </script>
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
+
22
  <script type="text/javascript">
23
  parent.window.location = "<?php echo Mage::getUrl('checkout/onepage/success', array('_secure' => true));?>";
24
+ </script>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Buscape_PagamentoDigital</name>
4
- <version>0.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>O Pagamento Digital &#xE9; um servi&#xE7;o completo de solu&#xE7;&#xF5;es de pagamento. Com nossa tecnologia, temos um canal direto de comunica&#xE7;&#xE3;o com bancos e operadoras de cart&#xF5;es de cr&#xE9;dito ( Visa 12x, Mastercard 12x, American Express 12x, Aura 24x, Diners 12x, HiperCard 12x, Boleto Banc&#xE1;rio, Transfer&#xEA;ncia online para os bancos Ita&#xFA;, Bradesco e Banco do Brasil e tamb&#xE9;m com seu Saldo Virtual Pagamento Digital), fazendo com que todas as transa&#xE7;&#xF5;es no ambiente Pagamento Digital sejam seguras.</description>
11
  <notes>Buscap&#xE9; Pagamento Digital &#xE9; compat&#xED;vel com Magento Enterprise Edition 1.7.0.0 ou superior, Professional Edition 1.9.0.0 ou superior, e Magento Community Edition 1.3.3.0 ou superior.</notes>
12
  <authors><author><name>Buscap&#xE9; Developer</name><user>auto-converted</user><email>suporte.developer@buscape-inc.com</email></author></authors>
13
- <date>2012-03-27</date>
14
- <time>21:42:41</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Buscape_PagamentoDigital.xml" hash="4b7fff0bb6f034c600fb8fd084c5cf5a"/></dir></target><target name="magecommunity"><dir name="Buscape"><dir name="PagamentoDigital"><dir name="Block"><dir name="Form"><file name="Geral.php" hash="aeb083bfedc4bb426827fa3959eec112"/><file name="Prazo.php" hash="2dbf3b07ce78406141d2f6bb4adb0af3"/><file name="Vista.php" hash="a30e9c0f19f7118cf0a746870c36e1bd"/></dir><dir name="Html"><file name="Head.php" hash="10143716280477ef4e7cc352dfc43f3e"/></dir><file name="Error.php" hash="0957c100babdd4ebe41a195840e188bb"/><file name="Link.php" hash="e69fe88ec62ffe80bd7622d2c56dcb89"/><file name="Payment.php" hash="cbd3b51a41274e59ba8e11c844074e98"/><file name="Redirect.php" hash="c8776ddc29afba919ea0fd4fbf114a6b"/><file name="Return.php" hash="74fc99f0c684186bfc2cf3092274b220"/></dir><dir name="Helper"><file name="Data.php" hash="1196cb8e87d93e78eb6a268fe92198f8"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="a8981d3d42f9a483a0be3fbdada8df76"/></dir><dir name="Source"><file name="Country.php" hash="0d033ec4efd42bcb63907fa9b7353ef4"/><file name="Parcelas.php" hash="5660c43330b42a0fc5745c8337d93806"/><file name="Specificcountries.php" hash="a98269e5e803f0ec23cfa80c600c3dff"/></dir><file name="Config.php" hash="fa9f76aa9f500c07362d8aedea17f372"/><file name="Geral.php" hash="ce81da595c55fd5596d697fbd5856a9e"/><file name="Prazo.php" hash="6c455be1dfc19ab3c002c655bed71bd5"/><file name="Standard.php" hash="221c6b081027250970235024052398a9"/><file name="Vista.php" hash="3e4aac7e9d8ff41c08f765019db961ab"/></dir><dir name="controllers"><file name="StandardController.php" hash="b5302498fdf573aa251bb5db829a243a"/></dir><dir name="etc"><file name="config.xml" hash="981875edc232f626ef803420f733d34e"/><file name="system.xml" hash="3e5d25117eef38027969239ffad8c4ed"/></dir><dir name="sql"><dir name="pagamentodigital_setup"><file name="mysql4-install-0.1.0.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.1.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.2.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.3.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.4.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.5.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.6.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="buscape"><dir name="pagamentodigital"><dir name="form"><dir name="images"><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir><file name="geral.phtml" hash="2245e329eedfd5a77c6d76d55672e071"/><file name="prazo.phtml" hash="2356d01a3320748a090b39510c811462"/><file name="vista.phtml" hash="27cf545f7b163253ba124d9087f44cbe"/></dir><file name="error.phtml" hash="7b3cdbd94f67af52964f5f3cc84ee0d5"/><file name="head.phtml" hash="8498491865368b05b5f92f2eeb45a873"/><file name="payment.phtml" hash="e4fd8a48b5c8b887a09f78de7ac8ea24"/><file name="return.phtml" hash="25d12759d131c86cc81d2c19637d5f64"/></dir></dir></dir><dir name="layout"><file name="buscape_pagamentodigital.xml" hash="b47dfc53ad40fa4dc26e22798f686ef5"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="buscape"><dir name="pagamentodigital"><dir name="form"><file name="geral.phtml" hash="2245e329eedfd5a77c6d76d55672e071"/><file name="prazo.phtml" hash="2356d01a3320748a090b39510c811462"/><file name="vista.phtml" hash="27cf545f7b163253ba124d9087f44cbe"/></dir><file name="error.phtml" hash="7b3cdbd94f67af52964f5f3cc84ee0d5"/><file name="head.phtml" hash="8498491865368b05b5f92f2eeb45a873"/><file name="payment.phtml" hash="e4fd8a48b5c8b887a09f78de7ac8ea24"/><file name="return.phtml" hash="25d12759d131c86cc81d2c19637d5f64"/></dir></dir></dir><dir name="layout"><file name="buscape_pagamentodigital.xml" hash="b47dfc53ad40fa4dc26e22798f686ef5"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="buscape"><dir name="pagamentodigital"><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="buscape"><dir name="pagamentodigital"><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Buscape_PagamentoDigital</name>
4
+ <version>0.1.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>O Pagamento Digital &#xE9; um servi&#xE7;o completo de solu&#xE7;&#xF5;es de pagamento. Com nossa tecnologia, temos um canal direto de comunica&#xE7;&#xE3;o com bancos e operadoras de cart&#xF5;es de cr&#xE9;dito ( Visa 12x, Mastercard 12x, American Express 12x, Aura 24x, Diners 12x, HiperCard 12x, Boleto Banc&#xE1;rio, Transfer&#xEA;ncia online para os bancos Ita&#xFA;, Bradesco e Banco do Brasil e tamb&#xE9;m com seu Saldo Virtual Pagamento Digital), fazendo com que todas as transa&#xE7;&#xF5;es no ambiente Pagamento Digital sejam seguras.</description>
11
  <notes>Buscap&#xE9; Pagamento Digital &#xE9; compat&#xED;vel com Magento Enterprise Edition 1.7.0.0 ou superior, Professional Edition 1.9.0.0 ou superior, e Magento Community Edition 1.3.3.0 ou superior.</notes>
12
  <authors><author><name>Buscap&#xE9; Developer</name><user>auto-converted</user><email>suporte.developer@buscape-inc.com</email></author></authors>
13
+ <date>2012-05-28</date>
14
+ <time>21:08:41</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Buscape_PagamentoDigital.xml" hash="4b7fff0bb6f034c600fb8fd084c5cf5a"/></dir></target><target name="magecommunity"><dir name="Buscape"><dir name="PagamentoDigital"><dir name="Block"><dir name="Form"><file name="Geral.php" hash="aeb083bfedc4bb426827fa3959eec112"/><file name="Prazo.php" hash="2dbf3b07ce78406141d2f6bb4adb0af3"/><file name="Vista.php" hash="a30e9c0f19f7118cf0a746870c36e1bd"/></dir><dir name="Html"><file name="Head.php" hash="7c82df5bdad17c8dcdecd310ff21f71b"/></dir><dir name="Info"><file name="Geral.php" hash="0c602781dd150cf2f8d6cc80eab1aa64"/><file name="Prazo.php" hash="dea3d0b443b2ea8e5ff396f51baa1475"/><file name="Vista.php" hash="1edfd2e5588e25945ce3c3d76bb334a5"/></dir><file name="Error.php" hash="0957c100babdd4ebe41a195840e188bb"/><file name="Link.php" hash="e69fe88ec62ffe80bd7622d2c56dcb89"/><file name="Payment.php" hash="cbd3b51a41274e59ba8e11c844074e98"/><file name="Redirect.php" hash="c8776ddc29afba919ea0fd4fbf114a6b"/><file name="Return.php" hash="eb00737902add820311151fa7dd68576"/></dir><dir name="Helper"><file name="Data.php" hash="18cb654bcfe5066fed63e084e065f292"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="a8981d3d42f9a483a0be3fbdada8df76"/></dir><dir name="Source"><file name="Country.php" hash="59f550e14b47b7005a095bd660eeda66"/><file name="Parcelas.php" hash="5660c43330b42a0fc5745c8337d93806"/><file name="Specificcountries.php" hash="84beb8387ace1ef45f0b0176578b26dd"/></dir><file name="Config.php" hash="fa9f76aa9f500c07362d8aedea17f372"/><file name="Geral.php" hash="d85881310266dae4dfb285f8a4a6dc0c"/><file name="Observer.php" hash="5eb7a024bcfcda51fae9cf78c0ce20b7"/><file name="Prazo.php" hash="a198dfd0c0cffa02fe5dc475a2664ba2"/><file name="Standard.php" hash="b007231a98ae16518bd1b130a6b2e3d4"/><file name="Vista.php" hash="aac1bce4b09a14e8ac15e43b012bb7d2"/></dir><dir name="controllers"><file name="StandardController.php" hash="4d9655ec3574671ec0e3f8dcf993068f"/></dir><dir name="etc"><file name="config.xml" hash="e4487419bf508033dff2dc541bc2519a"/><file name="system.xml" hash="3e5d25117eef38027969239ffad8c4ed"/></dir><dir name="sql"><dir name="pagamentodigital_setup"><file name="mysql4-install-0.1.0.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.1.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.2.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.3.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.4.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.5.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.6.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/><file name="mysql4-install-0.1.7.php" hash="67aeb99814e07d2229f7595f7e4ca0bc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="buscape"><dir name="pagamentodigital"><dir name="form"><dir name="images"><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir><file name="geral.phtml" hash="ce3fa16c0bfc2ca3ae63759d19215b2a"/><file name="prazo.phtml" hash="721ac984cb966a7620cb12ff2cb0f258"/><file name="vista.phtml" hash="27cf545f7b163253ba124d9087f44cbe"/></dir><dir name="info"><file name="geral.phtml" hash="7f83ecd0f86cde9384607af382502fc7"/><file name="prazo.phtml" hash="1541597a9032477f3804ff8215c8c4ad"/><file name="vista.phtml" hash="7f83ecd0f86cde9384607af382502fc7"/></dir><file name="error.phtml" hash="7b3cdbd94f67af52964f5f3cc84ee0d5"/><file name="head.phtml" hash="8498491865368b05b5f92f2eeb45a873"/><file name="payment.phtml" hash="867a7d59bff596bde7d4d5738092995c"/><file name="return.phtml" hash="4382cac16c029073ec6cf072187282eb"/></dir></dir></dir><dir name="layout"><file name="buscape_pagamentodigital.xml" hash="b47dfc53ad40fa4dc26e22798f686ef5"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="buscape"><dir name="pagamentodigital"><dir name="form"><file name="geral.phtml" hash="014d53fee4c115f1830c196b754328d6"/><file name="prazo.phtml" hash="c25f06f0aed9f12894b0571a074c07f2"/><file name="vista.phtml" hash="27cf545f7b163253ba124d9087f44cbe"/></dir><dir name="info"><file name="geral.phtml" hash="7f83ecd0f86cde9384607af382502fc7"/><file name="prazo.phtml" hash="1541597a9032477f3804ff8215c8c4ad"/><file name="vista.phtml" hash="7f83ecd0f86cde9384607af382502fc7"/></dir><file name="error.phtml" hash="7b3cdbd94f67af52964f5f3cc84ee0d5"/><file name="head.phtml" hash="8498491865368b05b5f92f2eeb45a873"/><file name="payment.phtml" hash="867a7d59bff596bde7d4d5738092995c"/><file name="return.phtml" hash="4382cac16c029073ec6cf072187282eb"/></dir></dir></dir><dir name="layout"><file name="buscape_pagamentodigital.xml" hash="b47dfc53ad40fa4dc26e22798f686ef5"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="buscape"><dir name="pagamentodigital"><dir name="form"><file name="geral.phtml" hash="61e01be851ae7f70d4b618709c79723a"/><file name="prazo.phtml" hash="47fd0b49594342ed570aee7105277152"/><file name="vista.phtml" hash="a07b0027128ca3ec137fce74cc6343f4"/></dir><dir name="info"><file name="geral.phtml" hash="7f83ecd0f86cde9384607af382502fc7"/><file name="prazo.phtml" hash="1541597a9032477f3804ff8215c8c4ad"/><file name="vista.phtml" hash="7f83ecd0f86cde9384607af382502fc7"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="buscape"><dir name="pagamentodigital"><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="buscape"><dir name="pagamentodigital"><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>