Icepay_IceAdvanced - Version 1.1.10

Version Notes

Bug Fixes:
- Refunded orders now receive the 'on hold' state instead of being locked.
- Cart is no longer empty when cancelling an order.
- Crossdomain configuration has been fixed.

Enhancements:
- Compatible with the Multifees extension from MageWorx

Download this release

Release Info

Developer ICEPAY
Extension Icepay_IceAdvanced
Version 1.1.10
Comparing to
See all releases


Code changes from version 1.1.9 to 1.1.10

app/code/community/Icepay/IceAdvanced/Block/Adminhtml/Grid/Paymentmethods.php CHANGED
@@ -25,9 +25,9 @@ class Icepay_IceAdvanced_Block_Adminhtml_Grid_PaymentMethods extends Mage_Adminh
25
  public function __construct()
26
  {
27
  $this->_scope = Mage::app()->getStore(Mage::helper("icecore")->getStoreFromRequest())->getId();
28
- $this->_ajaxLoadPaymentMethodURL = Mage::helper('adminhtml')->getUrl('icepayadvanced/config/index/paymentmethod/{{pm_code}}', array('_secure' => true, 'store' => $this->_scope, '_store' => Mage::app()->getDefaultStoreView()));
29
- $this->_ajaxSavePaymentMethodURL = Mage::helper('adminhtml')->getUrl('icepayadvanced/ajax/save_paymentmethod', array('_secure' => true, 'store' => $this->_scope, '_store' => Mage::app()->getDefaultStoreView()));
30
- $this->_ajaxGetPaymentMethodsURL = Mage::helper('adminhtml')->getUrl('icepayadvanced/ajax/get_paymentmethods', array('_secure' => true, 'store' => $this->_scope, '_store' => Mage::app()->getDefaultStoreView()));
31
 
32
  $this->setTemplate('icepayadvanced/grid_paymentmethods.phtml');
33
  }
25
  public function __construct()
26
  {
27
  $this->_scope = Mage::app()->getStore(Mage::helper("icecore")->getStoreFromRequest())->getId();
28
+ $this->_ajaxLoadPaymentMethodURL = Mage::helper('adminhtml')->getUrl('icepayadvanced/config/index/paymentmethod/{{pm_code}}', array('_secure' => true));
29
+ $this->_ajaxSavePaymentMethodURL = Mage::helper('adminhtml')->getUrl('icepayadvanced/ajax/save_paymentmethod', array('_secure' => true));
30
+ $this->_ajaxGetPaymentMethodsURL = Mage::helper('adminhtml')->getUrl('icepayadvanced/ajax/get_paymentmethods', array('_secure' => true));
31
 
32
  $this->setTemplate('icepayadvanced/grid_paymentmethods.phtml');
33
  }
app/code/community/Icepay/IceAdvanced/Helper/Data.php CHANGED
@@ -4,6 +4,7 @@
4
  * ICEPAY Advanced - Helper class
5
  * @version 1.0.0
6
  * @author Olaf Abbenhuis
 
7
  * @copyright ICEPAY <www.icepay.com>
8
  *
9
  * Disclaimer:
@@ -17,7 +18,7 @@ class Icepay_IceAdvanced_Helper_Data extends Mage_Core_Helper_Abstract {
17
  /* Install values */
18
 
19
  public $title = 'Advanced';
20
- public $version = '1.1.9';
21
  public $id = 'ADV';
22
  public $fingerprint = '7f4de76ecbf7d847caeba64c42938a6a05821c4f';
23
  public $compatibility_oldest_version = '1.5.0.0';
4
  * ICEPAY Advanced - Helper class
5
  * @version 1.0.0
6
  * @author Olaf Abbenhuis
7
+ * @author Wouter van Tilburg
8
  * @copyright ICEPAY <www.icepay.com>
9
  *
10
  * Disclaimer:
18
  /* Install values */
19
 
20
  public $title = 'Advanced';
21
+ public $version = '1.1.10';
22
  public $id = 'ADV';
23
  public $fingerprint = '7f4de76ecbf7d847caeba64c42938a6a05821c4f';
24
  public $compatibility_oldest_version = '1.5.0.0';
app/code/community/Icepay/IceAdvanced/Model/Extensions/MageWorx/MultiFees.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Icepay_IceAdvanced_Model_Extensions_MageWorx_MultiFees extends Mage_Payment_Model_Method_Abstract {
4
+
5
+ private $helper;
6
+
7
+ public function __construct()
8
+ {
9
+ $this->helper = Mage::helper('multifees');
10
+ }
11
+
12
+ public function addPrice($fee, $ic_order)
13
+ {
14
+ $feeDetails = $fee[1];
15
+
16
+ // Get Total price in cents
17
+ $price = (int) (string) ($feeDetails['price'] * 100);
18
+
19
+ // Calculate VAT percentage
20
+ $vatPercentage = 0;
21
+
22
+ if ($feeDetails['tax_class_id'] != '0') {
23
+ $tax = (int) (string) ($feeDetails['tax'] * 100);
24
+ $priceExTax = $price - $tax;
25
+ $vatPercentage = (int)(string)(($tax / $priceExTax) * 100);
26
+ }
27
+
28
+ $product = $ic_order->createProduct()
29
+ ->setProductID('00')
30
+ ->setProductName($feeDetails['title'])
31
+ ->setDescription($feeDetails['options'][1]['title'])
32
+ ->setQuantity('1')
33
+ ->setUnitPrice($price)
34
+ ->setVATCategory($ic_order->getCategoryForPercentage($vatPercentage))
35
+ ;
36
+
37
+ $ic_order->addProduct($product);
38
+
39
+ return $ic_order;
40
+ }
41
+
42
+ }
app/code/community/Icepay/IceAdvanced/Model/Observer.php CHANGED
@@ -44,6 +44,25 @@ class Icepay_IceAdvanced_Model_Observer extends Mage_Payment_Block_Form_Containe
44
  return true;
45
  }
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  public function sales_quote_collect_totals_after(Varien_Event_Observer $observer)
48
  {
49
  $paymentMethod = Mage::app()->getFrontController()->getRequest()->getParam('payment');
@@ -246,7 +265,7 @@ class Icepay_IceAdvanced_Model_Observer extends Mage_Payment_Block_Form_Containe
246
  if ($this->isIssuer()) {
247
 
248
  $issuerListArr = array();
249
- foreach ($this->getIssuers() as $issuer) {
250
  if (!in_array($issuer->IssuerKeyword, Mage::helper("iceadvanced")->filteredPaymentMethodIssuers))
251
  array_push($issuerListArr, $issuer->IssuerKeyword);
252
  }
44
  return true;
45
  }
46
 
47
+ public function custom_quote_process(Varien_Event_Observer $observer)
48
+ {
49
+ $session = Mage::getSingleton('core/session');
50
+ $quoteID = $session->getData('ic_quoteid');
51
+
52
+ if (!is_null($quoteID)) {
53
+ $quoteDate = $session->getData('ic_quotedate');
54
+
55
+ $diff = abs(strtotime(date("Y-m-d H:i:s")) - strtotime($quoteDate));
56
+
57
+ if ($diff < 360) {
58
+ $observer['checkout_session']->setQuoteId($quoteID);
59
+ $observer['checkout_session']->setLoadInactive(true);
60
+ }
61
+ }
62
+
63
+ return $observer;
64
+ }
65
+
66
  public function sales_quote_collect_totals_after(Varien_Event_Observer $observer)
67
  {
68
  $paymentMethod = Mage::app()->getFrontController()->getRequest()->getParam('payment');
265
  if ($this->isIssuer()) {
266
 
267
  $issuerListArr = array();
268
+ foreach ($this->getIssuers() as $issuer) {
269
  if (!in_array($issuer->IssuerKeyword, Mage::helper("iceadvanced")->filteredPaymentMethodIssuers))
270
  array_push($issuerListArr, $issuer->IssuerKeyword);
271
  }
app/code/community/Icepay/IceAdvanced/Model/Pay.php CHANGED
@@ -16,7 +16,7 @@
16
  class Icepay_IceAdvanced_Model_Pay extends Mage_Payment_Model_Method_Abstract {
17
 
18
  private $sqlModel;
19
-
20
  public function __construct()
21
  {
22
  $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
@@ -153,6 +153,11 @@ class Icepay_IceAdvanced_Model_Pay extends Mage_Payment_Model_Method_Abstract {
153
  $ic_order->setShippingCosts(0, -1);
154
  }
155
 
 
 
 
 
 
156
  if (Mage::helper('icecore')->isModuleInstalled('MW_GiftWrap')) {
157
  $giftWrapExtension = Mage::getModel('iceadvanced/extensions_MW_GiftWrap');
158
  $ic_order = $giftWrapExtension->addGiftWrapPrices($session->getLastQuoteId(), $ic_order);
16
  class Icepay_IceAdvanced_Model_Pay extends Mage_Payment_Model_Method_Abstract {
17
 
18
  private $sqlModel;
19
+
20
  public function __construct()
21
  {
22
  $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
153
  $ic_order->setShippingCosts(0, -1);
154
  }
155
 
156
+ if (Mage::helper('icecore')->isModuleInstalled('MageWorx_MultiFees')) {
157
+ $multiFeesExtension = Mage::getModel('iceadvanced/extensions_Mageworx_MultiFees');
158
+ $ic_order = $multiFeesExtension->addPrice(unserialize($order->getDetailsMultifees()), $ic_order);
159
+ }
160
+
161
  if (Mage::helper('icecore')->isModuleInstalled('MW_GiftWrap')) {
162
  $giftWrapExtension = Mage::getModel('iceadvanced/extensions_MW_GiftWrap');
163
  $ic_order = $giftWrapExtension->addGiftWrapPrices($session->getLastQuoteId(), $ic_order);
app/code/community/Icepay/IceAdvanced/etc/config.xml CHANGED
@@ -42,6 +42,15 @@
42
  </iceadvanced>
43
  </observers>
44
  </sales_quote_collect_totals_after>
 
 
 
 
 
 
 
 
 
45
  </events>
46
  </frontend>
47
 
42
  </iceadvanced>
43
  </observers>
44
  </sales_quote_collect_totals_after>
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
 
app/code/community/Icepay/IceCore/Block/Adminhtml/GenerateURL.php CHANGED
@@ -13,15 +13,16 @@
13
  * charged in accordance with the standard ICEPAY tariffs.
14
  *
15
  */
16
-
17
  class Icepay_IceCore_Block_Adminhtml_GenerateURL extends Mage_Adminhtml_Block_System_Config_Form_Field {
18
 
19
- protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
 
20
  $this->setElement($element);
21
  return $this->enCase(Mage::helper("icecore")->getStoreFrontURL($this->setAction($this->getElement()->getName())));
22
  }
23
 
24
- protected function setAction($elementName) {
 
25
  switch ($elementName) {
26
  case "groups[settings][fields][merchant_url_ok][value]": return "result";
27
  case "groups[settings][fields][merchant_url_err][value]": return "result";
@@ -29,7 +30,8 @@ class Icepay_IceCore_Block_Adminhtml_GenerateURL extends Mage_Adminhtml_Block_Sy
29
  }
30
  }
31
 
32
- protected function enCase($str) {
 
33
  return '<input type="text" name="" class="icepay_url_form" value="' . $str . '"/>';
34
  }
35
 
13
  * charged in accordance with the standard ICEPAY tariffs.
14
  *
15
  */
 
16
  class Icepay_IceCore_Block_Adminhtml_GenerateURL extends Mage_Adminhtml_Block_System_Config_Form_Field {
17
 
18
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
19
+ {
20
  $this->setElement($element);
21
  return $this->enCase(Mage::helper("icecore")->getStoreFrontURL($this->setAction($this->getElement()->getName())));
22
  }
23
 
24
+ protected function setAction($elementName)
25
+ {
26
  switch ($elementName) {
27
  case "groups[settings][fields][merchant_url_ok][value]": return "result";
28
  case "groups[settings][fields][merchant_url_err][value]": return "result";
30
  }
31
  }
32
 
33
+ protected function enCase($str)
34
+ {
35
  return '<input type="text" name="" class="icepay_url_form" value="' . $str . '"/>';
36
  }
37
 
app/code/community/Icepay/IceCore/Block/Adminhtml/Grid/Modules.php CHANGED
@@ -13,50 +13,38 @@
13
  * charged in accordance with the standard ICEPAY tariffs.
14
  *
15
  */
16
-
17
  class Icepay_IceCore_Block_Adminhtml_Grid_Modules extends Mage_Adminhtml_Block_Widget implements Varien_Data_Form_Element_Renderer_Interface {
18
 
19
  protected $_element;
20
 
21
- public function __construct() {
 
22
  $this->setTemplate('icepaycore/grid_modules.phtml');
23
  }
24
 
25
- public function render(Varien_Data_Form_Element_Abstract $element) {
26
- $this->setElement($element);
27
- return $this->toHtml();
28
- }
29
-
30
- public function setElement(Varien_Data_Form_Element_Abstract $element) {
31
  $this->_element = $element;
32
- return $this;
33
  }
34
 
35
- public function getElement() {
 
36
  return $this->_element;
37
  }
38
 
39
- public function getModules() {
 
40
 
41
  $core_sql = Mage::getSingleton('icecore/mysql4_iceCore');
42
  return $core_sql->getModulesConfiguration();
43
  }
44
 
45
- public function getAddButtonHtml() {
46
- return $this->getChildHtml('add_button');
47
- }
48
 
49
- protected function _prepareLayout() {
50
- $button = $this->getLayout()->createBlock('adminhtml/widget_button')
51
- ->setData(array(
52
- 'label' => Mage::helper('catalog')->__('Save changes'),
53
- 'onclick' => 'return tierPriceControl.addItem()',
54
- 'class' => 'add'
55
- ));
56
- $button->setName('add_tier_price_item_button');
57
-
58
- $this->setChild('add_button', $button);
59
- return parent::_prepareLayout();
60
  }
61
 
62
  }
13
  * charged in accordance with the standard ICEPAY tariffs.
14
  *
15
  */
 
16
  class Icepay_IceCore_Block_Adminhtml_Grid_Modules extends Mage_Adminhtml_Block_Widget implements Varien_Data_Form_Element_Renderer_Interface {
17
 
18
  protected $_element;
19
 
20
+ public function __construct()
21
+ {
22
  $this->setTemplate('icepaycore/grid_modules.phtml');
23
  }
24
 
25
+ public function render(Varien_Data_Form_Element_Abstract $element)
26
+ {
 
 
 
 
27
  $this->_element = $element;
28
+ return $this->toHtml();
29
  }
30
 
31
+ public function getElement()
32
+ {
33
  return $this->_element;
34
  }
35
 
36
+ public function getModules()
37
+ {
38
 
39
  $core_sql = Mage::getSingleton('icecore/mysql4_iceCore');
40
  return $core_sql->getModulesConfiguration();
41
  }
42
 
 
 
 
43
 
44
+
45
+ protected function _prepareLayout()
46
+ {
47
+
 
 
 
 
 
 
 
48
  }
49
 
50
  }
app/code/community/Icepay/IceCore/Helper/Data.php CHANGED
@@ -17,7 +17,7 @@ class Icepay_IceCore_Helper_Data extends Mage_Core_Helper_Abstract {
17
  /* Install values */
18
 
19
  public $title = "Core";
20
- public $version = "1.1.9";
21
  public $id = "003";
22
  public $fingerprint = "003";
23
  public $compatibility_oldest_version = "1.5.0.0";
17
  /* Install values */
18
 
19
  public $title = "Core";
20
+ public $version = "1.1.10";
21
  public $id = "003";
22
  public $fingerprint = "003";
23
  public $compatibility_oldest_version = "1.5.0.0";
app/code/community/Icepay/IceCore/Model/Icepay/Postback.php CHANGED
@@ -21,12 +21,14 @@ class Icepay_IceCore_Model_Icepay_Postback {
21
  protected $storeID;
22
  private $_post;
23
 
24
- public function __construct() {
 
25
  $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
26
  $this->orderModel = Mage::getModel('sales/order');
27
  }
28
 
29
- public function handle($_vars) {
 
30
  if (!$_vars) {
31
  Mage::helper("icecore")->log("No Postback vars");
32
  die("ICEPAY postback page installed correctly.");
@@ -96,7 +98,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
96
  }
97
  }
98
 
99
- protected function outputVersion($extended = false) {
 
100
  $dump = array(
101
  "module" => $this->getVersions(),
102
  "notice" => "Checksum validation passed!"
@@ -115,13 +118,15 @@ class Icepay_IceCore_Model_Icepay_Postback {
115
  exit();
116
  }
117
 
118
- protected function validateVersion() {
 
119
  if ($this->generateChecksumForVersion() != $this->_post["Checksum"])
120
  return false;
121
  return true;
122
  }
123
 
124
- protected function getVersions() {
 
125
  $_v = "";
126
  if (class_exists(Mage::getConfig()->getHelperClassName('icecore')))
127
  $_v.= sprintf("%s %s. ", Mage::helper('icecore')->title, Mage::helper('icecore')->version);
@@ -132,14 +137,16 @@ class Icepay_IceCore_Model_Icepay_Postback {
132
  return $_v;
133
  }
134
 
135
- protected function generateChecksumForVersion() {
 
136
  return sha1(
137
- 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)
138
- )
139
  );
140
  }
141
 
142
- protected function sendMail($currentStatus, $newStatus) {
 
143
  switch ($currentStatus) {
144
  case Icepay_IceCore_Model_Config::STATUS_NEW:
145
  if ($newStatus == Icepay_IceCore_Model_Config::STATUS_ERROR) {
@@ -153,7 +160,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
153
  }
154
  }
155
 
156
- protected function saveTransaction($_vars) {
 
157
  $payment = $this->order->getPayment();
158
 
159
  $transaction = $payment->getTransaction($_vars['PaymentID']);
@@ -187,7 +195,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
187
  return $id;
188
  }
189
 
190
- protected function createInvoice($id) {
 
191
  $invoice = $this->order->prepareInvoice()
192
  ->setTransactionId($id)
193
  ->addComment(Mage::helper('icecore')->__('Auto-generated by ICEPAY'))
@@ -205,7 +214,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
205
  return $invoice;
206
  }
207
 
208
- protected function specialActions($newStatus, $transActionID) {
 
209
  $msg = "";
210
  switch ($newStatus) {
211
  case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
@@ -218,7 +228,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
218
  return $msg;
219
  }
220
 
221
- protected function canUpdate($currentStatus, $newStatus) {
 
222
  switch ($newStatus) {
223
  case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
224
  case Icepay_IceCore_Model_Config::STATUS_OPEN: return ($currentStatus == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT || $currentStatus == Mage_Sales_Model_Order::STATE_NEW);
@@ -231,7 +242,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
231
  };
232
  }
233
 
234
- protected function canUpdateBasedOnIcepayTable($currentStatus, $newStatus) {
 
235
  switch ($currentStatus) {
236
  case Icepay_IceCore_Model_Config::STATUS_NEW:
237
  case Icepay_IceCore_Model_Config::STATUS_OPEN:
@@ -265,7 +277,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
265
  }
266
  }
267
 
268
- protected function getMagentoStatus($icepayStatus) {
 
269
  switch ($icepayStatus) {
270
  case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_SUCCESS;
271
  case Icepay_IceCore_Model_Config::STATUS_OPEN: return Icepay_IceCore_Model_Config::STATUS_MAGENTO_OPEN;
@@ -278,7 +291,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
278
  };
279
  }
280
 
281
- protected function getMagentoState($icepayStatus) {
 
282
  switch ($icepayStatus) {
283
  case Icepay_IceCore_Model_Config::STATUS_SUCCESS:
284
  return Mage_Sales_Model_Order::STATE_PROCESSING;
@@ -292,14 +306,16 @@ class Icepay_IceCore_Model_Icepay_Postback {
292
  break;
293
  case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK:
294
  case Icepay_IceCore_Model_Config::STATUS_REFUND:
295
- return Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW;
 
296
  break;
297
  default:
298
  return false;
299
  };
300
  }
301
 
302
- protected function getTransactionStatus($icepayStatus) {
 
303
  switch ($icepayStatus) {
304
  case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_PAYMENT;
305
  case Icepay_IceCore_Model_Config::STATUS_OPEN: return Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID;
@@ -311,7 +327,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
311
  };
312
  }
313
 
314
- protected function isClosedStatus($icepayStatus) {
 
315
  switch ($icepayStatus) {
316
  case Icepay_IceCore_Model_Config::STATUS_SUCCESS: return true;
317
  case Icepay_IceCore_Model_Config::STATUS_OPEN: return false;
@@ -323,7 +340,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
323
  };
324
  }
325
 
326
- protected function isRefund($icepayStatus) {
 
327
  switch ($icepayStatus) {
328
  case Icepay_IceCore_Model_Config::STATUS_CHARGEBACK: return true;
329
  case Icepay_IceCore_Model_Config::STATUS_REFUND: return true;
@@ -332,12 +350,14 @@ class Icepay_IceCore_Model_Icepay_Postback {
332
  };
333
  }
334
 
335
- protected function getParentPaymentID($statusString) {
 
336
  $arr = explode("PaymentID:", $statusString);
337
  return intval($arr[1]);
338
  }
339
 
340
- protected function getTransactionString($_vars) {
 
341
  $str = "";
342
  foreach ($_vars as $key => $value) {
343
  $str .= "{$key}: {$value}<BR>";
@@ -345,7 +365,8 @@ class Icepay_IceCore_Model_Icepay_Postback {
345
  return $str;
346
  }
347
 
348
- protected function checkIP($remote_ip) {
 
349
  return true;
350
  $whiteList = array('194.30.175.0-194.30.175.255', '194.126.241.128-194.126.241.191');
351
 
@@ -366,11 +387,13 @@ class Icepay_IceCore_Model_Icepay_Postback {
366
  return false;
367
  }
368
 
369
- protected function decbin32($dec) {
 
370
  return str_pad(decbin($dec), 32, '0', STR_PAD_LEFT);
371
  }
372
 
373
- protected function ip_in_range($ip, $range) {
 
374
  if (strpos($range, '/') !== false) {
375
  // $range is in IP/NETMASK format
376
  list($range, $netmask) = explode('/', $range, 2);
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.");
98
  }
99
  }
100
 
101
+ protected function outputVersion($extended = false)
102
+ {
103
  $dump = array(
104
  "module" => $this->getVersions(),
105
  "notice" => "Checksum validation passed!"
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);
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) {
160
  }
161
  }
162
 
163
+ protected function saveTransaction($_vars)
164
+ {
165
  $payment = $this->order->getPayment();
166
 
167
  $transaction = $payment->getTransaction($_vars['PaymentID']);
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'))
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:
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);
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:
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;
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;
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;
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;
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;
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>";
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
 
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);
app/code/community/Icepay/IceCore/Model/Icepay/Result.php CHANGED
@@ -13,31 +13,37 @@
13
  * charged in accordance with the standard ICEPAY tariffs.
14
  *
15
  */
16
-
17
  class Icepay_IceCore_Model_Icepay_Result {
18
 
19
  protected $sqlModel;
20
 
21
- public function __construct() {
 
22
  $this->sqlModel = Mage::getModel('icecore/mysql4_iceCore');
23
  }
24
 
25
- public function handle(array $_vars){
26
- if (count($_vars) == 0) die("ICEPAY result page installed correctly.");
27
- if (!$_vars['OrderID']) die("No orderID found");
 
 
 
 
28
 
29
- $order = Mage::getModel('sales/order');
30
- $order->loadByIncrementId(($_vars['OrderID'] == "DUMMY")?$_vars['Reference']:$_vars['OrderID'])
31
- ->addStatusHistoryComment(sprintf(Mage::helper("icecore")->__("Customer returned with status: %s"),$_vars['StatusCode']))
32
  ->save();
33
 
34
- switch(strtoupper($_vars['Status'])){
35
- case "ERR":
36
- $cart = Mage::getModel('checkout/cart')->getQuote()->getData();
37
- $msg = sprintf(Mage::helper("icecore")->__("The payment provider has returned the following error message: %s"),Mage::helper("icecore")->__($_vars['Status']. ": ".$_vars['StatusCode']));
38
- if(!isset($cart['items_qty'])) $msg .= sprintf("<p>".Mage::helper("icecore")->__("Click <a href='%s'>here</a> to reorder.")."</p>",Mage::getUrl('sales/order/reorder', array('order_id'=>$order->getRealOrderId())));
39
- Mage::getSingleton('checkout/session')->setErrorMessage($msg);
40
- $url = 'checkout/onepage/failure';
 
 
41
  break;
42
  case "OK":
43
  case "OPEN":
@@ -47,11 +53,9 @@ class Icepay_IceCore_Model_Icepay_Result {
47
  };
48
 
49
  /* Redirect based on store */
50
- //Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl($url));
51
- $url = Mage::app()->getStore($order->getStoreId())->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK,true) . $url;
52
  Mage::app()->getFrontController()->getResponse()->setRedirect($url);
53
-
54
  }
55
 
56
-
57
  }
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":
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
@@ -78,7 +78,7 @@ class Icepay_IceCore_Model_Mysql4_IceCore extends Mage_Core_Model_Mysql4_Abstrac
78
  $select = $conn
79
  ->select()
80
  ->from($this->getTable('core/config_data'), array('scope', 'scope_id', 'path', 'value'))
81
- ->where(new Zend_Db_Expr("path LIKE 'ice%module/" . $unique . "'"))
82
  ->order('path');
83
  $data = $conn->fetchAll($select);
84
 
78
  $select = $conn
79
  ->select()
80
  ->from($this->getTable('core/config_data'), array('scope', 'scope_id', 'path', 'value'))
81
+ ->where(new Zend_Db_Expr("path LIKE 'iceadvanced/module/" . $unique . "'"))
82
  ->order('path');
83
  $data = $conn->fetchAll($select);
84
 
app/design/adminhtml/default/default/template/icepaycore/grid_modules.phtml CHANGED
@@ -20,7 +20,7 @@
20
  </thead>
21
  <tbody id="<?php echo $_htmlId ?>_container"></tbody>
22
  </table>
23
-
24
  <script type="text/javascript">
25
  //<![CDATA[
26
  var ICEPAYModuleRowTemplate = '<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>'
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Icepay_IceAdvanced</name>
4
- <version>1.1.9</version>
5
  <stability>stable</stability>
6
  <license>Commercial</license>
7
  <channel>community</channel>
@@ -10,17 +10,18 @@
10
  www.icepay.com</summary>
11
  <description>Enables payments using payment service provider ICEPAY.&#xD;
12
  The Advanced extension includes webservice support&#xD;
13
- This package also contains the Icepay_IceCore extension.</description>
14
- <notes>- Fixed Compilation bug&#xD;
15
- - Fixed UTF-8 Afterpay issue&#xD;
16
- - Fixed recurring payment issuers being shown during checkout&#xD;
17
- - Fixed broken manual buttons&#xD;
18
- - Started code cleanup&#xD;
19
- </notes>
 
20
  <authors><author><name>ICEPAY</name><user>ICEPAY_PSP</user><email>wouter.vantilburg@icepay.com</email></author><author><name>Wouter van Tilburg</name><user>wvantilburg</user><email>wouter@icepay.eu</email></author></authors>
21
- <date>2013-08-14</date>
22
- <time>11:11:06</time>
23
- <contents><target name="mageetc"><dir name="modules"><file name="Icepay_IceCore.xml" hash="268e777c318f1cd6258a56c3049ac678"/><file name="Icepay_IceAdvanced.xml" hash="069d0a2d2c7a34e366bc2b79483cd2b4"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Icepay_IceCore.csv" hash="9092007f82d233320603de2e60e411ea"/><file name="Icepay_IceAdvanced.csv" hash="5f22cd45bb0f95e01cd8bcfa0b20420c"/></dir><dir name="nl_NL"><file name="Icepay_IceCore.csv" hash="becf356de17d63f4cd237e03b1d704e8"/><file name="Icepay_IceAdvanced.csv" hash="5d1d00bd9add8b1fcb61cd10ee5fa2af"/></dir><dir name="de_DE"><file name="Icepay_IceAdvanced.csv" hash="3cae75009684ac7a1b4afb6667d6a477"/><file name="Icepay_IceCore.csv" hash="e8ad59c02f83d67b31e7bbef3ede043e"/></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></target><target name="magecommunity"><dir name="Icepay"><dir name="IceCore"><dir><dir name="Block"><dir name="Adminhtml"><file name="CheckSettings.php" hash="1e37aaa21895b1536895d4b2f2063061"/><file name="GenerateURL.php" hash="1b085eef7e7baff781c814376ab99314"/><dir name="Grid"><file name="Modules.php" hash="10bd64d92a0f0366d6a3ac2a19953725"/></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="6ef8e2deb156159333742afe9c20a570"/></dir><dir name="Model"><file name="Config.php" hash="952b1621e8df054150a357b11f4af177"/><dir name="Icepay"><file name="Postback.php" hash="a74d8f8fcfcf1fcca7af10966f4ac738"/><file name="Result.php" hash="4bfc63bf6d76d0ddf3045bd855ff9ccc"/></dir><dir name="Mysql4"><file name="IceCore.php" hash="84960cbc0193bfd5261af3f0a3e213c3"/></dir><dir name="Webservice"><file name="Core.php" hash="04f8f3b25765e711a59b4bbbcd39c706"/></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="424dcd8ca64f304c871326b749e0cc0f"/></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><dir name="IceAdvanced"><dir><dir name="Block"><dir name="Adminhtml"><file name="CheckSettings.php" hash="1e9e08f5414b22dd84557ade567aba48"/><dir name="Grid"><file name="Paymentmethods.php" hash="6e6ddc21f180a42a48ee80cc8846efbf"/></dir><dir name="Setting"><file name="Paymentmethod.php" hash="dc5548c4bfde0375c3431d8d9972da1f"/></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="b94760499d65bdeb16e072bc83c2937c"/></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="1b1fc9e469da666c3e778027c28e04ec"/></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><dir name="Mysql4"><file name="IceAdvanced.php" hash="c519845e581a84aaaef93a7901ba5570"/></dir><file name="Observer.php" hash="33f5effabcb4834d628f3168438d2d80"/><file name="Order.php" hash="a7f88e2e19ced7081b1e7a426d420fbf"/><file name="Pay.php" hash="0e6a10d93be58af15587ff169a035112"/><file name="Paymentmethods.php" hash="9a4ea214394e1813609ee4166f2e0b98"/><dir name="Webservice"><file name="Advanced.php" hash="23cd1ca7bc75f28f7aaa50c27506f391"/></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="bf146cf2c715de9856d3d145819a1ac4"/><file name="ConfigController.php" hash="9be40c50c69981034a9787a1f2e005f1"/><file name="ProcessingController.php" hash="c73ee3217fe10bd0f86c189a60a05521"/></dir><dir name="etc"><file name="config.xml" hash="c6a1cc795704b9e6e50c97d2b793d9f4"/><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></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="icepay"><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"/><file name="nologo.png" hash="72e977c925c8b6c70ff5fb69c0e054c8"/><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><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></dir></dir></dir></dir></dir><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="icepay-logo.png" hash="584d79128e6df216e9f7304329158b56"/><file name="section-logo.png" hash="5242ece5dd1434831174ef7fba8c2c4a"/><file name="error_msg_icon.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="success_msg_icon.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="button-manual.png" hash="7b708db3c8915897a4e3526389b7e3b2"/><file name="button-movie.png" hash="c164da277349322fcd4480ece39d6e00"/><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><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></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="icecore.xml" hash="98b5a6c55a72ba244b21a5815ae0c4fc"/></dir><dir name="template"><dir name="icepaycore"><file name="grid_modules.phtml" hash="b789718b178cd1df150caa35f54b48db"/></dir><dir name="icepayadvanced"><dir><dir name="form"><file name="default.phtml" hash="fdf9eb2d5c4a5ef8f43f6e9d8090ebd4"/></dir></dir><file name="grid_paymentmethods.phtml" hash="28f608b5e8c373b912bd5826424de840"/><file name="paymentmethod.phtml" hash="28dfbb959013471567d2db769516cb18"/></dir></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="icepaycore"><dir><dir name="front"><file name="check.phtml" hash="ae5608fb727b2457af10c7bd9faee6d9"/><file name="statement.phtml" hash="7cc11055297c480e75b6f082c41bdaa6"/></dir></dir></dir><dir name="icepayadvanced"><dir><dir name="form"><file name="default.phtml" hash="fdf9eb2d5c4a5ef8f43f6e9d8090ebd4"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Icepay_IceAdvanced</name>
4
+ <version>1.1.10</version>
5
  <stability>stable</stability>
6
  <license>Commercial</license>
7
  <channel>community</channel>
10
  www.icepay.com</summary>
11
  <description>Enables payments using payment service provider ICEPAY.&#xD;
12
  The Advanced extension includes webservice support&#xD;
13
+ </description>
14
+ <notes>Bug Fixes:&#xD;
15
+ - Refunded orders now receive the 'on hold' state instead of being locked.&#xD;
16
+ - Cart is no longer empty when cancelling an order.&#xD;
17
+ - Crossdomain configuration has been fixed.&#xD;
18
+ &#xD;
19
+ Enhancements:&#xD;
20
+ - Compatible with the Multifees extension from MageWorx</notes>
21
  <authors><author><name>ICEPAY</name><user>ICEPAY_PSP</user><email>wouter.vantilburg@icepay.com</email></author><author><name>Wouter van Tilburg</name><user>wvantilburg</user><email>wouter@icepay.eu</email></author></authors>
22
+ <date>2013-09-23</date>
23
+ <time>12:17:08</time>
24
+ <contents><target name="mageetc"><dir name="modules"><file name="Icepay_IceCore.xml" hash="268e777c318f1cd6258a56c3049ac678"/><file name="Icepay_IceAdvanced.xml" hash="069d0a2d2c7a34e366bc2b79483cd2b4"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Icepay_IceCore.csv" hash="9092007f82d233320603de2e60e411ea"/><file name="Icepay_IceAdvanced.csv" hash="5f22cd45bb0f95e01cd8bcfa0b20420c"/></dir><dir name="nl_NL"><file name="Icepay_IceCore.csv" hash="becf356de17d63f4cd237e03b1d704e8"/><file name="Icepay_IceAdvanced.csv" hash="5d1d00bd9add8b1fcb61cd10ee5fa2af"/></dir><dir name="de_DE"><file name="Icepay_IceAdvanced.csv" hash="3cae75009684ac7a1b4afb6667d6a477"/><file name="Icepay_IceCore.csv" hash="e8ad59c02f83d67b31e7bbef3ede043e"/></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></target><target name="magecommunity"><dir name="Icepay"><dir name="IceCore"><dir><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="e4c54519d0fa959cd4330f02020e2dd4"/></dir><dir name="Model"><file name="Config.php" hash="952b1621e8df054150a357b11f4af177"/><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="04f8f3b25765e711a59b4bbbcd39c706"/></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="424dcd8ca64f304c871326b749e0cc0f"/></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><dir name="IceAdvanced"><dir><dir name="Block"><dir name="Adminhtml"><file name="CheckSettings.php" hash="1e9e08f5414b22dd84557ade567aba48"/><dir name="Grid"><file name="Paymentmethods.php" hash="9c1c2d535f17108128cf553119a931a5"/></dir><dir name="Setting"><file name="Paymentmethod.php" hash="dc5548c4bfde0375c3431d8d9972da1f"/></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="1d0189d3e01750827d0de4fc78492307"/></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="1b1fc9e469da666c3e778027c28e04ec"/></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="c519845e581a84aaaef93a7901ba5570"/></dir><file name="Observer.php" hash="965e55259b793fc60f95e96003ec06df"/><file name="Order.php" hash="a7f88e2e19ced7081b1e7a426d420fbf"/><file name="Pay.php" hash="7798eb00117c6a464c27524075e52b34"/><file name="Paymentmethods.php" hash="9a4ea214394e1813609ee4166f2e0b98"/><dir name="Webservice"><file name="Advanced.php" hash="23cd1ca7bc75f28f7aaa50c27506f391"/></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="bf146cf2c715de9856d3d145819a1ac4"/><file name="ConfigController.php" hash="9be40c50c69981034a9787a1f2e005f1"/><file name="ProcessingController.php" hash="c73ee3217fe10bd0f86c189a60a05521"/></dir><dir name="etc"><file name="config.xml" hash="a1ae9a88cdddb660ca6e29a38e75be8c"/><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></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="icepay"><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"/><file name="nologo.png" hash="72e977c925c8b6c70ff5fb69c0e054c8"/><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><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></dir></dir></dir></dir></dir><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="icepay-logo.png" hash="584d79128e6df216e9f7304329158b56"/><file name="section-logo.png" hash="5242ece5dd1434831174ef7fba8c2c4a"/><file name="error_msg_icon.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="success_msg_icon.gif" hash="834dfafd5f8b44c4b24a4c00add56fcf"/><file name="nologo.png" hash="57404bbcfb3e5a70239d3085e14471cc"/><file name="button-manual.png" hash="7b708db3c8915897a4e3526389b7e3b2"/><file name="button-movie.png" hash="c164da277349322fcd4480ece39d6e00"/><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><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></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="icecore.xml" hash="98b5a6c55a72ba244b21a5815ae0c4fc"/></dir><dir name="template"><dir name="icepaycore"><file name="grid_modules.phtml" hash="f113cfa6d561031bcd5a90f3a1fb48a0"/></dir><dir name="icepayadvanced"><dir><dir name="form"><file name="default.phtml" hash="fdf9eb2d5c4a5ef8f43f6e9d8090ebd4"/></dir></dir><file name="grid_paymentmethods.phtml" hash="28f608b5e8c373b912bd5826424de840"/><file name="paymentmethod.phtml" hash="28dfbb959013471567d2db769516cb18"/></dir></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="icepaycore"><dir><dir name="front"><file name="check.phtml" hash="ae5608fb727b2457af10c7bd9faee6d9"/><file name="statement.phtml" hash="7cc11055297c480e75b6f082c41bdaa6"/></dir></dir></dir><dir name="icepayadvanced"><dir><dir name="form"><file name="default.phtml" hash="fdf9eb2d5c4a5ef8f43f6e9d8090ebd4"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
27
  </package>