Icepay_IceAdvanced - Version 1.2.5

Version Notes

Bug Fixes:
- Configuration of payment methods bug fixed.

Download this release

Release Info

Developer ICEPAY
Extension Icepay_IceAdvanced
Version 1.2.5
Comparing to
See all releases


Code changes from version 1.2.4 to 1.2.5

Files changed (154) hide show
  1. app/code/community/Icepay/IceAdvanced/Block/Adminhtml/CheckSettings.php +0 -0
  2. app/code/community/Icepay/IceAdvanced/Block/Adminhtml/Grid/Paymentmethods.php +0 -0
  3. app/code/community/Icepay/IceAdvanced/Block/Adminhtml/Setting/Paymentmethod.php +0 -0
  4. app/code/community/Icepay/IceAdvanced/Block/Payment/Form/Default.php +57 -57
  5. app/code/community/Icepay/IceAdvanced/Helper/Data.php +1 -1
  6. app/code/community/Icepay/IceAdvanced/Model/Checkout/PaymentObject.php +0 -0
  7. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod01.php +0 -0
  8. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod02.php +0 -0
  9. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod03.php +0 -0
  10. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod04.php +0 -0
  11. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod05.php +0 -0
  12. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod06.php +0 -0
  13. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod07.php +0 -0
  14. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod08.php +0 -0
  15. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod09.php +0 -0
  16. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod10.php +0 -0
  17. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod11.php +0 -0
  18. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod12.php +0 -0
  19. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod13.php +0 -0
  20. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod14.php +0 -0
  21. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod15.php +0 -0
  22. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod16.php +0 -0
  23. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod17.php +0 -0
  24. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod18.php +0 -0
  25. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod19.php +0 -0
  26. app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod20.php +0 -0
  27. app/code/community/Icepay/IceAdvanced/Model/Checkout/Standard.php +0 -0
  28. app/code/community/Icepay/IceAdvanced/Model/Extensions/MS/Customerreward.php +0 -0
  29. app/code/community/Icepay/IceAdvanced/Model/Extensions/MW/GiftWrap.php +0 -0
  30. app/code/community/Icepay/IceAdvanced/Model/Extensions/MageWorx/MultiFees.php +0 -0
  31. app/code/community/Icepay/IceAdvanced/Model/Mysql4/IceAdvanced.php +0 -0
  32. app/code/community/Icepay/IceAdvanced/Model/Observer.php +0 -0
  33. app/code/community/Icepay/IceAdvanced/Model/Order.php +0 -0
  34. app/code/community/Icepay/IceAdvanced/Model/Pay.php +178 -178
  35. app/code/community/Icepay/IceAdvanced/Model/Paymentmethods.php +0 -0
  36. app/code/community/Icepay/IceAdvanced/Model/Webservice/Advanced.php +0 -0
  37. app/code/community/Icepay/IceAdvanced/Model/Webservice/Refund.php +0 -0
  38. app/code/community/Icepay/IceAdvanced/controllers/AjaxController.php +66 -71
  39. app/code/community/Icepay/IceAdvanced/controllers/ConfigController.php +33 -33
  40. app/code/community/Icepay/IceAdvanced/controllers/ProcessingController.php +39 -39
  41. app/code/community/Icepay/IceAdvanced/etc/config.xml +166 -166
  42. app/code/community/Icepay/IceAdvanced/etc/system.xml +0 -0
  43. app/code/community/Icepay/IceAdvanced/sql/icepayadvanced_setup/mysql4-install-1.0.0.php +0 -0
  44. app/code/community/Icepay/IceAdvanced/sql/icepayadvanced_setup/mysql4-upgrade-1.0.0-1.0.1.php +11 -11
  45. app/code/community/Icepay/IceCore/Block/Adminhtml/CheckSettings.php +0 -0
  46. app/code/community/Icepay/IceCore/Block/Adminhtml/GenerateURL.php +0 -0
  47. app/code/community/Icepay/IceCore/Block/Adminhtml/Grid/Modules.php +0 -0
  48. app/code/community/Icepay/IceCore/Block/Adminhtml/Init.php +0 -0
  49. app/code/community/Icepay/IceCore/Block/Front/Statement.php +0 -0
  50. app/code/community/Icepay/IceCore/Block/Front/Template.php +0 -0
  51. app/code/community/Icepay/IceCore/Helper/Data.php +2 -2
  52. app/code/community/Icepay/IceCore/Model/Config.php +45 -45
  53. app/code/community/Icepay/IceCore/Model/Icepay/Postback.php +449 -449
  54. app/code/community/Icepay/IceCore/Model/Icepay/Result.php +60 -60
  55. app/code/community/Icepay/IceCore/Model/Mysql4/IceCore.php +0 -0
  56. app/code/community/Icepay/IceCore/Model/Webservice/Core.php +0 -0
  57. app/code/community/Icepay/IceCore/controllers/AboutController.php +24 -24
  58. app/code/community/Icepay/IceCore/controllers/CheckController.php +0 -0
  59. app/code/community/Icepay/IceCore/controllers/IndexController.php +0 -0
  60. app/code/community/Icepay/IceCore/controllers/ProcessingController.php +31 -31
  61. app/code/community/Icepay/IceCore/etc/config.xml +181 -181
  62. app/code/community/Icepay/IceCore/etc/system.xml +0 -0
  63. app/code/community/Icepay/IceCore/sql/icepaycore_setup/mysql4-install-1.0.0.php +0 -0
  64. app/code/community/Icepay/IceCore/sql/icepaycore_setup/mysql4-upgrade-1.0.0-1.0.1.php +10 -10
  65. app/design/adminhtml/default/default/layout/icecore.xml +0 -0
  66. app/design/adminhtml/default/default/template/icepayadvanced/form/default.phtml +52 -52
  67. app/design/adminhtml/default/default/template/icepayadvanced/grid_paymentmethods.phtml +304 -304
  68. app/design/adminhtml/default/default/template/icepayadvanced/paymentmethod.phtml +84 -84
  69. app/design/adminhtml/default/default/template/icepaycore/grid_modules.phtml +79 -79
  70. app/design/frontend/base/default/layout/icecore.xml +9 -9
  71. app/design/frontend/base/default/template/icepayadvanced/form/default.phtml +52 -52
  72. app/etc/modules/Icepay_IceAdvanced.xml +9 -9
  73. app/etc/modules/Icepay_IceCore.xml +1 -1
  74. app/locale/de_DE/Icepay_IceAdvanced.csv +0 -0
  75. app/locale/de_DE/Icepay_IceCore.csv +0 -0
  76. app/locale/en_US/Icepay_IceAdvanced.csv +0 -0
  77. app/locale/en_US/Icepay_IceCore.csv +0 -0
  78. app/locale/es_ES/Icepay_IceAdvanced.csv +0 -0
  79. app/locale/es_ES/Icepay_IceCore.csv +0 -0
  80. app/locale/fr_FR/Icepay_IceAdvanced.csv +0 -0
  81. app/locale/fr_FR/Icepay_IceCore.csv +0 -0
  82. app/locale/it_IT/Icepay_IceAdvanced.csv +0 -0
  83. app/locale/it_IT/Icepay_IceCore.csv +0 -0
  84. app/locale/nl_NL/Icepay_IceAdvanced.csv +0 -0
  85. app/locale/nl_NL/Icepay_IceCore.csv +0 -0
  86. package.xml +6 -6
  87. skin/adminhtml/default/default/icepay/admin.css +132 -132
  88. skin/adminhtml/default/default/icepay/general.css +9 -9
  89. skin/adminhtml/default/default/icepay/images/button-manual.png +0 -0
  90. skin/adminhtml/default/default/icepay/images/button-movie.png +0 -0
  91. skin/adminhtml/default/default/icepay/images/en/afterpay.png +0 -0
  92. skin/adminhtml/default/default/icepay/images/en/creditcard.png +0 -0
  93. skin/adminhtml/default/default/icepay/images/en/ddebit.png +0 -0
  94. skin/adminhtml/default/default/icepay/images/en/directebank.png +0 -0
  95. skin/adminhtml/default/default/icepay/images/en/elv.png +0 -0
  96. skin/adminhtml/default/default/icepay/images/en/giropay.png +0 -0
  97. skin/adminhtml/default/default/icepay/images/en/ideal.png +0 -0
  98. skin/adminhtml/default/default/icepay/images/en/mistercash.png +0 -0
  99. skin/adminhtml/default/default/icepay/images/en/nologo.png +0 -0
  100. skin/adminhtml/default/default/icepay/images/en/paypal.png +0 -0
  101. skin/adminhtml/default/default/icepay/images/en/paysafecard.png +0 -0
  102. skin/adminhtml/default/default/icepay/images/en/wallie.png +0 -0
  103. skin/adminhtml/default/default/icepay/images/en/wire.png +0 -0
  104. skin/adminhtml/default/default/icepay/images/error_msg_icon.gif +0 -0
  105. skin/adminhtml/default/default/icepay/images/icepay-logo.png +0 -0
  106. skin/adminhtml/default/default/icepay/images/nl/afterpay.png +0 -0
  107. skin/adminhtml/default/default/icepay/images/nl/creditcard.png +0 -0
  108. skin/adminhtml/default/default/icepay/images/nl/ddebit.png +0 -0
  109. skin/adminhtml/default/default/icepay/images/nl/directebank.png +0 -0
  110. skin/adminhtml/default/default/icepay/images/nl/elv.png +0 -0
  111. skin/adminhtml/default/default/icepay/images/nl/giropay.png +0 -0
  112. skin/adminhtml/default/default/icepay/images/nl/ideal.png +0 -0
  113. skin/adminhtml/default/default/icepay/images/nl/mistercash.png +0 -0
  114. skin/adminhtml/default/default/icepay/images/nl/nologo.png +0 -0
  115. skin/adminhtml/default/default/icepay/images/nl/paypal.png +0 -0
  116. skin/adminhtml/default/default/icepay/images/nl/paysafecard.png +0 -0
  117. skin/adminhtml/default/default/icepay/images/nl/wallie.png +0 -0
  118. skin/adminhtml/default/default/icepay/images/nl/wire.png +0 -0
  119. skin/adminhtml/default/default/icepay/images/nologo.png +0 -0
  120. skin/adminhtml/default/default/icepay/images/section-logo.png +0 -0
  121. skin/adminhtml/default/default/icepay/images/success_msg_icon.gif +0 -0
  122. skin/frontend/base/default/images/icepay/en/afterpay.png +0 -0
  123. skin/frontend/base/default/images/icepay/en/creditcard.png +0 -0
  124. skin/frontend/base/default/images/icepay/en/ddebit.png +0 -0
  125. skin/frontend/base/default/images/icepay/en/directebank.png +0 -0
  126. skin/frontend/base/default/images/icepay/en/elv.png +0 -0
  127. skin/frontend/base/default/images/icepay/en/giropay.png +0 -0
  128. skin/frontend/base/default/images/icepay/en/icepay.png +0 -0
  129. skin/frontend/base/default/images/icepay/en/ideal.png +0 -0
  130. skin/frontend/base/default/images/icepay/en/mistercash.png +0 -0
  131. skin/frontend/base/default/images/icepay/en/nologo.png +0 -0
  132. skin/frontend/base/default/images/icepay/en/paypal.png +0 -0
  133. skin/frontend/base/default/images/icepay/en/paysafecard.png +0 -0
  134. skin/frontend/base/default/images/icepay/en/wallie.png +0 -0
  135. skin/frontend/base/default/images/icepay/en/wire.png +0 -0
  136. skin/frontend/base/default/images/icepay/icepay-logo.png +0 -0
  137. skin/frontend/base/default/images/icepay/logo-currence.png +0 -0
  138. skin/frontend/base/default/images/icepay/logo-thawte.png +0 -0
  139. skin/frontend/base/default/images/icepay/logo-thuiswinkel.png +0 -0
  140. skin/frontend/base/default/images/icepay/nl/afterpay.png +0 -0
  141. skin/frontend/base/default/images/icepay/nl/creditcard.png +0 -0
  142. skin/frontend/base/default/images/icepay/nl/ddebit.png +0 -0
  143. skin/frontend/base/default/images/icepay/nl/directebank.png +0 -0
  144. skin/frontend/base/default/images/icepay/nl/elv.png +0 -0
  145. skin/frontend/base/default/images/icepay/nl/giropay.png +0 -0
  146. skin/frontend/base/default/images/icepay/nl/icepay.png +0 -0
  147. skin/frontend/base/default/images/icepay/nl/ideal.png +0 -0
  148. skin/frontend/base/default/images/icepay/nl/mistercash.png +0 -0
  149. skin/frontend/base/default/images/icepay/nl/nologo.png +0 -0
  150. skin/frontend/base/default/images/icepay/nl/paypal.png +0 -0
  151. skin/frontend/base/default/images/icepay/nl/paysafecard.png +0 -0
  152. skin/frontend/base/default/images/icepay/nl/wallie.png +0 -0
  153. skin/frontend/base/default/images/icepay/nl/wire.png +0 -0
  154. skin/frontend/base/default/images/icepay/nologo.png +0 -0
app/code/community/Icepay/IceAdvanced/Block/Adminhtml/CheckSettings.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Block/Adminhtml/Grid/Paymentmethods.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Block/Adminhtml/Setting/Paymentmethod.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Block/Payment/Form/Default.php CHANGED
@@ -1,57 +1,57 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Advanced - Block displays payment method
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
-
17
- class Icepay_IceAdvanced_Block_Payment_Form_Default extends Mage_Payment_Block_Form {
18
-
19
- public $_code;
20
- public $_issuer;
21
- public $_model;
22
- public $_countryArr = null;
23
- public $_country;
24
-
25
- protected function _construct() {
26
- $this->setTemplate('icepayadvanced/form/default.phtml');
27
- $this->model = Mage::getModel('iceadvanced/checkout_standard');
28
- parent::_construct();
29
- }
30
-
31
- protected function _toHtml() {
32
- $this->model->setCode($this->getMethodCode());
33
- $this->_issuer = $this->model->getIssuerOptionArray();
34
- Mage::dispatchEvent('payment_form_block_to_html_before', array(
35
- 'block' => $this
36
- ));
37
- return parent::_toHtml();
38
- }
39
-
40
- public function getConfig($config) {
41
- return $this->model->getConfigData($config);
42
- }
43
-
44
- public function getDescription() {
45
- return $this->getConfig("description");
46
- }
47
-
48
- public function getPMCode() {
49
- return $this->getConfig("pm_code");
50
- }
51
-
52
- public function getCountry(){
53
- return $this->_country;
54
- }
55
-
56
- }
57
-
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Advanced - Block displays payment method
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+
17
+ class Icepay_IceAdvanced_Block_Payment_Form_Default extends Mage_Payment_Block_Form {
18
+
19
+ public $_code;
20
+ public $_issuer;
21
+ public $_model;
22
+ public $_countryArr = null;
23
+ public $_country;
24
+
25
+ protected function _construct() {
26
+ $this->setTemplate('icepayadvanced/form/default.phtml');
27
+ $this->model = Mage::getModel('iceadvanced/checkout_standard');
28
+ parent::_construct();
29
+ }
30
+
31
+ protected function _toHtml() {
32
+ $this->model->setCode($this->getMethodCode());
33
+ $this->_issuer = $this->model->getIssuerOptionArray();
34
+ Mage::dispatchEvent('payment_form_block_to_html_before', array(
35
+ 'block' => $this
36
+ ));
37
+ return parent::_toHtml();
38
+ }
39
+
40
+ public function getConfig($config) {
41
+ return $this->model->getConfigData($config);
42
+ }
43
+
44
+ public function getDescription() {
45
+ return $this->getConfig("description");
46
+ }
47
+
48
+ public function getPMCode() {
49
+ return $this->getConfig("pm_code");
50
+ }
51
+
52
+ public function getCountry(){
53
+ return $this->_country;
54
+ }
55
+
56
+ }
57
+
app/code/community/Icepay/IceAdvanced/Helper/Data.php CHANGED
@@ -19,7 +19,7 @@ class Icepay_IceAdvanced_Helper_Data extends Mage_Core_Helper_Abstract
19
  /* Install values */
20
 
21
  public $title = 'Advanced';
22
- public $version = '1.2.3';
23
  public $id = 'ADV';
24
  public $fingerprint = '7f4de76ecbf7d847caeba64c42938a6a05821c4f';
25
  public $compatibility_oldest_version = '1.5.0.0';
19
  /* Install values */
20
 
21
  public $title = 'Advanced';
22
+ public $version = '1.2.5';
23
  public $id = 'ADV';
24
  public $fingerprint = '7f4de76ecbf7d847caeba64c42938a6a05821c4f';
25
  public $compatibility_oldest_version = '1.5.0.0';
app/code/community/Icepay/IceAdvanced/Model/Checkout/PaymentObject.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod01.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod02.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod03.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod04.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod05.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod06.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod07.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod08.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod09.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod10.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod11.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod12.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod13.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod14.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod15.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod16.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod17.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod18.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod19.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Placeholder/Paymentmethod20.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Checkout/Standard.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Extensions/MS/Customerreward.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Extensions/MW/GiftWrap.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Extensions/MageWorx/MultiFees.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Mysql4/IceAdvanced.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Observer.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Order.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Pay.php CHANGED
@@ -1,178 +1,178 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Advanced - Start payment
5
- * @version 1.0.0
6
- * @author Wouter van Tilburg
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
- class Icepay_IceAdvanced_Model_Pay extends Mage_Payment_Model_Method_Abstract
17
- {
18
-
19
- private $sqlModel;
20
- private $ic_order;
21
-
22
- public function __construct()
23
- {
24
- $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
25
- $this->ic_order = Mage::getModel('iceadvanced/order');
26
-
27
- parent::__construct();
28
- }
29
-
30
- public function getCheckoutResult()
31
- {
32
- // Get Magento's checkout session
33
- $session = Mage::getSingleton('checkout/session');
34
-
35
- // Retrieve icepay order
36
- $icedata = $this->sqlModel->loadPaymentByID($session->getLastRealOrderId());
37
-
38
- // Retrieve payment data
39
- $paymentData = unserialize(urldecode($icedata["transaction_data"]));
40
-
41
- // Retrieve merchant id and secretcode
42
- $merchantID = Mage::app()->getStore($icedata["store_id"])->getConfig(Icepay_IceCore_Model_Config::MERCHANTID);
43
- $secretCode = Mage::app()->getStore($icedata["store_id"])->getConfig(Icepay_IceCore_Model_Config::SECRETCODE);
44
-
45
- // Initialize webservice
46
- $webservice = Mage::getModel('Icepay_IceAdvanced_Model_Webservice_Advanced');
47
- $webservice->init($merchantID, $secretCode);
48
-
49
- // Create the PaymentObject
50
- $paymentObject = Mage::getModel('Icepay_IceAdvanced_Model_Checkout_PaymentObject');
51
- $paymentObject->setAmount($paymentData['ic_amount'])
52
- ->setCountry($paymentData['ic_country'])
53
- ->setLanguage($paymentData['ic_language'])
54
- ->setCurrency($paymentData['ic_currency'])
55
- ->setPaymentMethod($paymentData['ic_paymentmethod'])
56
- ->setPaymentMethodIssuer($paymentData['ic_issuer'])
57
- ->setReference($paymentData['ic_reference'])
58
- ->setOrderID($paymentData['ic_orderid'])
59
- ->setDescription($paymentData['ic_description']);
60
-
61
- // Fetch the Icepay_Order class
62
- $ic_order = Mage::getModel('iceadvanced/order');
63
-
64
- if ($webservice->isExtendedCheckout($paymentData['ic_paymentmethod'])) {
65
- try {
66
- // Retrieve Magento Order
67
- $order = Mage::getModel('sales/order')->loadByIncrementId($paymentData['ic_orderid']);
68
-
69
- // Add the consumer information for Afterpay
70
- $consumer = $ic_order->createConsumer()
71
- ->setConsumerID($order->getCustomerName())
72
- ->setEmailAddress($order->getCustomerEmail())
73
- ->setPhoneNumber($order->getBillingAddress()->getTelephone());
74
-
75
- $ic_order->setConsumer($consumer);
76
-
77
- // Add the billing address information for Afterpay
78
- $billingStreetaddress = implode(' ', $order->getBillingAddress()->getStreet());
79
-
80
- $billingAddress = $ic_order->createAddress()
81
- ->setInitials($order->getBillingAddress()->getFirstname())
82
- ->setPrefix($order->getBillingAddress()->getPrefix())
83
- ->setLastName($order->getBillingAddress()->getLastname())
84
- ->setStreetName(Icepay_Order_Helper::getStreetFromAddress($billingStreetaddress))
85
- ->setHouseNumber(Icepay_Order_Helper::getHouseNumberFromAddress())
86
- ->setHouseNumberAddition(Icepay_Order_Helper::getHouseNumberAdditionFromAddress())
87
- ->setZipCode($order->getBillingAddress()->getPostcode())
88
- ->setCity($order->getBillingAddress()->getCity())
89
- ->setCountry($order->getBillingAddress()->getCountry());
90
-
91
- $ic_order->setBillingAddress($billingAddress);
92
-
93
- // Add the shipping address information for Afterpay
94
- $shippingStreetAddress = implode(' ', $order->getShippingAddress()->getStreet());
95
-
96
- $shippingAddress = $ic_order->createAddress()
97
- ->setInitials($order->getShippingAddress()->getFirstname())
98
- ->setPrefix($order->getShippingAddress()->getPrefix())
99
- ->setLastName($order->getShippingAddress()->getLastname())
100
- ->setStreetName(Icepay_Order_Helper::getStreetFromAddress($shippingStreetAddress))
101
- ->setHouseNumber(Icepay_Order_Helper::getHouseNumberFromAddress())
102
- ->setHouseNumberAddition(Icepay_Order_Helper::getHouseNumberAdditionFromAddress())
103
- ->setZipCode($order->getShippingAddress()->getPostcode())
104
- ->setCity($order->getShippingAddress()->getCity())
105
- ->setCountry($order->getShippingAddress()->getCountry());
106
-
107
- $ic_order->setShippingAddress($shippingAddress);
108
-
109
-
110
- foreach ($order->getAllItems() as $orderItem) {
111
- if (empty($orderItem) || $orderItem->hasParentItemId()) {
112
- continue;
113
- }
114
-
115
- $itemData = $orderItem->getData();
116
-
117
- //for compatibility reasons, $orderItem->getProduct() was not used
118
- $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $orderItem->getSku());
119
-
120
- $ic_product = $ic_order->createProduct()
121
- ->setProductID($orderItem->getSku())
122
- ->setProductName($product->getName())
123
- ->setDescription($product->getName())
124
- ->setQuantity((int) $orderItem->getQtyOrdered())
125
- ->setUnitPrice(round(($orderItem->getBasePrice() + bcdiv($orderItem->getBaseTaxAmount(), $orderItem->getQtyOrdered(), 2) + bcdiv($orderItem->getBaseHiddenTaxAmount(), $orderItem->getQtyOrdered(), 2)) * 100, 0))
126
- ->setVATCategory($ic_order->getCategoryForPercentage($itemData['tax_percent']));
127
-
128
- $ic_order->addproduct($ic_product);
129
- }
130
-
131
- $orderData = $order->getData();
132
-
133
- // Set total order discount if any
134
- $discount = $orderData['base_discount_amount'] * 100;
135
-
136
- if ($discount != '0')
137
- $ic_order->setOrderDiscountAmount(-$discount);
138
-
139
- // Set shipping costs
140
- if ($orderData['shipping_amount'] != 0) {
141
- $shippingCosts = ($orderData['shipping_amount'] + $orderData['shipping_tax_amount']) * 100;
142
- $shippingTax = $orderData['shipping_tax_amount'] / $orderData['shipping_amount'] * 100;
143
-
144
- $ic_order->setShippingCosts($shippingCosts, $shippingTax);
145
- } else {
146
- $ic_order->setShippingCosts(0, -1);
147
- }
148
-
149
- if (Mage::helper('icecore')->isModuleInstalled('MageWorx_MultiFees')) {
150
- $multiFeesExtension = Mage::getModel('iceadvanced/extensions_Mageworx_MultiFees');
151
- $ic_order = $multiFeesExtension->addPrice(unserialize($order->getDetailsMultifees()), $ic_order);
152
- }
153
-
154
- if (Mage::helper('icecore')->isModuleInstalled('MW_GiftWrap')) {
155
- $giftWrapExtension = Mage::getModel('iceadvanced/extensions_MW_GiftWrap');
156
- $ic_order = $giftWrapExtension->addGiftWrapPrices($session->getLastQuoteId(), $ic_order);
157
- }
158
-
159
- if (Mage::helper('icecore')->isModuleInstalled('Magestore_Customerreward')) {
160
- $customerRewardExtension = Mage::getModel('iceadvanced/extensions_MS_Customerreward');
161
- $ic_order = $customerRewardExtension->addCustomerRewardPrices($orderData, $ic_order);
162
- }
163
-
164
- // Log the XML Send
165
- Mage::helper("icecore")->log(serialize($ic_order->getXML()));
166
- } catch (Exception $e) {
167
- return $e->getMessage();
168
- }
169
- }
170
-
171
- try {
172
- return $webservice->doCheckout($paymentObject, $ic_order);
173
- } catch (Exception $e) {
174
- return $e->getMessage();
175
- }
176
- }
177
-
178
- }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Advanced - Start payment
5
+ * @version 1.0.0
6
+ * @author Wouter van Tilburg
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+ class Icepay_IceAdvanced_Model_Pay extends Mage_Payment_Model_Method_Abstract
17
+ {
18
+
19
+ private $sqlModel;
20
+ private $ic_order;
21
+
22
+ public function __construct()
23
+ {
24
+ $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
25
+ $this->ic_order = Mage::getModel('iceadvanced/order');
26
+
27
+ parent::__construct();
28
+ }
29
+
30
+ public function getCheckoutResult()
31
+ {
32
+ // Get Magento's checkout session
33
+ $session = Mage::getSingleton('checkout/session');
34
+
35
+ // Retrieve icepay order
36
+ $icedata = $this->sqlModel->loadPaymentByID($session->getLastRealOrderId());
37
+
38
+ // Retrieve payment data
39
+ $paymentData = unserialize(urldecode($icedata["transaction_data"]));
40
+
41
+ // Retrieve merchant id and secretcode
42
+ $merchantID = Mage::app()->getStore($icedata["store_id"])->getConfig(Icepay_IceCore_Model_Config::MERCHANTID);
43
+ $secretCode = Mage::app()->getStore($icedata["store_id"])->getConfig(Icepay_IceCore_Model_Config::SECRETCODE);
44
+
45
+ // Initialize webservice
46
+ $webservice = Mage::getModel('Icepay_IceAdvanced_Model_Webservice_Advanced');
47
+ $webservice->init($merchantID, $secretCode);
48
+
49
+ // Create the PaymentObject
50
+ $paymentObject = Mage::getModel('Icepay_IceAdvanced_Model_Checkout_PaymentObject');
51
+ $paymentObject->setAmount($paymentData['ic_amount'])
52
+ ->setCountry($paymentData['ic_country'])
53
+ ->setLanguage($paymentData['ic_language'])
54
+ ->setCurrency($paymentData['ic_currency'])
55
+ ->setPaymentMethod($paymentData['ic_paymentmethod'])
56
+ ->setPaymentMethodIssuer($paymentData['ic_issuer'])
57
+ ->setReference($paymentData['ic_reference'])
58
+ ->setOrderID($paymentData['ic_orderid'])
59
+ ->setDescription($paymentData['ic_description']);
60
+
61
+ // Fetch the Icepay_Order class
62
+ $ic_order = Mage::getModel('iceadvanced/order');
63
+
64
+ if ($webservice->isExtendedCheckout($paymentData['ic_paymentmethod'])) {
65
+ try {
66
+ // Retrieve Magento Order
67
+ $order = Mage::getModel('sales/order')->loadByIncrementId($paymentData['ic_orderid']);
68
+
69
+ // Add the consumer information for Afterpay
70
+ $consumer = $ic_order->createConsumer()
71
+ ->setConsumerID($order->getCustomerName())
72
+ ->setEmailAddress($order->getCustomerEmail())
73
+ ->setPhoneNumber($order->getBillingAddress()->getTelephone());
74
+
75
+ $ic_order->setConsumer($consumer);
76
+
77
+ // Add the billing address information for Afterpay
78
+ $billingStreetaddress = implode(' ', $order->getBillingAddress()->getStreet());
79
+
80
+ $billingAddress = $ic_order->createAddress()
81
+ ->setInitials($order->getBillingAddress()->getFirstname())
82
+ ->setPrefix($order->getBillingAddress()->getPrefix())
83
+ ->setLastName($order->getBillingAddress()->getLastname())
84
+ ->setStreetName(Icepay_Order_Helper::getStreetFromAddress($billingStreetaddress))
85
+ ->setHouseNumber(Icepay_Order_Helper::getHouseNumberFromAddress())
86
+ ->setHouseNumberAddition(Icepay_Order_Helper::getHouseNumberAdditionFromAddress())
87
+ ->setZipCode($order->getBillingAddress()->getPostcode())
88
+ ->setCity($order->getBillingAddress()->getCity())
89
+ ->setCountry($order->getBillingAddress()->getCountry());
90
+
91
+ $ic_order->setBillingAddress($billingAddress);
92
+
93
+ // Add the shipping address information for Afterpay
94
+ $shippingStreetAddress = implode(' ', $order->getShippingAddress()->getStreet());
95
+
96
+ $shippingAddress = $ic_order->createAddress()
97
+ ->setInitials($order->getShippingAddress()->getFirstname())
98
+ ->setPrefix($order->getShippingAddress()->getPrefix())
99
+ ->setLastName($order->getShippingAddress()->getLastname())
100
+ ->setStreetName(Icepay_Order_Helper::getStreetFromAddress($shippingStreetAddress))
101
+ ->setHouseNumber(Icepay_Order_Helper::getHouseNumberFromAddress())
102
+ ->setHouseNumberAddition(Icepay_Order_Helper::getHouseNumberAdditionFromAddress())
103
+ ->setZipCode($order->getShippingAddress()->getPostcode())
104
+ ->setCity($order->getShippingAddress()->getCity())
105
+ ->setCountry($order->getShippingAddress()->getCountry());
106
+
107
+ $ic_order->setShippingAddress($shippingAddress);
108
+
109
+
110
+ foreach ($order->getAllItems() as $orderItem) {
111
+ if (empty($orderItem) || $orderItem->hasParentItemId()) {
112
+ continue;
113
+ }
114
+
115
+ $itemData = $orderItem->getData();
116
+
117
+ //for compatibility reasons, $orderItem->getProduct() was not used
118
+ $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $orderItem->getSku());
119
+
120
+ $ic_product = $ic_order->createProduct()
121
+ ->setProductID($orderItem->getSku())
122
+ ->setProductName($product->getName())
123
+ ->setDescription($product->getName())
124
+ ->setQuantity((int) $orderItem->getQtyOrdered())
125
+ ->setUnitPrice(round(($orderItem->getBasePrice() + bcdiv($orderItem->getBaseTaxAmount(), $orderItem->getQtyOrdered(), 2) + bcdiv($orderItem->getBaseHiddenTaxAmount(), $orderItem->getQtyOrdered(), 2)) * 100, 0))
126
+ ->setVATCategory($ic_order->getCategoryForPercentage($itemData['tax_percent']));
127
+
128
+ $ic_order->addproduct($ic_product);
129
+ }
130
+
131
+ $orderData = $order->getData();
132
+
133
+ // Set total order discount if any
134
+ $discount = $orderData['base_discount_amount'] * 100;
135
+
136
+ if ($discount != '0')
137
+ $ic_order->setOrderDiscountAmount(-$discount);
138
+
139
+ // Set shipping costs
140
+ if ($orderData['shipping_amount'] != 0) {
141
+ $shippingCosts = ($orderData['shipping_amount'] + $orderData['shipping_tax_amount']) * 100;
142
+ $shippingTax = $orderData['shipping_tax_amount'] / $orderData['shipping_amount'] * 100;
143
+
144
+ $ic_order->setShippingCosts($shippingCosts, $shippingTax);
145
+ } else {
146
+ $ic_order->setShippingCosts(0, -1);
147
+ }
148
+
149
+ if (Mage::helper('icecore')->isModuleInstalled('MageWorx_MultiFees')) {
150
+ $multiFeesExtension = Mage::getModel('iceadvanced/extensions_Mageworx_MultiFees');
151
+ $ic_order = $multiFeesExtension->addPrice(unserialize($order->getDetailsMultifees()), $ic_order);
152
+ }
153
+
154
+ if (Mage::helper('icecore')->isModuleInstalled('MW_GiftWrap')) {
155
+ $giftWrapExtension = Mage::getModel('iceadvanced/extensions_MW_GiftWrap');
156
+ $ic_order = $giftWrapExtension->addGiftWrapPrices($session->getLastQuoteId(), $ic_order);
157
+ }
158
+
159
+ if (Mage::helper('icecore')->isModuleInstalled('Magestore_Customerreward')) {
160
+ $customerRewardExtension = Mage::getModel('iceadvanced/extensions_MS_Customerreward');
161
+ $ic_order = $customerRewardExtension->addCustomerRewardPrices($orderData, $ic_order);
162
+ }
163
+
164
+ // Log the XML Send
165
+ Mage::helper("icecore")->log(serialize($ic_order->getXML()));
166
+ } catch (Exception $e) {
167
+ return $e->getMessage();
168
+ }
169
+ }
170
+
171
+ try {
172
+ return $webservice->doCheckout($paymentObject, $ic_order);
173
+ } catch (Exception $e) {
174
+ return $e->getMessage();
175
+ }
176
+ }
177
+
178
+ }
app/code/community/Icepay/IceAdvanced/Model/Paymentmethods.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Webservice/Advanced.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/Model/Webservice/Refund.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/controllers/AjaxController.php CHANGED
@@ -1,71 +1,66 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Advanced - AJAX controller
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
- class Icepay_IceAdvanced_AjaxController extends Mage_Core_Controller_Front_Action
17
- {
18
-
19
- protected $webservice = null;
20
-
21
- public function iceWebservice()
22
- {
23
- if ($this->webservice == null)
24
- $this->webservice = new Icepay_IceAdvanced_Model_Paymentmethods();
25
- return $this->webservice;
26
- }
27
-
28
- public function indexAction()
29
- {
30
- $this->loadLayout();
31
- $this->renderLayout();
32
- }
33
-
34
- protected function _isAllowed()
35
- {
36
- return true;
37
- }
38
-
39
- public function get_paymentmethodsAction()
40
- {
41
- $this->getResponse()->setBody(Zend_Json::encode($this->iceWebservice()->retrieveAdminGrid($this->getRequest()->get("store"))));
42
- }
43
-
44
- public function save_paymentmethodAction()
45
- {
46
- $adv_sql = Mage::getSingleton('iceadvanced/mysql4_iceAdvanced');
47
-
48
- $reference = $this->getRequest()->getPost("reference");
49
- $scopeID = $this->getRequest()->getPost("store");
50
-
51
- if (!isset($reference))
52
- return;
53
-
54
- $adv_sql->setScope($scopeID);
55
-
56
- $settings = Mage::helper("iceadvanced")->getPaymentmethodExtraSettings();
57
-
58
- if ($this->getRequest()->getPost("active_issuers")) {
59
- $issuers = explode(",", $this->getRequest()->getPost("active_issuers"));
60
- if (count($issuers) >= 1)
61
- array_push($settings, "active_issuers"); //At least 1 issuer active is required
62
- }
63
-
64
- foreach ($settings as $setting) {
65
- $adv_sql->saveConfigValue($reference, $setting, $this->getRequest()->getPost($setting));
66
- }
67
-
68
- $this->getResponse()->setBody(sprintf($this->__("%s settings have been saved."), $this->getRequest()->getPost("name")));
69
- }
70
-
71
- }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Advanced - AJAX controller
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+ class Icepay_IceAdvanced_AjaxController extends Mage_Core_Controller_Front_Action
17
+ {
18
+
19
+ protected $webservice = null;
20
+
21
+ public function iceWebservice()
22
+ {
23
+ if ($this->webservice == null)
24
+ $this->webservice = new Icepay_IceAdvanced_Model_Paymentmethods();
25
+ return $this->webservice;
26
+ }
27
+
28
+ public function indexAction()
29
+ {
30
+ $this->loadLayout();
31
+ $this->renderLayout();
32
+ }
33
+
34
+ public function get_paymentmethodsAction()
35
+ {
36
+ $this->getResponse()->setBody(Zend_Json::encode($this->iceWebservice()->retrieveAdminGrid($this->getRequest()->get("store"))));
37
+ }
38
+
39
+ public function save_paymentmethodAction()
40
+ {
41
+ $adv_sql = Mage::getSingleton('iceadvanced/mysql4_iceAdvanced');
42
+
43
+ $reference = $this->getRequest()->getPost("reference");
44
+ $scopeID = $this->getRequest()->getPost("store");
45
+
46
+ if (!isset($reference))
47
+ return;
48
+
49
+ $adv_sql->setScope($scopeID);
50
+
51
+ $settings = Mage::helper("iceadvanced")->getPaymentmethodExtraSettings();
52
+
53
+ if ($this->getRequest()->getPost("active_issuers")) {
54
+ $issuers = explode(",", $this->getRequest()->getPost("active_issuers"));
55
+ if (count($issuers) >= 1)
56
+ array_push($settings, "active_issuers"); //At least 1 issuer active is required
57
+ }
58
+
59
+ foreach ($settings as $setting) {
60
+ $adv_sql->saveConfigValue($reference, $setting, $this->getRequest()->getPost($setting));
61
+ }
62
+
63
+ $this->getResponse()->setBody(sprintf($this->__("%s settings have been saved."), $this->getRequest()->getPost("name")));
64
+ }
65
+
66
+ }
 
 
 
 
 
app/code/community/Icepay/IceAdvanced/controllers/ConfigController.php CHANGED
@@ -1,33 +1,33 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Advanced - Adminhtml config controller
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
-
17
- class Icepay_IceAdvanced_ConfigController extends Mage_Adminhtml_Controller_Action {
18
-
19
-
20
- public function indexAction() {
21
-
22
- $paymentmethod = $this->getRequest()->get("paymentmethod");
23
- $scopeID = $this->getRequest()->get("store");
24
-
25
- $this->getResponse()->setBody(
26
- $this->getLayout()->createBlock("iceadvanced/adminhtml_setting_paymentmethod")->setPaymentmethod($paymentmethod,$scopeID)->toHtml()
27
- );
28
-
29
- }
30
-
31
-
32
-
33
- }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Advanced - Adminhtml config controller
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+
17
+ class Icepay_IceAdvanced_ConfigController extends Mage_Core_Controller_Front_Action {
18
+
19
+
20
+ public function indexAction() {
21
+
22
+ $paymentmethod = $this->getRequest()->get("paymentmethod");
23
+ $scopeID = $this->getRequest()->get("store");
24
+
25
+ $this->getResponse()->setBody(
26
+ $this->getLayout()->createBlock("iceadvanced/adminhtml_setting_paymentmethod")->setPaymentmethod($paymentmethod,$scopeID)->toHtml()
27
+ );
28
+
29
+ }
30
+
31
+
32
+
33
+ }
app/code/community/Icepay/IceAdvanced/controllers/ProcessingController.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Advanced - Process payment
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
- class Icepay_IceAdvanced_ProcessingController extends Mage_Core_Controller_Front_Action {
17
-
18
- public function indexAction()
19
- {
20
- $this->loadLayout();
21
- $this->renderLayout();
22
- }
23
-
24
- public function payAction()
25
- {
26
- $pay = Mage::getModel('iceadvanced/pay');
27
- $result = $pay->getCheckoutResult();
28
-
29
- if (!is_array($result)) {
30
- Mage::getSingleton('checkout/session')->setErrorMessage(sprintf($this->__("The payment provider has returned the following error message: %s"), $result));
31
- parent::_redirect('checkout/onepage/failure');
32
- } else {
33
- $checkoutResult = (isset($result['CheckoutExtendedResult'])) ? $result['CheckoutExtendedResult'] : $result['CheckoutResult'];
34
-
35
- $this->getResponse()->setBody($this->__("Redirecting"))->setRedirect($checkoutResult->PaymentScreenURL);
36
- }
37
- }
38
-
39
- }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Advanced - Process payment
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+ class Icepay_IceAdvanced_ProcessingController extends Mage_Core_Controller_Front_Action {
17
+
18
+ public function indexAction()
19
+ {
20
+ $this->loadLayout();
21
+ $this->renderLayout();
22
+ }
23
+
24
+ public function payAction()
25
+ {
26
+ $pay = Mage::getModel('iceadvanced/pay');
27
+ $result = $pay->getCheckoutResult();
28
+
29
+ if (!is_array($result)) {
30
+ Mage::getSingleton('checkout/session')->setErrorMessage(sprintf($this->__("The payment provider has returned the following error message: %s"), $result));
31
+ parent::_redirect('checkout/onepage/failure');
32
+ } else {
33
+ $checkoutResult = (isset($result['CheckoutExtendedResult'])) ? $result['CheckoutExtendedResult'] : $result['CheckoutResult'];
34
+
35
+ $this->getResponse()->setBody($this->__("Redirecting"))->setRedirect($checkoutResult->PaymentScreenURL);
36
+ }
37
+ }
38
+
39
+ }
app/code/community/Icepay/IceAdvanced/etc/config.xml CHANGED
@@ -1,167 +1,167 @@
1
- <?xml version="1.0"?>
2
-
3
- <config>
4
- <modules>
5
- <Icepay_IceAdvanced>
6
- <version>1.1.9</version>
7
- </Icepay_IceAdvanced>
8
- </modules>
9
- <frontend>
10
- <routers>
11
- <iceadvanced>
12
- <use>standard</use>
13
- <args>
14
- <module>Icepay_IceAdvanced</module>
15
- <frontName>icepayadvanced</frontName>
16
- </args>
17
- </iceadvanced>
18
- </routers>
19
- <layout>
20
- <updates>
21
- <iceadvanced>
22
- <file>iceadvanced.xml</file>
23
- </iceadvanced>
24
- </updates>
25
- </layout>
26
- <translate>
27
- <modules>
28
- <Icepay_IceAdvanced>
29
- <files>
30
- <default>Icepay_IceAdvanced.csv</default>
31
- </files>
32
- </Icepay_IceAdvanced>
33
- </modules>
34
- </translate>
35
- <events>
36
- <sales_order_place_before>
37
- <observers>
38
- <iceadvanced>
39
- <type>singleton</type>
40
- <class>iceadvanced/observer</class>
41
- <method>sales_order_place_before</method>
42
- </iceadvanced>
43
- </observers>
44
- </sales_order_place_before>
45
- <custom_quote_process>
46
- <observers>
47
- <iceadvanced>
48
- <type>singleton</type>
49
- <class>iceadvanced/observer</class>
50
- <method>custom_quote_process</method>
51
- </iceadvanced>
52
- </observers>
53
- </custom_quote_process>
54
- </events>
55
- </frontend>
56
-
57
- <global>
58
- <models>
59
- <iceadvanced>
60
- <class>Icepay_IceAdvanced_Model</class>
61
- <resourceModel>iceadvanced_mysql4</resourceModel>
62
- </iceadvanced>
63
- <iceadvanced_mysql4>
64
- <class>Icepay_IceAdvanced_Model_Mysql4</class>
65
- <entities>
66
- <icepay_issuerdata>
67
- <table>icepay_issuerdata</table>
68
- </icepay_issuerdata>
69
- <icepay_pmdata>
70
- <table>icepay_pmdata</table>
71
- </icepay_pmdata>
72
- </entities>
73
- </iceadvanced_mysql4>
74
- </models>
75
- <resources>
76
- <icepayadvanced_setup>
77
- <setup>
78
- <module>Icepay_IceAdvanced</module>
79
- </setup>
80
- <connection>
81
- <use>core_setup</use>
82
- </connection>
83
- </icepayadvanced_setup>
84
- <iceadvanced_write>
85
- <connection>
86
- <use>core_write</use>
87
- </connection>
88
- </iceadvanced_write>
89
- <iceadvanced_read>
90
- <connection>
91
- <use>core_read</use>
92
- </connection>
93
- </iceadvanced_read>
94
- </resources>
95
- <blocks>
96
- <iceadvanced>
97
- <class>Icepay_IceAdvanced_Block</class>
98
- </iceadvanced>
99
- </blocks>
100
- <helpers>
101
- <iceadvanced>
102
- <class>Icepay_IceAdvanced_Helper</class>
103
- </iceadvanced>
104
- </helpers>
105
- <events>
106
- <model_save_before>
107
- <observers>
108
- <iceadvanced>
109
- <type>singleton</type>
110
- <class>iceadvanced/observer</class>
111
- <method>model_save_before</method>
112
- </iceadvanced>
113
- </observers>
114
- </model_save_before>
115
- <model_save_after>
116
- <observers>
117
- <iceadvanced>
118
- <type>singleton</type>
119
- <class>iceadvanced/observer</class>
120
- <method>model_save_after</method>
121
- </iceadvanced>
122
- </observers>
123
- </model_save_after>
124
- <sales_order_payment_place_end>
125
- <observers>
126
- <iceadvanced>
127
- <type>singleton</type>
128
- <class>iceadvanced/observer</class>
129
- <method>sales_order_payment_place_end</method>
130
- </iceadvanced>
131
- </observers>
132
- </sales_order_payment_place_end>
133
- </events>
134
- </global>
135
-
136
- <adminhtml>
137
- <translate>
138
- <modules>
139
- <Icepay_IceAdvanced>
140
- <files>
141
- <default>Icepay_IceAdvanced.csv</default>
142
- </files>
143
- </Icepay_IceAdvanced>
144
- </modules>
145
- </translate>
146
-
147
- <acl>
148
- <resources>
149
- <admin>
150
- <children>
151
- <system>
152
- <children>
153
- <config>
154
- <children>
155
- <iceadvanced translate="title" module="iceadvanced">
156
- <title>iceadvanced Settings</title>
157
- </iceadvanced>
158
- </children>
159
- </config>
160
- </children>
161
- </system>
162
- </children>
163
- </admin>
164
- </resources>
165
- </acl>
166
- </adminhtml>
167
  </config>
1
+ <?xml version="1.0"?>
2
+
3
+ <config>
4
+ <modules>
5
+ <Icepay_IceAdvanced>
6
+ <version>1.2.5</version>
7
+ </Icepay_IceAdvanced>
8
+ </modules>
9
+ <frontend>
10
+ <routers>
11
+ <iceadvanced>
12
+ <use>standard</use>
13
+ <args>
14
+ <module>Icepay_IceAdvanced</module>
15
+ <frontName>icepayadvanced</frontName>
16
+ </args>
17
+ </iceadvanced>
18
+ </routers>
19
+ <layout>
20
+ <updates>
21
+ <iceadvanced>
22
+ <file>iceadvanced.xml</file>
23
+ </iceadvanced>
24
+ </updates>
25
+ </layout>
26
+ <translate>
27
+ <modules>
28
+ <Icepay_IceAdvanced>
29
+ <files>
30
+ <default>Icepay_IceAdvanced.csv</default>
31
+ </files>
32
+ </Icepay_IceAdvanced>
33
+ </modules>
34
+ </translate>
35
+ <events>
36
+ <sales_order_place_before>
37
+ <observers>
38
+ <iceadvanced>
39
+ <type>singleton</type>
40
+ <class>iceadvanced/observer</class>
41
+ <method>sales_order_place_before</method>
42
+ </iceadvanced>
43
+ </observers>
44
+ </sales_order_place_before>
45
+ <custom_quote_process>
46
+ <observers>
47
+ <iceadvanced>
48
+ <type>singleton</type>
49
+ <class>iceadvanced/observer</class>
50
+ <method>custom_quote_process</method>
51
+ </iceadvanced>
52
+ </observers>
53
+ </custom_quote_process>
54
+ </events>
55
+ </frontend>
56
+
57
+ <global>
58
+ <models>
59
+ <iceadvanced>
60
+ <class>Icepay_IceAdvanced_Model</class>
61
+ <resourceModel>iceadvanced_mysql4</resourceModel>
62
+ </iceadvanced>
63
+ <iceadvanced_mysql4>
64
+ <class>Icepay_IceAdvanced_Model_Mysql4</class>
65
+ <entities>
66
+ <icepay_issuerdata>
67
+ <table>icepay_issuerdata</table>
68
+ </icepay_issuerdata>
69
+ <icepay_pmdata>
70
+ <table>icepay_pmdata</table>
71
+ </icepay_pmdata>
72
+ </entities>
73
+ </iceadvanced_mysql4>
74
+ </models>
75
+ <resources>
76
+ <icepayadvanced_setup>
77
+ <setup>
78
+ <module>Icepay_IceAdvanced</module>
79
+ </setup>
80
+ <connection>
81
+ <use>core_setup</use>
82
+ </connection>
83
+ </icepayadvanced_setup>
84
+ <iceadvanced_write>
85
+ <connection>
86
+ <use>core_write</use>
87
+ </connection>
88
+ </iceadvanced_write>
89
+ <iceadvanced_read>
90
+ <connection>
91
+ <use>core_read</use>
92
+ </connection>
93
+ </iceadvanced_read>
94
+ </resources>
95
+ <blocks>
96
+ <iceadvanced>
97
+ <class>Icepay_IceAdvanced_Block</class>
98
+ </iceadvanced>
99
+ </blocks>
100
+ <helpers>
101
+ <iceadvanced>
102
+ <class>Icepay_IceAdvanced_Helper</class>
103
+ </iceadvanced>
104
+ </helpers>
105
+ <events>
106
+ <model_save_before>
107
+ <observers>
108
+ <iceadvanced>
109
+ <type>singleton</type>
110
+ <class>iceadvanced/observer</class>
111
+ <method>model_save_before</method>
112
+ </iceadvanced>
113
+ </observers>
114
+ </model_save_before>
115
+ <model_save_after>
116
+ <observers>
117
+ <iceadvanced>
118
+ <type>singleton</type>
119
+ <class>iceadvanced/observer</class>
120
+ <method>model_save_after</method>
121
+ </iceadvanced>
122
+ </observers>
123
+ </model_save_after>
124
+ <sales_order_payment_place_end>
125
+ <observers>
126
+ <iceadvanced>
127
+ <type>singleton</type>
128
+ <class>iceadvanced/observer</class>
129
+ <method>sales_order_payment_place_end</method>
130
+ </iceadvanced>
131
+ </observers>
132
+ </sales_order_payment_place_end>
133
+ </events>
134
+ </global>
135
+
136
+ <adminhtml>
137
+ <translate>
138
+ <modules>
139
+ <Icepay_IceAdvanced>
140
+ <files>
141
+ <default>Icepay_IceAdvanced.csv</default>
142
+ </files>
143
+ </Icepay_IceAdvanced>
144
+ </modules>
145
+ </translate>
146
+
147
+ <acl>
148
+ <resources>
149
+ <admin>
150
+ <children>
151
+ <system>
152
+ <children>
153
+ <config>
154
+ <children>
155
+ <iceadvanced translate="title" module="iceadvanced">
156
+ <title>iceadvanced Settings</title>
157
+ </iceadvanced>
158
+ </children>
159
+ </config>
160
+ </children>
161
+ </system>
162
+ </children>
163
+ </admin>
164
+ </resources>
165
+ </acl>
166
+ </adminhtml>
167
  </config>
app/code/community/Icepay/IceAdvanced/etc/system.xml CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/sql/icepayadvanced_setup/mysql4-install-1.0.0.php CHANGED
File without changes
app/code/community/Icepay/IceAdvanced/sql/icepayadvanced_setup/mysql4-upgrade-1.0.0-1.0.1.php CHANGED
@@ -1,11 +1,11 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
-
6
- $installer->run("
7
- ALTER TABLE `icepay_pmdata` RENAME TO `{$installer->getTable('icepay_pmdata')}`;
8
- ALTER TABLE `icepay_issuerdata` RENAME TO `{$installer->getTable('icepay_issuerdata')}`;
9
- ");
10
-
11
- $installer->endSetup();
1
+ <?php
2
+
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+
6
+ $installer->run("
7
+ ALTER TABLE `icepay_pmdata` RENAME TO `{$installer->getTable('icepay_pmdata')}`;
8
+ ALTER TABLE `icepay_issuerdata` RENAME TO `{$installer->getTable('icepay_issuerdata')}`;
9
+ ");
10
+
11
+ $installer->endSetup();
app/code/community/Icepay/IceCore/Block/Adminhtml/CheckSettings.php CHANGED
File without changes
app/code/community/Icepay/IceCore/Block/Adminhtml/GenerateURL.php CHANGED
File without changes
app/code/community/Icepay/IceCore/Block/Adminhtml/Grid/Modules.php CHANGED
File without changes
app/code/community/Icepay/IceCore/Block/Adminhtml/Init.php CHANGED
File without changes
app/code/community/Icepay/IceCore/Block/Front/Statement.php CHANGED
File without changes
app/code/community/Icepay/IceCore/Block/Front/Template.php CHANGED
File without changes
app/code/community/Icepay/IceCore/Helper/Data.php CHANGED
@@ -17,11 +17,11 @@ class Icepay_IceCore_Helper_Data extends Mage_Core_Helper_Abstract {
17
  /* Install values */
18
 
19
  public $title = "Core";
20
- public $version = "1.2.3";
21
  public $id = "003";
22
  public $fingerprint = "003";
23
  public $compatibility_oldest_version = "1.5.0.0";
24
- public $compatibility_latest_version = "1.9.2.0";
25
  public $section = "icecore";
26
  public $serial_required = "0";
27
  public $imageDir = "adminhtml/default/default/icepay/images/";
17
  /* Install values */
18
 
19
  public $title = "Core";
20
+ public $version = "1.2.2";
21
  public $id = "003";
22
  public $fingerprint = "003";
23
  public $compatibility_oldest_version = "1.5.0.0";
24
+ public $compatibility_latest_version = "1.8.0.0";
25
  public $section = "icecore";
26
  public $serial_required = "0";
27
  public $imageDir = "adminhtml/default/default/icepay/images/";
app/code/community/Icepay/IceCore/Model/Config.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Core - Configuration constants
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
-
17
- class Icepay_IceCore_Model_Config
18
- {
19
- /* Config constants */
20
-
21
- const MERCHANTID = "icecore/settings/merchant_id";
22
- const SECRETCODE = "icecore/settings/merchant_secret";
23
- const TRANSDESCR = "icecore/core_options/transaction_descr";
24
- const AUTOINVOICE = "icecore/core_options/order_autoinvoice";
25
- const AUTOREFUND = "icecore/core_options/order_autorefund";
26
-
27
- const STATUS_NEW = "NEW";
28
- const STATUS_OPEN = "OPEN";
29
- const STATUS_ERROR = "ERR";
30
- const STATUS_SUCCESS = "OK";
31
- const STATUS_REFUND = "REFUND";
32
- const STATUS_CHARGEBACK = "CBACK";
33
- const STATUS_AUTH = "AUTHORIZED";
34
- const STATUS_VERSION_CHECK = "VCHECK";
35
-
36
- const STATUS_MAGENTO_NEW = "icecore_new";
37
- const STATUS_MAGENTO_OPEN = "icecore_open";
38
- const STATUS_MAGENTO_ERROR = "icecore_err";
39
- const STATUS_MAGENTO_SUCCESS = "icecore_ok";
40
- const STATUS_MAGENTO_REFUND = "icecore_refund";
41
- const STATUS_MAGENTO_CHARGEBACK = "icecore_cback";
42
- const STATUS_MAGENTO_AUTHORIZED = "icecore_open";
43
-
44
-
45
- }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Core - Configuration constants
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+
17
+ class Icepay_IceCore_Model_Config
18
+ {
19
+ /* Config constants */
20
+
21
+ const MERCHANTID = "icecore/settings/merchant_id";
22
+ const SECRETCODE = "icecore/settings/merchant_secret";
23
+ const TRANSDESCR = "icecore/core_options/transaction_descr";
24
+ const AUTOINVOICE = "icecore/core_options/order_autoinvoice";
25
+ const AUTOREFUND = "icecore/core_options/order_autorefund";
26
+
27
+ const STATUS_NEW = "NEW";
28
+ const STATUS_OPEN = "OPEN";
29
+ const STATUS_ERROR = "ERR";
30
+ const STATUS_SUCCESS = "OK";
31
+ const STATUS_REFUND = "REFUND";
32
+ const STATUS_CHARGEBACK = "CBACK";
33
+ const STATUS_AUTH = "AUTHORIZED";
34
+ const STATUS_VERSION_CHECK = "VCHECK";
35
+
36
+ const STATUS_MAGENTO_NEW = "icecore_new";
37
+ const STATUS_MAGENTO_OPEN = "icecore_open";
38
+ const STATUS_MAGENTO_ERROR = "icecore_err";
39
+ const STATUS_MAGENTO_SUCCESS = "icecore_ok";
40
+ const STATUS_MAGENTO_REFUND = "icecore_refund";
41
+ const STATUS_MAGENTO_CHARGEBACK = "icecore_cback";
42
+ const STATUS_MAGENTO_AUTHORIZED = "icecore_open";
43
+
44
+
45
+ }
app/code/community/Icepay/IceCore/Model/Icepay/Postback.php CHANGED
@@ -1,450 +1,450 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Core - Postback processing
5
- * @version 1.0.1
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
- class Icepay_IceCore_Model_Icepay_Postback {
17
-
18
- protected $sqlModel;
19
- protected $orderModel;
20
- protected $order;
21
- protected $storeID;
22
- private $_post;
23
-
24
- public function __construct()
25
- {
26
- $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
27
- $this->orderModel = Mage::getModel('sales/order');
28
- }
29
-
30
- public function handle($_vars)
31
- {
32
- if (!$_vars) {
33
- Mage::helper("icecore")->log("No Postback vars");
34
- die("ICEPAY postback page installed correctly.");
35
- }
36
- $this->_post = $_vars;
37
-
38
- if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_VERSION_CHECK) {
39
- $this->outputVersion($this->validateVersion());
40
- }
41
-
42
- if (!$this->checkIP($_SERVER['REMOTE_ADDR'])) {
43
- Mage::helper("icecore")->log(sprintf("IP not in range (%s)", $_SERVER['REMOTE_ADDR']));
44
- die("IP not in range");
45
- }
46
- Mage::helper("icecore")->log(serialize($_vars));
47
-
48
- $this->order = $this->orderModel->loadByIncrementId($_vars['OrderID']);
49
-
50
- $icepayTransaction = $this->sqlModel->loadPaymentByID($this->order->getRealOrderId());
51
-
52
- $this->storeID = $icepayTransaction["store_id"];
53
-
54
- $transActionID = $this->saveTransaction($_vars);
55
-
56
- $doSpecialActions = false;
57
-
58
- if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_AUTH) {
59
- if (Mage::helper('icecore')->isModuleInstalled('Icepay_AutoCapture')) {
60
- if (Mage::Helper('icepay_autocapture')->isAutoCaptureActive($this->storeID)) {
61
- $_vars['Status'] = Icepay_IceCore_Model_Config::STATUS_SUCCESS;
62
- }
63
- }
64
- }
65
-
66
- if ($this->canUpdateBasedOnIcepayTable($icepayTransaction['status'], $_vars['Status'])) {
67
- /* creating the invoice causes major overhead! Status should to be updated and saved first */
68
- if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_SUCCESS)
69
- $doSpecialActions = true;
70
-
71
- // Update ICEPAY transaction info
72
- $newData = $icepayTransaction;
73
- $newData['update_time'] = now();
74
- $newData['status'] = $_vars['Status'];
75
- $newData['transaction_id'] = $_vars['PaymentID'];
76
- $this->sqlModel->changeStatus($newData);
77
-
78
- // Update order status
79
- if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_ERROR) {
80
- $this->order->cancel();
81
- } else {
82
- $this->order->setState(
83
- $this->getMagentoState($_vars['Status']), $this->getMagentoStatus($_vars['Status']), Mage::helper('icecore')->__('Status of order changed'), true
84
- );
85
- };
86
- };
87
-
88
- $this->order->save();
89
-
90
- $this->sendMail($icepayTransaction['status'], $_vars['Status']);
91
-
92
- if ($doSpecialActions) {
93
- $extraMsg = $this->specialActions($_vars['Status'], $transActionID);
94
- $this->order->setState(
95
- $this->getMagentoState($_vars['Status']), $this->getMagentoStatus($_vars['Status']), $extraMsg, false
96
- );
97
- $this->order->save();
98
- }
99
- }
100
-
101
- protected function outputVersion($extended = false)
102
- {
103
- $dump = array(
104
- "module" => $this->getVersions(),
105
- "notice" => "Checksum validation passed!"
106
- );
107
- if ($extended) {
108
-
109
- $dump["additional"] = array(
110
- "magento" => Mage::getVersion(),
111
- "soap" => Mage::helper('icecore')->hasSOAP() ? "installed" : "not installed",
112
- "storescope" => Mage::helper('icecore')->getStoreScopeID(),
113
- );
114
- } else {
115
- $dump["notice"] = "Checksum failed! Merchant ID and Secret code probably incorrect.";
116
- }
117
- var_dump($dump);
118
- exit();
119
- }
120
-
121
- protected function validateVersion()
122
- {
123
- if ($this->generateChecksumForVersion() != $this->_post["Checksum"])
124
- return false;
125
- return true;
126
- }
127
-
128
- protected function getVersions()
129
- {
130
- $_v = "";
131
- if (class_exists(Mage::getConfig()->getHelperClassName('icecore')))
132
- $_v.= sprintf("%s %s. ", Mage::helper('icecore')->title, Mage::helper('icecore')->version);
133
- if (class_exists(Mage::getConfig()->getHelperClassName('icebasic')))
134
- $_v.= sprintf("%s %s. ", Mage::helper('icebasic')->title, Mage::helper('icebasic')->version);
135
- if (class_exists(Mage::getConfig()->getHelperClassName('iceadvanced')))
136
- $_v.= sprintf("%s %s. ", Mage::helper('iceadvanced')->title, Mage::helper('iceadvanced')->version);
137
- return $_v;
138
- }
139
-
140
- protected function generateChecksumForVersion()
141
- {
142
- return sha1(
143
- sprintf("%s|%s|%s|%s", Mage::helper('icecore')->getConfig(Icepay_IceCore_Model_Config::SECRETCODE), Mage::helper('icecore')->getConfig(Icepay_IceCore_Model_Config::MERCHANTID), $this->_post["Status"], substr(strval(time()), 0, 8)
144
- )
145
- );
146
- }
147
-
148
- protected function sendMail($currentStatus, $newStatus)
149
- {
150
- switch ($currentStatus) {
151
- case Icepay_IceCore_Model_Config::STATUS_NEW:
152
- if ($newStatus == Icepay_IceCore_Model_Config::STATUS_ERROR) {
153
- $this->order->sendOrderUpdateEmail();
154
- } else {
155
- $this->order->sendNewOrderEmail();
156
- };
157
- break;
158
- default:
159
- $this->order->sendOrderUpdateEmail();
160
- }
161
- }
162
-
163
- protected function saveTransaction($_vars)
164
- {
165
- $payment = $this->order->getPayment();
166
-
167
- $transaction = $payment->getTransaction($_vars['PaymentID']);
168
-
169
- $i = 0;
170
- do {
171
- $id = $_vars['PaymentID'] . (($i > 0) ? "-{$i}" : "");
172
- $transaction = $payment->getTransaction($id);
173
- $i++;
174
- } while ($transaction);
175
- $i--;
176
-
177
- $id = $_vars['PaymentID'] . (($i > 0) ? "-{$i}" : "");
178
-
179
- $payment->setTransactionAdditionalInfo(Mage_Sales_Model_Order_Payment_Transaction::RAW_DETAILS, $_vars);
180
-
181
-
182
- $payment->setTransactionId($id)
183
- ->setIsTransactionClosed($this->isClosedStatus($_vars['Status']));
184
-
185
- if ($this->isRefund($_vars['Status'])) {
186
- $payment->setParentTransactionId($this->getParentPaymentID($_vars['StatusCode']));
187
- //Creditmemo currently not supported
188
- };
189
-
190
- $payment->addTransaction(
191
- $this->getTransactionStatus($_vars['Status']), null, false);
192
-
193
- $payment->save();
194
-
195
- return $id;
196
- }
197
-
198
- protected function createInvoice($id)
199
- {
200
- $invoice = $this->order->prepareInvoice()
201
- ->setTransactionId($id)
202
- ->addComment(Mage::helper('icecore')->__('Auto-generated by ICEPAY'))
203
- ->register()
204
- ->pay();
205
-
206
- $transactionSave = Mage::getModel('core/resource_transaction')
207
- ->addObject($invoice)
208
- ->addObject($invoice->getOrder());
209
-
210
- $transactionSave->save();
211
-
212
- $invoice->sendEmail();
213
-
214
- return $invoice;
215
- }
216
-
217
- protected function specialActions($newStatus, $transActionID)
218
- {
219
- $msg = "";
220
- switch ($newStatus) {
221
- case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
222
- if (!$this->order->hasInvoices() && Mage::app()->getStore($this->storeID)->getConfig(Icepay_IceCore_Model_Config::AUTOINVOICE) == 1) {
223
- $invoice = $this->createInvoice($transActionID);
224
- $msg = Mage::helper("icecore")->__('Invoice Auto-Created: %s', '<strong>' . $invoice->getIncrementId() . '</strong>');
225
- };
226
- break;
227
- }
228
- return $msg;
229
- }
230
-
231
- protected function canUpdate($currentStatus, $newStatus)
232
- {
233
- switch ($newStatus) {
234
- case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
235
- case Icepay_IceCore_Model_Config::STATUS_OPEN: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
236
- case Icepay_IceCore_Model_Config::STATUS_ERROR: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
237
- case Icepay_IceCore_Model_Config::STATUS_AUTH: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
238
- case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return ($currentStatus == Mage_Sales_Model_Order::STATE_PROCESSING || $currentStatus == Mage_Sales_Model_Order::STATE_COMPLETE);
239
- case Icepay_IceCore_Model_Config::STATUS_REFUND: return ($currentStatus == Mage_Sales_Model_Order::STATE_PROCESSING || $currentStatus == Mage_Sales_Model_Order::STATE_COMPLETE);
240
- default:
241
- return false;
242
- };
243
- }
244
-
245
- protected function canUpdateBasedOnIcepayTable($currentStatus, $newStatus)
246
- {
247
- switch ($currentStatus) {
248
- case Icepay_IceCore_Model_Config::STATUS_NEW:
249
- case Icepay_IceCore_Model_Config::STATUS_OPEN:
250
- return (
251
- $newStatus == Icepay_IceCore_Model_Config::STATUS_SUCCESS ||
252
- $newStatus == Icepay_IceCore_Model_Config::STATUS_ERROR ||
253
- $newStatus == Icepay_IceCore_Model_Config::STATUS_AUTH ||
254
- $newStatus == Icepay_IceCore_Model_Config::STATUS_OPEN
255
- );
256
- break;
257
- case Icepay_IceCore_Model_Config::STATUS_AUTH:
258
- return (
259
- $newStatus == Icepay_IceCore_Model_Config::STATUS_SUCCESS ||
260
- $newStatus == Icepay_IceCore_Model_Config::STATUS_ERROR
261
- );
262
- break;
263
- case Icepay_IceCore_Model_Config::STATUS_ERROR:
264
- return (
265
- $newStatus == Icepay_IceCore_Model_Config::STATUS_SUCCESS
266
- );
267
- break;
268
- case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
269
- return (
270
- $newStatus == Icepay_IceCore_Model_Config::STATUS_CHARGEBACK ||
271
- $newStatus == Icepay_IceCore_Model_Config::STATUS_REFUND
272
- );
273
- break;
274
- default:
275
- return false;
276
- break;
277
- }
278
- }
279
-
280
- protected function getMagentoStatus($icepayStatus)
281
- {
282
- switch ($icepayStatus) {
283
- case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_SUCCESS;
284
- case Icepay_IceCore_Model_Config::STATUS_OPEN: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_OPEN;
285
- case Icepay_IceCore_Model_Config::STATUS_ERROR: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_ERROR;
286
- case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_CHARGEBACK;
287
- case Icepay_IceCore_Model_Config::STATUS_REFUND: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_REFUND;
288
- case Icepay_IceCore_Model_Config::STATUS_AUTH: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_AUTHORIZED;
289
- default:
290
- return false;
291
- };
292
- }
293
-
294
- protected function getMagentoState($icepayStatus)
295
- {
296
- switch ($icepayStatus) {
297
- case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
298
- return Mage_Sales_Model_Order::STATE_PROCESSING;
299
- break;
300
- case Icepay_IceCore_Model_Config::STATUS_OPEN:
301
- case Icepay_IceCore_Model_config::STATUS_AUTH:
302
- return Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
303
- break;
304
- case Icepay_IceCore_Model_Config::STATUS_ERROR:
305
- return Mage_Sales_Model_Order::STATE_CANCELED;
306
- break;
307
- case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK:
308
- case Icepay_IceCore_Model_Config::STATUS_REFUND:
309
- return Mage_Sales_Model_Order::STATE_HOLDED;
310
- //return Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW;
311
- break;
312
- default:
313
- return false;
314
- };
315
- }
316
-
317
- protected function getTransactionStatus($icepayStatus)
318
- {
319
- switch ($icepayStatus) {
320
- case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_PAYMENT;
321
- case Icepay_IceCore_Model_Config::STATUS_OPEN: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID;
322
- case Icepay_IceCore_Model_config::STATUS_AUTH: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID;
323
- case Icepay_IceCore_Model_Config::STATUS_ERROR: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID;
324
- case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND;
325
- case Icepay_IceCore_Model_Config::STATUS_REFUND: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND;
326
- default: return false;
327
- };
328
- }
329
-
330
- protected function isClosedStatus($icepayStatus)
331
- {
332
- switch ($icepayStatus) {
333
- case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return true;
334
- case Icepay_IceCore_Model_Config::STATUS_OPEN: return false;
335
- case Icepay_IceCore_Model_config::STATUS_AUTH: return false;
336
- case Icepay_IceCore_Model_Config::STATUS_ERROR: return true;
337
- case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return true;
338
- case Icepay_IceCore_Model_Config::STATUS_REFUND: return true;
339
- default: return false;
340
- };
341
- }
342
-
343
- protected function isRefund($icepayStatus)
344
- {
345
- switch ($icepayStatus) {
346
- case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return true;
347
- case Icepay_IceCore_Model_Config::STATUS_REFUND: return true;
348
- default:
349
- return false;
350
- };
351
- }
352
-
353
- protected function getParentPaymentID($statusString)
354
- {
355
- $arr = explode("PaymentID:", $statusString);
356
- return intval($arr[1]);
357
- }
358
-
359
- protected function getTransactionString($_vars)
360
- {
361
- $str = "";
362
- foreach ($_vars as $key => $value) {
363
- $str .= "{$key}: {$value}<BR>";
364
- }
365
- return $str;
366
- }
367
-
368
- protected function checkIP($remote_ip)
369
- {
370
- return true;
371
- $whiteList = array('194.30.175.0-194.30.175.255', '194.126.241.128-194.126.241.191');
372
-
373
- if (Mage::helper('icecore')->getConfig('icecore/core_options/iprange') != '') {
374
- $ipRanges = explode(",", Mage::helper('icecore')->getConfig('icecore/core_options/iprange'));
375
-
376
- foreach ($ipRanges as $ipRange) {
377
- $ip = explode("-", $ipRange);
378
- $whiteList[] = "$ip[0]-$ip[1]";
379
- }
380
- }
381
-
382
- foreach ($whiteList as $allowedIp) {
383
- if ($this->ip_in_range($remote_ip, $allowedIp))
384
- return true;
385
- }
386
-
387
- return false;
388
- }
389
-
390
- protected function decbin32($dec)
391
- {
392
- return str_pad(decbin($dec), 32, '0', STR_PAD_LEFT);
393
- }
394
-
395
- protected function ip_in_range($ip, $range)
396
- {
397
- if (strpos($range, '/') !== false) {
398
- // $range is in IP/NETMASK format
399
- list($range, $netmask) = explode('/', $range, 2);
400
- if (strpos($netmask, '.') !== false) {
401
- // $netmask is a 255.255.0.0 format
402
- $netmask = str_replace('*', '0', $netmask);
403
- $netmask_dec = ip2long($netmask);
404
- return ( (ip2long($ip) & $netmask_dec) == (ip2long($range) & $netmask_dec) );
405
- } else {
406
- // $netmask is a CIDR size block
407
- // fix the range argument
408
- $x = explode('.', $range);
409
- while (count($x) < 4)
410
- $x[] = '0';
411
- list($a, $b, $c, $d) = $x;
412
- $range = sprintf("%u.%u.%u.%u", empty($a) ? '0' : $a, empty($b) ? '0' : $b, empty($c) ? '0' : $c, empty($d) ? '0' : $d);
413
- $range_dec = ip2long($range);
414
- $ip_dec = ip2long($ip);
415
-
416
- # Strategy 1 - Using substr to chop up the range and pad it with 1s to the right
417
- $broadcast_dec = bindec(substr($this->decbin32($range_dec), 0, $netmask)
418
- . str_pad('', 32 - $netmask, '1'));
419
-
420
- # Strategy 2 - Use math to OR the range with the wildcard to create the Broadcast address
421
- $wildcard_dec = pow(2, (32 - $netmask)) - 1;
422
- $broadcast_dec = $range_dec | $wildcard_dec;
423
-
424
- return (($ip_dec & $broadcast_dec) == $ip_dec);
425
- }
426
- } else {
427
- // range might be 255.255.*.* or 1.2.3.0-1.2.3.255
428
- if (strpos($range, '*') !== false) { // a.b.*.* format
429
- // Just convert to A-B format by setting * to 0 for A and 255 for B
430
- $lower = str_replace('*', '0', $range);
431
- $upper = str_replace('*', '255', $range);
432
- $range = "$lower-$upper";
433
- }
434
-
435
- if (strpos($range, '-') !== false) { // A-B format
436
- list($lower, $upper) = explode('-', $range, 2);
437
- $lower_dec = ip2long($lower);
438
- $upper_dec = ip2long($upper);
439
- $ip_dec = ip2long($ip);
440
- return ( ($ip_dec >= $lower_dec) && ($ip_dec <= $upper_dec) );
441
- }
442
-
443
- return false;
444
- }
445
-
446
- $ip_dec = ip2long($ip);
447
- return (($ip_dec & $netmask_dec) == $ip_dec);
448
- }
449
-
450
  }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Core - Postback processing
5
+ * @version 1.0.1
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+ class Icepay_IceCore_Model_Icepay_Postback {
17
+
18
+ protected $sqlModel;
19
+ protected $orderModel;
20
+ protected $order;
21
+ protected $storeID;
22
+ private $_post;
23
+
24
+ public function __construct()
25
+ {
26
+ $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
27
+ $this->orderModel = Mage::getModel('sales/order');
28
+ }
29
+
30
+ public function handle($_vars)
31
+ {
32
+ if (!$_vars) {
33
+ Mage::helper("icecore")->log("No Postback vars");
34
+ die("ICEPAY postback page installed correctly.");
35
+ }
36
+ $this->_post = $_vars;
37
+
38
+ if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_VERSION_CHECK) {
39
+ $this->outputVersion($this->validateVersion());
40
+ }
41
+
42
+ if (!$this->checkIP($_SERVER['REMOTE_ADDR'])) {
43
+ Mage::helper("icecore")->log(sprintf("IP not in range (%s)", $_SERVER['REMOTE_ADDR']));
44
+ die("IP not in range");
45
+ }
46
+ Mage::helper("icecore")->log(serialize($_vars));
47
+
48
+ $this->order = $this->orderModel->loadByIncrementId($_vars['OrderID']);
49
+
50
+ $icepayTransaction = $this->sqlModel->loadPaymentByID($this->order->getRealOrderId());
51
+
52
+ $this->storeID = $icepayTransaction["store_id"];
53
+
54
+ $transActionID = $this->saveTransaction($_vars);
55
+
56
+ $doSpecialActions = false;
57
+
58
+ if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_AUTH) {
59
+ if (Mage::helper('icecore')->isModuleInstalled('Icepay_AutoCapture')) {
60
+ if (Mage::Helper('icepay_autocapture')->isAutoCaptureActive($this->storeID)) {
61
+ $_vars['Status'] = Icepay_IceCore_Model_Config::STATUS_SUCCESS;
62
+ }
63
+ }
64
+ }
65
+
66
+ if ($this->canUpdateBasedOnIcepayTable($icepayTransaction['status'], $_vars['Status'])) {
67
+ /* creating the invoice causes major overhead! Status should to be updated and saved first */
68
+ if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_SUCCESS)
69
+ $doSpecialActions = true;
70
+
71
+ // Update ICEPAY transaction info
72
+ $newData = $icepayTransaction;
73
+ $newData['update_time'] = now();
74
+ $newData['status'] = $_vars['Status'];
75
+ $newData['transaction_id'] = $_vars['PaymentID'];
76
+ $this->sqlModel->changeStatus($newData);
77
+
78
+ // Update order status
79
+ if ($_vars['Status'] == Icepay_IceCore_Model_Config::STATUS_ERROR) {
80
+ $this->order->cancel();
81
+ } else {
82
+ $this->order->setState(
83
+ $this->getMagentoState($_vars['Status']), $this->getMagentoStatus($_vars['Status']), Mage::helper('icecore')->__('Status of order changed'), true
84
+ );
85
+ };
86
+ };
87
+
88
+ $this->order->save();
89
+
90
+ $this->sendMail($icepayTransaction['status'], $_vars['Status']);
91
+
92
+ if ($doSpecialActions) {
93
+ $extraMsg = $this->specialActions($_vars['Status'], $transActionID);
94
+ $this->order->setState(
95
+ $this->getMagentoState($_vars['Status']), $this->getMagentoStatus($_vars['Status']), $extraMsg, false
96
+ );
97
+ $this->order->save();
98
+ }
99
+ }
100
+
101
+ protected function outputVersion($extended = false)
102
+ {
103
+ $dump = array(
104
+ "module" => $this->getVersions(),
105
+ "notice" => "Checksum validation passed!"
106
+ );
107
+ if ($extended) {
108
+
109
+ $dump["additional"] = array(
110
+ "magento" => Mage::getVersion(),
111
+ "soap" => Mage::helper('icecore')->hasSOAP() ? "installed" : "not installed",
112
+ "storescope" => Mage::helper('icecore')->getStoreScopeID(),
113
+ );
114
+ } else {
115
+ $dump["notice"] = "Checksum failed! Merchant ID and Secret code probably incorrect.";
116
+ }
117
+ var_dump($dump);
118
+ exit();
119
+ }
120
+
121
+ protected function validateVersion()
122
+ {
123
+ if ($this->generateChecksumForVersion() != $this->_post["Checksum"])
124
+ return false;
125
+ return true;
126
+ }
127
+
128
+ protected function getVersions()
129
+ {
130
+ $_v = "";
131
+ if (class_exists(Mage::getConfig()->getHelperClassName('icecore')))
132
+ $_v.= sprintf("%s %s. ", Mage::helper('icecore')->title, Mage::helper('icecore')->version);
133
+ if (class_exists(Mage::getConfig()->getHelperClassName('icebasic')))
134
+ $_v.= sprintf("%s %s. ", Mage::helper('icebasic')->title, Mage::helper('icebasic')->version);
135
+ if (class_exists(Mage::getConfig()->getHelperClassName('iceadvanced')))
136
+ $_v.= sprintf("%s %s. ", Mage::helper('iceadvanced')->title, Mage::helper('iceadvanced')->version);
137
+ return $_v;
138
+ }
139
+
140
+ protected function generateChecksumForVersion()
141
+ {
142
+ return sha1(
143
+ sprintf("%s|%s|%s|%s", Mage::helper('icecore')->getConfig(Icepay_IceCore_Model_Config::SECRETCODE), Mage::helper('icecore')->getConfig(Icepay_IceCore_Model_Config::MERCHANTID), $this->_post["Status"], substr(strval(time()), 0, 8)
144
+ )
145
+ );
146
+ }
147
+
148
+ protected function sendMail($currentStatus, $newStatus)
149
+ {
150
+ switch ($currentStatus) {
151
+ case Icepay_IceCore_Model_Config::STATUS_NEW:
152
+ if ($newStatus == Icepay_IceCore_Model_Config::STATUS_ERROR) {
153
+ $this->order->sendOrderUpdateEmail();
154
+ } else {
155
+ $this->order->sendNewOrderEmail();
156
+ };
157
+ break;
158
+ default:
159
+ $this->order->sendOrderUpdateEmail();
160
+ }
161
+ }
162
+
163
+ protected function saveTransaction($_vars)
164
+ {
165
+ $payment = $this->order->getPayment();
166
+
167
+ $transaction = $payment->getTransaction($_vars['PaymentID']);
168
+
169
+ $i = 0;
170
+ do {
171
+ $id = $_vars['PaymentID'] . (($i > 0) ? "-{$i}" : "");
172
+ $transaction = $payment->getTransaction($id);
173
+ $i++;
174
+ } while ($transaction);
175
+ $i--;
176
+
177
+ $id = $_vars['PaymentID'] . (($i > 0) ? "-{$i}" : "");
178
+
179
+ $payment->setTransactionAdditionalInfo(Mage_Sales_Model_Order_Payment_Transaction::RAW_DETAILS, $_vars);
180
+
181
+
182
+ $payment->setTransactionId($id)
183
+ ->setIsTransactionClosed($this->isClosedStatus($_vars['Status']));
184
+
185
+ if ($this->isRefund($_vars['Status'])) {
186
+ $payment->setParentTransactionId($this->getParentPaymentID($_vars['StatusCode']));
187
+ //Creditmemo currently not supported
188
+ };
189
+
190
+ $payment->addTransaction(
191
+ $this->getTransactionStatus($_vars['Status']), null, false);
192
+
193
+ $payment->save();
194
+
195
+ return $id;
196
+ }
197
+
198
+ protected function createInvoice($id)
199
+ {
200
+ $invoice = $this->order->prepareInvoice()
201
+ ->setTransactionId($id)
202
+ ->addComment(Mage::helper('icecore')->__('Auto-generated by ICEPAY'))
203
+ ->register()
204
+ ->pay();
205
+
206
+ $transactionSave = Mage::getModel('core/resource_transaction')
207
+ ->addObject($invoice)
208
+ ->addObject($invoice->getOrder());
209
+
210
+ $transactionSave->save();
211
+
212
+ $invoice->sendEmail();
213
+
214
+ return $invoice;
215
+ }
216
+
217
+ protected function specialActions($newStatus, $transActionID)
218
+ {
219
+ $msg = "";
220
+ switch ($newStatus) {
221
+ case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
222
+ if (!$this->order->hasInvoices() && Mage::app()->getStore($this->storeID)->getConfig(Icepay_IceCore_Model_Config::AUTOINVOICE) == 1) {
223
+ $invoice = $this->createInvoice($transActionID);
224
+ $msg = Mage::helper("icecore")->__('Invoice Auto-Created: %s', '<strong>' . $invoice->getIncrementId() . '</strong>');
225
+ };
226
+ break;
227
+ }
228
+ return $msg;
229
+ }
230
+
231
+ protected function canUpdate($currentStatus, $newStatus)
232
+ {
233
+ switch ($newStatus) {
234
+ case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
235
+ case Icepay_IceCore_Model_Config::STATUS_OPEN: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
236
+ case Icepay_IceCore_Model_Config::STATUS_ERROR: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
237
+ case Icepay_IceCore_Model_Config::STATUS_AUTH: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
238
+ case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return ($currentStatus == Mage_Sales_Model_Order::STATE_PROCESSING || $currentStatus == Mage_Sales_Model_Order::STATE_COMPLETE);
239
+ case Icepay_IceCore_Model_Config::STATUS_REFUND: return ($currentStatus == Mage_Sales_Model_Order::STATE_PROCESSING || $currentStatus == Mage_Sales_Model_Order::STATE_COMPLETE);
240
+ default:
241
+ return false;
242
+ };
243
+ }
244
+
245
+ protected function canUpdateBasedOnIcepayTable($currentStatus, $newStatus)
246
+ {
247
+ switch ($currentStatus) {
248
+ case Icepay_IceCore_Model_Config::STATUS_NEW:
249
+ case Icepay_IceCore_Model_Config::STATUS_OPEN:
250
+ return (
251
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_SUCCESS ||
252
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_ERROR ||
253
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_AUTH ||
254
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_OPEN
255
+ );
256
+ break;
257
+ case Icepay_IceCore_Model_Config::STATUS_AUTH:
258
+ return (
259
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_SUCCESS ||
260
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_ERROR
261
+ );
262
+ break;
263
+ case Icepay_IceCore_Model_Config::STATUS_ERROR:
264
+ return (
265
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_SUCCESS
266
+ );
267
+ break;
268
+ case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
269
+ return (
270
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_CHARGEBACK ||
271
+ $newStatus == Icepay_IceCore_Model_Config::STATUS_REFUND
272
+ );
273
+ break;
274
+ default:
275
+ return false;
276
+ break;
277
+ }
278
+ }
279
+
280
+ protected function getMagentoStatus($icepayStatus)
281
+ {
282
+ switch ($icepayStatus) {
283
+ case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_SUCCESS;
284
+ case Icepay_IceCore_Model_Config::STATUS_OPEN: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_OPEN;
285
+ case Icepay_IceCore_Model_Config::STATUS_ERROR: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_ERROR;
286
+ case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_CHARGEBACK;
287
+ case Icepay_IceCore_Model_Config::STATUS_REFUND: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_REFUND;
288
+ case Icepay_IceCore_Model_Config::STATUS_AUTH: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_AUTHORIZED;
289
+ default:
290
+ return false;
291
+ };
292
+ }
293
+
294
+ protected function getMagentoState($icepayStatus)
295
+ {
296
+ switch ($icepayStatus) {
297
+ case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
298
+ return Mage_Sales_Model_Order::STATE_PROCESSING;
299
+ break;
300
+ case Icepay_IceCore_Model_Config::STATUS_OPEN:
301
+ case Icepay_IceCore_Model_config::STATUS_AUTH:
302
+ return Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
303
+ break;
304
+ case Icepay_IceCore_Model_Config::STATUS_ERROR:
305
+ return Mage_Sales_Model_Order::STATE_CANCELED;
306
+ break;
307
+ case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK:
308
+ case Icepay_IceCore_Model_Config::STATUS_REFUND:
309
+ return Mage_Sales_Model_Order::STATE_HOLDED;
310
+ //return Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW;
311
+ break;
312
+ default:
313
+ return false;
314
+ };
315
+ }
316
+
317
+ protected function getTransactionStatus($icepayStatus)
318
+ {
319
+ switch ($icepayStatus) {
320
+ case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_PAYMENT;
321
+ case Icepay_IceCore_Model_Config::STATUS_OPEN: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID;
322
+ case Icepay_IceCore_Model_config::STATUS_AUTH: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID;
323
+ case Icepay_IceCore_Model_Config::STATUS_ERROR: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID;
324
+ case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND;
325
+ case Icepay_IceCore_Model_Config::STATUS_REFUND: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND;
326
+ default: return false;
327
+ };
328
+ }
329
+
330
+ protected function isClosedStatus($icepayStatus)
331
+ {
332
+ switch ($icepayStatus) {
333
+ case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return true;
334
+ case Icepay_IceCore_Model_Config::STATUS_OPEN: return false;
335
+ case Icepay_IceCore_Model_config::STATUS_AUTH: return false;
336
+ case Icepay_IceCore_Model_Config::STATUS_ERROR: return true;
337
+ case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return true;
338
+ case Icepay_IceCore_Model_Config::STATUS_REFUND: return true;
339
+ default: return false;
340
+ };
341
+ }
342
+
343
+ protected function isRefund($icepayStatus)
344
+ {
345
+ switch ($icepayStatus) {
346
+ case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return true;
347
+ case Icepay_IceCore_Model_Config::STATUS_REFUND: return true;
348
+ default:
349
+ return false;
350
+ };
351
+ }
352
+
353
+ protected function getParentPaymentID($statusString)
354
+ {
355
+ $arr = explode("PaymentID:", $statusString);
356
+ return intval($arr[1]);
357
+ }
358
+
359
+ protected function getTransactionString($_vars)
360
+ {
361
+ $str = "";
362
+ foreach ($_vars as $key => $value) {
363
+ $str .= "{$key}: {$value}<BR>";
364
+ }
365
+ return $str;
366
+ }
367
+
368
+ protected function checkIP($remote_ip)
369
+ {
370
+ return true;
371
+ $whiteList = array('194.30.175.0-194.30.175.255', '194.126.241.128-194.126.241.191');
372
+
373
+ if (Mage::helper('icecore')->getConfig('icecore/core_options/iprange') != '') {
374
+ $ipRanges = explode(",", Mage::helper('icecore')->getConfig('icecore/core_options/iprange'));
375
+
376
+ foreach ($ipRanges as $ipRange) {
377
+ $ip = explode("-", $ipRange);
378
+ $whiteList[] = "$ip[0]-$ip[1]";
379
+ }
380
+ }
381
+
382
+ foreach ($whiteList as $allowedIp) {
383
+ if ($this->ip_in_range($remote_ip, $allowedIp))
384
+ return true;
385
+ }
386
+
387
+ return false;
388
+ }
389
+
390
+ protected function decbin32($dec)
391
+ {
392
+ return str_pad(decbin($dec), 32, '0', STR_PAD_LEFT);
393
+ }
394
+
395
+ protected function ip_in_range($ip, $range)
396
+ {
397
+ if (strpos($range, '/') !== false) {
398
+ // $range is in IP/NETMASK format
399
+ list($range, $netmask) = explode('/', $range, 2);
400
+ if (strpos($netmask, '.') !== false) {
401
+ // $netmask is a 255.255.0.0 format
402
+ $netmask = str_replace('*', '0', $netmask);
403
+ $netmask_dec = ip2long($netmask);
404
+ return ( (ip2long($ip) & $netmask_dec) == (ip2long($range) & $netmask_dec) );
405
+ } else {
406
+ // $netmask is a CIDR size block
407
+ // fix the range argument
408
+ $x = explode('.', $range);
409
+ while (count($x) < 4)
410
+ $x[] = '0';
411
+ list($a, $b, $c, $d) = $x;
412
+ $range = sprintf("%u.%u.%u.%u", empty($a) ? '0' : $a, empty($b) ? '0' : $b, empty($c) ? '0' : $c, empty($d) ? '0' : $d);
413
+ $range_dec = ip2long($range);
414
+ $ip_dec = ip2long($ip);
415
+
416
+ # Strategy 1 - Using substr to chop up the range and pad it with 1s to the right
417
+ $broadcast_dec = bindec(substr($this->decbin32($range_dec), 0, $netmask)
418
+ . str_pad('', 32 - $netmask, '1'));
419
+
420
+ # Strategy 2 - Use math to OR the range with the wildcard to create the Broadcast address
421
+ $wildcard_dec = pow(2, (32 - $netmask)) - 1;
422
+ $broadcast_dec = $range_dec | $wildcard_dec;
423
+
424
+ return (($ip_dec & $broadcast_dec) == $ip_dec);
425
+ }
426
+ } else {
427
+ // range might be 255.255.*.* or 1.2.3.0-1.2.3.255
428
+ if (strpos($range, '*') !== false) { // a.b.*.* format
429
+ // Just convert to A-B format by setting * to 0 for A and 255 for B
430
+ $lower = str_replace('*', '0', $range);
431
+ $upper = str_replace('*', '255', $range);
432
+ $range = "$lower-$upper";
433
+ }
434
+
435
+ if (strpos($range, '-') !== false) { // A-B format
436
+ list($lower, $upper) = explode('-', $range, 2);
437
+ $lower_dec = ip2long($lower);
438
+ $upper_dec = ip2long($upper);
439
+ $ip_dec = ip2long($ip);
440
+ return ( ($ip_dec >= $lower_dec) && ($ip_dec <= $upper_dec) );
441
+ }
442
+
443
+ return false;
444
+ }
445
+
446
+ $ip_dec = ip2long($ip);
447
+ return (($ip_dec & $netmask_dec) == $ip_dec);
448
+ }
449
+
450
  }
app/code/community/Icepay/IceCore/Model/Icepay/Result.php CHANGED
@@ -1,61 +1,61 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Core - Return page processing
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
- class Icepay_IceCore_Model_Icepay_Result {
17
-
18
- protected $sqlModel;
19
-
20
- public function __construct()
21
- {
22
- $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
23
- }
24
-
25
- public function handle(array $_vars)
26
- {
27
-
28
- if (count($_vars) == 0)
29
- die("ICEPAY result page installed correctly.");
30
- if (!$_vars['OrderID'])
31
- die("No orderID found");
32
-
33
- $order = Mage::getModel('sales/order');
34
- $order->loadByIncrementId(($_vars['OrderID'] == "DUMMY") ? $_vars['Reference'] : $_vars['OrderID'])
35
- ->addStatusHistoryComment(sprintf(Mage::helper("icecore")->__("Customer returned with status: %s"), $_vars['StatusCode']))
36
- ->save();
37
-
38
- switch (strtoupper($_vars['Status'])) {
39
- case "ERR":
40
- $quoteID = Mage::getSingleton('checkout/session')->getQuoteId();
41
- Mage::getSingleton('core/session')->setData('ic_quoteid', $quoteID);
42
- Mage::getSingleton('core/session')->setData('ic_quotedate', date("Y-m-d H:i:s"));
43
-
44
- $msg = sprintf(Mage::helper("icecore")->__("The payment provider has returned the following error message: %s"), Mage::helper("icecore")->__($_vars['Status'] . ": " . $_vars['StatusCode']));
45
- $url = 'checkout/cart';
46
- Mage::getSingleton('checkout/session')->addError($msg);
47
- break;
48
- case "OK":
49
- case "OPEN":
50
- default:
51
- Mage::getSingleton('checkout/session')->getQuote()->setIsActive(false)->save();
52
- $url = 'checkout/onepage/success';
53
- };
54
-
55
- /* Redirect based on store */
56
- Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl($url));
57
- $url = Mage::app()->getStore($order->getStoreId())->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true) . $url;
58
- Mage::app()->getFrontController()->getResponse()->setRedirect($url);
59
- }
60
-
61
  }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Core - Return page processing
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+ class Icepay_IceCore_Model_Icepay_Result {
17
+
18
+ protected $sqlModel;
19
+
20
+ public function __construct()
21
+ {
22
+ $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
23
+ }
24
+
25
+ public function handle(array $_vars)
26
+ {
27
+
28
+ if (count($_vars) == 0)
29
+ die("ICEPAY result page installed correctly.");
30
+ if (!$_vars['OrderID'])
31
+ die("No orderID found");
32
+
33
+ $order = Mage::getModel('sales/order');
34
+ $order->loadByIncrementId(($_vars['OrderID'] == "DUMMY") ? $_vars['Reference'] : $_vars['OrderID'])
35
+ ->addStatusHistoryComment(sprintf(Mage::helper("icecore")->__("Customer returned with status: %s"), $_vars['StatusCode']))
36
+ ->save();
37
+
38
+ switch (strtoupper($_vars['Status'])) {
39
+ case "ERR":
40
+ $quoteID = Mage::getSingleton('checkout/session')->getQuoteId();
41
+ Mage::getSingleton('core/session')->setData('ic_quoteid', $quoteID);
42
+ Mage::getSingleton('core/session')->setData('ic_quotedate', date("Y-m-d H:i:s"));
43
+
44
+ $msg = sprintf(Mage::helper("icecore")->__("The payment provider has returned the following error message: %s"), Mage::helper("icecore")->__($_vars['Status'] . ": " . $_vars['StatusCode']));
45
+ $url = 'checkout/cart';
46
+ Mage::getSingleton('checkout/session')->addError($msg);
47
+ break;
48
+ case "OK":
49
+ case "OPEN":
50
+ default:
51
+ Mage::getSingleton('checkout/session')->getQuote()->setIsActive(false)->save();
52
+ $url = 'checkout/onepage/success';
53
+ };
54
+
55
+ /* Redirect based on store */
56
+ Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl($url));
57
+ $url = Mage::app()->getStore($order->getStoreId())->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, true) . $url;
58
+ Mage::app()->getFrontController()->getResponse()->setRedirect($url);
59
+ }
60
+
61
  }
app/code/community/Icepay/IceCore/Model/Mysql4/IceCore.php CHANGED
File without changes
app/code/community/Icepay/IceCore/Model/Webservice/Core.php CHANGED
File without changes
app/code/community/Icepay/IceCore/controllers/AboutController.php CHANGED
@@ -1,25 +1,25 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Core - Controller About
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
-
17
- class Icepay_IceCore_AboutController extends Mage_Core_Controller_Front_Action
18
- {
19
-
20
- public function indexAction()
21
- {
22
- $this->loadLayout()->renderLayout();
23
- }
24
-
25
  }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Core - Controller About
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+
17
+ class Icepay_IceCore_AboutController extends Mage_Core_Controller_Front_Action
18
+ {
19
+
20
+ public function indexAction()
21
+ {
22
+ $this->loadLayout()->renderLayout();
23
+ }
24
+
25
  }
app/code/community/Icepay/IceCore/controllers/CheckController.php CHANGED
File without changes
app/code/community/Icepay/IceCore/controllers/IndexController.php CHANGED
File without changes
app/code/community/Icepay/IceCore/controllers/ProcessingController.php CHANGED
@@ -1,31 +1,31 @@
1
- <?php
2
-
3
- /**
4
- * ICEPAY Core - Return process controller
5
- * @version 1.0.0
6
- * @author Olaf Abbenhuis
7
- * @copyright ICEPAY <www.icepay.com>
8
- *
9
- * Disclaimer:
10
- * The merchant is entitled to change de ICEPAY plug-in code,
11
- * any changes will be at merchant's own risk.
12
- * Requesting ICEPAY support for a modified plug-in will be
13
- * charged in accordance with the standard ICEPAY tariffs.
14
- *
15
- */
16
-
17
- class Icepay_IceCore_ProcessingController extends Mage_Core_Controller_Front_Action {
18
-
19
- public function indexAction() {
20
- $this->_redirect('icepay/about');
21
- }
22
-
23
- public function notifyAction() {
24
- Mage::getModel('icecore/icepay_postback')->handle($this->getRequest()->getPost());
25
- }
26
-
27
- public function resultAction() {
28
- Mage::getModel('icecore/icepay_result')->handle($this->getRequest()->getQuery());
29
- }
30
-
31
- }
1
+ <?php
2
+
3
+ /**
4
+ * ICEPAY Core - Return process controller
5
+ * @version 1.0.0
6
+ * @author Olaf Abbenhuis
7
+ * @copyright ICEPAY <www.icepay.com>
8
+ *
9
+ * Disclaimer:
10
+ * The merchant is entitled to change de ICEPAY plug-in code,
11
+ * any changes will be at merchant's own risk.
12
+ * Requesting ICEPAY support for a modified plug-in will be
13
+ * charged in accordance with the standard ICEPAY tariffs.
14
+ *
15
+ */
16
+
17
+ class Icepay_IceCore_ProcessingController extends Mage_Core_Controller_Front_Action {
18
+
19
+ public function indexAction() {
20
+ $this->_redirect('icepay/about');
21
+ }
22
+
23
+ public function notifyAction() {
24
+ Mage::getModel('icecore/icepay_postback')->handle($this->getRequest()->getPost());
25
+ }
26
+
27
+ public function resultAction() {
28
+ Mage::getModel('icecore/icepay_result')->handle($this->getRequest()->getQuery());
29
+ }
30
+
31
+ }
app/code/community/Icepay/IceCore/etc/config.xml CHANGED
@@ -1,182 +1,182 @@
1
- <?xml version="1.0"?>
2
-
3
- <config>
4
- <modules>
5
- <Icepay_IceCore>
6
- <version>1.1.5</version>
7
- </Icepay_IceCore>
8
- </modules>
9
- <frontend>
10
- <routers>
11
- <icepay>
12
- <use>standard</use>
13
- <args>
14
- <module>Icepay_IceCore</module>
15
- <frontName>icepay</frontName>
16
- </args>
17
- </icepay>
18
- </routers>
19
- <layout>
20
- <updates>
21
- <icecore>
22
- <file>icecore.xml</file>
23
- </icecore>
24
- </updates>
25
- </layout>
26
- <translate>
27
- <modules>
28
- <Icepay_IceCore>
29
- <files>
30
- <default>Icepay_IceCore.csv</default>
31
- </files>
32
- </Icepay_IceCore>
33
- </modules>
34
- </translate>
35
- </frontend>
36
- <adminhtml>
37
- <translate>
38
- <modules>
39
- <Icepay_IceCore>
40
- <files>
41
- <default>Icepay_IceCore.csv</default>
42
- </files>
43
- </Icepay_IceCore>
44
- </modules>
45
- </translate>
46
- <acl>
47
- <resources>
48
- <admin>
49
- <children>
50
- <system>
51
- <children>
52
- <config>
53
- <children>
54
- <icecore translate="title" module="icecore">
55
- <title>icecore Settings</title>
56
- </icecore>
57
- </children>
58
- </config>
59
- </children>
60
- </system>
61
- </children>
62
- </admin>
63
- </resources>
64
- </acl>
65
- <layout>
66
- <updates>
67
- <icecore>
68
- <file>icecore.xml</file>
69
- </icecore>
70
- </updates>
71
- </layout>
72
- </adminhtml>
73
- <global>
74
- <models>
75
- <icecore>
76
- <class>Icepay_IceCore_Model</class>
77
- <resourceModel>icecore_mysql4</resourceModel>
78
- </icecore>
79
- <icecore_mysql4>
80
- <class>Icepay_IceCore_Model_Mysql4</class>
81
- <entities>
82
- <icepay_transactions>
83
- <table>icepay_transactions</table>
84
- </icepay_transactions>
85
- </entities>
86
- </icecore_mysql4>
87
- </models>
88
- <resources>
89
- <icepaycore_setup>
90
- <setup>
91
- <module>Icepay_IceCore</module>
92
- </setup>
93
- <connection>
94
- <use>core_setup</use>
95
- </connection>
96
- </icepaycore_setup>
97
- <icecore_write>
98
- <connection>
99
- <use>core_write</use>
100
- </connection>
101
- </icecore_write>
102
- <icecore_read>
103
- <connection>
104
- <use>core_read</use>
105
- </connection>
106
- </icecore_read>
107
- </resources>
108
- <blocks>
109
- <icecore>
110
- <class>Icepay_IceCore_Block</class>
111
- </icecore>
112
- </blocks>
113
- <helpers>
114
- <icecore>
115
- <class>Icepay_IceCore_Helper</class>
116
- </icecore>
117
- </helpers>
118
- <payment>
119
- <groups>
120
- <icepay>ICEPAY</icepay>
121
- </groups>
122
- </payment>
123
- <sales>
124
- <order>
125
- <statuses>
126
- <icecore_new translate="label">
127
- <label>New</label>
128
- <visible_on_front/>
129
- </icecore_new>
130
- <icecore_open translate="label">
131
- <label>Awaiting payment</label>
132
- <visible_on_front/>
133
- </icecore_open>
134
- <icecore_ok translate="label">
135
- <label>Payment received</label>
136
- </icecore_ok>
137
- <icecore_err translate="label">
138
- <label>Payment error</label>
139
- </icecore_err>
140
- <icecore_refund translate="label">
141
- <label>Payment refund request</label>
142
- </icecore_refund>
143
- <icecore_cback translate="label">
144
- <label>Payment chargeback request</label>
145
- </icecore_cback>
146
- </statuses>
147
- <states>
148
- <pending_payment>
149
- <statuses>
150
- <icecore_new/>
151
- <icecore_open/>
152
- </statuses>
153
- <visible_on_front/>
154
- </pending_payment>
155
- <processing_payment>
156
- <statuses>
157
- <icecore_ok/>
158
- </statuses>
159
- <visible_on_front/>
160
- </processing_payment>
161
- <cancel_payment>
162
- <statuses>
163
- <icecore_err/>
164
- </statuses>
165
- <visible_on_front/>
166
- </cancel_payment>
167
- </states>
168
-
169
- </order>
170
- </sales>
171
- </global>
172
- <default>
173
- <icecore>
174
- <advancedconfig>
175
- <language>en_US</language>
176
- </advancedconfig>
177
- <core_options>
178
- <order_autoinvoice>1</order_autoinvoice>
179
- </core_options>
180
- </icecore>
181
- </default>
182
  </config>
1
+ <?xml version="1.0"?>
2
+
3
+ <config>
4
+ <modules>
5
+ <Icepay_IceCore>
6
+ <version>1.2.5</version>
7
+ </Icepay_IceCore>
8
+ </modules>
9
+ <frontend>
10
+ <routers>
11
+ <icepay>
12
+ <use>standard</use>
13
+ <args>
14
+ <module>Icepay_IceCore</module>
15
+ <frontName>icepay</frontName>
16
+ </args>
17
+ </icepay>
18
+ </routers>
19
+ <layout>
20
+ <updates>
21
+ <icecore>
22
+ <file>icecore.xml</file>
23
+ </icecore>
24
+ </updates>
25
+ </layout>
26
+ <translate>
27
+ <modules>
28
+ <Icepay_IceCore>
29
+ <files>
30
+ <default>Icepay_IceCore.csv</default>
31
+ </files>
32
+ </Icepay_IceCore>
33
+ </modules>
34
+ </translate>
35
+ </frontend>
36
+ <adminhtml>
37
+ <translate>
38
+ <modules>
39
+ <Icepay_IceCore>
40
+ <files>
41
+ <default>Icepay_IceCore.csv</default>
42
+ </files>
43
+ </Icepay_IceCore>
44
+ </modules>
45
+ </translate>
46
+ <acl>
47
+ <resources>
48
+ <admin>
49
+ <children>
50
+ <system>
51
+ <children>
52
+ <config>
53
+ <children>
54
+ <icecore translate="title" module="icecore">
55
+ <title>icecore Settings</title>
56
+ </icecore>
57
+ </children>
58
+ </config>
59
+ </children>
60
+ </system>
61
+ </children>
62
+ </admin>
63
+ </resources>
64
+ </acl>
65
+ <layout>
66
+ <updates>
67
+ <icecore>
68
+ <file>icecore.xml</file>
69
+ </icecore>
70
+ </updates>
71
+ </layout>
72
+ </adminhtml>
73
+ <global>
74
+ <models>
75
+ <icecore>
76
+ <class>Icepay_IceCore_Model</class>
77
+ <resourceModel>icecore_mysql4</resourceModel>
78
+ </icecore>
79
+ <icecore_mysql4>
80
+ <class>Icepay_IceCore_Model_Mysql4</class>
81
+ <entities>
82
+ <icepay_transactions>
83
+ <table>icepay_transactions</table>
84
+ </icepay_transactions>
85
+ </entities>
86
+ </icecore_mysql4>
87
+ </models>
88
+ <resources>
89
+ <icepaycore_setup>
90
+ <setup>
91
+ <module>Icepay_IceCore</module>
92
+ </setup>
93
+ <connection>
94
+ <use>core_setup</use>
95
+ </connection>
96
+ </icepaycore_setup>
97
+ <icecore_write>
98
+ <connection>
99
+ <use>core_write</use>
100
+ </connection>
101
+ </icecore_write>
102
+ <icecore_read>
103
+ <connection>
104
+ <use>core_read</use>
105
+ </connection>
106
+ </icecore_read>
107
+ </resources>
108
+ <blocks>
109
+ <icecore>
110
+ <class>Icepay_IceCore_Block</class>
111
+ </icecore>
112
+ </blocks>
113
+ <helpers>
114
+ <icecore>
115
+ <class>Icepay_IceCore_Helper</class>
116
+ </icecore>
117
+ </helpers>
118
+ <payment>
119
+ <groups>
120
+ <icepay>ICEPAY</icepay>
121
+ </groups>
122
+ </payment>
123
+ <sales>
124
+ <order>
125
+ <statuses>
126
+ <icecore_new translate="label">
127
+ <label>New</label>
128
+ <visible_on_front/>
129
+ </icecore_new>
130
+ <icecore_open translate="label">
131
+ <label>Awaiting payment</label>
132
+ <visible_on_front/>
133
+ </icecore_open>
134
+ <icecore_ok translate="label">
135
+ <label>Payment received</label>
136
+ </icecore_ok>
137
+ <icecore_err translate="label">
138
+ <label>Payment error</label>
139
+ </icecore_err>
140
+ <icecore_refund translate="label">
141
+ <label>Payment refund request</label>
142
+ </icecore_refund>
143
+ <icecore_cback translate="label">
144
+ <label>Payment chargeback request</label>
145
+ </icecore_cback>
146
+ </statuses>
147
+ <states>
148
+ <pending_payment>
149
+ <statuses>
150
+ <icecore_new/>
151
+ <icecore_open/>
152
+ </statuses>
153
+ <visible_on_front/>
154
+ </pending_payment>
155
+ <processing_payment>
156
+ <statuses>
157
+ <icecore_ok/>
158
+ </statuses>
159
+ <visible_on_front/>
160
+ </processing_payment>
161
+ <cancel_payment>
162
+ <statuses>
163
+ <icecore_err/>
164
+ </statuses>
165
+ <visible_on_front/>
166
+ </cancel_payment>
167
+ </states>
168
+
169
+ </order>
170
+ </sales>
171
+ </global>
172
+ <default>
173
+ <icecore>
174
+ <advancedconfig>
175
+ <language>en_US</language>
176
+ </advancedconfig>
177
+ <core_options>
178
+ <order_autoinvoice>1</order_autoinvoice>
179
+ </core_options>
180
+ </icecore>
181
+ </default>
182
  </config>
app/code/community/Icepay/IceCore/etc/system.xml CHANGED
File without changes
app/code/community/Icepay/IceCore/sql/icepaycore_setup/mysql4-install-1.0.0.php CHANGED
File without changes
app/code/community/Icepay/IceCore/sql/icepaycore_setup/mysql4-upgrade-1.0.0-1.0.1.php CHANGED
@@ -1,10 +1,10 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
-
6
- $installer->run("
7
- ALTER TABLE `icepay_transactions` RENAME TO `{$installer->getTable('icepay_transactions')}`;
8
- ");
9
-
10
- $installer->endSetup();
1
+ <?php
2
+
3
+ $installer = $this;
4
+ $installer->startSetup();
5
+
6
+ $installer->run("
7
+ ALTER TABLE `icepay_transactions` RENAME TO `{$installer->getTable('icepay_transactions')}`;
8
+ ");
9
+
10
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/icecore.xml CHANGED
File without changes
app/design/adminhtml/default/default/template/icepayadvanced/form/default.phtml CHANGED
@@ -1,52 +1,52 @@
1
- <?php
2
-
3
- $_code = $this->getMethodCode();
4
-
5
- ?>
6
-
7
- <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
8
-
9
- <input type="hidden" name="payment[<?php echo $_code ?>_paymentmethod]" value="<?php echo $this->getPMCode() ?>">
10
-
11
- <?php if($this->getPMCode()): ?>
12
- <li>
13
- <label for="<?php echo $_code ?>_image"><?php
14
- Mage::helper("icecore")->imageDir = "frontend/base/default/images/icepay/";
15
- Mage::helper("icecore")->imageExtension = "png";
16
- echo Mage::helper("icecore")->toIcon(Mage::helper("icecore")->cleanString($this->getPMCode()));
17
- ?></label>
18
- </li>
19
- <?php endif; ?>
20
-
21
- <?php if($this->getTitle()): ?>
22
- <li>
23
- <label for="<?php echo $_code ?>_title"><?php echo $this->getTitle() ?></label>
24
- </li>
25
- <?php endif; ?>
26
-
27
- <?php if($this->getDescription()): ?>
28
- <li>
29
- <label for="<?php echo $_code ?>_info"><?php echo $this->getDescription() ?></label>
30
- </li>
31
- <?php endif; ?>
32
-
33
- <?php if($this->_issuer): ?>
34
- <?php if(count($this->_issuer) > 1): ?>
35
- <li>
36
- <label for="<?php echo $_code ?>_icepay_issuer" class="required"><em>*</em><?php echo $this->__('Please select an issuer') ?></label>
37
- <div class="input-box">
38
- <select id="<?php echo $_code ?>_icepay_issuer" name="payment[<?php echo $_code ?>_issuer]" class="required-entry validate-alpha">
39
- <option value="" selected><?php echo $this->__('--Please Select--')?></option>
40
- <?php
41
- foreach($this->_issuer as $issuer){
42
- echo('<option value="'.$issuer['value'].'">'.$this->__($issuer['label']).'</option>');
43
- };
44
- ?>
45
- </select>
46
- </div>
47
- </li>
48
- <?php else: ?>
49
- <input type="hidden" name="payment[<?php echo $_code ?>_issuer]" value="<?php echo $this->_issuer[0]['value'] ?>">
50
- <?php endif; ?>
51
- <?php endif; ?>
52
- </ul>
1
+ <?php
2
+
3
+ $_code = $this->getMethodCode();
4
+
5
+ ?>
6
+
7
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
8
+
9
+ <input type="hidden" name="payment[<?php echo $_code ?>_paymentmethod]" value="<?php echo $this->getPMCode() ?>">
10
+
11
+ <?php if($this->getPMCode()): ?>
12
+ <li>
13
+ <label for="<?php echo $_code ?>_image"><?php
14
+ Mage::helper("icecore")->imageDir = "frontend/base/default/images/icepay/";
15
+ Mage::helper("icecore")->imageExtension = "png";
16
+ echo Mage::helper("icecore")->toIcon(Mage::helper("icecore")->cleanString($this->getPMCode()));
17
+ ?></label>
18
+ </li>
19
+ <?php endif; ?>
20
+
21
+ <?php if($this->getTitle()): ?>
22
+ <li>
23
+ <label for="<?php echo $_code ?>_title"><?php echo $this->getTitle() ?></label>
24
+ </li>
25
+ <?php endif; ?>
26
+
27
+ <?php if($this->getDescription()): ?>
28
+ <li>
29
+ <label for="<?php echo $_code ?>_info"><?php echo $this->getDescription() ?></label>
30
+ </li>
31
+ <?php endif; ?>
32
+
33
+ <?php if($this->_issuer): ?>
34
+ <?php if(count($this->_issuer) > 1): ?>
35
+ <li>
36
+ <label for="<?php echo $_code ?>_icepay_issuer" class="required"><em>*</em><?php echo $this->__('Please select an issuer') ?></label>
37
+ <div class="input-box">
38
+ <select id="<?php echo $_code ?>_icepay_issuer" name="payment[<?php echo $_code ?>_issuer]" class="required-entry validate-alpha">
39
+ <option value="" selected><?php echo $this->__('--Please Select--')?></option>
40
+ <?php
41
+ foreach($this->_issuer as $issuer){
42
+ echo('<option value="'.$issuer['value'].'">'.$this->__($issuer['label']).'</option>');
43
+ };
44
+ ?>
45
+ </select>
46
+ </div>
47
+ </li>
48
+ <?php else: ?>
49
+ <input type="hidden" name="payment[<?php echo $_code ?>_issuer]" value="<?php echo $this->_issuer[0]['value'] ?>">
50
+ <?php endif; ?>
51
+ <?php endif; ?>
52
+ </ul>
app/design/adminhtml/default/default/template/icepayadvanced/grid_paymentmethods.phtml CHANGED
@@ -1,305 +1,305 @@
1
- <?php $_htmlId = $this->getElement()->getHtmlId() ?>
2
- <?php $_htmlClass = $this->getElement()->getClass() ?>
3
- <?php $_htmlName = $this->getElement()->getName() ?>
4
-
5
- <tr>
6
-
7
- <td colspan="11" class="grid tier">
8
- <input id="ice_webservice" type="hidden" name="groups[iceadvanced][fields][webservice_data][value]" value="0"/>
9
- <table cellspacing="0" class="data border" id="modules_table" style="width:600px">
10
- <col width="100" />
11
- <col width="120" />
12
- <col width="70" />
13
- <col width="190" />
14
- <col width="120" />
15
- <thead>
16
- <tr class="headings">
17
- <th><?php echo Mage::helper('iceadvanced')->__('Paymentmethod') ?></th>
18
- <th><?php echo Mage::helper('iceadvanced')->__('Title') ?></th>
19
- <th><?php echo Mage::helper('iceadvanced')->__('# Issuers') ?></th>
20
- <th><?php echo Mage::helper('iceadvanced')->__('Settings') ?></th>
21
- <th><?php echo Mage::helper('iceadvanced')->__('Active') ?></th>
22
- </tr>
23
- </thead>
24
- <tbody id="<?php echo $_htmlId ?>_container"></tbody>
25
- <tfoot>
26
- <tr>
27
- <td colspan="5" class="a-right"><?php echo $this->getAddButtonHtml() ?></td>
28
- </tr>
29
- </tfoot>
30
- </table>
31
-
32
-
33
-
34
- <script type="text/javascript" src="<?php echo $this->getJS('tiny_mce/tiny_mce.js'); ?>"></script>
35
- <script type="text/javascript">
36
- //<![CDATA[
37
-
38
- var ICEPAYPaymentMethodRowTemplate = '<tr id="icepay_{{index}}">'
39
- + '<td>{{pm_img}}</td>'
40
- + '<td><input class=" required-entry validate-length minimum-length-5 maximum-length-32 input-text" type="text" name="groups[{{module_namespace}}][fields][{{pm_key}}title][value]" value="{{pm_title}}" id="icepay_module_row_{{index}}_serial" style="width:93px;"/></td>'
41
- + '<td>{{pm_issuers}}</td>'
42
- + '<td><button type="button" class="scalable " onclick="icepayEditor.open(\'<?php echo $this->_ajaxLoadPaymentMethodURL ?>\', \'icepay_module_row_{{index}}_serial\')" style=""><span><?php echo $this->__('Configure') ?></span></button></td>'
43
- + '<td><select class="<?php echo $_htmlClass ?>" name="groups[{{module_namespace}}][fields][{{pm_key}}active][value]" id="icepay_pm_row_{{index}}_enabled" {{module_active_switch}}>'
44
- + '<option value="1"><?php echo Mage::helper("icecore")->__("Enabled") ?></option>'
45
- + '<option value="0"><?php echo Mage::helper("icecore")->__("Disabled") ?></option>'
46
- + '</select></td>'
47
- + '</tr>';
48
-
49
- var ICEPAYRetrievedPaymentMethodRowTemplate = '<tr id="icepay_{{index}}">'
50
- + '<input type="hidden" name="groups[{{module_namespace}}][fields][{{pm_key}}_][value]" id="icepay_pm_row_{{index}}_issuerdata" value="{{pm_issuerdata}}"/>'
51
- + '<input type="hidden" name="groups[{{module_namespace}}][fields][{{pm_key}}issuer][value]" id="icepay_pm_row_{{index}}_issuerdata" value="{{pm_issuerdata}}"/>'
52
- + '<td>{{pm_img}}</td>'
53
- + '<td><input class=" required-entry validate-length minimum-length-5 maximum-length-32 input-text" type="text" name="groups[{{module_namespace}}][fields][{{pm_key}}title][value]" value="{{pm_title}}" id="icepay_module_row_{{index}}_serial" style="width:93px;"/></td>'
54
- + '<td>{{pm_issuers}}</td>'
55
- + '<td><?php echo $this->__("Save Config to configure") ?></td>'
56
- + '<td><select class="<?php echo $_htmlClass ?>" name="groups[{{module_namespace}}][fields][{{pm_key}}active][value]" id="icepay_pm_row_{{index}}_enabled" {{module_active_switch}}>'
57
- + '<option value="1"><?php echo Mage::helper("icecore")->__("Enabled") ?></option>'
58
- + '<option value="0"><?php echo Mage::helper("icecore")->__("Disabled") ?></option>'
59
- + '</select></td>'
60
- //+ '<input type="hidden" name="groups[{{module_namespace}}][fields][{{pm_key}}code][value]" value="{{pm_code}}"/>'
61
- + '</tr>';
62
-
63
- var ICEPAYSettingsTemplate = '<p id="{{msg_id}}" class="{{type}}">{{msg}}</p>';
64
-
65
-
66
- var ICEPAY = {
67
- template: new Template(ICEPAYPaymentMethodRowTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
68
- ajaxTemplate: new Template(ICEPAYRetrievedPaymentMethodRowTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
69
- msgTemplate: new Template(ICEPAYSettingsTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
70
- itemsCount: 0,
71
- msgCount: 0,
72
- addItem: function() {
73
- var data = {
74
- pm_code: '',
75
- pm_title: '',
76
- pm_active: '',
77
- pm_key: '',
78
- pm_info: '',
79
- pm_img: '',
80
- pm_issuers: '',
81
- pm_issuerdata: '',
82
- pm_issuerimage: '',
83
- module_namespace: '',
84
- module_template: '',
85
- index: this.itemsCount++
86
- };
87
-
88
- data.pm_code = arguments[0];
89
- data.pm_title = arguments[1];
90
- data.pm_img = arguments[2];
91
- data.pm_issuers = arguments[3];
92
- data.pm_active = arguments[4];
93
- data.pm_info = arguments[5];
94
- data.pm_issuerdata = arguments[6];
95
- data.module_template = (arguments[7]) ? 1 : 0;
96
-
97
- data.pm_key = 'pm_' + arguments[0].toLowerCase() + '_';
98
- data.module_namespace = 'paymentmethod';
99
-
100
- Element.insert($('<?php echo $_htmlId ?>_container'), {
101
- bottom: (data.pm_issuerdata) ? this.ajaxTemplate.evaluate(data) : this.template.evaluate(data)
102
- });
103
-
104
- $('icepay_pm_row_' + data.index + '_enabled').selectedIndex = (data.pm_active == "1") ? 0 : 1;
105
- },
106
- addMessage: function() {
107
-
108
- var data = {
109
- type: '',
110
- msg: '',
111
- msg_id: '',
112
- index: this.msgCount++
113
- };
114
-
115
-
116
- data.type = arguments[0];
117
- data.msg = arguments[1];
118
- data.msg_id = "msg_id_" + data.index.toString();
119
-
120
- Element.insert($('icepay_debugger'), {
121
- bottom: this.msgTemplate.evaluate(data)
122
- });
123
-
124
- },
125
- clearMessages: function() {
126
- for (var i = 0; i < this.msgCount; i++) {
127
- try {
128
- Element.remove($('msg_id_' + i.toString()));
129
- } catch (err) {
130
- alert(err.toString());
131
- }
132
- }
133
- this.msgCount = 0;
134
- },
135
- clearAll: function() {
136
- for (var i = 0; i < this.itemsCount; i++) {
137
- try {
138
- Element.remove($('icepay_' + i));
139
- } catch (err) {
140
- }
141
- }
142
- this.itemsCount = 0;
143
- },
144
- retrieveFromICEPAY: function() {
145
- var url = '<?php echo $this->_ajaxGetPaymentMethodsURL ?>';
146
- var parameters = {};
147
- new Ajax.Request(url, {
148
- parameters: parameters,
149
- onComplete: function(response) {
150
- if (response.status === 200) {
151
- var result = response.responseText.evalJSON();
152
-
153
- if (result.msg) {
154
- ICEPAY.clearMessages();
155
- for (var i = 0; i < result.msg.length; i++)
156
- ICEPAY.addMessage(result.msg[i].type, result.msg[i].msg);
157
- }
158
-
159
- if (result.paymentmethods) {
160
- ICEPAY.clearAll();
161
- $('ice_webservice').value = 1;
162
-
163
- for (var i = 0; i < result.paymentmethods.length; i++) {
164
- var issuers = (result.paymentmethods[i].Issuers.Issuer.length > 0) ? result.paymentmethods[i].Issuers.Issuer.length.toString() + " issuers" : "1 issuer";
165
-
166
- ICEPAY.addItem(
167
- result.paymentmethods[i].PaymentMethodCode,
168
- result.paymentmethods[i].Description,
169
- result.paymentmethods[i].Image,
170
- issuers,
171
- result.paymentmethods[i].ConfigActive,
172
- result.paymentmethods[i].ConfigDescription,
173
- result.issuers[i]["data"]);
174
- }
175
- }
176
- }
177
- },
178
- onError: function(response) {
179
-
180
- }
181
- });
182
- return true;
183
- }
184
- };
185
-
186
-
187
- <?php foreach ($this->getPaymentmethods() as $_item): ?>
188
- <?php if (intval($_item['issuers']) > 0): ?>
189
- ICEPAY.addItem(
190
- '<?php echo $_item['code'] ?>',
191
- '<?php echo $_item['name'] ?>',
192
- '<?php echo $_item['image'] ?>',
193
- '<?php echo $_item['issuers'] ?>',
194
- '<?php echo $_item['active'] ?>',
195
- '<?php echo $_item['info'] ?>',
196
- null
197
- );
198
- <?php endif; ?>
199
- <?php endforeach; ?>
200
-
201
-
202
- var url = '<?php echo $this->_ajaxSavePaymentMethodURL ?>';
203
- var parameters = {};
204
-
205
- var icepayEditor = {
206
- overlayShowEffectOptions: null,
207
- overlayHideEffectOptions: null,
208
- open: function(editorUrl, elementId) {
209
- if (editorUrl && elementId) {
210
- new Ajax.Request(editorUrl, {
211
- parameters: {
212
- element_id: '', //elementId+'_editor',
213
- store_id: '0'
214
- },
215
- onSuccess: function(transport) {
216
- try {
217
- this.openDialogWindow(transport.responseText, elementId);
218
- } catch (e) {
219
- alert(e.message);
220
- }
221
- }.bind(this)
222
- });
223
- }
224
- },
225
- openDialogWindow: function(content, elementId) {
226
- this.overlayShowEffectOptions = Windows.overlayShowEffectOptions;
227
- this.overlayHideEffectOptions = Windows.overlayHideEffectOptions;
228
- Windows.overlayShowEffectOptions = {duration: 0};
229
- Windows.overlayHideEffectOptions = {duration: 0};
230
-
231
- Dialog.confirm(content, {
232
- draggable: true,
233
- resizable: true,
234
- closable: true,
235
- className: "magento",
236
- windowClassName: "popup-window",
237
- title: '<?php echo $this->__('ICEPAY paymentmethod configuration'); ?>',
238
- width: 750,
239
- height: 555,
240
- zIndex: 1000,
241
- recenterAuto: false,
242
- hideEffect: Element.hide,
243
- showEffect: Element.show,
244
- id: "catalog-wysiwyg-editor",
245
- buttonClass: "form-button",
246
- okLabel: "<?php echo $this->__('Save settings'); ?>",
247
- cancelLabel: "<?php echo $this->__('Cancel'); ?>",
248
- ok: this.saveDialogWindow.bind(this),
249
- cancel: this.closeDialogWindow.bind(this),
250
- onClose: this.closeDialogWindow.bind(this),
251
- firedElementId: elementId
252
- });
253
-
254
- content.evalScripts.bind(content).defer();
255
-
256
- },
257
- saveDialogWindow: function(dialogWindow) {
258
-
259
- var parameters = $('icepay_paymentmethod').serialize(true);
260
- parameters.active_issuers = $('iceadvanced_generic_issuers').getValue().join(',');
261
- parameters.specificcountry = $('iceadvanced_generic_specificcountry').getValue().join(',');
262
- dialogWindow.hide();
263
-
264
- new Ajax.Request(url, {
265
- parameters: parameters,
266
- onComplete: function(response) {
267
- if (response.status == 200) {
268
-
269
- }
270
- },
271
- onError: function(response) {
272
- alert("error");
273
- },
274
- onSuccess: function(transport) {
275
- alert(transport.responseText);
276
- }
277
-
278
- });
279
- this.closeDialogWindow(dialogWindow);
280
-
281
- },
282
- okDialogWindow: function(dialogWindow) {
283
- if (dialogWindow.options.firedElementId) {
284
- wysiwygObj = eval('wysiwyg' + dialogWindow.options.firedElementId + '_editor');
285
- wysiwygObj.turnOff();
286
- if (tinyMCE.get(wysiwygObj.id)) {
287
- $(dialogWindow.options.firedElementId).value = tinyMCE.get(wysiwygObj.id).getContent();
288
- } else {
289
- if ($(dialogWindow.options.firedElementId + '_editor')) {
290
- $(dialogWindow.options.firedElementId).value = $(dialogWindow.options.firedElementId + '_editor').value;
291
- }
292
- }
293
- }
294
- this.closeDialogWindow(dialogWindow);
295
- },
296
- closeDialogWindow: function(dialogWindow) {
297
- dialogWindow.close();
298
- Windows.overlayShowEffectOptions = this.overlayShowEffectOptions;
299
- Windows.overlayHideEffectOptions = this.overlayHideEffectOptions;
300
- }
301
- };
302
-
303
- //]]>
304
- </script>
305
  </td></tr>
1
+ <?php $_htmlId = $this->getElement()->getHtmlId() ?>
2
+ <?php $_htmlClass = $this->getElement()->getClass() ?>
3
+ <?php $_htmlName = $this->getElement()->getName() ?>
4
+
5
+ <tr>
6
+
7
+ <td colspan="11" class="grid tier">
8
+ <input id="ice_webservice" type="hidden" name="groups[iceadvanced][fields][webservice_data][value]" value="0"/>
9
+ <table cellspacing="0" class="data border" id="modules_table" style="width:600px">
10
+ <col width="100" />
11
+ <col width="120" />
12
+ <col width="70" />
13
+ <col width="190" />
14
+ <col width="120" />
15
+ <thead>
16
+ <tr class="headings">
17
+ <th><?php echo Mage::helper('iceadvanced')->__('Paymentmethod') ?></th>
18
+ <th><?php echo Mage::helper('iceadvanced')->__('Title') ?></th>
19
+ <th><?php echo Mage::helper('iceadvanced')->__('# Issuers') ?></th>
20
+ <th><?php echo Mage::helper('iceadvanced')->__('Settings') ?></th>
21
+ <th><?php echo Mage::helper('iceadvanced')->__('Active') ?></th>
22
+ </tr>
23
+ </thead>
24
+ <tbody id="<?php echo $_htmlId ?>_container"></tbody>
25
+ <tfoot>
26
+ <tr>
27
+ <td colspan="5" class="a-right"><?php echo $this->getAddButtonHtml() ?></td>
28
+ </tr>
29
+ </tfoot>
30
+ </table>
31
+
32
+
33
+
34
+ <script type="text/javascript" src="<?php echo $this->getJS('tiny_mce/tiny_mce.js'); ?>"></script>
35
+ <script type="text/javascript">
36
+ //<![CDATA[
37
+
38
+ var ICEPAYPaymentMethodRowTemplate = '<tr id="icepay_{{index}}">'
39
+ + '<td>{{pm_img}}</td>'
40
+ + '<td><input class=" required-entry validate-length minimum-length-5 maximum-length-32 input-text" type="text" name="groups[{{module_namespace}}][fields][{{pm_key}}title][value]" value="{{pm_title}}" id="icepay_module_row_{{index}}_serial" style="width:93px;"/></td>'
41
+ + '<td>{{pm_issuers}}</td>'
42
+ + '<td><button type="button" class="scalable " onclick="icepayEditor.open(\'<?php echo $this->_ajaxLoadPaymentMethodURL ?>\', \'icepay_module_row_{{index}}_serial\')" style=""><span><?php echo $this->__('Configure') ?></span></button></td>'
43
+ + '<td><select class="<?php echo $_htmlClass ?>" name="groups[{{module_namespace}}][fields][{{pm_key}}active][value]" id="icepay_pm_row_{{index}}_enabled" {{module_active_switch}}>'
44
+ + '<option value="1"><?php echo Mage::helper("icecore")->__("Enabled") ?></option>'
45
+ + '<option value="0"><?php echo Mage::helper("icecore")->__("Disabled") ?></option>'
46
+ + '</select></td>'
47
+ + '</tr>';
48
+
49
+ var ICEPAYRetrievedPaymentMethodRowTemplate = '<tr id="icepay_{{index}}">'
50
+ + '<input type="hidden" name="groups[{{module_namespace}}][fields][{{pm_key}}_][value]" id="icepay_pm_row_{{index}}_issuerdata" value="{{pm_issuerdata}}"/>'
51
+ + '<input type="hidden" name="groups[{{module_namespace}}][fields][{{pm_key}}issuer][value]" id="icepay_pm_row_{{index}}_issuerdata" value="{{pm_issuerdata}}"/>'
52
+ + '<td>{{pm_img}}</td>'
53
+ + '<td><input class=" required-entry validate-length minimum-length-5 maximum-length-32 input-text" type="text" name="groups[{{module_namespace}}][fields][{{pm_key}}title][value]" value="{{pm_title}}" id="icepay_module_row_{{index}}_serial" style="width:93px;"/></td>'
54
+ + '<td>{{pm_issuers}}</td>'
55
+ + '<td><?php echo $this->__("Save Config to configure") ?></td>'
56
+ + '<td><select class="<?php echo $_htmlClass ?>" name="groups[{{module_namespace}}][fields][{{pm_key}}active][value]" id="icepay_pm_row_{{index}}_enabled" {{module_active_switch}}>'
57
+ + '<option value="1"><?php echo Mage::helper("icecore")->__("Enabled") ?></option>'
58
+ + '<option value="0"><?php echo Mage::helper("icecore")->__("Disabled") ?></option>'
59
+ + '</select></td>'
60
+ //+ '<input type="hidden" name="groups[{{module_namespace}}][fields][{{pm_key}}code][value]" value="{{pm_code}}"/>'
61
+ + '</tr>';
62
+
63
+ var ICEPAYSettingsTemplate = '<p id="{{msg_id}}" class="{{type}}">{{msg}}</p>';
64
+
65
+
66
+ var ICEPAY = {
67
+ template: new Template(ICEPAYPaymentMethodRowTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
68
+ ajaxTemplate: new Template(ICEPAYRetrievedPaymentMethodRowTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
69
+ msgTemplate: new Template(ICEPAYSettingsTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
70
+ itemsCount: 0,
71
+ msgCount: 0,
72
+ addItem: function() {
73
+ var data = {
74
+ pm_code: '',
75
+ pm_title: '',
76
+ pm_active: '',
77
+ pm_key: '',
78
+ pm_info: '',
79
+ pm_img: '',
80
+ pm_issuers: '',
81
+ pm_issuerdata: '',
82
+ pm_issuerimage: '',
83
+ module_namespace: '',
84
+ module_template: '',
85
+ index: this.itemsCount++
86
+ };
87
+
88
+ data.pm_code = arguments[0];
89
+ data.pm_title = arguments[1];
90
+ data.pm_img = arguments[2];
91
+ data.pm_issuers = arguments[3];
92
+ data.pm_active = arguments[4];
93
+ data.pm_info = arguments[5];
94
+ data.pm_issuerdata = arguments[6];
95
+ data.module_template = (arguments[7]) ? 1 : 0;
96
+
97
+ data.pm_key = 'pm_' + arguments[0].toLowerCase() + '_';
98
+ data.module_namespace = 'paymentmethod';
99
+
100
+ Element.insert($('<?php echo $_htmlId ?>_container'), {
101
+ bottom: (data.pm_issuerdata) ? this.ajaxTemplate.evaluate(data) : this.template.evaluate(data)
102
+ });
103
+
104
+ $('icepay_pm_row_' + data.index + '_enabled').selectedIndex = (data.pm_active == "1") ? 0 : 1;
105
+ },
106
+ addMessage: function() {
107
+
108
+ var data = {
109
+ type: '',
110
+ msg: '',
111
+ msg_id: '',
112
+ index: this.msgCount++
113
+ };
114
+
115
+
116
+ data.type = arguments[0];
117
+ data.msg = arguments[1];
118
+ data.msg_id = "msg_id_" + data.index.toString();
119
+
120
+ Element.insert($('icepay_debugger'), {
121
+ bottom: this.msgTemplate.evaluate(data)
122
+ });
123
+
124
+ },
125
+ clearMessages: function() {
126
+ for (var i = 0; i < this.msgCount; i++) {
127
+ try {
128
+ Element.remove($('msg_id_' + i.toString()));
129
+ } catch (err) {
130
+ alert(err.toString());
131
+ }
132
+ }
133
+ this.msgCount = 0;
134
+ },
135
+ clearAll: function() {
136
+ for (var i = 0; i < this.itemsCount; i++) {
137
+ try {
138
+ Element.remove($('icepay_' + i));
139
+ } catch (err) {
140
+ }
141
+ }
142
+ this.itemsCount = 0;
143
+ },
144
+ retrieveFromICEPAY: function() {
145
+ var url = '<?php echo $this->_ajaxGetPaymentMethodsURL ?>';
146
+ var parameters = {};
147
+ new Ajax.Request(url, {
148
+ parameters: parameters,
149
+ onComplete: function(response) {
150
+ if (response.status === 200) {
151
+ var result = response.responseText.evalJSON();
152
+
153
+ if (result.msg) {
154
+ ICEPAY.clearMessages();
155
+ for (var i = 0; i < result.msg.length; i++)
156
+ ICEPAY.addMessage(result.msg[i].type, result.msg[i].msg);
157
+ }
158
+
159
+ if (result.paymentmethods) {
160
+ ICEPAY.clearAll();
161
+ $('ice_webservice').value = 1;
162
+
163
+ for (var i = 0; i < result.paymentmethods.length; i++) {
164
+ var issuers = (result.paymentmethods[i].Issuers.Issuer.length > 0) ? result.paymentmethods[i].Issuers.Issuer.length.toString() + " issuers" : "1 issuer";
165
+
166
+ ICEPAY.addItem(
167
+ result.paymentmethods[i].PaymentMethodCode,
168
+ result.paymentmethods[i].Description,
169
+ result.paymentmethods[i].Image,
170
+ issuers,
171
+ result.paymentmethods[i].ConfigActive,
172
+ result.paymentmethods[i].ConfigDescription,
173
+ result.issuers[i]["data"]);
174
+ }
175
+ }
176
+ }
177
+ },
178
+ onError: function(response) {
179
+
180
+ }
181
+ });
182
+ return true;
183
+ }
184
+ };
185
+
186
+
187
+ <?php foreach ($this->getPaymentmethods() as $_item): ?>
188
+ <?php if (intval($_item['issuers']) > 0): ?>
189
+ ICEPAY.addItem(
190
+ '<?php echo $_item['code'] ?>',
191
+ '<?php echo $_item['name'] ?>',
192
+ '<?php echo $_item['image'] ?>',
193
+ '<?php echo $_item['issuers'] ?>',
194
+ '<?php echo $_item['active'] ?>',
195
+ '<?php echo $_item['info'] ?>',
196
+ null
197
+ );
198
+ <?php endif; ?>
199
+ <?php endforeach; ?>
200
+
201
+
202
+ var url = '<?php echo $this->_ajaxSavePaymentMethodURL ?>';
203
+ var parameters = {};
204
+
205
+ var icepayEditor = {
206
+ overlayShowEffectOptions: null,
207
+ overlayHideEffectOptions: null,
208
+ open: function(editorUrl, elementId) {
209
+ if (editorUrl && elementId) {
210
+ new Ajax.Request(editorUrl, {
211
+ parameters: {
212
+ element_id: '', //elementId+'_editor',
213
+ store_id: '0'
214
+ },
215
+ onSuccess: function(transport) {
216
+ try {
217
+ this.openDialogWindow(transport.responseText, elementId);
218
+ } catch (e) {
219
+ alert(e.message);
220
+ }
221
+ }.bind(this)
222
+ });
223
+ }
224
+ },
225
+ openDialogWindow: function(content, elementId) {
226
+ this.overlayShowEffectOptions = Windows.overlayShowEffectOptions;
227
+ this.overlayHideEffectOptions = Windows.overlayHideEffectOptions;
228
+ Windows.overlayShowEffectOptions = {duration: 0};
229
+ Windows.overlayHideEffectOptions = {duration: 0};
230
+
231
+ Dialog.confirm(content, {
232
+ draggable: true,
233
+ resizable: true,
234
+ closable: true,
235
+ className: "magento",
236
+ windowClassName: "popup-window",
237
+ title: '<?php echo $this->__('ICEPAY paymentmethod configuration'); ?>',
238
+ width: 750,
239
+ height: 555,
240
+ zIndex: 1000,
241
+ recenterAuto: false,
242
+ hideEffect: Element.hide,
243
+ showEffect: Element.show,
244
+ id: "catalog-wysiwyg-editor",
245
+ buttonClass: "form-button",
246
+ okLabel: "<?php echo $this->__('Save settings'); ?>",
247
+ cancelLabel: "<?php echo $this->__('Cancel'); ?>",
248
+ ok: this.saveDialogWindow.bind(this),
249
+ cancel: this.closeDialogWindow.bind(this),
250
+ onClose: this.closeDialogWindow.bind(this),
251
+ firedElementId: elementId
252
+ });
253
+
254
+ content.evalScripts.bind(content).defer();
255
+
256
+ },
257
+ saveDialogWindow: function(dialogWindow) {
258
+
259
+ var parameters = $('icepay_paymentmethod').serialize(true);
260
+ parameters.active_issuers = $('iceadvanced_generic_issuers').getValue().join(',');
261
+ parameters.specificcountry = $('iceadvanced_generic_specificcountry').getValue().join(',');
262
+ dialogWindow.hide();
263
+
264
+ new Ajax.Request(url, {
265
+ parameters: parameters,
266
+ onComplete: function(response) {
267
+ if (response.status == 200) {
268
+
269
+ }
270
+ },
271
+ onError: function(response) {
272
+ alert("error");
273
+ },
274
+ onSuccess: function(transport) {
275
+ alert(transport.responseText);
276
+ }
277
+
278
+ });
279
+ this.closeDialogWindow(dialogWindow);
280
+
281
+ },
282
+ okDialogWindow: function(dialogWindow) {
283
+ if (dialogWindow.options.firedElementId) {
284
+ wysiwygObj = eval('wysiwyg' + dialogWindow.options.firedElementId + '_editor');
285
+ wysiwygObj.turnOff();
286
+ if (tinyMCE.get(wysiwygObj.id)) {
287
+ $(dialogWindow.options.firedElementId).value = tinyMCE.get(wysiwygObj.id).getContent();
288
+ } else {
289
+ if ($(dialogWindow.options.firedElementId + '_editor')) {
290
+ $(dialogWindow.options.firedElementId).value = $(dialogWindow.options.firedElementId + '_editor').value;
291
+ }
292
+ }
293
+ }
294
+ this.closeDialogWindow(dialogWindow);
295
+ },
296
+ closeDialogWindow: function(dialogWindow) {
297
+ dialogWindow.close();
298
+ Windows.overlayShowEffectOptions = this.overlayShowEffectOptions;
299
+ Windows.overlayHideEffectOptions = this.overlayHideEffectOptions;
300
+ }
301
+ };
302
+
303
+ //]]>
304
+ </script>
305
  </td></tr>
app/design/adminhtml/default/default/template/icepayadvanced/paymentmethod.phtml CHANGED
@@ -1,85 +1,85 @@
1
-
2
- <form id="icepay_paymentmethod" name="icepay_paymentmethod" >
3
-
4
- <input type="hidden" name="reference" value="<?php echo $this->getViewData()->module ?>"/>
5
- <input type="hidden" name="name" value="<?php echo $this->getViewData()->config['title'] ?>"/>
6
- <input type="hidden" name="store" value="<?php echo $this->scopeID ?>"/>
7
-
8
- <table class="form-list" cellspacing="0"><colgroup class="label"></colgroup><colgroup class="value"></colgroup><colgroup class="scope-label"></colgroup><colgroup class=""></colgroup><tbody>
9
-
10
- <tr id="row_iceadvanced_generic_min_order_total">
11
- <td class="label"><label for="iceadvanced_generic_min_order_total"><?php echo($this->__("Settings for")); ?></label></td>
12
- <td class="value"><?php echo $this->getViewData()->config['title'] ?></td>
13
- </tr>
14
- <tr id="row_iceadvanced_generic_checkout_descr">
15
- <td class="label"><label for="iceadvanced_generic_checkout_descr"><?php echo($this->__("Description in checkout")); ?></label></td>
16
- <td class="value"><textarea id="iceadvanced_generic_checkout_descr" name="description" rows="2" cols="4" style="width:300px;height:40px"><?php echo $this->getViewData()->config['description'] ?></textarea>
17
- <p class="note"><span><?php echo($this->__("Description displayed in checkout")); ?></span></p>
18
- </td>
19
- </tr>
20
- <tr>
21
- <td class="label"><label><?php echo($this->__("Issuers")); ?></label></td>
22
- <td class="value"><select id="iceadvanced_generic_issuers" name="active_issuers" class=" select multiselect" size="9" multiple="multiple" <?php if (count($this->getViewData()->issuers) == 1) echo('disabled="disabled"'); ?>>
23
- <?php
24
- foreach ($this->getViewData()->issuers as $key => $value) {
25
- $selected = (strstr($this->getViewData()->config['active_issuers'], $value['issuer_code'])) ? "selected" : "";
26
- echo("<option value=\"{$value['issuer_code']}\" {$selected}>{$value['issuer_name']}</option>");
27
- }
28
- ?>
29
- </select>
30
- <p class="note"><span><?php echo($this->__("Use CTRL to activate/deactivate specific issuers")); ?></span></p>
31
- </td>
32
- </tr>
33
- <tr id="row_iceadvanced_generic_allowspecific">
34
- <td class="label"><label for="iceadvanced_generic_allowspecific"> <?php echo($this->__("Payment from Applicable Countries")); ?></label></td>
35
- <td class="value">
36
- <select id="iceadvanced_generic_allowspecific" name="allowspecific" class=" select">
37
- <option value="0" <?php if ($this->getViewData()->config['allowspecific'] != 1) echo('selected="selected"') ?>><?php echo($this->__("All Allowed Countries")); ?></option>
38
- <option value="1" <?php if ($this->getViewData()->config['allowspecific'] == 1) echo('selected="selected"') ?>><?php echo($this->__("Specific Countries")); ?></option>
39
- </select>
40
- <script type="text/javascript">
41
- checkDisplay();
42
- function checkDisplay() {
43
- specific = $('iceadvanced_generic_allowspecific').value;
44
- if (!specific || specific != 1) {
45
- $('row_iceadvanced_generic_specificcountry').hide();
46
- } else {
47
- $('row_iceadvanced_generic_specificcountry').show();
48
- }
49
- ;
50
- }
51
- ;
52
- Event.observe('iceadvanced_generic_allowspecific', 'change', function() {
53
- checkDisplay();
54
- });
55
- </script>
56
- </td>
57
- </tr>
58
- <tr id="row_iceadvanced_generic_specificcountry">
59
- <td class="label"><label for="iceadvanced_generic_specificcountry"> <?php echo($this->__("Payment from Specific Countries")); ?></label></td>
60
- <td class="value"><input name="groups[generic][fields][specificcountry][value]" value="" type="hidden">
61
- <select id="iceadvanced_generic_specificcountry" name="specificcountry" class=" select multiselect" size="10" multiple="multiple">
62
- <?php
63
- foreach ($this->getViewData()->countryCollection as $country) {
64
- $selected = (strstr($this->getViewData()->config['specificcountry'], $country['value'])) ? "selected" : "";
65
- echo("<option value=\"{$country['value']}\" {$selected}>{$country['label']}</option>");
66
- }
67
- ?>
68
- </select>
69
- <p class="note"><span><?php echo($this->__("Use CTRL to select specific countries")); ?></span></p>
70
- </td>
71
- </tr>
72
- <tr id="row_iceadvanced_generic_min_order_total">
73
- <td class="label"><label for="iceadvanced_generic_min_order_total"> <?php echo($this->__("Minimum Order Total")); ?></label></td>
74
- <td class="value"><input id="iceadvanced_generic_min_order_total" name="min_order_total" value="<?php echo $this->getViewData()->config['min_order_total'] ?>" class=" input-text" type="text"></td>
75
- </tr>
76
- <tr id="row_iceadvanced_generic_max_order_total">
77
- <td class="label"><label for="iceadvanced_generic_max_order_total"> <?php echo($this->__("Maximum Order Total")); ?></label></td>
78
- <td class="value"><input id="iceadvanced_generic_max_order_total" name="max_order_total" value="<?php echo $this->getViewData()->config['max_order_total'] ?>" class=" input-text" type="text"></td>
79
- </tr>
80
- <tr id="row_iceadvanced_generic_sort_order">
81
- <td class="label"><label for="iceadvanced_generic_sort_order"> <?php echo($this->__("Sort order")); ?></label></td>
82
- <td class="value"><input id="iceadvanced_generic_sort_order" name="sort_order" value="<?php echo $this->getViewData()->config['sort_order'] ?>" class=" input-text" type="text"></td>
83
- </tr>
84
- </tbody></table>
85
  </form>
1
+
2
+ <form id="icepay_paymentmethod" name="icepay_paymentmethod" >
3
+
4
+ <input type="hidden" name="reference" value="<?php echo $this->getViewData()->module ?>"/>
5
+ <input type="hidden" name="name" value="<?php echo $this->getViewData()->config['title'] ?>"/>
6
+ <input type="hidden" name="store" value="<?php echo $this->scopeID ?>"/>
7
+
8
+ <table class="form-list" cellspacing="0"><colgroup class="label"></colgroup><colgroup class="value"></colgroup><colgroup class="scope-label"></colgroup><colgroup class=""></colgroup><tbody>
9
+
10
+ <tr id="row_iceadvanced_generic_min_order_total">
11
+ <td class="label"><label for="iceadvanced_generic_min_order_total"><?php echo($this->__("Settings for")); ?></label></td>
12
+ <td class="value"><?php echo $this->getViewData()->config['title'] ?></td>
13
+ </tr>
14
+ <tr id="row_iceadvanced_generic_checkout_descr">
15
+ <td class="label"><label for="iceadvanced_generic_checkout_descr"><?php echo($this->__("Description in checkout")); ?></label></td>
16
+ <td class="value"><textarea id="iceadvanced_generic_checkout_descr" name="description" rows="2" cols="4" style="width:300px;height:40px"><?php echo $this->getViewData()->config['description'] ?></textarea>
17
+ <p class="note"><span><?php echo($this->__("Description displayed in checkout")); ?></span></p>
18
+ </td>
19
+ </tr>
20
+ <tr>
21
+ <td class="label"><label><?php echo($this->__("Issuers")); ?></label></td>
22
+ <td class="value"><select id="iceadvanced_generic_issuers" name="active_issuers" class=" select multiselect" size="9" multiple="multiple" <?php if (count($this->getViewData()->issuers) == 1) echo('disabled="disabled"'); ?>>
23
+ <?php
24
+ foreach ($this->getViewData()->issuers as $key => $value) {
25
+ $selected = (strstr($this->getViewData()->config['active_issuers'], $value['issuer_code'])) ? "selected" : "";
26
+ echo("<option value=\"{$value['issuer_code']}\" {$selected}>{$value['issuer_name']}</option>");
27
+ }
28
+ ?>
29
+ </select>
30
+ <p class="note"><span><?php echo($this->__("Use CTRL to activate/deactivate specific issuers")); ?></span></p>
31
+ </td>
32
+ </tr>
33
+ <tr id="row_iceadvanced_generic_allowspecific">
34
+ <td class="label"><label for="iceadvanced_generic_allowspecific"> <?php echo($this->__("Payment from Applicable Countries")); ?></label></td>
35
+ <td class="value">
36
+ <select id="iceadvanced_generic_allowspecific" name="allowspecific" class=" select">
37
+ <option value="0" <?php if ($this->getViewData()->config['allowspecific'] != 1) echo('selected="selected"') ?>><?php echo($this->__("All Allowed Countries")); ?></option>
38
+ <option value="1" <?php if ($this->getViewData()->config['allowspecific'] == 1) echo('selected="selected"') ?>><?php echo($this->__("Specific Countries")); ?></option>
39
+ </select>
40
+ <script type="text/javascript">
41
+ checkDisplay();
42
+ function checkDisplay() {
43
+ specific = $('iceadvanced_generic_allowspecific').value;
44
+ if (!specific || specific != 1) {
45
+ $('row_iceadvanced_generic_specificcountry').hide();
46
+ } else {
47
+ $('row_iceadvanced_generic_specificcountry').show();
48
+ }
49
+ ;
50
+ }
51
+ ;
52
+ Event.observe('iceadvanced_generic_allowspecific', 'change', function() {
53
+ checkDisplay();
54
+ });
55
+ </script>
56
+ </td>
57
+ </tr>
58
+ <tr id="row_iceadvanced_generic_specificcountry">
59
+ <td class="label"><label for="iceadvanced_generic_specificcountry"> <?php echo($this->__("Payment from Specific Countries")); ?></label></td>
60
+ <td class="value"><input name="groups[generic][fields][specificcountry][value]" value="" type="hidden">
61
+ <select id="iceadvanced_generic_specificcountry" name="specificcountry" class=" select multiselect" size="10" multiple="multiple">
62
+ <?php
63
+ foreach ($this->getViewData()->countryCollection as $country) {
64
+ $selected = (strstr($this->getViewData()->config['specificcountry'], $country['value'])) ? "selected" : "";
65
+ echo("<option value=\"{$country['value']}\" {$selected}>{$country['label']}</option>");
66
+ }
67
+ ?>
68
+ </select>
69
+ <p class="note"><span><?php echo($this->__("Use CTRL to select specific countries")); ?></span></p>
70
+ </td>
71
+ </tr>
72
+ <tr id="row_iceadvanced_generic_min_order_total">
73
+ <td class="label"><label for="iceadvanced_generic_min_order_total"> <?php echo($this->__("Minimum Order Total")); ?></label></td>
74
+ <td class="value"><input id="iceadvanced_generic_min_order_total" name="min_order_total" value="<?php echo $this->getViewData()->config['min_order_total'] ?>" class=" input-text" type="text"></td>
75
+ </tr>
76
+ <tr id="row_iceadvanced_generic_max_order_total">
77
+ <td class="label"><label for="iceadvanced_generic_max_order_total"> <?php echo($this->__("Maximum Order Total")); ?></label></td>
78
+ <td class="value"><input id="iceadvanced_generic_max_order_total" name="max_order_total" value="<?php echo $this->getViewData()->config['max_order_total'] ?>" class=" input-text" type="text"></td>
79
+ </tr>
80
+ <tr id="row_iceadvanced_generic_sort_order">
81
+ <td class="label"><label for="iceadvanced_generic_sort_order"> <?php echo($this->__("Sort order")); ?></label></td>
82
+ <td class="value"><input id="iceadvanced_generic_sort_order" name="sort_order" value="<?php echo $this->getViewData()->config['sort_order'] ?>" class=" input-text" type="text"></td>
83
+ </tr>
84
+ </tbody></table>
85
  </form>
app/design/adminhtml/default/default/template/icepaycore/grid_modules.phtml CHANGED
@@ -1,80 +1,80 @@
1
- <?php $_htmlId = $this->getElement()->getHtmlId() ?>
2
- <?php $_htmlClass = $this->getElement()->getClass() ?>
3
- <?php $_htmlName = $this->getElement()->getName() ?>
4
-
5
- <tr>
6
- <td colspan="11" class="grid tier">
7
- <table cellspacing="0" class="data border" id="modules_table" style="width:600px">
8
- <col width="90" />
9
- <col width="40" />
10
- <col width="120" />
11
- <col width="90" />
12
- <col width="120" />
13
- <thead>
14
- <tr class="headings">
15
- <th><?php echo Mage::helper('icecore')->__('Module') ?></th>
16
- <th><?php echo Mage::helper('icecore')->__('Version') ?></th>
17
- <th><?php echo Mage::helper('icecore')->__('Compatibility') ?></th>
18
- <th><?php echo Mage::helper('icecore')->__('Active') ?></th>
19
- </tr>
20
- </thead>
21
- <tbody id="<?php echo $_htmlId ?>_container"></tbody>
22
- </table>
23
-
24
- <script type="text/javascript">
25
- //<![CDATA[
26
- var ICEPAYModuleRowTemplate = '<tr>'
27
- + '<td>'
28
- + '{{module_name}}</td>'
29
- + '<td>{{module_version}}</td>'
30
- + '<td class="{{module_compatible}}">{{module_compatibility}}</td>'
31
- + '<td><select class="<?php echo $_htmlClass ?>" name="groups[{{module_namespace}}][fields][active][value]" id="icepay_module_row_{{index}}_enabled" {{module_active_switch}}>'
32
- + '<option value="1"><?php echo Mage::helper("icecore")->__("Enabled") ?></option>'
33
- + '<option value="0"><?php echo Mage::helper("icecore")->__("Disabled") ?></option>'
34
- + '</select></td>'
35
- + '</tr>';
36
-
37
-
38
- var ICEPAYControl = {
39
- template: new Template(ICEPAYModuleRowTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
40
- itemsCount: 0,
41
- addItem: function() {
42
-
43
- var data = {
44
- module_name: '',
45
- module_version: '',
46
- module_compatibility: '',
47
- module_active: '',
48
- module_serial: '',
49
- module_compatible: '',
50
- module_serialreq: '',
51
- module_namespace: '',
52
- module_active_switch: '',
53
- index: this.itemsCount++
54
- };
55
-
56
- data.module_name = arguments[0];
57
- data.module_version = arguments[1];
58
- data.module_compatibility = arguments[2];
59
- data.module_active = arguments[3];
60
- data.module_serial = arguments[4];
61
- data.module_compatible = arguments[5];
62
- data.module_serialreq = arguments[6];
63
- data.module_namespace = arguments[7];
64
- data.module_active_switch = (data.module_namespace == "icecore") ? "disabled" : "";
65
-
66
- Element.insert($('<?php echo $_htmlId ?>_container'), {
67
- bottom: this.template.evaluate(data)
68
- });
69
-
70
- $('icepay_module_row_' + data.index + '_enabled').selectedIndex = (data.module_active == "1") ? 0 : 1;
71
-
72
-
73
- },
74
- };
75
- <?php foreach ($this->getModules() as $_item): ?>
76
- ICEPAYControl.addItem('<?php echo $_item['name'] ?>', '<?php echo $_item['version'] ?>', '<?php echo $_item['compatible'] ?>', '<?php echo $_item['active'] ?>', '<?php echo (($_item['serialreq'] == 0) ? "N/A" : $_item['serial']) ?>', '<?php echo ((Mage::helper("icecore")->isCompatible($_item['compatibleFrom'], $_item['compatibleTo'])) ? "" : "icemodule_incompatible") ?>', '<?php echo (($_item['serialreq'] == 0) ? "disabled" : "") ?>', '<?php echo ($_item['namespace']) ?>');
77
- <?php endforeach; ?>
78
- //]]>
79
- </script>
80
  </td></tr>
1
+ <?php $_htmlId = $this->getElement()->getHtmlId() ?>
2
+ <?php $_htmlClass = $this->getElement()->getClass() ?>
3
+ <?php $_htmlName = $this->getElement()->getName() ?>
4
+
5
+ <tr>
6
+ <td colspan="11" class="grid tier">
7
+ <table cellspacing="0" class="data border" id="modules_table" style="width:600px">
8
+ <col width="90" />
9
+ <col width="40" />
10
+ <col width="120" />
11
+ <col width="90" />
12
+ <col width="120" />
13
+ <thead>
14
+ <tr class="headings">
15
+ <th><?php echo Mage::helper('icecore')->__('Module') ?></th>
16
+ <th><?php echo Mage::helper('icecore')->__('Version') ?></th>
17
+ <th><?php echo Mage::helper('icecore')->__('Compatibility') ?></th>
18
+ <th><?php echo Mage::helper('icecore')->__('Active') ?></th>
19
+ </tr>
20
+ </thead>
21
+ <tbody id="<?php echo $_htmlId ?>_container"></tbody>
22
+ </table>
23
+
24
+ <script type="text/javascript">
25
+ //<![CDATA[
26
+ var ICEPAYModuleRowTemplate = '<tr>'
27
+ + '<td>'
28
+ + '{{module_name}}</td>'
29
+ + '<td>{{module_version}}</td>'
30
+ + '<td class="{{module_compatible}}">{{module_compatibility}}</td>'
31
+ + '<td><select class="<?php echo $_htmlClass ?>" name="groups[{{module_namespace}}][fields][active][value]" id="icepay_module_row_{{index}}_enabled" {{module_active_switch}}>'
32
+ + '<option value="1"><?php echo Mage::helper("icecore")->__("Enabled") ?></option>'
33
+ + '<option value="0"><?php echo Mage::helper("icecore")->__("Disabled") ?></option>'
34
+ + '</select></td>'
35
+ + '</tr>';
36
+
37
+
38
+ var ICEPAYControl = {
39
+ template: new Template(ICEPAYModuleRowTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")),
40
+ itemsCount: 0,
41
+ addItem: function() {
42
+
43
+ var data = {
44
+ module_name: '',
45
+ module_version: '',
46
+ module_compatibility: '',
47
+ module_active: '',
48
+ module_serial: '',
49
+ module_compatible: '',
50
+ module_serialreq: '',
51
+ module_namespace: '',
52
+ module_active_switch: '',
53
+ index: this.itemsCount++
54
+ };
55
+
56
+ data.module_name = arguments[0];
57
+ data.module_version = arguments[1];
58
+ data.module_compatibility = arguments[2];
59
+ data.module_active = arguments[3];
60
+ data.module_serial = arguments[4];
61
+ data.module_compatible = arguments[5];
62
+ data.module_serialreq = arguments[6];
63
+ data.module_namespace = arguments[7];
64
+ data.module_active_switch = (data.module_namespace == "icecore") ? "disabled" : "";
65
+
66
+ Element.insert($('<?php echo $_htmlId ?>_container'), {
67
+ bottom: this.template.evaluate(data)
68
+ });
69
+
70
+ $('icepay_module_row_' + data.index + '_enabled').selectedIndex = (data.module_active == "1") ? 0 : 1;
71
+
72
+
73
+ },
74
+ };
75
+ <?php foreach ($this->getModules() as $_item): ?>
76
+ ICEPAYControl.addItem('<?php echo $_item['name'] ?>', '<?php echo $_item['version'] ?>', '<?php echo $_item['compatible'] ?>', '<?php echo $_item['active'] ?>', '<?php echo (($_item['serialreq'] == 0) ? "N/A" : $_item['serial']) ?>', '<?php echo ((Mage::helper("icecore")->isCompatible($_item['compatibleFrom'], $_item['compatibleTo'])) ? "" : "icemodule_incompatible") ?>', '<?php echo (($_item['serialreq'] == 0) ? "disabled" : "") ?>', '<?php echo ($_item['namespace']) ?>');
77
+ <?php endforeach; ?>
78
+ //]]>
79
+ </script>
80
  </td></tr>
app/design/frontend/base/default/layout/icecore.xml CHANGED
@@ -1,10 +1,10 @@
1
- <?xml version="1.0"?>
2
-
3
-
4
- <layout>
5
- <icepay_about_index>
6
- <reference name="content">
7
- <block type="icecore/front_statement" name="icecore_statement" ></block>
8
- </reference>
9
- </icepay_about_index>
10
  </layout>
1
+ <?xml version="1.0"?>
2
+
3
+
4
+ <layout>
5
+ <icepay_about_index>
6
+ <reference name="content">
7
+ <block type="icecore/front_statement" name="icecore_statement" ></block>
8
+ </reference>
9
+ </icepay_about_index>
10
  </layout>
app/design/frontend/base/default/template/icepayadvanced/form/default.phtml CHANGED
@@ -1,52 +1,52 @@
1
- <?php
2
-
3
- $_code = $this->getMethodCode();
4
-
5
- ?>
6
-
7
- <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
8
-
9
- <input type="hidden" name="payment[<?php echo $_code ?>_paymentmethod]" value="<?php echo $this->getPMCode() ?>">
10
-
11
- <?php if($this->getPMCode()): ?>
12
- <li>
13
- <label for="<?php echo $_code ?>_image"><?php
14
- Mage::helper("icecore")->imageDir = "frontend/base/default/images/icepay/";
15
- Mage::helper("icecore")->imageExtension = "png";
16
- echo Mage::helper("icecore")->toIcon(Mage::helper("icecore")->cleanString($this->getPMCode()));
17
- ?></label>
18
- </li>
19
- <?php endif; ?>
20
-
21
- <?php if($this->getTitle()): ?>
22
- <li>
23
- <label for="<?php echo $_code ?>_title"><?php echo $this->getTitle() ?></label>
24
- </li>
25
- <?php endif; ?>
26
-
27
- <?php if($this->getDescription()): ?>
28
- <li>
29
- <label for="<?php echo $_code ?>_info"><?php echo $this->getDescription() ?></label>
30
- </li>
31
- <?php endif; ?>
32
-
33
- <?php if($this->_issuer): ?>
34
- <?php if(count($this->_issuer) > 1): ?>
35
- <li>
36
- <label for="<?php echo $_code ?>_icepay_issuer" class="required"><em>*</em><?php echo $this->__('Please select an issuer') ?></label>
37
- <div class="input-box">
38
- <select id="<?php echo $_code ?>_icepay_issuer" name="payment[<?php echo $_code ?>_issuer]" class="required-entry validate-alpha">
39
- <option value="" selected><?php echo $this->__('--Please Select--')?></option>
40
- <?php
41
- foreach($this->_issuer as $issuer){
42
- echo('<option value="'.$issuer['value'].'">'.$this->__($issuer['label']).'</option>');
43
- };
44
- ?>
45
- </select>
46
- </div>
47
- </li>
48
- <?php else: ?>
49
- <input type="hidden" name="payment[<?php echo $_code ?>_issuer]" value="<?php echo $this->_issuer[0]['value'] ?>">
50
- <?php endif; ?>
51
- <?php endif; ?>
52
- </ul>
1
+ <?php
2
+
3
+ $_code = $this->getMethodCode();
4
+
5
+ ?>
6
+
7
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
8
+
9
+ <input type="hidden" name="payment[<?php echo $_code ?>_paymentmethod]" value="<?php echo $this->getPMCode() ?>">
10
+
11
+ <?php if($this->getPMCode()): ?>
12
+ <li>
13
+ <label for="<?php echo $_code ?>_image"><?php
14
+ Mage::helper("icecore")->imageDir = "frontend/base/default/images/icepay/";
15
+ Mage::helper("icecore")->imageExtension = "png";
16
+ echo Mage::helper("icecore")->toIcon(Mage::helper("icecore")->cleanString($this->getPMCode()));
17
+ ?></label>
18
+ </li>
19
+ <?php endif; ?>
20
+
21
+ <?php if($this->getTitle()): ?>
22
+ <li>
23
+ <label for="<?php echo $_code ?>_title"><?php echo $this->getTitle() ?></label>
24
+ </li>
25
+ <?php endif; ?>
26
+
27
+ <?php if($this->getDescription()): ?>
28
+ <li>
29
+ <label for="<?php echo $_code ?>_info"><?php echo $this->getDescription() ?></label>
30
+ </li>
31
+ <?php endif; ?>
32
+
33
+ <?php if($this->_issuer): ?>
34
+ <?php if(count($this->_issuer) > 1): ?>
35
+ <li>
36
+ <label for="<?php echo $_code ?>_icepay_issuer" class="required"><em>*</em><?php echo $this->__('Please select an issuer') ?></label>
37
+ <div class="input-box">
38
+ <select id="<?php echo $_code ?>_icepay_issuer" name="payment[<?php echo $_code ?>_issuer]" class="required-entry validate-alpha">
39
+ <option value="" selected><?php echo $this->__('--Please Select--')?></option>
40
+ <?php
41
+ foreach($this->_issuer as $issuer){
42
+ echo('<option value="'.$issuer['value'].'">'.$this->__($issuer['label']).'</option>');
43
+ };
44
+ ?>
45
+ </select>
46
+ </div>
47
+ </li>
48
+ <?php else: ?>
49
+ <input type="hidden" name="payment[<?php echo $_code ?>_issuer]" value="<?php echo $this->_issuer[0]['value'] ?>">
50
+ <?php endif; ?>
51
+ <?php endif; ?>
52
+ </ul>
app/etc/modules/Icepay_IceAdvanced.xml CHANGED
@@ -1,10 +1,10 @@
1
- <?xml version="1.0"?>
2
-
3
- <config>
4
- <modules>
5
- <Icepay_IceAdvanced>
6
- <active>true</active>
7
- <codePool>community</codePool>
8
- </Icepay_IceAdvanced>
9
- </modules>
10
  </config>
1
+ <?xml version="1.0"?>
2
+
3
+ <config>
4
+ <modules>
5
+ <Icepay_IceAdvanced>
6
+ <active>true</active>
7
+ <codePool>community</codePool>
8
+ </Icepay_IceAdvanced>
9
+ </modules>
10
  </config>
app/etc/modules/Icepay_IceCore.xml CHANGED
@@ -1,4 +1,4 @@
1
- <?xml version="1.0"?>
2
 
3
  <config>
4
  <modules>
1
+ <?xml version="1.0"?>
2
 
3
  <config>
4
  <modules>
app/locale/de_DE/Icepay_IceAdvanced.csv CHANGED
File without changes
app/locale/de_DE/Icepay_IceCore.csv CHANGED
File without changes
app/locale/en_US/Icepay_IceAdvanced.csv CHANGED
File without changes
app/locale/en_US/Icepay_IceCore.csv CHANGED
File without changes
app/locale/es_ES/Icepay_IceAdvanced.csv CHANGED
File without changes
app/locale/es_ES/Icepay_IceCore.csv CHANGED
File without changes
app/locale/fr_FR/Icepay_IceAdvanced.csv CHANGED
File without changes
app/locale/fr_FR/Icepay_IceCore.csv CHANGED
File without changes
app/locale/it_IT/Icepay_IceAdvanced.csv CHANGED
File without changes
app/locale/it_IT/Icepay_IceCore.csv CHANGED
File without changes
app/locale/nl_NL/Icepay_IceAdvanced.csv CHANGED
File without changes
app/locale/nl_NL/Icepay_IceCore.csv CHANGED
File without changes
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Icepay_IceAdvanced</name>
4
- <version>1.2.4</version>
5
  <stability>stable</stability>
6
  <license>Commercial</license>
7
  <channel>community</channel>
@@ -9,11 +9,11 @@
9
  <summary>Enables payments using payment service provider ICEPAY.</summary>
10
  <description>Enables payments using payment service provider ICEPAY. The Advanced extension includes webservice support.</description>
11
  <notes>Bug Fixes:&#xD;
12
- - Getting and saving payment methods are fixed after applying the SUPEE-6285 patch.</notes>
13
  <authors><author><name>ICEPAY</name><user>ICEPAY_PSP</user><email>info@icepay.com</email></author></authors>
14
- <date>2015-07-20</date>
15
- <time>13:40:19</time>
16
- <contents><target name="magecommunity"><dir name="Icepay"><dir name="IceAdvanced"><dir name="Block"><dir name="Adminhtml"><file name="CheckSettings.php" hash="1e9e08f5414b22dd84557ade567aba48"/><dir name="Grid"><file name="Paymentmethods.php" hash="143c90a3e15f72a4b32d3c57eefd8ecc"/></dir><dir name="Setting"><file name="Paymentmethod.php" hash="57ced6e44f2a7683898949d8e1ca21ba"/></dir></dir><dir name="Payment"><dir name="Form"><file name="Default.php" hash="f96542cd1e5f13f3639ddc93b9c0172c"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d1a40390475cc358c0849940a1ad3fe6"/></dir><dir name="Model"><dir name="Checkout"><file name="PaymentObject.php" hash="8cee8b70324b37453d6263d209dd5fe3"/><dir name="Placeholder"><file name="Paymentmethod01.php" hash="b825da0ac49ce5fba409116b2a46bf4f"/><file name="Paymentmethod02.php" hash="202eac322f5cd2df65034476d3e87dd5"/><file name="Paymentmethod03.php" hash="1f193436b77bed331837ab64d148c977"/><file name="Paymentmethod04.php" hash="3d4775f70070381a492b7207fce0d606"/><file name="Paymentmethod05.php" hash="16f86a94192131bddd0f078501c277d2"/><file name="Paymentmethod06.php" hash="113c6788b168790700d2baacbdbcb20c"/><file name="Paymentmethod07.php" hash="50635324e7913f864af6a32a65e299bb"/><file name="Paymentmethod08.php" hash="dba0bf1fb39667ff4b94dcea6821d372"/><file name="Paymentmethod09.php" hash="0029e9dcbb989ac4c6ae686b5d2db262"/><file name="Paymentmethod10.php" hash="94ff83c6d23c879f27c958de595bff3b"/><file name="Paymentmethod11.php" hash="4725cefbb4cdc69d12961853b4c00d13"/><file name="Paymentmethod12.php" hash="b82d7e8830a7b22f942496614d84f2ed"/><file name="Paymentmethod13.php" hash="43f18f4948afc2f7613b3ad47baa2577"/><file name="Paymentmethod14.php" hash="a04a63494d6e4df283049abfe35f57f8"/><file name="Paymentmethod15.php" hash="a5d02861c4668c74492b1865d471afdf"/><file name="Paymentmethod16.php" hash="a9d90c5414e27f814aa7b1ff1e212682"/><file name="Paymentmethod17.php" hash="e55127cbf73fecbb8ec66848f300c414"/><file name="Paymentmethod18.php" hash="388c76235c1c35a97ab8893d1f672807"/><file name="Paymentmethod19.php" hash="454f5142fb3e17152c137a052e13294c"/><file name="Paymentmethod20.php" hash="638b60e75678908fc92df8b1469a2500"/></dir><file name="Standard.php" hash="308741495eec0ccae20ec620d38ffba5"/></dir><dir name="Extensions"><dir name="MS"><file name="Customerreward.php" hash="e39bc48c00621f299b83d012cc0d9464"/></dir><dir name="MW"><file name="GiftWrap.php" hash="49e31b11e5ec1d6669ba67efe7c073ae"/></dir><dir name="MageWorx"><file name="MultiFees.php" hash="e40642173c9779217b9e1d8429e30ffa"/></dir></dir><dir name="Mysql4"><file name="IceAdvanced.php" hash="3351b0d4adb8b173a736d4b32fe6997e"/></dir><file name="Observer.php" hash="0607cad8ce0b6d3146fd06feb647e1f9"/><file name="Order.php" hash="a7f88e2e19ced7081b1e7a426d420fbf"/><file name="Pay.php" hash="c64836f3691f6701bf57946d282ffc5d"/><file name="Paymentmethods.php" hash="9a4ea214394e1813609ee4166f2e0b98"/><dir name="Webservice"><file name="Advanced.php" hash="ab5824d6c57d2af9bb2709422cf1b7ca"/><file name="Refund.php" hash="13aa4224c32fb5680eb836bbdd65bbf0"/></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="91c6e1ea2a7b5a88954206eb2d3e22fb"/><file name="ConfigController.php" hash="9be40c50c69981034a9787a1f2e005f1"/><file name="ProcessingController.php" hash="0372267e60254f8e0c916f264b72b7cf"/></dir><dir name="etc"><file name="config.xml" hash="e9192f5dc4996b1770ef40b4526f4e17"/><file name="system.xml" hash="f930475b43e85496582d66c4a76a6ed9"/></dir><dir name="sql"><dir name="icepayadvanced_setup"><file name="mysql4-install-1.0.0.php" hash="f0b069a3503871e8221dc30441012e56"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="6c771822888f14d9679f6b4ab71719c0"/></dir></dir></dir><dir name="IceCore"><dir name="Block"><dir name="Adminhtml"><file name="CheckSettings.php" hash="1e37aaa21895b1536895d4b2f2063061"/><file name="GenerateURL.php" hash="6582848f5a1f7145baa398a1b8f0ccbd"/><dir name="Grid"><file name="Modules.php" hash="7e9bb7382c7f7052cce2f4959472cc87"/></dir><file name="Init.php" hash="16ee74a19916ce9f788d75c755d31a65"/></dir><dir name="Front"><file name="Statement.php" hash="85ee089622ff4a3bc15d08f0a2e80813"/><file name="Template.php" hash="06eb31a4a51dc6ee7143d6c8866131d6"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5a63b627cfc1426bda78b5528371eb6c"/></dir><dir name="Model"><file name="Config.php" hash="206f04e34ba26c7c0c87a2abe6ca7c08"/><dir name="Icepay"><file name="Postback.php" hash="1ae0a88d9fba18470116d908097a88ea"/><file name="Result.php" hash="0ee6c3d80483312f9bd1743dbe52b7e2"/></dir><dir name="Mysql4"><file name="IceCore.php" hash="9d15c849be80cdb93075b4f7c15feb2d"/></dir><dir name="Webservice"><file name="Core.php" hash="cfeff8b9baedad96b8d408b2a84e3757"/></dir></dir><dir name="controllers"><file name="AboutController.php" hash="9ca5a652dbf27e57cc7bbcb7ed073e1b"/><file name="CheckController.php" hash="901adc45f9c44fa5b1a11dd36eb025d1"/><file name="IndexController.php" hash="01d74f3579ebf469788ee6e7e41d7b21"/><file name="ProcessingController.php" hash="4cbedbf49193562e9739b0a3d00b3dda"/></dir><dir name="etc"><file name="config.xml" hash="2071cc4fdc92ba6bb586b64d36165759"/><file name="system.xml" hash="9bb5708798e3f97bfdff31f37b7dba49"/></dir><dir name="sql"><dir name="icepaycore_setup"><file name="mysql4-install-1.0.0.php" hash="bc37063c45b48e52a7e12584daf82aef"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="b1b1dfd41f1aff682dcf34fb544e922e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="icepayadvanced"><dir name="form"><file name="default.phtml" hash="fdf9eb2d5c4a5ef8f43f6e9d8090ebd4"/></dir><file name="grid_paymentmethods.phtml" hash="28f608b5e8c373b912bd5826424de840"/><file name="paymentmethod.phtml" hash="28dfbb959013471567d2db769516cb18"/></dir><dir name="icepaycore"><file name="grid_modules.phtml" hash="f113cfa6d561031bcd5a90f3a1fb48a0"/></dir></dir><dir name="layout"><file name="icecore.xml" hash="98b5a6c55a72ba244b21a5815ae0c4fc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="icecore.xml" hash="96ed3cf67c702affdb8869e1a6c5d980"/></dir><dir name="template"><dir name="icepayadvanced"><dir name="form"><file name="default.phtml" hash="fdf9eb2d5c4a5ef8f43f6e9d8090ebd4"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Icepay_IceAdvanced.xml" hash="069d0a2d2c7a34e366bc2b79483cd2b4"/><file name="Icepay_IceCore.xml" hash="268e777c318f1cd6258a56c3049ac678"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Icepay_IceAdvanced.csv" hash="3cae75009684ac7a1b4afb6667d6a477"/><file name="Icepay_IceCore.csv" hash="e8ad59c02f83d67b31e7bbef3ede043e"/></dir><dir name="en_US"><file name="Icepay_IceAdvanced.csv" hash="a2d4d7a36cf4155161c1205a26ea577b"/><file name="Icepay_IceCore.csv" hash="f3c72eb858a4bd643b177f573593b04f"/></dir><dir name="es_ES"><file name="Icepay_IceAdvanced.csv" hash="f469c13d48a7361d0346fd29181c8370"/><file name="Icepay_IceCore.csv" hash="fa46bf1feedc31495401dfab9e4232d6"/></dir><dir name="fr_FR"><file name="Icepay_IceAdvanced.csv" hash="66ae26a1d9f20009878f19673d2d67b0"/><file name="Icepay_IceCore.csv" hash="5191576073b592b4285a983cc7fd17dc"/></dir><dir name="it_IT"><file name="Icepay_IceAdvanced.csv" hash="114d8290130a9f090efe210484eff1b9"/><file name="Icepay_IceCore.csv" hash="351fdc02d699cf65d763da8a44479f42"/></dir><dir name="nl_NL"><file name="Icepay_IceAdvanced.csv" hash="692d6675d44b308801dc8c08e7cbcdec"/><file name="Icepay_IceCore.csv" hash="36d5cfcd04c82e747ba0934db755904a"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="icepay"><file name="admin.css" hash="773bb7d4f87f42214421960f4ccda8c3"/><file name="general.css" hash="25fbd45dc203dce3f6bf907135a9f841"/><dir name="images"><file name="button-manual.png" hash="7b708db3c8915897a4e3526389b7e3b2"/><file name="button-movie.png" hash="c164da277349322fcd4480ece39d6e00"/><dir name="en"><file name="afterpay.png" hash="a3b02f6f3e53f548d58d2da794f4c900"/><file name="creditcard.png" hash="a1f1758c0ed18c576daddfad4e287dcf"/><file name="ddebit.png" hash="8eaa9ca96554a065bba75f3a3c62c25b"/><file name="directebank.png" hash="ec990be24336501593956872b5a69a0c"/><file name="elv.png" hash="af722d1a80025fbef18faf9baafe91e3"/><file name="giropay.png" hash="abbc084008a2bc4692cee1e014e88e01"/><file name="ideal.png" hash="3ad4441b5e59613b07efad0b4c781812"/><file name="mistercash.png" hash="fe437531e8ea3160dd3ce7c22c6d1dd7"/><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="paypal.png" hash="db854b8832246666da38130f2d527331"/><file name="paysafecard.png" hash="d9fac94c828b6429641e74f027a6e23d"/><file name="wallie.png" hash="9bbc206f96bfeb2ec82a47d6ecbae4b9"/><file name="wire.png" hash="f602b0978725d2663fe69c93276cace0"/></dir><file name="error_msg_icon.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="icepay-logo.png" hash="584d79128e6df216e9f7304329158b56"/><dir name="nl"><file name="afterpay.png" hash="a3b02f6f3e53f548d58d2da794f4c900"/><file name="creditcard.png" hash="48a101cac247f07311ef3ccf1075092d"/><file name="ddebit.png" hash="89793240543046ce977a11eee9b99368"/><file name="directebank.png" hash="ec990be24336501593956872b5a69a0c"/><file name="elv.png" hash="af722d1a80025fbef18faf9baafe91e3"/><file name="giropay.png" hash="5e167cb8dbe05391b1ecceb02042a158"/><file name="ideal.png" hash="16ecbed935f5fb896620c1ec60d5fecd"/><file name="mistercash.png" hash="fe437531e8ea3160dd3ce7c22c6d1dd7"/><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="paypal.png" hash="4d28dd0b563dcffb4192b5fe54a43530"/><file name="paysafecard.png" hash="55a46938a74dbba9f8fa2c63e464ae98"/><file name="wallie.png" hash="643897c26a2ad7be40457bc1faafd591"/><file name="wire.png" hash="6027a80b16b699c299e748fc1f891b03"/></dir><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="section-logo.png" hash="5242ece5dd1434831174ef7fba8c2c4a"/><file name="success_msg_icon.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="icepay"><dir name="en"><file name="afterpay.png" hash="b9d37ce8c7daad7939f25d4f3f522d28"/><file name="creditcard.png" hash="1036251ede1a09299feecb75043d6e16"/><file name="ddebit.png" hash="408f41a0650a204cadb791c3e1b0e1a1"/><file name="directebank.png" hash="65bea681edb8442463b96ca0a6d2f604"/><file name="elv.png" hash="cdb571467e6e3f0718887ea5c6e9dc24"/><file name="giropay.png" hash="57167e2c98a48f3a24b1743e74f6158a"/><file name="icepay.png" hash="39a55d71460ccce2b65517ce40d3826a"/><file name="ideal.png" hash="fc18c3e422e4163afee4646623b2569b"/><file name="mistercash.png" hash="84164ec464031eb983cf971c93883291"/><file name="nologo.png" hash="72e977c925c8b6c70ff5fb69c0e054c8"/><file name="paypal.png" hash="944b54460b95c4842ce19982264e577d"/><file name="paysafecard.png" hash="23deaae36aa2cb0d7ef1c04804e30145"/><file name="wallie.png" hash="489236d8a7d678f355d6401a1f34dd5b"/><file name="wire.png" hash="d61bac01ea81d71bebc03f484b883c12"/></dir><file name="icepay-logo.png" hash="155f2d4dd137423ccbc3d4037cf46d5f"/><file name="logo-currence.png" hash="fa37b87e496d9955ef455e96251bd434"/><file name="logo-thawte.png" hash="dcf93e2d0631b1e2853ce8380d80c125"/><file name="logo-thuiswinkel.png" hash="4a54a5f4e09988a4b16697fe54a462e7"/><dir name="nl"><file name="afterpay.png" hash="b9d37ce8c7daad7939f25d4f3f522d28"/><file name="creditcard.png" hash="1036251ede1a09299feecb75043d6e16"/><file name="ddebit.png" hash="2efd78c91a6558f0e5e71a4cdc6f82e4"/><file name="directebank.png" hash="70c2f9d0c6726b7b4b72b97437ed137b"/><file name="elv.png" hash="cdb571467e6e3f0718887ea5c6e9dc24"/><file name="giropay.png" hash="57167e2c98a48f3a24b1743e74f6158a"/><file name="icepay.png" hash="39a55d71460ccce2b65517ce40d3826a"/><file name="ideal.png" hash="fc18c3e422e4163afee4646623b2569b"/><file name="mistercash.png" hash="84164ec464031eb983cf971c93883291"/><file name="nologo.png" hash="59b4f3e8abf4cd51d1c5ab9f1a425999"/><file name="paypal.png" hash="944b54460b95c4842ce19982264e577d"/><file name="paysafecard.png" hash="23deaae36aa2cb0d7ef1c04804e30145"/><file name="wallie.png" hash="489236d8a7d678f355d6401a1f34dd5b"/><file name="wire.png" hash="63be6b74df1fc107d31e7830756ae39b"/></dir><file name="nologo.png" hash="72e977c925c8b6c70ff5fb69c0e054c8"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
- <dependencies><required><php><min>5.2.0</min><max>5.7.5</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Icepay_IceAdvanced</name>
4
+ <version>1.2.5</version>
5
  <stability>stable</stability>
6
  <license>Commercial</license>
7
  <channel>community</channel>
9
  <summary>Enables payments using payment service provider ICEPAY.</summary>
10
  <description>Enables payments using payment service provider ICEPAY. The Advanced extension includes webservice support.</description>
11
  <notes>Bug Fixes:&#xD;
12
+ - Configuration of payment methods bug fixed.</notes>
13
  <authors><author><name>ICEPAY</name><user>ICEPAY_PSP</user><email>info@icepay.com</email></author></authors>
14
+ <date>2015-07-29</date>
15
+ <time>15:21:14</time>
16
+ <contents><target name="magecommunity"><dir name="Icepay"><dir name="IceAdvanced"><dir name="Block"><dir name="Adminhtml"><file name="CheckSettings.php" hash="1e9e08f5414b22dd84557ade567aba48"/><dir name="Grid"><file name="Paymentmethods.php" hash="143c90a3e15f72a4b32d3c57eefd8ecc"/></dir><dir name="Setting"><file name="Paymentmethod.php" hash="57ced6e44f2a7683898949d8e1ca21ba"/></dir></dir><dir name="Payment"><dir name="Form"><file name="Default.php" hash="f30a65638dea2fe9a0c0fa7beefbe062"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="451936eb5d6d61f98eccca2ef8c3fafc"/></dir><dir name="Model"><dir name="Checkout"><file name="PaymentObject.php" hash="8cee8b70324b37453d6263d209dd5fe3"/><dir name="Placeholder"><file name="Paymentmethod01.php" hash="b825da0ac49ce5fba409116b2a46bf4f"/><file name="Paymentmethod02.php" hash="202eac322f5cd2df65034476d3e87dd5"/><file name="Paymentmethod03.php" hash="1f193436b77bed331837ab64d148c977"/><file name="Paymentmethod04.php" hash="3d4775f70070381a492b7207fce0d606"/><file name="Paymentmethod05.php" hash="16f86a94192131bddd0f078501c277d2"/><file name="Paymentmethod06.php" hash="113c6788b168790700d2baacbdbcb20c"/><file name="Paymentmethod07.php" hash="50635324e7913f864af6a32a65e299bb"/><file name="Paymentmethod08.php" hash="dba0bf1fb39667ff4b94dcea6821d372"/><file name="Paymentmethod09.php" hash="0029e9dcbb989ac4c6ae686b5d2db262"/><file name="Paymentmethod10.php" hash="94ff83c6d23c879f27c958de595bff3b"/><file name="Paymentmethod11.php" hash="4725cefbb4cdc69d12961853b4c00d13"/><file name="Paymentmethod12.php" hash="b82d7e8830a7b22f942496614d84f2ed"/><file name="Paymentmethod13.php" hash="43f18f4948afc2f7613b3ad47baa2577"/><file name="Paymentmethod14.php" hash="a04a63494d6e4df283049abfe35f57f8"/><file name="Paymentmethod15.php" hash="a5d02861c4668c74492b1865d471afdf"/><file name="Paymentmethod16.php" hash="a9d90c5414e27f814aa7b1ff1e212682"/><file name="Paymentmethod17.php" hash="e55127cbf73fecbb8ec66848f300c414"/><file name="Paymentmethod18.php" hash="388c76235c1c35a97ab8893d1f672807"/><file name="Paymentmethod19.php" hash="454f5142fb3e17152c137a052e13294c"/><file name="Paymentmethod20.php" hash="638b60e75678908fc92df8b1469a2500"/></dir><file name="Standard.php" hash="308741495eec0ccae20ec620d38ffba5"/></dir><dir name="Extensions"><dir name="MS"><file name="Customerreward.php" hash="e39bc48c00621f299b83d012cc0d9464"/></dir><dir name="MW"><file name="GiftWrap.php" hash="49e31b11e5ec1d6669ba67efe7c073ae"/></dir><dir name="MageWorx"><file name="MultiFees.php" hash="e40642173c9779217b9e1d8429e30ffa"/></dir></dir><dir name="Mysql4"><file name="IceAdvanced.php" hash="3351b0d4adb8b173a736d4b32fe6997e"/></dir><file name="Observer.php" hash="0607cad8ce0b6d3146fd06feb647e1f9"/><file name="Order.php" hash="a7f88e2e19ced7081b1e7a426d420fbf"/><file name="Pay.php" hash="c22531bd58311a335ae7aecabd5f91ae"/><file name="Paymentmethods.php" hash="9a4ea214394e1813609ee4166f2e0b98"/><dir name="Webservice"><file name="Advanced.php" hash="ab5824d6c57d2af9bb2709422cf1b7ca"/><file name="Refund.php" hash="13aa4224c32fb5680eb836bbdd65bbf0"/></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="96aa3e0a5be74e4ca78db23d4bab052a"/><file name="ConfigController.php" hash="b0ae4ae0edb2fad3a8cba09f5cce876b"/><file name="ProcessingController.php" hash="e4d78169084e0a9ed88809fb781515e5"/></dir><dir name="etc"><file name="config.xml" hash="7e6f48973b660cc6d44844eccd64927a"/><file name="system.xml" hash="f930475b43e85496582d66c4a76a6ed9"/></dir><dir name="sql"><dir name="icepayadvanced_setup"><file name="mysql4-install-1.0.0.php" hash="f0b069a3503871e8221dc30441012e56"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="927a9f3e63c681be068f2180247b3881"/></dir></dir></dir><dir name="IceCore"><dir name="Block"><dir name="Adminhtml"><file name="CheckSettings.php" hash="1e37aaa21895b1536895d4b2f2063061"/><file name="GenerateURL.php" hash="6582848f5a1f7145baa398a1b8f0ccbd"/><dir name="Grid"><file name="Modules.php" hash="7e9bb7382c7f7052cce2f4959472cc87"/></dir><file name="Init.php" hash="16ee74a19916ce9f788d75c755d31a65"/></dir><dir name="Front"><file name="Statement.php" hash="85ee089622ff4a3bc15d08f0a2e80813"/><file name="Template.php" hash="06eb31a4a51dc6ee7143d6c8866131d6"/></dir></dir><dir name="Helper"><file name="Data.php" hash="3a1b2d707bda71bcd4d3d8423c680b0f"/></dir><dir name="Model"><file name="Config.php" hash="fc575adbda90cc5b89df70aa56e0acac"/><dir name="Icepay"><file name="Postback.php" hash="d7ec218c590b2ec0d305f1207ea48d9b"/><file name="Result.php" hash="14d372385dabe7b8a1721ba5affed3c2"/></dir><dir name="Mysql4"><file name="IceCore.php" hash="9d15c849be80cdb93075b4f7c15feb2d"/></dir><dir name="Webservice"><file name="Core.php" hash="cfeff8b9baedad96b8d408b2a84e3757"/></dir></dir><dir name="controllers"><file name="AboutController.php" hash="0d4c838b96279e6a1fcb6f247c720777"/><file name="CheckController.php" hash="901adc45f9c44fa5b1a11dd36eb025d1"/><file name="IndexController.php" hash="01d74f3579ebf469788ee6e7e41d7b21"/><file name="ProcessingController.php" hash="53c95c3853b6e5e8cce95f7c6ef64135"/></dir><dir name="etc"><file name="config.xml" hash="c0f4af45869fc4a559296baa22b90e8a"/><file name="system.xml" hash="9bb5708798e3f97bfdff31f37b7dba49"/></dir><dir name="sql"><dir name="icepaycore_setup"><file name="mysql4-install-1.0.0.php" hash="bc37063c45b48e52a7e12584daf82aef"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="23872334bc62080838fda65286964782"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="icepayadvanced"><dir name="form"><file name="default.phtml" hash="70005c542f01393a8cd934a15c12ae57"/></dir><file name="grid_paymentmethods.phtml" hash="ef9628706df985a8ab779fec9c77d911"/><file name="paymentmethod.phtml" hash="09998ba17469eba710e5c3bf9b2fe1a4"/></dir><dir name="icepaycore"><file name="grid_modules.phtml" hash="0405ac0b853f5f7c3bfcdb23c8183c92"/></dir></dir><dir name="layout"><file name="icecore.xml" hash="98b5a6c55a72ba244b21a5815ae0c4fc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="icecore.xml" hash="b78a4b91f80c334ade859c34c59d7967"/></dir><dir name="template"><dir name="icepayadvanced"><dir name="form"><file name="default.phtml" hash="70005c542f01393a8cd934a15c12ae57"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Icepay_IceAdvanced.xml" hash="c56a9f75265a04d8129ed883779909b9"/><file name="Icepay_IceCore.xml" hash="b92390374f238cedc4b3d18b1e2a252e"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Icepay_IceAdvanced.csv" hash="3cae75009684ac7a1b4afb6667d6a477"/><file name="Icepay_IceCore.csv" hash="e8ad59c02f83d67b31e7bbef3ede043e"/></dir><dir name="en_US"><file name="Icepay_IceAdvanced.csv" hash="a2d4d7a36cf4155161c1205a26ea577b"/><file name="Icepay_IceCore.csv" hash="f3c72eb858a4bd643b177f573593b04f"/></dir><dir name="es_ES"><file name="Icepay_IceAdvanced.csv" hash="f469c13d48a7361d0346fd29181c8370"/><file name="Icepay_IceCore.csv" hash="fa46bf1feedc31495401dfab9e4232d6"/></dir><dir name="fr_FR"><file name="Icepay_IceAdvanced.csv" hash="66ae26a1d9f20009878f19673d2d67b0"/><file name="Icepay_IceCore.csv" hash="5191576073b592b4285a983cc7fd17dc"/></dir><dir name="it_IT"><file name="Icepay_IceAdvanced.csv" hash="114d8290130a9f090efe210484eff1b9"/><file name="Icepay_IceCore.csv" hash="351fdc02d699cf65d763da8a44479f42"/></dir><dir name="nl_NL"><file name="Icepay_IceAdvanced.csv" hash="692d6675d44b308801dc8c08e7cbcdec"/><file name="Icepay_IceCore.csv" hash="36d5cfcd04c82e747ba0934db755904a"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="icepay"><file name="admin.css" hash="bd74e1bb19f00bfa5a3cf3c281bd77e2"/><file name="general.css" hash="196b9faa516096966c9f373522321657"/><dir name="images"><file name="button-manual.png" hash="7b708db3c8915897a4e3526389b7e3b2"/><file name="button-movie.png" hash="c164da277349322fcd4480ece39d6e00"/><dir name="en"><file name="afterpay.png" hash="a3b02f6f3e53f548d58d2da794f4c900"/><file name="creditcard.png" hash="a1f1758c0ed18c576daddfad4e287dcf"/><file name="ddebit.png" hash="8eaa9ca96554a065bba75f3a3c62c25b"/><file name="directebank.png" hash="ec990be24336501593956872b5a69a0c"/><file name="elv.png" hash="af722d1a80025fbef18faf9baafe91e3"/><file name="giropay.png" hash="abbc084008a2bc4692cee1e014e88e01"/><file name="ideal.png" hash="3ad4441b5e59613b07efad0b4c781812"/><file name="mistercash.png" hash="fe437531e8ea3160dd3ce7c22c6d1dd7"/><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="paypal.png" hash="db854b8832246666da38130f2d527331"/><file name="paysafecard.png" hash="d9fac94c828b6429641e74f027a6e23d"/><file name="wallie.png" hash="9bbc206f96bfeb2ec82a47d6ecbae4b9"/><file name="wire.png" hash="f602b0978725d2663fe69c93276cace0"/></dir><file name="error_msg_icon.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="icepay-logo.png" hash="584d79128e6df216e9f7304329158b56"/><dir name="nl"><file name="afterpay.png" hash="a3b02f6f3e53f548d58d2da794f4c900"/><file name="creditcard.png" hash="48a101cac247f07311ef3ccf1075092d"/><file name="ddebit.png" hash="89793240543046ce977a11eee9b99368"/><file name="directebank.png" hash="ec990be24336501593956872b5a69a0c"/><file name="elv.png" hash="af722d1a80025fbef18faf9baafe91e3"/><file name="giropay.png" hash="5e167cb8dbe05391b1ecceb02042a158"/><file name="ideal.png" hash="16ecbed935f5fb896620c1ec60d5fecd"/><file name="mistercash.png" hash="fe437531e8ea3160dd3ce7c22c6d1dd7"/><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="paypal.png" hash="4d28dd0b563dcffb4192b5fe54a43530"/><file name="paysafecard.png" hash="55a46938a74dbba9f8fa2c63e464ae98"/><file name="wallie.png" hash="643897c26a2ad7be40457bc1faafd591"/><file name="wire.png" hash="6027a80b16b699c299e748fc1f891b03"/></dir><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="section-logo.png" hash="5242ece5dd1434831174ef7fba8c2c4a"/><file name="success_msg_icon.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="icepay"><dir name="en"><file name="afterpay.png" hash="b9d37ce8c7daad7939f25d4f3f522d28"/><file name="creditcard.png" hash="1036251ede1a09299feecb75043d6e16"/><file name="ddebit.png" hash="408f41a0650a204cadb791c3e1b0e1a1"/><file name="directebank.png" hash="65bea681edb8442463b96ca0a6d2f604"/><file name="elv.png" hash="cdb571467e6e3f0718887ea5c6e9dc24"/><file name="giropay.png" hash="57167e2c98a48f3a24b1743e74f6158a"/><file name="icepay.png" hash="39a55d71460ccce2b65517ce40d3826a"/><file name="ideal.png" hash="fc18c3e422e4163afee4646623b2569b"/><file name="mistercash.png" hash="84164ec464031eb983cf971c93883291"/><file name="nologo.png" hash="72e977c925c8b6c70ff5fb69c0e054c8"/><file name="paypal.png" hash="944b54460b95c4842ce19982264e577d"/><file name="paysafecard.png" hash="23deaae36aa2cb0d7ef1c04804e30145"/><file name="wallie.png" hash="489236d8a7d678f355d6401a1f34dd5b"/><file name="wire.png" hash="d61bac01ea81d71bebc03f484b883c12"/></dir><file name="icepay-logo.png" hash="155f2d4dd137423ccbc3d4037cf46d5f"/><file name="logo-currence.png" hash="fa37b87e496d9955ef455e96251bd434"/><file name="logo-thawte.png" hash="dcf93e2d0631b1e2853ce8380d80c125"/><file name="logo-thuiswinkel.png" hash="4a54a5f4e09988a4b16697fe54a462e7"/><dir name="nl"><file name="afterpay.png" hash="b9d37ce8c7daad7939f25d4f3f522d28"/><file name="creditcard.png" hash="1036251ede1a09299feecb75043d6e16"/><file name="ddebit.png" hash="2efd78c91a6558f0e5e71a4cdc6f82e4"/><file name="directebank.png" hash="70c2f9d0c6726b7b4b72b97437ed137b"/><file name="elv.png" hash="cdb571467e6e3f0718887ea5c6e9dc24"/><file name="giropay.png" hash="57167e2c98a48f3a24b1743e74f6158a"/><file name="icepay.png" hash="39a55d71460ccce2b65517ce40d3826a"/><file name="ideal.png" hash="fc18c3e422e4163afee4646623b2569b"/><file name="mistercash.png" hash="84164ec464031eb983cf971c93883291"/><file name="nologo.png" hash="59b4f3e8abf4cd51d1c5ab9f1a425999"/><file name="paypal.png" hash="944b54460b95c4842ce19982264e577d"/><file name="paysafecard.png" hash="23deaae36aa2cb0d7ef1c04804e30145"/><file name="wallie.png" hash="489236d8a7d678f355d6401a1f34dd5b"/><file name="wire.png" hash="63be6b74df1fc107d31e7830756ae39b"/></dir><file name="nologo.png" hash="72e977c925c8b6c70ff5fb69c0e054c8"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
skin/adminhtml/default/default/icepay/admin.css CHANGED
@@ -1,133 +1,133 @@
1
- #row_icecore_settings_step_1,
2
- #row_icecore_settings_step_2,
3
- #row_icecore_settings_step_3 {
4
- font-weight: bold;
5
- border-bottom-width: 1px;
6
- border-bottom-style: solid;
7
- border-bottom-color: #333;
8
- }
9
- #row_icecore_settings_step_1 .scope-label,
10
- #row_icecore_settings_step_1 .use-default,
11
- #row_icecore_settings_step_2 .scope-label,
12
- #row_icecore_settings_step_2 .use-default,
13
- #row_icecore_settings_step_3 .scope-label,
14
- #row_icecore_settings_step_3 .use-default,
15
- #row_icecore_settings_manual .scope-label,
16
- #row_icecore_settings_manual .use-default,
17
- #row_icecore_settings_merchant_url_notify .use-default,
18
- #row_icecore_settings_merchant_url_ok .use-default,
19
- #row_icecore_settings_merchant_url_err .use-default,
20
- #row_icecore_advanced_settings_info .scope-label,
21
- #row_icecore_advanced_settings_info .use-default,
22
- #row_icecore_advanced_settings_manual .scope-label,
23
- #row_icecore_advanced_settings_manual .use-default
24
-
25
- {
26
- display: none;
27
- }
28
-
29
- #row_icecore_settings_merchant_url_notify input,
30
- #row_icecore_settings_merchant_url_ok input,
31
- #row_icecore_settings_merchant_url_err input,
32
- #row_icecore_settings_merchant_id input,
33
- #row_icecore_settings_merchant_secret input {
34
- width: 316px;
35
- }
36
-
37
-
38
- #row_icecore_settings_merchant_url_notify label,
39
- #row_icecore_settings_merchant_url_ok label,
40
- #row_icecore_settings_merchant_url_err label,
41
- #row_icecore_settings_merchant_url_notify label,
42
- #row_icecore_settings_merchant_id label,
43
- #row_icecore_settings_merchant_secret label
44
- {
45
- margin-left: 20px;
46
- }
47
-
48
- /* manual links */
49
- #row_icecore_settings_manual .note,
50
- #row_icecore_advanced_settings_manual .note {
51
- width: 310px;
52
- }
53
-
54
- #row_icecore_settings_manual .btn-manual,
55
- #row_icecore_settings_manual .btn-movie,
56
- #row_icecore_advanced_settings_manual .btn-manual,
57
- #row_icecore_advanced_settings_manual .btn-movie {
58
- display: inline-block;
59
- background-image: url("images/button-manual.png");
60
- background-repeat: no-repeat;
61
- background-attachment: scroll;
62
- background-position: 0px 0px;
63
- width: 150px;
64
- height: 50px;
65
- float: left;
66
- margin-right: 4px;
67
- }
68
- #row_icecore_settings_manual .btn-movie,
69
- #row_icecore_advanced_settings_manual .btn-movie {
70
- background-image: url("images/button-movie.png");
71
- }
72
-
73
-
74
- .icepay_issuer {
75
- font-size: 9px;
76
- border-bottom: 1px solid #dadfe0;
77
- /*white-space: nowrap;*/
78
- }
79
-
80
- .icepay_url_form {
81
- padding: 2px;
82
- width: 274px;
83
- color:#6f8992;
84
- }
85
-
86
- .icepay_debug {
87
- padding: 4px;
88
- font-size: 9px;
89
- font-weight: bold;
90
- border: 1px solid #c8c8c8;
91
- }
92
- .icepay_debug .ok{
93
- color: #3d6611;
94
- background-color: #eff5ea;
95
- background-image: url("images/success_msg_icon.gif");
96
- background-repeat: no-repeat;
97
- background-attachment: scroll;
98
- background-position: 0px 0px;
99
- padding-left: 20px;
100
- }
101
- .icepay_debug .err{
102
- color: #eb5e00;
103
- background-color: #fff9e9;
104
- background-image: url("images/error_msg_icon.gif");
105
- background-repeat: no-repeat;
106
- background-attachment: scroll;
107
- background-position: 0px 0px;
108
- padding-left: 20px;
109
- }
110
-
111
- .icemodule_incompatible {
112
- background-color: #fff9e9;
113
- font-size: 11px;
114
- font-weight: bold;
115
- color: #eb5e00;
116
- }
117
-
118
- #icepay_statement table {
119
- border: 1px solid #D9DEE4;
120
- }
121
-
122
- #icepay_statement td {
123
- background-color: #FAFBFF;
124
- font-family: Arial, Verdana, sans-serif;
125
- color: #7093a9;
126
- font-size: 12px;
127
- padding: 8px;
128
- text-align: left;
129
- }
130
-
131
- .content-header h3.icepay-header {
132
- background:url(images/icepay-logo.png) no-repeat 0 0; height:0; padding: 25px 0 0 220px; width: 224px; height: 39px; display:block;
133
  }
1
+ #row_icecore_settings_step_1,
2
+ #row_icecore_settings_step_2,
3
+ #row_icecore_settings_step_3 {
4
+ font-weight: bold;
5
+ border-bottom-width: 1px;
6
+ border-bottom-style: solid;
7
+ border-bottom-color: #333;
8
+ }
9
+ #row_icecore_settings_step_1 .scope-label,
10
+ #row_icecore_settings_step_1 .use-default,
11
+ #row_icecore_settings_step_2 .scope-label,
12
+ #row_icecore_settings_step_2 .use-default,
13
+ #row_icecore_settings_step_3 .scope-label,
14
+ #row_icecore_settings_step_3 .use-default,
15
+ #row_icecore_settings_manual .scope-label,
16
+ #row_icecore_settings_manual .use-default,
17
+ #row_icecore_settings_merchant_url_notify .use-default,
18
+ #row_icecore_settings_merchant_url_ok .use-default,
19
+ #row_icecore_settings_merchant_url_err .use-default,
20
+ #row_icecore_advanced_settings_info .scope-label,
21
+ #row_icecore_advanced_settings_info .use-default,
22
+ #row_icecore_advanced_settings_manual .scope-label,
23
+ #row_icecore_advanced_settings_manual .use-default
24
+
25
+ {
26
+ display: none;
27
+ }
28
+
29
+ #row_icecore_settings_merchant_url_notify input,
30
+ #row_icecore_settings_merchant_url_ok input,
31
+ #row_icecore_settings_merchant_url_err input,
32
+ #row_icecore_settings_merchant_id input,
33
+ #row_icecore_settings_merchant_secret input {
34
+ width: 316px;
35
+ }
36
+
37
+
38
+ #row_icecore_settings_merchant_url_notify label,
39
+ #row_icecore_settings_merchant_url_ok label,
40
+ #row_icecore_settings_merchant_url_err label,
41
+ #row_icecore_settings_merchant_url_notify label,
42
+ #row_icecore_settings_merchant_id label,
43
+ #row_icecore_settings_merchant_secret label
44
+ {
45
+ margin-left: 20px;
46
+ }
47
+
48
+ /* manual links */
49
+ #row_icecore_settings_manual .note,
50
+ #row_icecore_advanced_settings_manual .note {
51
+ width: 310px;
52
+ }
53
+
54
+ #row_icecore_settings_manual .btn-manual,
55
+ #row_icecore_settings_manual .btn-movie,
56
+ #row_icecore_advanced_settings_manual .btn-manual,
57
+ #row_icecore_advanced_settings_manual .btn-movie {
58
+ display: inline-block;
59
+ background-image: url("images/button-manual.png");
60
+ background-repeat: no-repeat;
61
+ background-attachment: scroll;
62
+ background-position: 0px 0px;
63
+ width: 150px;
64
+ height: 50px;
65
+ float: left;
66
+ margin-right: 4px;
67
+ }
68
+ #row_icecore_settings_manual .btn-movie,
69
+ #row_icecore_advanced_settings_manual .btn-movie {
70
+ background-image: url("images/button-movie.png");
71
+ }
72
+
73
+
74
+ .icepay_issuer {
75
+ font-size: 9px;
76
+ border-bottom: 1px solid #dadfe0;
77
+ /*white-space: nowrap;*/
78
+ }
79
+
80
+ .icepay_url_form {
81
+ padding: 2px;
82
+ width: 274px;
83
+ color:#6f8992;
84
+ }
85
+
86
+ .icepay_debug {
87
+ padding: 4px;
88
+ font-size: 9px;
89
+ font-weight: bold;
90
+ border: 1px solid #c8c8c8;
91
+ }
92
+ .icepay_debug .ok{
93
+ color: #3d6611;
94
+ background-color: #eff5ea;
95
+ background-image: url("images/success_msg_icon.gif");
96
+ background-repeat: no-repeat;
97
+ background-attachment: scroll;
98
+ background-position: 0px 0px;
99
+ padding-left: 20px;
100
+ }
101
+ .icepay_debug .err{
102
+ color: #eb5e00;
103
+ background-color: #fff9e9;
104
+ background-image: url("images/error_msg_icon.gif");
105
+ background-repeat: no-repeat;
106
+ background-attachment: scroll;
107
+ background-position: 0px 0px;
108
+ padding-left: 20px;
109
+ }
110
+
111
+ .icemodule_incompatible {
112
+ background-color: #fff9e9;
113
+ font-size: 11px;
114
+ font-weight: bold;
115
+ color: #eb5e00;
116
+ }
117
+
118
+ #icepay_statement table {
119
+ border: 1px solid #D9DEE4;
120
+ }
121
+
122
+ #icepay_statement td {
123
+ background-color: #FAFBFF;
124
+ font-family: Arial, Verdana, sans-serif;
125
+ color: #7093a9;
126
+ font-size: 12px;
127
+ padding: 8px;
128
+ text-align: left;
129
+ }
130
+
131
+ .content-header h3.icepay-header {
132
+ background:url(images/icepay-logo.png) no-repeat 0 0; height:0; padding: 25px 0 0 220px; width: 224px; height: 39px; display:block;
133
  }
skin/adminhtml/default/default/icepay/general.css CHANGED
@@ -1,9 +1,9 @@
1
-
2
- h3.icepay-header { background:url(images/section-logo.png) no-repeat 0 0; height:0; overflow:hidden; padding:18px 0 0; width:89px; }
3
-
4
- ul.tabs a.icepay-section,
5
- ul.tabs a.icepay-section:hover { background:url(../images/tabs_span_bg.gif) repeat-x 0 100%; border-bottom:none; padding:0.5em 0.5em 0.28em 1.5em; }
6
- ul.tabs a.icepay-section:hover { background-color:#d8e6e6; }
7
- ul.tabs a.icepay-section.active, ul.tabs a.icepay-section.active:hover { background-color:#fff; }
8
- ul.tabs a.icepay-section span,
9
- ul.tabs a.icepay-section:hover span { background:url(images/section-logo.png) no-repeat 0 0; padding: 0 0 0 80px; }
1
+
2
+ h3.icepay-header { background:url(images/section-logo.png) no-repeat 0 0; height:0; overflow:hidden; padding:18px 0 0; width:89px; }
3
+
4
+ ul.tabs a.icepay-section,
5
+ ul.tabs a.icepay-section:hover { background:url(../images/tabs_span_bg.gif) repeat-x 0 100%; border-bottom:none; padding:0.5em 0.5em 0.28em 1.5em; }
6
+ ul.tabs a.icepay-section:hover { background-color:#d8e6e6; }
7
+ ul.tabs a.icepay-section.active, ul.tabs a.icepay-section.active:hover { background-color:#fff; }
8
+ ul.tabs a.icepay-section span,
9
+ ul.tabs a.icepay-section:hover span { background:url(images/section-logo.png) no-repeat 0 0; padding: 0 0 0 80px; }
skin/adminhtml/default/default/icepay/images/button-manual.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/button-movie.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/afterpay.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/creditcard.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/ddebit.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/directebank.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/elv.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/giropay.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/ideal.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/mistercash.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/nologo.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/paypal.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/paysafecard.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/wallie.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/en/wire.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/error_msg_icon.gif CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/icepay-logo.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/afterpay.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/creditcard.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/ddebit.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/directebank.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/elv.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/giropay.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/ideal.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/mistercash.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/nologo.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/paypal.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/paysafecard.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/wallie.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nl/wire.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/nologo.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/section-logo.png CHANGED
File without changes
skin/adminhtml/default/default/icepay/images/success_msg_icon.gif CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/afterpay.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/creditcard.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/ddebit.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/directebank.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/elv.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/giropay.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/icepay.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/ideal.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/mistercash.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/nologo.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/paypal.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/paysafecard.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/wallie.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/en/wire.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/icepay-logo.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/logo-currence.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/logo-thawte.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/logo-thuiswinkel.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/afterpay.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/creditcard.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/ddebit.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/directebank.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/elv.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/giropay.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/icepay.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/ideal.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/mistercash.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/nologo.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/paypal.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/paysafecard.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/wallie.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nl/wire.png CHANGED
File without changes
skin/frontend/base/default/images/icepay/nologo.png CHANGED
File without changes