mPAY24 - Version 1.5.6

Version Notes

1.Status bug fixing: initialize method used instead of authorize.

2.Template improvement: Frontend base package used instead of default.

3.IE 11 frontend template support added.

4.Payment Method discount bug fixed.

5.Default Styling added.

Download this release

Release Info

Developer Filipp Akinfiev
Extension mPAY24
Version 1.5.6
Comparing to
See all releases


Code changes from version 1.5.5 to 1.5.6

Files changed (80) hide show
  1. app/code/community/Mpay24/Mpay24/Model/Api/MDXI.xsd +1 -1
  2. app/code/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php +15 -6
  3. app/code/community/Mpay24/Mpay24/Model/Method/Selectpayment.php +13 -8
  4. app/code/community/Mpay24/Mpay24/Model/Sales/Quote/Address/Total/Paymentcharge.php +5 -5
  5. app/code/community/Mpay24/Mpay24/Model/Selectpayment.php +33 -3
  6. app/code/community/Mpay24/Mpay24/controllers/PaymentController.php +258 -243
  7. app/code/community/Mpay24/Mpay24/etc/config.xml +52 -52
  8. app/code/community/Mpay24/Mpay24/etc/system.xml +11 -10
  9. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-install-1.5.5.php → mysql4-install-1.5.6.php} +1 -1
  10. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.4.9.php +0 -53
  11. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.0.php +0 -53
  12. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.1.php +0 -53
  13. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.2.php +0 -53
  14. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.3.php +0 -53
  15. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.4.php +0 -53
  16. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.5.php +0 -53
  17. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.6.php +0 -53
  18. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.7.php +0 -53
  19. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.8.php +0 -53
  20. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.9.php +0 -53
  21. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.0.php +0 -53
  22. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.1.php +0 -53
  23. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.2.php +0 -53
  24. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.3.php +0 -53
  25. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.4.php +0 -53
  26. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.5.php +0 -53
  27. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.4.7.php +0 -53
  28. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.4.8.php +0 -53
  29. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.4.9.php +0 -53
  30. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.0.php +0 -53
  31. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.1.php +0 -53
  32. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.2.php +0 -53
  33. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.3.php +0 -53
  34. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.4.php +0 -53
  35. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.5.php +0 -53
  36. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.4.8.php +0 -53
  37. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.4.9.php +0 -53
  38. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.0.php +0 -53
  39. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.1.php +0 -53
  40. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.2.php +0 -53
  41. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.3.php +0 -53
  42. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.4.php +0 -53
  43. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.5.php +0 -53
  44. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.4.9.php +0 -53
  45. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.0.php +0 -53
  46. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.1.php +0 -53
  47. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.2.php +0 -53
  48. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.3.php +0 -53
  49. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.4.php +0 -53
  50. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.5.php +0 -53
  51. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.0.php +0 -53
  52. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.1.php +0 -53
  53. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.2.php +0 -53
  54. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.3.php +0 -53
  55. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.4.php +0 -53
  56. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.5.php +0 -53
  57. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.0-1.5.5.php +1 -1
  58. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.8.php → mysql4-upgrade-1.5.0-1.5.6.php} +1 -1
  59. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.1-1.5.5.php +1 -1
  60. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.5.php → mysql4-upgrade-1.5.1-1.5.6.php} +1 -1
  61. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.2-1.5.5.php +1 -1
  62. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.6.php → mysql4-upgrade-1.5.2-1.5.6.php} +1 -1
  63. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.3-1.5.5.php +1 -1
  64. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.7.php → mysql4-upgrade-1.5.3-1.5.6.php} +1 -1
  65. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.4-1.5.5.php +1 -1
  66. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.4-1.5.6.php +53 -0
  67. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.5-1.5.6.php +53 -0
  68. app/design/adminhtml/default/default/template/mpay24/info/selectpayment.phtml +2 -2
  69. app/design/frontend/base/default/layout/mpay24.xml +35 -0
  70. app/design/frontend/{default → base}/default/template/mpay24/form/area.phtml +7 -7
  71. app/design/frontend/{default → base}/default/template/mpay24/form/dropDown.phtml +8 -8
  72. app/design/frontend/{default → base}/default/template/mpay24/form/radio.phtml +4 -4
  73. app/design/frontend/{default → base}/default/template/mpay24/info/selectpayment.phtml +3 -3
  74. app/design/frontend/default/default/layout/mpay24.xml +0 -19
  75. app/etc/modules/Mpay24_Mpay24.xml +2 -2
  76. app/locale/de_AT/Mpay24_Mpay24.csv +2 -1
  77. app/locale/de_CH/Mpay24_Mpay24.csv +2 -1
  78. app/locale/de_DE/Mpay24_Mpay24.csv +2 -1
  79. app/locale/en_US/Mpay24_Mpay24.csv +2 -1
  80. package.xml +14 -5
app/code/community/Mpay24/Mpay24/Model/Api/MDXI.xsd CHANGED
@@ -89,7 +89,7 @@
89
  </xs:simpleType>
90
  <xs:simpleType name="PriceType">
91
  <xs:restriction base="xs:float">
92
- <xs:pattern value="-?\d{1,9}\.\d{2}|-?\d{1,9}"/>
93
  </xs:restriction>
94
  </xs:simpleType>
95
  <xs:simpleType name="CurrencyType">
89
  </xs:simpleType>
90
  <xs:simpleType name="PriceType">
91
  <xs:restriction base="xs:float">
92
+ <xs:pattern value="\-?\d{1,9}(\.\d{2})?"/>
93
  </xs:restriction>
94
  </xs:simpleType>
95
  <xs:simpleType name="CurrencyType">
app/code/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @author support@mpay24.com
4
- * @version $Id: MPay24MagentoShop.php 30 2014-11-10 14:00:27Z sapolhei $
5
  * @filesource test.php
6
  * @license http://ec.europa.eu/idabc/eupl.html EUPL, Version 1.1
7
  */
@@ -20,7 +20,7 @@ class MPay24MagentoShop extends MPay24Shop {
20
 
21
  const CANCEL_URL = 'mpay24/payment/cancel';
22
 
23
- const MAGENTO_VERSION = "Magento 1.5.5 ";
24
 
25
  var $tid;
26
  var $price;
@@ -30,7 +30,7 @@ class MPay24MagentoShop extends MPay24Shop {
30
  var $brand;
31
 
32
  public static function getAllowedAuth() {
33
- return array("CB", "MAESTRO", "PAYPAL", "ELV", "PB", "MPASS", "INVOICE", "HP", "SAFETYPAY");
34
  }
35
 
36
  private function getOrder($tid=null) {
@@ -240,7 +240,7 @@ class MPay24MagentoShop extends MPay24Shop {
240
  function createFinishExpressCheckoutOrder($tid, $s, $a, $c) {}
241
 
242
  function write_log($operation, $info_to_log) {
243
- Mage::log("$operation : $info_to_log", null, "mPAY24log.log");
244
  }
245
 
246
  function createSecret($tid, $amount, $currency, $timeStamp) {}
@@ -269,7 +269,16 @@ class MPay24MagentoShop extends MPay24Shop {
269
  $mdxi->Order->setFooterStyle(Mage::getStoreConfig('mpay24/mpay24sporder/footerstyle'));
270
 
271
  $this->order->getPayment()->setAdditionalInformation('user_field', MPay24MagentoShop::MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d'))->save();
272
- $mdxi->Order->ClientIP = $this->order->getRemoteIp();
 
 
 
 
 
 
 
 
 
273
  $mdxi->Order->UserField = MPay24MagentoShop::MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d');
274
  $mdxi->Order->Tid = $transaction->TID;
275
 
@@ -357,7 +366,7 @@ class MPay24MagentoShop extends MPay24Shop {
357
  $mdxi->Order->ShoppingCart->setPriceStyle(Mage::getStoreConfig('mpay24/mpay24spsc/sc_pricestyle'));
358
  }
359
 
360
- $mdxi->Order->ShoppingCart->Description(Mage::getStoreConfig('mpay24/mpay24spsc/description'));
361
 
362
  $style1 = Mage::getStoreConfig('mpay24/mpay24spsc/item_style1');
363
  $style2 = Mage::getStoreConfig('mpay24/mpay24spsc/item_style2');
1
  <?php
2
  /**
3
  * @author support@mpay24.com
4
+ * @version $Id: MPay24MagentoShop.php 37 2015-01-29 12:33:39Z sapolhei $
5
  * @filesource test.php
6
  * @license http://ec.europa.eu/idabc/eupl.html EUPL, Version 1.1
7
  */
20
 
21
  const CANCEL_URL = 'mpay24/payment/cancel';
22
 
23
+ const MAGENTO_VERSION = "Magento 1.5.6 ";
24
 
25
  var $tid;
26
  var $price;
30
  var $brand;
31
 
32
  public static function getAllowedAuth() {
33
+ return array("CB", "CC", "ELV", "BILLPAY", "PAYPAL", "PB", "PSC", "SAFETYPAY");
34
  }
35
 
36
  private function getOrder($tid=null) {
240
  function createFinishExpressCheckoutOrder($tid, $s, $a, $c) {}
241
 
242
  function write_log($operation, $info_to_log) {
243
+ Mage::log("$operation : $info_to_log", null, "mPAY24log.log",true);
244
  }
245
 
246
  function createSecret($tid, $amount, $currency, $timeStamp) {}
269
  $mdxi->Order->setFooterStyle(Mage::getStoreConfig('mpay24/mpay24sporder/footerstyle'));
270
 
271
  $this->order->getPayment()->setAdditionalInformation('user_field', MPay24MagentoShop::MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d'))->save();
272
+
273
+ //validates IPv4
274
+ $validIPv4 = filter_var($this->order->getRemoteIp(), FILTER_VALIDATE_IP,FILTER_FLAG_IPV4);
275
+
276
+ //validates IPv6
277
+ $validIPv6 = filter_var($this->order->getRemoteIp(), FILTER_VALIDATE_IP,FILTER_FLAG_IPV6);
278
+
279
+ if($validIPv4)
280
+ $mdxi->Order->ClientIP = $this->order->getRemoteIp();
281
+
282
  $mdxi->Order->UserField = MPay24MagentoShop::MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d');
283
  $mdxi->Order->Tid = $transaction->TID;
284
 
366
  $mdxi->Order->ShoppingCart->setPriceStyle(Mage::getStoreConfig('mpay24/mpay24spsc/sc_pricestyle'));
367
  }
368
 
369
+ $mdxi->Order->ShoppingCart->Description = Mage::getStoreConfig('mpay24/mpay24spsc/description');
370
 
371
  $style1 = Mage::getStoreConfig('mpay24/mpay24spsc/item_style1');
372
  $style2 = Mage::getStoreConfig('mpay24/mpay24spsc/item_style2');
app/code/community/Mpay24/Mpay24/Model/Method/Selectpayment.php CHANGED
@@ -16,14 +16,14 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Selectpayment.php 28 2014-09-29 09:31:11Z sapolhei $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
23
 
24
  abstract class Mpay24_Mpay24_Model_Method_Selectpayment extends Mpay24_Mpay24_Model_Method_Abstract{
25
 
26
- public function authorize(Varien_Object $payment, $amount) {
27
  $ps = false;
28
  $type = "";
29
  $brand = "";
@@ -44,10 +44,10 @@ abstract class Mpay24_Mpay24_Model_Method_Selectpayment extends Mpay24_Mpay24_Mo
44
  $i++;
45
  }
46
 
47
- if(isset($_REQUEST['mpay24_ps']) && $_REQUEST['mpay24_ps'] != 'false') {
48
  $ps = true;
49
- $brand = $payments[substr($_REQUEST['mpay24_ps'],7,3)]['BRAND'];
50
- $type = $payments[substr($_REQUEST['mpay24_ps'],7,3)]['P_TYPE'];
51
  }
52
 
53
  $this->clearSession();
@@ -61,14 +61,17 @@ abstract class Mpay24_Mpay24_Model_Method_Selectpayment extends Mpay24_Mpay24_Mo
61
  $mPay24MagentoShop->setVariables($payment->getOrder(), $ps, $type, $brand);
62
  $soapResult = $mPay24MagentoShop->pay();
63
 
64
- $payment->setTransactionId($payment->getOrder()->getIncrementId())->setIsTransactionClosed(0);
65
-
66
  if($soapResult->getGeneralResponse()->getStatus() == "OK") {
67
  $this->getPayment()->setAuth(true);
68
  $this->getSession()->setUrl($soapResult->getLocation());
 
 
 
 
69
  $payment->setAdditionalInformation('user_field', MPay24MagentoShop::MAGENTO_VERSION.substr($payment->getOrder()->getIncrementId(),0,100).'_'.date('Y-m-d'));
 
 
70
 
71
- $payment->setIsTransactionPending(true);
72
  $payment->getOrder()->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("Redirected to mPAY24 pay page"))->save();
73
  } else
74
  $error = $soapResult->getGeneralResponse()->getReturnCode();
@@ -80,6 +83,8 @@ abstract class Mpay24_Mpay24_Model_Method_Selectpayment extends Mpay24_Mpay24_Mo
80
  Mage::log($error, 10);
81
  Mage::throwException(Mage::helper('mpay24')->__('Please contact the merchant,')."\n".Mage::helper('mpay24')->__('this payment is not possible at the moment!'));
82
  }
 
 
83
  }
84
 
85
  public function getOrderPlaceRedirectUrl() {
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Selectpayment.php 36 2015-01-27 16:48:06Z sapolhei $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
23
 
24
  abstract class Mpay24_Mpay24_Model_Method_Selectpayment extends Mpay24_Mpay24_Model_Method_Abstract{
25
 
26
+ public function initialize($payment, $amount) {
27
  $ps = false;
28
  $type = "";
29
  $brand = "";
44
  $i++;
45
  }
46
 
47
+ if(Mage::app()->getRequest()->getParam('mpay24_ps') != null && Mage::app()->getRequest()->getParam('mpay24_ps') != 'false') {
48
  $ps = true;
49
+ $brand = $payments[substr(Mage::app()->getRequest()->getParam('mpay24_ps'),7,3)]['BRAND'];
50
+ $type = $payments[substr(Mage::app()->getRequest()->getParam('mpay24_ps'),7,3)]['P_TYPE'];
51
  }
52
 
53
  $this->clearSession();
61
  $mPay24MagentoShop->setVariables($payment->getOrder(), $ps, $type, $brand);
62
  $soapResult = $mPay24MagentoShop->pay();
63
 
 
 
64
  if($soapResult->getGeneralResponse()->getStatus() == "OK") {
65
  $this->getPayment()->setAuth(true);
66
  $this->getSession()->setUrl($soapResult->getLocation());
67
+
68
+ $payment->setTransactionId($payment->getOrder()->getIncrementId())->setIsTransactionClosed(1)->save();
69
+ $transaction = $payment->addTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_ORDER)->save();
70
+
71
  $payment->setAdditionalInformation('user_field', MPay24MagentoShop::MAGENTO_VERSION.substr($payment->getOrder()->getIncrementId(),0,100).'_'.date('Y-m-d'));
72
+
73
+ $payment->setAdditionalInformation('confirmed', "")->save();
74
 
 
75
  $payment->getOrder()->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("Redirected to mPAY24 pay page"))->save();
76
  } else
77
  $error = $soapResult->getGeneralResponse()->getReturnCode();
83
  Mage::log($error, 10);
84
  Mage::throwException(Mage::helper('mpay24')->__('Please contact the merchant,')."\n".Mage::helper('mpay24')->__('this payment is not possible at the moment!'));
85
  }
86
+
87
+ return $this;
88
  }
89
 
90
  public function getOrderPlaceRedirectUrl() {
app/code/community/Mpay24/Mpay24/Model/Sales/Quote/Address/Total/Paymentcharge.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- /**
3
  * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
  * This source file is subject to the Open Software License (OSL 3.0)
8
  * that is bundled with this package in the file LICENSE.txt.
9
  * It is also available through the world-wide-web at this URL:
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category Mpay24
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  * @version $Id: Paymentcharge.php 27 2014-08-27 13:59:46Z sapolhei $
20
  */
 
21
  * Magento
22
  *
23
  * NOTICE OF LICENSE
24
  *
25
  * This source file is subject to the Open Software License (OSL 3.0)
26
  * that is bundled with this package in the file LICENSE.txt.
27
  * It is also available through the world-wide-web at this URL:
28
  * http://opensource.org/licenses/osl-3.0.php
29
  * If you did not receive a copy of the license and are unable to
30
  * obtain it through the world-wide-web, please send an email
31
  * to license@magentocommerce.com so we can send you a copy immediately.
32
  *
33
  * @category Mpay24
34
  * @package Mpay24_Mpay24
35
  * @author Firedrago Magento
36
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
37
  * @version $Id: Paymentcharge.php 36 2015-01-27 16:48:06Z sapolhei $
38
  */
39
  class Mpay24_Mpay24_Model_Sales_Quote_Address_Total_Paymentcharge extends Mage_Sales_Model_Quote_Address_Total_Abstract {
40
 
41
  public function __construct() {
@@ -8,10 +8,10 @@ class Mpay24_Mpay24_Model_Sales_Quote_Address_Total_Paymentcharge extends Mage_S
8
 
9
  public function collect(Mage_Sales_Model_Quote_Address $address) {
10
  $payment_method = "";
11
- if(isset ( $_REQUEST ['payment_method'] ))
12
- $payment_method = $_REQUEST ['payment_method'];
13
- elseif(isset ( $_REQUEST ['mpay24_ps'] ))
14
- $payment_method = $_REQUEST ['mpay24_ps'];
15
 
16
  if (Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true' && Mage::getStoreConfig("mpay24/mpay24/forced_preselection") == 1 && $payment_method != "" ) {
17
  $address->setPaymentCharge ( 0 );
1
  <?php
 
2
  * Magento
3
  *
4
  * NOTICE OF LICENSE
5
  *
6
  * This source file is subject to the Open Software License (OSL 3.0)
7
  * that is bundled with this package in the file LICENSE.txt.
8
  * It is also available through the world-wide-web at this URL:
9
  * http://opensource.org/licenses/osl-3.0.php
10
  * If you did not receive a copy of the license and are unable to
11
  * obtain it through the world-wide-web, please send an email
12
  * to license@magentocommerce.com so we can send you a copy immediately.
13
  *
14
  * @category Mpay24
15
  * @package Mpay24_Mpay24
16
  * @author Firedrago Magento
17
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
  * @version $Id: Paymentcharge.php 27 2014-08-27 13:59:46Z sapolhei $
19
  */
20
+ /**
21
  * Magento
22
  *
23
  * NOTICE OF LICENSE
24
  *
25
  * This source file is subject to the Open Software License (OSL 3.0)
26
  * that is bundled with this package in the file LICENSE.txt.
27
  * It is also available through the world-wide-web at this URL:
28
  * http://opensource.org/licenses/osl-3.0.php
29
  * If you did not receive a copy of the license and are unable to
30
  * obtain it through the world-wide-web, please send an email
31
  * to license@magentocommerce.com so we can send you a copy immediately.
32
  *
33
  * @category Mpay24
34
  * @package Mpay24_Mpay24
35
  * @author Firedrago Magento
36
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
37
  * @version $Id: Paymentcharge.php 36 2015-01-27 16:48:06Z sapolhei $
38
  */
39
  class Mpay24_Mpay24_Model_Sales_Quote_Address_Total_Paymentcharge extends Mage_Sales_Model_Quote_Address_Total_Abstract {
40
 
41
  public function __construct() {
8
 
9
  public function collect(Mage_Sales_Model_Quote_Address $address) {
10
  $payment_method = "";
11
+ if(Mage::app()->getRequest()->getParam('payment_method') != null)
12
+ $payment_method = Mage::app()->getRequest()->getParam('payment_method');
13
+ elseif(Mage::app()->getRequest()->getParam('mpay24_ps') != null)
14
+ $payment_method = Mage::app()->getRequest()->getParam('mpay24_ps');
15
 
16
  if (Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true' && Mage::getStoreConfig("mpay24/mpay24/forced_preselection") == 1 && $payment_method != "" ) {
17
  $address->setPaymentCharge ( 0 );
app/code/community/Mpay24/Mpay24/Model/Selectpayment.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Selectpayment.php 28 2014-09-29 09:31:11Z sapolhei $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
@@ -39,14 +39,44 @@ class Mpay24_Mpay24_Model_Selectpayment extends Mpay24_Mpay24_Model_Method_Selec
39
  protected $_canVoid = true;
40
  protected $_canUseInternal = true;
41
  protected $_canUseCheckout = true;
 
42
 
43
  public function validate() {
44
  parent::validate();
45
  return $this;
46
  }
47
 
48
- public function authorize(Varien_Object $payment, $amount) {
49
- parent::authorize($payment, $amount);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
 
52
  /**
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Selectpayment.php 36 2015-01-27 16:48:06Z sapolhei $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
39
  protected $_canVoid = true;
40
  protected $_canUseInternal = true;
41
  protected $_canUseCheckout = true;
42
+ protected $_isInitializeNeeded = true;
43
 
44
  public function validate() {
45
  parent::validate();
46
  return $this;
47
  }
48
 
49
+ // public function authorize(Varien_Object $payment, $amount) {
50
+ // return parent::authorize($payment, $amount);
51
+ // }
52
+
53
+ /**
54
+ * Instantiate state and set it to state object
55
+ * @param string $paymentAction
56
+ * @param Varien_Object
57
+ */
58
+ public function initialize($paymentAction, $stateObject) {
59
+ switch ($paymentAction) {
60
+ case MPay24MagentoShop::PAYMENT_TYPE_AUTH:
61
+ case MPay24MagentoShop::PAYMENT_TYPE_SALE:
62
+ $payment = $this->getInfoInstance();
63
+ $order = $payment->getOrder();
64
+ $order->setCanSendNewEmailFlag(false);
65
+ $payment->setAmountAuthorized($order->getTotalDue());
66
+ $payment->setBaseAmountAuthorized($order->getBaseTotalDue());
67
+
68
+ $order = $payment->getOrder();
69
+ $order->setCanSendNewEmailFlag(false);
70
+
71
+ $stateObject->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT);
72
+ $stateObject->setStatus('pending_payment');
73
+ $stateObject->setIsNotified(false);
74
+ break;
75
+ default:
76
+ break;
77
+ }
78
+
79
+ parent:: initialize($payment, $order->getTotalDue());
80
  }
81
 
82
  /**
app/code/community/Mpay24/Mpay24/controllers/PaymentController.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: PaymentController.php 30 2014-11-10 14:00:27Z sapolhei $
20
  */
21
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
22
 
@@ -42,24 +42,22 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
42
  * Is called from mPAY24 as Confirmation-URL. Send TRANSACTION-STATUS request to mPAY24
43
  */
44
  public function confirmationAction() {
45
- Mage::log('mPAY24 Extension: confirmation action called for order '.$_REQUEST['TID']);
46
 
47
- $this->getResponse()->setBody("OK: " . MPay24MagentoShop::MAGENTO_VERSION . " - confirmation received");
48
-
49
- $result = $this->getRequest()->getParams();
50
-
51
- $order = Mage::getModel('sales/order');
52
- $order->loadByIncrementId($result['TID']);
53
-
54
- Mage::log('mPAY24 Extension: RESULT from confirmation action:'."\n");
55
- Mage::log($result);
56
-
57
- switch($result['OPERATION']) {
58
- case 'CONFIRMATION':
59
- $this->getTransactionStatus($result['TID'], true);
60
- break;
61
- default:
62
- break;
63
  }
64
  }
65
 
@@ -79,10 +77,24 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
79
  * Is called from mPAY24 as Success-URL. Send TRANSACTION-STATUS request to mPAY24
80
  */
81
  public function successAction() {
82
- Mage::log('mPAY24 Extension: success action called for order '.$_REQUEST['TID']);
83
- $order = $this->getOrder($_REQUEST['TID']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  $order->getPayment()->setAdditionalInformation('success', true)->save();
85
- $this->getTransactionStatus($_REQUEST['TID']);
86
  $this->_redirect('sales/order/view/order_id/'.$order->getId().'/');
87
  }
88
 
@@ -90,10 +102,24 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
90
  * Is called from mPAY24 as Success-URL for not registered customers. Send TRANSACTION-STATUS request to mPAY24
91
  */
92
  public function guestsuccessAction() {
93
- Mage::log('mPAY24 Extension: guest success action called for order '.$_REQUEST['TID']);
94
- $order = $this->getOrder($_REQUEST['TID']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  $order->getPayment()->setAdditionalInformation('success', true)->save();
96
- $this->getTransactionStatus($_REQUEST['TID']);
97
  $this->_redirect('checkout/onepage/success/');
98
  }
99
 
@@ -101,16 +127,28 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
101
  * Is called from mPAY24 as Error-URL. Send TRANSACTION-STATUS request to mPAY24
102
  */
103
  public function errorAction() {
104
- Mage::log('mPAY24 Extension: error action called for order '.$_REQUEST['TID']);
105
- $order = $this->getOrder($_REQUEST['TID']);
106
- $order->getPayment()->setAdditionalInformation('error_text', utf8_encode($_REQUEST['ERROR']))->save();
 
107
  $order->getPayment()->setAdditionalInformation('error', true)->save();
108
 
109
  if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
110
  $order->cancel($order->getPayment())->save();
111
 
112
- $this->getTransactionStatus($_REQUEST['TID']);
113
-
 
 
 
 
 
 
 
 
 
 
 
114
  Mage::getSingleton('mpay24/session')->setParentRedirectUrl('checkout/'.Mage::getStoreConfig('mpay24/mpay24/checkout_template').'/');
115
  $this->getResponse()->setBody($this->getLayout()->createBlock("mpay24/parentRedirect")->toHtml());
116
  }
@@ -119,8 +157,9 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
119
  * Is called from mPAY24 as Cancel-URL. Send TRANSACTION-STATUS request to mPAY24
120
  */
121
  public function cancelAction() {
122
- Mage::log('mPAY24 Extension: cancel action called for order '.$_REQUEST['TID']);
123
- $order = $this->getOrder($_REQUEST['TID']);
 
124
  $order->getPayment()->setAdditionalInformation('cancelButton', true)->save();
125
 
126
  $session = Mage::getSingleton('checkout/session');
@@ -151,8 +190,19 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
151
  if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
152
  $order->cancel($order->getPayment())->save();
153
 
154
- $this->getTransactionStatus($_REQUEST['TID']);
155
-
 
 
 
 
 
 
 
 
 
 
 
156
  Mage::getSingleton('mpay24/session')->setParentRedirectUrl('checkout/'.Mage::getStoreConfig('mpay24/mpay24/checkout_template').'/');
157
  $this->getResponse()->setBody($this->getLayout()->createBlock("mpay24/parentRedirect")->toHtml());
158
  }
@@ -168,7 +218,9 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
168
  * @return Mage_Sales_Model_Order
169
  */
170
  public function getOrder($tid=null) {
171
- Mage::log('mPAY24 Extension: get order called');
 
 
172
  $order = Mage::getSingleton('sales/order');
173
 
174
  if($tid == null)
@@ -184,29 +236,22 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
184
  * @return string
185
  */
186
  public function getTransactionStatus($tid=null, $confirmation=false) {
187
- Mage::log('mPAY24 Extension: getTransactionStatus called for order '.$tid);
188
- $auth_refund = array("CC", "CB", "MAESTRO", "PAYPAL", "ELV", "PB", "MPASS", "INVOICE", "HP", "SAFETYPAY");
189
- $updateResult = "";
 
190
  $order = $this->getOrder($tid);
191
 
192
- $confirmationCalled = "Payment ";
193
 
194
  if($confirmation)
195
- $confirmationCalled = "Confirmation URL called: Payment ";
196
-
197
-
198
- $incrementId = $order->getData('increment_id');
199
- $tid = $order->getId();
200
 
201
  if($order->getPayment()) {
202
  if(!$confirmation || !in_array($this->getRequest()->getClientIp(), explode(',', Mage::getStoreConfig('mpay24/mpay24as/allowed_ips')))) {
203
  $mPay24MagentoShop = MPay24MagentoShop::getMPay24Api();
204
- $mPAY24Result = $mPay24MagentoShop->updateTransactionStatus($incrementId);
205
  $res = $mPAY24Result->getGeneralResponse()->getStatus();
206
- if($mPAY24Result->getParam('P_TYPE') == 'SOFORT' && ($mPAY24Result->getParam('TSTATUS') == 'BILLED' || $mPAY24Result->getParam('TSTATUS') == 'RESERVED' || $mPAY24Result->getParam('TSTATUS') == 'SUSPENDED'))
207
- $status = Mage::getStoreConfig('mpay24/mpay24as/sofort_state');
208
- else
209
- $status = $mPAY24Result->getParam('TSTATUS');
210
 
211
  if($mPAY24Result->getGeneralResponse()->getStatus() != 'OK' || $mPAY24Result->getParam('APPR_CODE') == '')
212
  $apprCode = 'N/A';
@@ -216,167 +261,129 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
216
  $mPAY24Result = new TransactionStatusResponse("");
217
  $res = "OK";
218
 
219
- foreach($this->getRequest()->getParams() as $key => $value)
220
- $mPAY24Result->setParam($key, $value);
 
 
 
 
221
 
222
- if($mPAY24Result->getParam('P_TYPE') == 'SOFORT' && ($mPAY24Result->getParam('TSTATUS') == 'BILLED' || $mPAY24Result->getParam('TSTATUS') == 'RESERVED' || $mPAY24Result->getParam('TSTATUS') == 'SUSPENDED'))
223
- $status = Mage::getStoreConfig('mpay24/mpay24as/sofort_state');
224
- else
225
- $status = $mPAY24Result->getParam('STATUS');
226
  $apprCode = $mPAY24Result->getParam('APPR_CODE');
227
  }
228
-
229
- switch ($res) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  case "OK":
231
  if($order->getPayment()->getAdditionalInformation('user_field') == $mPAY24Result->getParam('USER_FIELD')) {
232
- $updateResult = "The transaction status was succesfully updated!";
233
 
234
  $order->getPayment()->setAdditionalData($mPAY24Result->getParam("P_TYPE"))->save();
235
  $order->getPayment()->setCcType($mPAY24Result->getParam("P_TYPE") . " => " . $mPAY24Result->getParam('BRAND'))->save();
236
  $order->getPayment()->setAdditionalInformation('status', true)->save();
237
- $updateResult .= "\n\nActual status: " . $mPAY24Result->getParam('STATUS ');
238
- $updateResult .= "\nAmount: " . number_format($mPAY24Result->getParam('PRICE')/100, 2, '.', '') . " " . $mPAY24Result->getParam('CURRENCY');
239
- $updateResult .= "\nMPAYTID: " . $mPAY24Result->getParam('MPAYTID');
240
- $updateResult .= "\nAppr_code: " . $apprCode;
241
-
242
- if($order->getIsNotVirtual())
243
- $s = Mage::getStoreConfig('payment/mpay24/paid_order_status');
244
- else
245
- $s = Mage_Sales_Model_Order::STATE_COMPLETE;
246
-
247
  switch($status) {
248
- case 'RESERVED':
249
- if($order->getId()){
250
- $order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
251
- $order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
252
-
253
- if($mPAY24Result->getParam('ACCT_HOLDER'))
254
- $order->getPayment()->setAdditionalInformation('acct_holder', $mPAY24Result->getParam('ACCT_HOLDER'))->save();
255
-
256
- if($mPAY24Result->getParam('ACCT_NUMBER'))
257
- $order->getPayment()->setAdditionalInformation('acct_number', $mPAY24Result->getParam('ACCT_NUMBER'))->save();
258
-
259
- if($mPAY24Result->getParam('BANK_CODE'))
260
- $order->getPayment()->setAdditionalInformation('bank_code', $mPAY24Result->getParam('BANK_CODE'))->save();
261
-
262
- if($mPAY24Result->getParam('BANK_NAME'))
263
- $order->getPayment()->setAdditionalInformation('bank_name', $mPAY24Result->getParam('BANK_NAME'))->save();
264
-
265
- if($mPAY24Result->getParam('REFERENCE'))
266
- $order->getPayment()->setAdditionalInformation('reference', $mPAY24Result->getParam('REFERENCE'))->save();
267
-
268
- $order->getPayment()->setAmountAuthorized($mPAY24Result->getParam('PRICE')/100)->save();
269
- $order->getPayment()->setAdditionalInformation('error', false)->save();
270
- $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PROCESSING, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("RESERVED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")");
271
- $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING)->save();
272
- $order->sendNewOrderEmail();
273
-
274
- if($order->getInvoiceCollection()->count() == 0)
275
- if(Mage::getStoreConfig('payment/mpay24/paid_payment_action') == MPay24MagentoShop::PAYMENT_TYPE_SALE)
276
- $this->_createInvoice($order, true);
277
- else
278
- $this->_createInvoice($order);
279
- }
280
-
281
- $order->save();
282
- break;
283
- case 'BILLED':
284
- $order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
285
- $order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
286
-
287
- if($mPAY24Result->getParam('ACCT_HOLDER'))
288
- $order->getPayment()->setAdditionalInformation('acct_holder', $mPAY24Result->getParam('ACCT_HOLDER'))->save();
289
-
290
- if($mPAY24Result->getParam('ACCT_NUMBER'))
291
- $order->getPayment()->setAdditionalInformation('acct_number', $mPAY24Result->getParam('ACCT_NUMBER'))->save();
292
-
293
- if($mPAY24Result->getParam('BANK_CODE'))
294
- $order->getPayment()->setAdditionalInformation('bank_code', $mPAY24Result->getParam('BANK_CODE'))->save();
295
-
296
- if($mPAY24Result->getParam('BANK_NAME'))
297
- $order->getPayment()->setAdditionalInformation('bank_name', $mPAY24Result->getParam('BANK_NAME'))->save();
298
-
299
- if($mPAY24Result->getParam('REFERENCE'))
300
- $order->getPayment()->setAdditionalInformation('reference', $mPAY24Result->getParam('REFERENCE'))->save();
301
 
302
- if($order->getInvoiceCollection()->count() == 0) {
303
- $order->sendNewOrderEmail();
304
- if(in_array($mPAY24Result->getParam('P_TYPE'), MPay24MagentoShop::getAllowedAuth())) {
305
- $onlineCapture = false;
306
- $mif = true;
307
- } else {
308
- $onlineCapture = true;
309
- $mif = false;
310
- }
311
-
312
- $order->getPayment()->setAmountCharged($mPAY24Result->getParam('PRICE')/100)->save();
313
- $order->getPayment()->setAdditionalInformation('error', false)->save();
314
- $order->sendOrderUpdateEmail();
315
-
316
- $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING)->save();
317
-
318
- if($order->getInvoiceCollection()->count() == 0) {
319
- if($confirmation)
320
- $this->_createInvoice($order, true, true, $onlineCapture);
321
- else
322
- $this->_createInvoice($order, true, $mif, $onlineCapture);
323
- $order->save();
324
- }
325
- }
326
 
327
- $order->addStatusToHistory($s, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true)->save();
 
328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  $order->save();
330
- break;
331
  case 'CREDITED':
332
- if ($order->getTotalOnlineRefunded() == 0.00) {
333
- $creditmemo = Mage::getModel('sales/service_order', $order)
334
  ->prepareCreditmemo()
335
  ->setPaymentRefundDisallowed(true)
336
  ->setAutomaticallyCreated(true)
337
  ->register();
338
 
339
  $creditmemo->addComment(Mage::helper('mpay24')->__("Credit memo has been created automatically through of MI/F crediting!"));
340
- $creditmemo->save();
341
 
342
- $order->getPayment()->refund($creditmemo)->save();
343
- $order->sendOrderUpdateEmail();
344
  }
 
 
 
 
 
345
 
346
- $order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
347
- $order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
348
-
349
- if($mPAY24Result->getParam('ACCT_HOLDER'))
350
- $order->getPayment()->setAdditionalInformation('acct_holder', $mPAY24Result->getParam('ACCT_HOLDER'))->save();
351
-
352
- if($mPAY24Result->getParam('ACCT_NUMBER'))
353
- $order->getPayment()->setAdditionalInformation('acct_number', $mPAY24Result->getParam('ACCT_NUMBER'))->save();
354
-
355
- if($mPAY24Result->getParam('BANK_CODE'))
356
- $order->getPayment()->setAdditionalInformation('bank_code', $mPAY24Result->getParam('BANK_CODE'))->save();
357
-
358
- if($mPAY24Result->getParam('BANK_NAME'))
359
- $order->getPayment()->setAdditionalInformation('bank_name', $mPAY24Result->getParam('BANK_NAME'))->save();
360
-
361
- if($mPAY24Result->getParam('REFERENCE'))
362
- $order->getPayment()->setAdditionalInformation('reference', $mPAY24Result->getParam('REFERENCE'))->save();
363
-
364
- $this->_addChildTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND,
365
- Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE);
366
-
367
- $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_COMPLETE, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("CREDITED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")")->save();
368
- $order->save();
369
-
370
- break;
371
- case 'SUSPENDED':
372
- if($order->getId()) {
373
- $order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
374
- $order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
375
- $order->getPayment()->setAdditionalInformation('error', false)->save();
376
- $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")");
377
- }
378
- $order->save();
379
- break;
380
  case 'REVERSED':
381
  if($order->getState() != Mage_Sales_Model_Order::STATE_CANCELED)
382
  foreach ($order->getInvoiceCollection() as $orderInvoice) {
@@ -384,34 +391,16 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
384
  $order->getPayment()->void($orderInvoice)->save();
385
  }
386
 
387
- $order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
388
- $order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
389
- $order->sendOrderUpdateEmail();
390
- $order->addStatusToHistory($order->getState(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true)->save();
391
  $order->save();
392
  break;
393
  case 'ERROR':
394
- $order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
395
- $order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
396
-
397
- if($mPAY24Result->getParam('ACCT_HOLDER'))
398
- $order->getPayment()->setAdditionalInformation('acct_holder', $mPAY24Result->getParam('ACCT_HOLDER'))->save();
399
-
400
- if($mPAY24Result->getParam('ACCT_NUMBER'))
401
- $order->getPayment()->setAdditionalInformation('acct_number', $mPAY24Result->getParam('ACCT_NUMBER'))->save();
402
-
403
- if($mPAY24Result->getParam('BANK_CODE'))
404
- $order->getPayment()->setAdditionalInformation('bank_code', $mPAY24Result->getParam('BANK_CODE'))->save();
405
-
406
- if($mPAY24Result->getParam('BANK_NAME'))
407
- $order->getPayment()->setAdditionalInformation('bank_name', $mPAY24Result->getParam('BANK_NAME'))->save();
408
-
409
- if($mPAY24Result->getParam('REFERENCE'))
410
- $order->getPayment()->setAdditionalInformation('refernce', $mPAY24Result->getParam('REFERENCE'))->save();
411
 
412
  $order->getPayment()->setAdditionalInformation('error', true)->save();
413
 
414
- $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text') . " (" . $this->getRequest()->getClientIp() . ")");
415
  $order->save();
416
 
417
  break;
@@ -583,28 +572,28 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
583
  $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("The transaction was canceled by the customer"), true)->save();
584
  $order->getPayment()->setAdditionalInformation('status', true)->save();
585
  $order->getPayment()->setAdditionalInformation('mpay_tid', 'N/A')->save();
586
- $order->getPayment()->setAdditionalInformation('appr_code', 'N/A')->save();
587
  }
588
  break;
589
  case "ERROR":
590
  if($mPAY24Result->getGeneralResponse()->getReturnCode() == 'NOT_FOUND' && $order->getPayment()->getAdditionalInformation('cancelButton'))
591
- $updateResult = 'The order was canceled by the customer';
592
  else
593
- $updateResult = 'The transaction was not found!';
594
 
595
  // if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
596
  // $order->cancel($order->getPayment())->save();
597
 
598
- $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__($updateResult), true)->save();
599
  $order->getPayment()->setAdditionalInformation('status', true)->save();
600
  $order->getPayment()->setAdditionalInformation('mpay_tid', 'N/A')->save();
601
- $order->getPayment()->setAdditionalInformation('appr_code', 'N/A')->save();
602
  break;
603
  default:
604
  break;
605
  }
606
- }
607
- return $updateResult;
 
 
608
  }
609
 
610
  protected function _initTemplate($idFieldName = 'template_id') {
@@ -626,44 +615,49 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
626
  return $model;
627
  }
628
 
629
- public function _createInvoice($order, $capture=false, $mif=false, $onlineCapture=true) {
630
- Mage::log('mPAY24 Extension: create invoice called');
631
- if ($order->canInvoice()) {
632
- $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice();
 
 
633
 
634
- if (!$invoice->getTotalQty())
635
- Mage::throwException(Mage::helper('core')->__('Cannot create an invoice without products.'));
636
 
637
- if($capture && $onlineCapture)
638
- $invoice->setRequestedCaptureCase(Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE);
639
 
640
- $invoice->register();
641
- Mage::log("mPAY24 Extension: Invoice registered!");
642
 
643
- Mage::getModel('core/resource_transaction')
644
- ->addObject($invoice)
645
- ->addObject($invoice->getOrder())
646
- ->save();
647
 
648
- $order->save();
 
 
 
649
 
650
- if($capture)
651
- foreach ($order->getInvoiceCollection() as $orderInvoice)
652
- if ($order->getTotalPaid() == 0.00) {
653
- $orderInvoice->pay();
654
- $orderInvoice->save();
655
 
656
- if($mif)
657
- $order->getPayment()->setAdditionalInformation('MIFClear', true)->save();
 
 
 
658
 
659
- $order->getPayment()->capture($orderInvoice)->save();
660
- }
661
 
662
- $invoice->sendEmail(true, '');
663
- return true;
664
- } else
665
- Mage::throwException(Mage::helper('core')->__('Cannot create an invoice.'));
666
- }
 
 
 
667
 
668
  /**
669
  * Add transaction to payment with defined type
@@ -692,4 +686,25 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
692
  $parentTransaction->setIsClosed(true)->save();
693
  }
694
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
695
  }
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: PaymentController.php 38 2015-02-09 10:32:52Z sapolhei $
20
  */
21
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
22
 
42
  * Is called from mPAY24 as Confirmation-URL. Send TRANSACTION-STATUS request to mPAY24
43
  */
44
  public function confirmationAction() {
45
+ Mage::log('mPAY24 Extension (confirmationAction): called for order '.$this->getRequest()->getParam('TID'));
46
 
47
+ Mage::log('mPAY24 Extension (confirmationAction): RESULT from confirmation:');
48
+ Mage::log($this->getRequest()->getParams());
49
+
50
+ if($this->getRequest()->getParam('OPERATION') == 'CONFIRMATION') {
51
+ Mage::log($this->getTransactionStatus($this->getRequest()->getParam('TID'), true));
52
+
53
+ //confirmation evaluation
54
+ $order = Mage::getModel('sales/order');
55
+ $order->loadByIncrementId($this->getRequest()->getParam('TID'));
56
+
57
+ Mage::log('mPAY24 Extension (confirmationAction): Confirmation processing DONE! Confirmed: '.$order->getPayment()->getAdditionalInformation('confirmed').'');
58
+ $this->getResponse()->setBody("OK: " . MPay24MagentoShop::MAGENTO_VERSION . " - confirmation received");
59
+ } else {
60
+ Mage::throwException(Mage::helper('core')->__('ERROR (mPAY24 Extension): Confirmation parameters are not as expected!'));
 
 
61
  }
62
  }
63
 
77
  * Is called from mPAY24 as Success-URL. Send TRANSACTION-STATUS request to mPAY24
78
  */
79
  public function successAction() {
80
+ Mage::log('mPAY24 Extension (successAction): called for order '.$this->getRequest()->getParam('TID'));
81
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
82
+
83
+ if(!$this->getRequest()->getParam('TIME'))
84
+ $this->getRequest()->setParam("TIME", 0);
85
+
86
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "" && $this->getRequest()->getParam('TIME') <= 4) {
87
+ Mage::log('mPAY24 Extension (successAction): Confirmation is processing - wait for (max) 20 seconds...');
88
+ sleep(5);
89
+ $this->_redirectUrl(Mage::getUrl(MPay24MagentoShop::SUCCESS_URL,array('_secure' => true, '_query' => "TID=" . $this->getRequest()->getParam('TID') . "&TIME=" . $this->getRequest()->getParam('TIME')+1)));
90
+ }
91
+
92
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
93
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "")
94
+ $this->getTransactionStatus($this->getRequest()->getParam('TID'));
95
+
96
  $order->getPayment()->setAdditionalInformation('success', true)->save();
97
+
98
  $this->_redirect('sales/order/view/order_id/'.$order->getId().'/');
99
  }
100
 
102
  * Is called from mPAY24 as Success-URL for not registered customers. Send TRANSACTION-STATUS request to mPAY24
103
  */
104
  public function guestsuccessAction() {
105
+ Mage::log('mPAY24 Extension: guest success action called for order '.$this->getRequest()->getParam('TID'));
106
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
107
+
108
+ if(!$this->getRequest()->getParam('TIME'))
109
+ $this->getRequest()->setParam("TIME", 0);
110
+
111
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "" && $this->getRequest()->getParam('TIME') <= 4) {
112
+ Mage::log('mPAY24 Extension (guestsuccessAction): Confirmation is processing - wait for (max) 20 seconds...');
113
+ sleep(5);
114
+ $this->_redirectUrl(Mage::getUrl(MPay24MagentoShop::GUEST_SUCCESS_URL,array('_secure' => true, '_query' => "TID=" . $this->getRequest()->getParam('TID') . "&TIME=" . $this->getRequest()->getParam('TIME')+1)));
115
+ }
116
+
117
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
118
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "")
119
+ $this->getTransactionStatus($this->getRequest()->getParam('TID'));
120
+
121
  $order->getPayment()->setAdditionalInformation('success', true)->save();
122
+
123
  $this->_redirect('checkout/onepage/success/');
124
  }
125
 
127
  * Is called from mPAY24 as Error-URL. Send TRANSACTION-STATUS request to mPAY24
128
  */
129
  public function errorAction() {
130
+ Mage::log('mPAY24 Extension (): error action called for order '.$this->getRequest()->getParam('TID'));
131
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
132
+
133
+ $order->getPayment()->setAdditionalInformation('error_text', utf8_encode($this->getRequest()->getParam('ERROR')))->save();
134
  $order->getPayment()->setAdditionalInformation('error', true)->save();
135
 
136
  if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
137
  $order->cancel($order->getPayment())->save();
138
 
139
+ if(!$this->getRequest()->getParam('TIME'))
140
+ $this->getRequest()->setParam("TIME", 0);
141
+
142
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "" && $this->getRequest()->getParam('TIME') <= 4) {
143
+ Mage::log('mPAY24 Extension (errorAction): Confirmation is processing - wait for (max) 20 seconds...');
144
+ sleep(5);
145
+ $this->_redirectUrl(Mage::getUrl(MPay24MagentoShop::ERROR_URL,array('_secure' => true, '_query' => "TID=" . $this->getRequest()->getParam('TID') . "&TIME=" . ($this->getRequest()->getParam('TIME')+1) . ",ERROR=" . utf8_encode($this->getRequest()->getParam('ERROR')))));
146
+ }
147
+
148
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
149
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "")
150
+ $this->getTransactionStatus($this->getRequest()->getParam('TID'));
151
+
152
  Mage::getSingleton('mpay24/session')->setParentRedirectUrl('checkout/'.Mage::getStoreConfig('mpay24/mpay24/checkout_template').'/');
153
  $this->getResponse()->setBody($this->getLayout()->createBlock("mpay24/parentRedirect")->toHtml());
154
  }
157
  * Is called from mPAY24 as Cancel-URL. Send TRANSACTION-STATUS request to mPAY24
158
  */
159
  public function cancelAction() {
160
+ Mage::log('mPAY24 Extension: cancel action called for order '.$this->getRequest()->getParam('TID'));
161
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
162
+
163
  $order->getPayment()->setAdditionalInformation('cancelButton', true)->save();
164
 
165
  $session = Mage::getSingleton('checkout/session');
190
  if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
191
  $order->cancel($order->getPayment())->save();
192
 
193
+ if(!$this->getRequest()->getParam('TIME'))
194
+ $this->getRequest()->setParam("TIME", 0);
195
+
196
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "" && $this->getRequest()->getParam('TIME') <= 4) {
197
+ Mage::log('mPAY24 Extension (errorAction): Confirmation is processing - wait for (max) 20 seconds...');
198
+ sleep(5);
199
+ $this->_redirectUrl(Mage::getUrl(MPay24MagentoShop::ERROR_URL,array('_secure' => true, '_query' => "TID=" . $this->getRequest()->getParam('TID') . "&TIME=" . ($this->getRequest()->getParam('TIME')+1))));
200
+ }
201
+
202
+ $order = $this->getOrder($this->getRequest()->getParam('TID'));
203
+ if($order->getPayment()->getAdditionalInformation('confirmed') == "")
204
+ $this->getTransactionStatus($this->getRequest()->getParam('TID'));
205
+
206
  Mage::getSingleton('mpay24/session')->setParentRedirectUrl('checkout/'.Mage::getStoreConfig('mpay24/mpay24/checkout_template').'/');
207
  $this->getResponse()->setBody($this->getLayout()->createBlock("mpay24/parentRedirect")->toHtml());
208
  }
218
  * @return Mage_Sales_Model_Order
219
  */
220
  public function getOrder($tid=null) {
221
+ // Mage::log('mPAY24 Extension ('.debug_backtrace()[2]['function'].'): get order called');
222
+ $arrBacktrace = debug_backtrace();
223
+ Mage::log('mPAY24 Extension ('.$arrBacktrace[2]['function'].'): get order called');
224
  $order = Mage::getSingleton('sales/order');
225
 
226
  if($tid == null)
236
  * @return string
237
  */
238
  public function getTransactionStatus($tid=null, $confirmation=false) {
239
+ // Mage::log('mPAY24 Extension ('.debug_backtrace()[1]['function'].'): getTransactionStatus called for order '.$tid);
240
+ $arrBacktrace = debug_backtrace();
241
+ Mage::log('mPAY24 Extension ('.$arrBacktrace[1]['function'].'): getTransactionStatus called for order '.$tid);
242
+ $orderHistoryText = "";
243
  $order = $this->getOrder($tid);
244
 
245
+ $paymentHistoryText = "Payment ";
246
 
247
  if($confirmation)
248
+ $paymentHistoryText = "Confirmation URL called: Payment ";
 
 
 
 
249
 
250
  if($order->getPayment()) {
251
  if(!$confirmation || !in_array($this->getRequest()->getClientIp(), explode(',', Mage::getStoreConfig('mpay24/mpay24as/allowed_ips')))) {
252
  $mPay24MagentoShop = MPay24MagentoShop::getMPay24Api();
253
+ $mPAY24Result = $mPay24MagentoShop->updateTransactionStatus($tid);
254
  $res = $mPAY24Result->getGeneralResponse()->getStatus();
 
 
 
 
255
 
256
  if($mPAY24Result->getGeneralResponse()->getStatus() != 'OK' || $mPAY24Result->getParam('APPR_CODE') == '')
257
  $apprCode = 'N/A';
261
  $mPAY24Result = new TransactionStatusResponse("");
262
  $res = "OK";
263
 
264
+ foreach($this->getRequest()->getParams() as $key => $value) {
265
+ if($key == 'STATUS')
266
+ $mPAY24Result->setParam('TSTATUS', $value);
267
+ else
268
+ $mPAY24Result->setParam($key, $value);
269
+ }
270
 
 
 
 
 
271
  $apprCode = $mPAY24Result->getParam('APPR_CODE');
272
  }
273
+
274
+ $order->getPayment()->setAdditionalInformation('error', false)->save();
275
+
276
+ //set APPR_CODE and MPAYTID
277
+ $order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
278
+ $order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
279
+
280
+ //SOFORT Ueberweisung status check
281
+ if($mPAY24Result->getParam('P_TYPE') == 'SOFORT' && ($mPAY24Result->getParam('TSTATUS') == 'BILLED' || $mPAY24Result->getParam('TSTATUS') == 'RESERVED' || $mPAY24Result->getParam('TSTATUS') == 'SUSPENDED'))
282
+ $status = Mage::getStoreConfig('mpay24/mpay24as/sofort_state');
283
+ else
284
+ $status = $mPAY24Result->getParam('TSTATUS');
285
+
286
+ $order->getPayment()->setAdditionalInformation('confirmed', $status)->save();
287
+
288
+ switch ($res) {
289
  case "OK":
290
  if($order->getPayment()->getAdditionalInformation('user_field') == $mPAY24Result->getParam('USER_FIELD')) {
291
+ $orderHistoryText = "The transaction status was successfully updated!";
292
 
293
  $order->getPayment()->setAdditionalData($mPAY24Result->getParam("P_TYPE"))->save();
294
  $order->getPayment()->setCcType($mPAY24Result->getParam("P_TYPE") . " => " . $mPAY24Result->getParam('BRAND'))->save();
295
  $order->getPayment()->setAdditionalInformation('status', true)->save();
296
+ $orderHistoryText .= "\n\t\t\tActual status: " . $mPAY24Result->getParam('TSTATUS');
297
+ $orderHistoryText .= "\n\t\t\tAmount: " . $mPAY24Result->getParam('CURRENCY') . " " . number_format($mPAY24Result->getParam('PRICE')/100, 2, '.', '');
298
+ $orderHistoryText .= "\n\t\t\tMPAYTID: " . $mPAY24Result->getParam('MPAYTID');
299
+ $orderHistoryText .= "\n\t\t\tAppr_code: " . $apprCode;
300
+
301
+ // if($order->getIsNotVirtual())
302
+ // $s = Mage::getStoreConfig('payment/mpay24/paid_order_status');
303
+ // else
304
+ // $s = Mage_Sales_Model_Order::STATE_COMPLETE;
305
+
306
  switch($status) {
307
+ case 'RESERVED':
308
+ $this->setBillpayData($order, $mPAY24Result);
309
+ // $order->getPayment()->setAmountAuthorized($mPAY24Result->getParam('PRICE')/100)->save();
310
+ // $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PROCESSING, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("RESERVED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")");
311
+ // $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING)->save();
312
+ // $order->sendNewOrderEmail();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
 
314
+ // if($order->getInvoiceCollection()->count() == 0)
315
+ // if(Mage::getStoreConfig('payment/mpay24/paid_payment_action') == MPay24MagentoShop::PAYMENT_TYPE_SALE)
316
+ // $this->_createInvoice($order, true);
317
+ // else
318
+ // $this->_createInvoice($order);
319
+
320
+ $order->getPayment()->authorize(false, $mPAY24Result->getParam('PRICE')/100)->save();
321
+ break;
322
+ case 'BILLED':
323
+ $this->setBillpayData($order, $mPAY24Result);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
324
 
325
+ // if(!$order->getPayment()->getTransaction($order->getIncrementId()) && $order->getPayment()->getTransaction($order->getIncrementId())->getTxnType() != Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH)
326
+ // $order->getPayment()->authorize(false, $mPAY24Result->getParam('PRICE')/100)->save();
327
 
328
+ // $order = $this->getOrder($tid);
329
+
330
+ // if($order->getInvoiceCollection()->count() == 0) {
331
+ // $order->sendNewOrderEmail();
332
+ // if(in_array($mPAY24Result->getParam('P_TYPE'), MPay24MagentoShop::getAllowedAuth())) {
333
+ // $onlineCapture = false;
334
+ // $mif = true;
335
+ // } else {
336
+ // $onlineCapture = true;
337
+ // $mif = false;
338
+ // }
339
+
340
+ // $order->getPayment()->setAmountCharged($mPAY24Result->getParam('PRICE')/100)->save();
341
+ // $order->sendOrderUpdateEmail();
342
+
343
+ // if($order->getInvoiceCollection()->count() == 0) {
344
+ // if($confirmation)//!
345
+ // $invoice = $this->_createInvoice($order, true, true, $onlineCapture);//$MIF=TRUE, $onlineCapture
346
+ // else
347
+ // $invoice = $this->_createInvoice($order, true, $mif, $onlineCapture);
348
+ // }
349
+ // }
350
+ if($order->getInvoiceCollection()->count() == 0)
351
+ $order->getPayment()->capture()->save();
352
+
353
+ $order->addStatusHistoryComment(Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")")->save();
354
+ // $order->addStatusToHistory($s, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true)->save();
355
+
356
  $order->save();
357
+ break;
358
  case 'CREDITED':
359
+ if ($order->getTotalOnlineRefunded() == 0.00) {
360
+ $creditmemo = Mage::getModel('sales/service_order', $order)
361
  ->prepareCreditmemo()
362
  ->setPaymentRefundDisallowed(true)
363
  ->setAutomaticallyCreated(true)
364
  ->register();
365
 
366
  $creditmemo->addComment(Mage::helper('mpay24')->__("Credit memo has been created automatically through of MI/F crediting!"));
367
+ $creditmemo->save();
368
 
369
+ $order->getPayment()->refund($creditmemo)->save();
370
+ $order->sendOrderUpdateEmail();
371
  }
372
+
373
+ $this->setBillpayData($order, $mPAY24Result);
374
+
375
+ // $this->_addChildTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND,
376
+ // Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE);
377
 
378
+ // $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_COMPLETE, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("CREDITED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")")->save();
379
+ $order->addStatusHistoryComment(Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("CREDITED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")")->save();
380
+ $order->save();
381
+
382
+ break;
383
+ case 'SUSPENDED':
384
+ $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")");
385
+ $order->save();
386
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
387
  case 'REVERSED':
388
  if($order->getState() != Mage_Sales_Model_Order::STATE_CANCELED)
389
  foreach ($order->getInvoiceCollection() as $orderInvoice) {
391
  $order->getPayment()->void($orderInvoice)->save();
392
  }
393
 
394
+ $order->sendOrderUpdateEmail();
395
+ $order->addStatusToHistory($order->getState(), Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true)->save();
 
 
396
  $order->save();
397
  break;
398
  case 'ERROR':
399
+ $this->setBillpayData($order, $mPAY24Result);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
 
401
  $order->getPayment()->setAdditionalInformation('error', true)->save();
402
 
403
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text') . " (" . $this->getRequest()->getClientIp() . ")");
404
  $order->save();
405
 
406
  break;
572
  $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("The transaction was canceled by the customer"), true)->save();
573
  $order->getPayment()->setAdditionalInformation('status', true)->save();
574
  $order->getPayment()->setAdditionalInformation('mpay_tid', 'N/A')->save();
 
575
  }
576
  break;
577
  case "ERROR":
578
  if($mPAY24Result->getGeneralResponse()->getReturnCode() == 'NOT_FOUND' && $order->getPayment()->getAdditionalInformation('cancelButton'))
579
+ $orderHistoryText = 'The order was canceled by the customer';
580
  else
581
+ $orderHistoryText = 'The transaction was not found!';
582
 
583
  // if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
584
  // $order->cancel($order->getPayment())->save();
585
 
586
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__($orderHistoryText), true)->save();
587
  $order->getPayment()->setAdditionalInformation('status', true)->save();
588
  $order->getPayment()->setAdditionalInformation('mpay_tid', 'N/A')->save();
 
589
  break;
590
  default:
591
  break;
592
  }
593
+ } else
594
+ Mage::throwException(Mage::helper('core')->__('ERROR (mPAY24 Extension): There is no payment for the order ' . $tid));
595
+
596
+ return $orderHistoryText;
597
  }
598
 
599
  protected function _initTemplate($idFieldName = 'template_id') {
615
  return $model;
616
  }
617
 
618
+ // public function _createInvoice($order, $capture=false, $mif=false, $onlineCapture=true) {
619
+ // Mage::log('mPAY24 Extension ('.debug_backtrace()[2]['function'].'): create invoice called');
620
+ // $arrBacktrace = debug_backtrace();
621
+ // Mage::log('mPAY24 Extension ('.$arrBacktrace[2]['function'].'): create invoice called');
622
+ // if ($order->canInvoice()) {
623
+ // $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice();
624
 
625
+ // if (!$invoice->getTotalQty())
626
+ // Mage::throwException(Mage::helper('core')->__('Cannot create an invoice without products.'));
627
 
628
+ // if($capture && $onlineCapture)
629
+ // $invoice->setRequestedCaptureCase(Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE);
630
 
631
+ // $invoice->register();
 
632
 
633
+ // Mage::log("mPAY24 Extension (".debug_backtrace()[2]['function']."): Invoice registered!");
634
+ // $arrBacktrace = debug_backtrace();
635
+ // Mage::log("mPAY24 Extension (".$arrBacktrace[2]['function']."): Invoice registered!");
 
636
 
637
+ // Mage::getModel('core/resource_transaction')
638
+ // ->addObject($invoice)
639
+ // ->addObject($invoice->getOrder())
640
+ // ->save();
641
 
642
+ // $order->save();
 
 
 
 
643
 
644
+ // if($capture)
645
+ // foreach ($order->getInvoiceCollection() as $orderInvoice)
646
+ // if ($order->getTotalPaid() == 0.00) {
647
+ // $orderInvoice->pay();
648
+ // $orderInvoice->save();
649
 
650
+ // if($mif)
651
+ // $order->getPayment()->setAdditionalInformation('MIFClear', true)->save();
652
 
653
+ // $order->getPayment()->capture($orderInvoice)->save();
654
+ // }
655
+
656
+ // $invoice->sendEmail(true, '');
657
+ // return $invoice;
658
+ // } else
659
+ // Mage::throwException(Mage::helper('core')->__('Cannot create an invoice.'));
660
+ // }
661
 
662
  /**
663
  * Add transaction to payment with defined type
686
  $parentTransaction->setIsClosed(true)->save();
687
  }
688
  }
689
+
690
+ private function setBillpayData($order, $mPAY24Result) {
691
+ if($mPAY24Result->getParam('REFERENCE'))
692
+ $order->getPayment()->setAdditionalInformation('reference', $mPAY24Result->getParam('REFERENCE'))->save();
693
+
694
+ if($mPAY24Result->getParam('ACCT_HOLDER'))
695
+ $order->getPayment()->setAdditionalInformation('acct_holder', $mPAY24Result->getParam('ACCT_HOLDER'))->save();
696
+
697
+ if($mPAY24Result->getParam('ACCT_NUMBER'))
698
+ $order->getPayment()->setAdditionalInformation('acct_number', $mPAY24Result->getParam('ACCT_NUMBER'))->save();
699
+
700
+ if($mPAY24Result->getParam('BANK_CODE'))
701
+ $order->getPayment()->setAdditionalInformation('bank_code', $mPAY24Result->getParam('BANK_CODE'))->save();
702
+
703
+ if($mPAY24Result->getParam('BANK_NAME'))
704
+ $order->getPayment()->setAdditionalInformation('bank_name', $mPAY24Result->getParam('BANK_NAME'))->save();
705
+
706
+ if($mPAY24Result->getParam('REFERENCE'))
707
+ $order->getPayment()->setAdditionalInformation('reference', $mPAY24Result->getParam('REFERENCE'))->save();
708
+ ;
709
+ }
710
  }
app/code/community/Mpay24/Mpay24/etc/config.xml CHANGED
@@ -1,11 +1,11 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- @version $Id: config.xml 30 2014-11-10 14:00:27Z sapolhei $
4
  -->
5
  <config>
6
  <modules>
7
  <Mpay24_Mpay24>
8
- <version>1.5.5</version>
9
  </Mpay24_Mpay24>
10
  </modules>
11
 
@@ -140,11 +140,11 @@
140
  </totals>
141
  </pdf>
142
 
143
- <payment>
144
- <groups>
145
- <mpay24>mPAY24</mpay24>
146
- </groups>
147
- </payment>
148
  </global>
149
 
150
  <frontend>
@@ -246,54 +246,54 @@
246
  <allowed_ips>213.164.23.169,213.164.25.245,127.0.0.1</allowed_ips>
247
  </mpay24as>
248
  <mpay24sporder>
249
- <style>margin-left: auto; margin-right: auto;</style>
250
  <logostyle></logostyle>
251
- <pageheaderstyle></pageheaderstyle>
252
- <pagecaptionstyle></pagecaptionstyle>
253
- <pagestyle></pagestyle>
254
- <inputfieldsstyle></inputfieldsstyle>
255
- <dropdownlistsstyle></dropdownlistsstyle>
256
- <buttonsstyle></buttonsstyle>
257
- <errorsstyle></errorsstyle>
258
- <successtitlestyle></successtitlestyle>
259
- <errortitlestyle></errortitlestyle>
260
- <footerstyle></footerstyle>
261
  </mpay24sporder>
262
  <mpay24spsc>
263
- <sc_row>Number,ProductNr,Description,Package,Quantity,ItemPrice,Price</sc_row>
 
264
  <sc_style></sc_style>
265
- <sc_header></sc_header>
266
- <sc_headerstyle></sc_headerstyle>
267
- <sc_captionstyle></sc_captionstyle>
268
- <sc_numberheader></sc_numberheader>
269
- <sc_numberstyle></sc_numberstyle>
270
- <sc_productnrheader></sc_productnrheader>
271
- <sc_productnrstyle></sc_productnrstyle>
272
- <sc_descriptionheader></sc_descriptionheader>
273
- <sc_descriptionstyle></sc_descriptionstyle>
274
- <sc_packageheader></sc_packageheader>
275
- <sc_packagestyle></sc_packagestyle>
276
- <sc_quantityheader></sc_quantityheader>
277
- <sc_quantitystyle></sc_quantitystyle>
278
- <sc_itempriceheader></sc_itempriceheader>
279
- <sc_mpay24itempricestyle></sc_mpay24itempricestyle>
280
- <sc_priceheader></sc_priceheader>
281
- <sc_pricestyle></sc_pricestyle>
282
- <description></description>
283
- <item_style1></item_style1>
284
- <item_style2></item_style2>
285
- <discount_headerstyle></discount_headerstyle>
286
- <discount_style></discount_style>
287
- <shipping_costs_headerstyle></shipping_costs_headerstyle>
288
- <shipping_costs_style></shipping_costs_style>
289
- <tax_headerstyle></tax_headerstyle>
290
- <tax_style></tax_style>
291
- <price_header></price_header>
292
- <price_headerstyle></price_headerstyle>
293
- <price_style></price_style>
294
- <subtotal_header></subtotal_header>
295
- <subtotal_headerstyle></subtotal_headerstyle>
296
- <subtotal_style></subtotal_style>
297
  </mpay24spsc>
298
  <mpay24>
299
  <payments_active>false</payments_active>
@@ -311,7 +311,7 @@
311
  <payments_error></payments_error>
312
  <payment_action>authorize</payment_action>
313
  <paid_order_status>processing</paid_order_status>
314
- <group>mpay24</group>
315
  </mpay24>
316
  </payment>
317
  </default>
1
  <?xml version="1.0"?>
2
  <!--
3
+ @version $Id: config.xml 36 2015-01-27 16:48:06Z sapolhei $
4
  -->
5
  <config>
6
  <modules>
7
  <Mpay24_Mpay24>
8
+ <version>1.5.6</version>
9
  </Mpay24_Mpay24>
10
  </modules>
11
 
140
  </totals>
141
  </pdf>
142
 
143
+ <!-- <payment> -->
144
+ <!-- <groups> -->
145
+ <!-- <mpay24>mPAY24</mpay24> -->
146
+ <!-- </groups> -->
147
+ <!-- </payment> -->
148
  </global>
149
 
150
  <frontend>
246
  <allowed_ips>213.164.23.169,213.164.25.245,127.0.0.1</allowed_ips>
247
  </mpay24as>
248
  <mpay24sporder>
249
+ <style>margin-left: auto; margin-right: auto; color:#647378</style>
250
  <logostyle></logostyle>
251
+ <pageheaderstyle>background-color: #FFF;margin-bottom:14px;</pageheaderstyle>
252
+ <pagecaptionstyle>background-color:#FFF;background:transparent;color:#647378;padding-left:0px;</pagecaptionstyle>
253
+ <pagestyle>border:1px solid #838F93;background-color:#FFF;</pagestyle>
254
+ <inputfieldsstyle>background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;width:100%;max-width:200px;</inputfieldsstyle>
255
+ <dropdownlistsstyle>padding:2px 0px;margin-bottom:5px;</dropdownlistsstyle>
256
+ <buttonsstyle>background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;</buttonsstyle>
257
+ <errorsstyle>background-color: #FFF;padding: 10px 0px;</errorsstyle>
258
+ <successtitlestyle>background-color: #FFF;</successtitlestyle>
259
+ <errortitlestyle>background-color: #FFF;</errortitlestyle>
260
+ <footerstyle>display: none;</footerstyle>
261
  </mpay24sporder>
262
  <mpay24spsc>
263
+ <description>BESTELLUNGSBESCHREIBUNG</description>
264
+ <sc_row>Description,Quantity,ItemPrice,Price</sc_row>
265
  <sc_style></sc_style>
266
+ <sc_header>WARENKORB</sc_header>
267
+ <sc_headerstyle>background-color:#FFF;margin-bottom:14px;color:#647378</sc_headerstyle>
268
+ <sc_captionstyle>background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;</sc_captionstyle>
269
+ <sc_numberheader>NUMMER</sc_numberheader>
270
+ <sc_numberstyle>width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;</sc_numberstyle>
271
+ <sc_productnrheader>ARTIKELNUMMER</sc_productnrheader>
272
+ <sc_productnrstyle>width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;</sc_productnrstyle>
273
+ <sc_descriptionheader>BESCHREIBUNG</sc_descriptionheader>
274
+ <sc_descriptionstyle>width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;</sc_descriptionstyle>
275
+ <sc_packageheader>PAKET</sc_packageheader>
276
+ <sc_packagestyle>width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;</sc_packagestyle>
277
+ <sc_quantityheader>ANZAHL</sc_quantityheader>
278
+ <sc_quantitystyle>width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;</sc_quantitystyle>
279
+ <sc_itempriceheader>EINZELPREIS</sc_itempriceheader>
280
+ <sc_itempricestyle>width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;</sc_itempricestyle>
281
+ <sc_priceheader>PREIS</sc_priceheader>
282
+ <sc_pricestyle>width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;</sc_pricestyle>
283
+ <item_style1>background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;</item_style1>
284
+ <item_style2>background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;</item_style2>
285
+ <discount_headerstyle>background-color: #FFF; color: #647378;font-weight:normal;padding:3px;</discount_headerstyle>
286
+ <discount_style>background-color:#FFF;color:#647378;border:none;padding:3px 20px;</discount_style>
287
+ <shipping_costs_headerstyle>background-color: #FFF; color: #647378;font-weight:normal;padding:3px;</shipping_costs_headerstyle>
288
+ <shipping_costs_style>background-color:#FFF;color:#647378;border:none;padding:3px 20px;</shipping_costs_style>
289
+ <tax_headerstyle>background-color:#FFF;color: #647378;padding:3px;font-weight:normal;</tax_headerstyle>
290
+ <tax_style>background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;</tax_style>
291
+ <price_header>ENDSUMME</price_header>
292
+ <price_headerstyle>background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;</price_headerstyle>
293
+ <price_style>background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;</price_style>
294
+ <subtotal_header>ZWISCHENSUMME</subtotal_header>
295
+ <subtotal_headerstyle>background-color:#FFF;color: #647378;padding:3px;font-weight:normal;</subtotal_headerstyle>
296
+ <subtotal_style>background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;</subtotal_style>
 
297
  </mpay24spsc>
298
  <mpay24>
299
  <payments_active>false</payments_active>
311
  <payments_error></payments_error>
312
  <payment_action>authorize</payment_action>
313
  <paid_order_status>processing</paid_order_status>
314
+ <!-- <group>mpay24</group> -->
315
  </mpay24>
316
  </payment>
317
  </default>
app/code/community/Mpay24/Mpay24/etc/system.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- @version $Id: system.xml 27 2014-08-27 13:59:46Z sapolhei $
4
  -->
5
  <config>
6
  <sections>
@@ -107,7 +107,7 @@
107
  <show_in_store>1</show_in_store>
108
  <depends><active>1</active></depends>
109
  </debug>
110
- <sofort_state translate="label">
111
  <label>SOFORT Banking end-state</label>
112
  <frontend_type>select</frontend_type>
113
  <source_model>mpay24/source_sOFORTState</source_model>
@@ -116,6 +116,7 @@
116
  <show_in_website>1</show_in_website>
117
  <show_in_store>1</show_in_store>
118
  <depends><active>1</active></depends>
 
119
  </sofort_state>
120
  <use_proxy translate="label">
121
  <label>API uses proxy</label>
@@ -313,6 +314,14 @@
313
  <show_in_website>1</show_in_website>
314
  <show_in_store>1</show_in_store>
315
  <fields>
 
 
 
 
 
 
 
 
316
  <sc_row translate="label">
317
  <label>ShoppingCart Rows</label>
318
  <frontend_type>multiselect</frontend_type>
@@ -466,14 +475,6 @@
466
  <show_in_website>1</show_in_website>
467
  <show_in_store>0</show_in_store>
468
  </sc_pricestyle>
469
- <description translate="label">
470
- <label>Description</label>
471
- <frontend_type>text</frontend_type>
472
- <sort_order>119</sort_order>
473
- <show_in_default>1</show_in_default>
474
- <show_in_website>1</show_in_website>$value == 'JCB'
475
- <show_in_store>0</show_in_store>
476
- </description>
477
  <item_style1 translate="label">
478
  <label>ItemStyle Line 1</label>
479
  <frontend_type>text</frontend_type>
1
  <?xml version="1.0"?>
2
  <!--
3
+ @version $Id: system.xml 36 2015-01-27 16:48:06Z sapolhei $
4
  -->
5
  <config>
6
  <sections>
107
  <show_in_store>1</show_in_store>
108
  <depends><active>1</active></depends>
109
  </debug>
110
+ <sofort_state translate="label comment">
111
  <label>SOFORT Banking end-state</label>
112
  <frontend_type>select</frontend_type>
113
  <source_model>mpay24/source_sOFORTState</source_model>
116
  <show_in_website>1</show_in_website>
117
  <show_in_store>1</show_in_store>
118
  <depends><active>1</active></depends>
119
+ <comment>ONLY FOR 'SOFORT Überweisung' merchants: Please contact support@mpay24.com for more information!</comment>
120
  </sofort_state>
121
  <use_proxy translate="label">
122
  <label>API uses proxy</label>
314
  <show_in_website>1</show_in_website>
315
  <show_in_store>1</show_in_store>
316
  <fields>
317
+ <description translate="label">
318
+ <label>Description</label>
319
+ <frontend_type>text</frontend_type>
320
+ <sort_order>49</sort_order>
321
+ <show_in_default>1</show_in_default>
322
+ <show_in_website>1</show_in_website>
323
+ <show_in_store>0</show_in_store>
324
+ </description>
325
  <sc_row translate="label">
326
  <label>ShoppingCart Rows</label>
327
  <frontend_type>multiselect</frontend_type>
475
  <show_in_website>1</show_in_website>
476
  <show_in_store>0</show_in_store>
477
  </sc_pricestyle>
 
 
 
 
 
 
 
 
478
  <item_style1 translate="label">
479
  <label>ItemStyle Line 1</label>
480
  <frontend_type>text</frontend_type>
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-install-1.5.5.php → mysql4-install-1.5.6.php} RENAMED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-install-1.5.5.php 30 2014-11-10 14:00:27Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-install-1.5.6.php 31 2015-01-15 16:26:31Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.4.9.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.4.9.php 18 2013-12-10 07:19:33Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.0.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.0.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.1.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.2.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.2.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.3.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.3.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.4.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.4.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.4-1.5.5.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.6.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.4.6.php 16 2013-11-12 15:30:44Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.7.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.4.7.php 16 2013-11-12 15:30:44Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.8.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.4.8.php 16 2013-11-12 15:30:44Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.4.9.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.4.9.php 18 2013-12-10 07:19:33Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.0.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.5.0.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.1.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.5.1.php 26 2014-06-24 15:35:30Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.2.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.5.2.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.3.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.5.3.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.4.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.5-1.5.4.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.5-1.5.5.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.4.7.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.4.7.php 16 2013-11-12 15:30:44Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.4.8.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.4.8.php 16 2013-11-12 15:30:44Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.4.9.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.4.9.php 18 2013-12-10 07:19:33Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.0.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.5.0.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.1.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.5.1.php 26 2014-06-24 15:35:30Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.2.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.5.2.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.3.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.5.3.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.4.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.6-1.5.4.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.6-1.5.5.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.4.8.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.7-1.4.8.php 16 2013-11-12 15:30:44Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.4.9.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.7-1.4.9.php 18 2013-12-10 07:19:33Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.0.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.7-1.5.0.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.1.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.7-1.5.1.php 26 2014-06-24 15:35:30Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.2.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.7-1.5.2.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.3.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.7-1.5.3.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.4.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.7-1.5.4.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.7-1.5.5.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.4.9.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.8-1.4.9.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.0.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.8-1.5.0.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.1.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.8-1.5.1.php 26 2014-06-24 15:35:30Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.2.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.8-1.5.2.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.3.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.8-1.5.3.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.4.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.8-1.5.4.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.8-1.5.5.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.0.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.9-1.5.0.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.1.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.9-1.5.1.php 26 2014-06-24 15:35:30Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.2.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.9-1.5.2.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.3.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.9-1.5.3.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.4.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.9-1.5.4.php 30 2014-11-10 14:00:27Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.9-1.5.5.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
- * @author Firedrago Magento
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
- */
21
- if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
- $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
- else
24
- $install = $this;
25
-
26
- $install->startSetup();
27
-
28
- $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
-
30
- $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
-
32
- $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
-
34
- $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
-
36
- $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
- $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
- $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
-
40
- $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
- $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
- $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
-
44
- $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
- $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
- $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
-
48
- $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
- $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
- $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
-
52
- $install->endSetup();
53
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.0-1.5.5.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.0-1.5.5.php 31 2015-01-15 16:26:31Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.8.php → mysql4-upgrade-1.5.0-1.5.6.php} RENAMED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.4.8.php 16 2013-11-12 15:30:44Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.0-1.5.6.php 33 2015-01-15 16:29:36Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.1-1.5.5.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.1-1.5.5.php 31 2015-01-15 16:26:31Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.5.php → mysql4-upgrade-1.5.1-1.5.6.php} RENAMED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.4.5.php 16 2013-11-12 15:30:44Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.1-1.5.6.php 33 2015-01-15 16:29:36Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.2-1.5.5.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.2-1.5.5.php 31 2015-01-15 16:26:31Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.6.php → mysql4-upgrade-1.5.2-1.5.6.php} RENAMED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.4.6.php 16 2013-11-12 15:30:44Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.2-1.5.6.php 33 2015-01-15 16:29:36Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.3-1.5.5.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.3-1.5.5.php 31 2015-01-15 16:26:31Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.4-1.4.7.php → mysql4-upgrade-1.5.3-1.5.6.php} RENAMED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.4.7.php 16 2013-11-12 15:30:44Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.3-1.5.6.php 33 2015-01-15 16:29:36Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.4-1.5.5.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: mysql4-upgrade-1.4.4-1.5.1.php 25 2014-06-24 15:33:56Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
16
  * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.4-1.5.5.php 31 2015-01-15 16:26:31Z sapolhei $
20
  */
21
  if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
  $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.4-1.5.6.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mpay24
16
+ * @package Mpay24_Mpay24
17
+ * @author Firedrago Magento
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.4-1.5.6.php 33 2015-01-15 16:29:36Z sapolhei $
20
+ */
21
+ if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
+ $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
+ else
24
+ $install = $this;
25
+
26
+ $install->startSetup();
27
+
28
+ $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
+
30
+ $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
+
32
+ $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
+
34
+ $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
+
36
+ $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
+ $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
+ $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
+
40
+ $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
+ $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
+ $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
+
44
+ $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
+ $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
+ $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
+
48
+ $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
+ $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
+ $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
+
52
+ $install->endSetup();
53
+ ?>
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.5.5-1.5.6.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mpay24
16
+ * @package Mpay24_Mpay24
17
+ * @author Firedrago Magento
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-upgrade-1.5.5-1.5.6.php 33 2015-01-15 16:29:36Z sapolhei $
20
+ */
21
+ if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
+ $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
+ else
24
+ $install = $this;
25
+
26
+ $install->startSetup();
27
+
28
+ $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
+
30
+ $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
+
32
+ $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
+
34
+ $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
+
36
+ $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
+ $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
+ $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
+
40
+ $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
+ $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
+ $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
+
44
+ $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
+ $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
+ $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
+
48
+ $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
+ $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
+ $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
+
52
+ $install->endSetup();
53
+ ?>
app/design/adminhtml/default/default/template/mpay24/info/selectpayment.phtml CHANGED
@@ -16,11 +16,11 @@
16
  * @package default_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: selectpayment.phtml 29 2014-11-10 13:21:51Z sapolhei $
20
  */
21
  ?>
22
  <p><b>
23
- <?php echo "<label for='brand'>".Mage::helper('mpay24')->__("Payment method")."</label><span name='brand' style='float: right; margin-right: 400px;'><img onerror='if(typeof selectedPayment === \"undefined\") selectedPayment=\"../../../img/logos/payment-mpay24\"; this.src=\"https://www.mpay24.com/web/img/logos/ptypes/\" + selectedPayment + \".png\";this.title=brand;this.alt=brand;' style='max-width: 40%;padding-top: 5px;' src='https://www.mpay24.com/web/img/logos/ptypes/".$this->getPMethId().".png' alt='".$this->getPType()."-".$this->getBrand()."' title='".$this->getPType()."-".$this->getBrand()."'>".' ('.Mage::getStoreConfig('payment/mpay24/title').')'."</span>"; ?></b><br/>
24
  <br/>
25
  <?php if($this->getMethod()->getData('info_instance')->getOrder() !== null): ?>
26
  <b><?php echo "<label for='mpaytid'>MPAYTID</label><span name='mpaytid' style='float: right; margin-right: 400px;'>".$this->htmlEscape($this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('mpay_tid'))."</span>"; ?></b>
16
  * @package default_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: selectpayment.phtml 31 2015-01-15 16:26:31Z sapolhei $
20
  */
21
  ?>
22
  <p><b>
23
+ <?php echo "<label for='brand'>".Mage::helper('mpay24')->__("Payment method")."</label><span name='brand' style='float: right; margin-right: 400px;'><img onerror='if(typeof selectedPayment === \"undefined\") selectedPayment=\"../../../img/logos/payment-mpay24.svg\"; this.src=\"https://www.mpay24.com/web/img/logos/ptypes/\" + selectedPayment;this.title=brand;this.alt=brand;' style='max-width: 40%;padding-top: 5px;' src='https://www.mpay24.com/web/img/logos/ptypes/".$this->getPMethId().".png' alt='".$this->getPType()."-".$this->getBrand()."' title='".$this->getPType()."-".$this->getBrand()."'>".' ('.Mage::getStoreConfig('payment/mpay24/title').')'."</span>"; ?></b><br/>
24
  <br/>
25
  <?php if($this->getMethod()->getData('info_instance')->getOrder() !== null): ?>
26
  <b><?php echo "<label for='mpaytid'>MPAYTID</label><span name='mpaytid' style='float: right; margin-right: 400px;'>".$this->htmlEscape($this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('mpay_tid'))."</span>"; ?></b>
app/design/frontend/base/default/layout/mpay24.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category design
16
+ * @package base_defaut
17
+ * @author Firedrago Magento
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mpay24.xml 5 2013-10-10 13:08:44Z sapolhei $
20
+ -->
21
+ <layout version="0.1.0">
22
+ <mpay24_payment_payment>
23
+ <reference name="root">
24
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
25
+ </reference>
26
+ </mpay24_payment_payment>
27
+ <mpay24_payment_errormsg>
28
+ <reference name="root">
29
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
30
+ </reference>
31
+ <reference name="content">
32
+ <block type="mpay24/mpay24" name="errormsg" template="mpay24/error.phtml"/>
33
+ </reference>
34
+ </mpay24_payment_errormsg>
35
+ </layout>
app/design/frontend/{default → base}/default/template/mpay24/form/area.phtml RENAMED
@@ -12,11 +12,11 @@
12
  * obtain it through the world-wide-web, please send an email
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Mpay24
16
- * @package Mpay24_Mpay24
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: area.phtml 27 2014-08-27 13:59:46Z sapolhei $
20
  */
21
  ?>
22
  <?php
@@ -30,7 +30,7 @@ if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true') {
30
  }
31
  ?>
32
  <script type="text/javascript">
33
- var selectedPayment = "../../../img/logos/payment-mpay24";
34
  var brand = "";
35
  </script>
36
 
@@ -125,7 +125,7 @@ if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true') {
125
  <div style="border: 1px inset transparent;">
126
  <a href="#" onclick="
127
  brand = '<?php echo $payment['DESCR']?>';
128
- if(this.parentNode.getAttribute('style') == 'border: 1px inset transparent;') {
129
  var inputs = document.getElementById('mpay24_table').getElementsByTagName('input');
130
 
131
  for(var i=0; i<inputs.length; i++) {
@@ -138,7 +138,7 @@ if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true') {
138
  this.parentNode.setAttribute('style', 'border: 1px inset blue;');
139
  document.getElementById('<?php echo $id;?>').disabled = false;
140
 
141
- selectedPayment = '<?php echo $id;?>';
142
  payment.save();
143
  } else {
144
  this.parentNode.setAttribute('style', 'border: 1px inset transparent;');
@@ -164,7 +164,7 @@ if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true') {
164
  <tr>
165
  <td></td>
166
  <td>
167
- <img style="float:right" src="https://www.mpay24.com/web/img/logos/payment-mpay24.png" alt="mPAY24" title="mPAY24" width="40%" >
168
  </td>
169
  </tr>
170
  </table>
12
  * obtain it through the world-wide-web, please send an email
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
+ * @category design
16
+ * @package base_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: area.phtml 35 2015-01-19 14:42:26Z sapolhei $
20
  */
21
  ?>
22
  <?php
30
  }
31
  ?>
32
  <script type="text/javascript">
33
+ var selectedPayment = "../../../img/logos/payment-mpay24.png";
34
  var brand = "";
35
  </script>
36
 
125
  <div style="border: 1px inset transparent;">
126
  <a href="#" onclick="
127
  brand = '<?php echo $payment['DESCR']?>';
128
+ if(this.parentNode.getAttribute('style') == 'border: 1px inset transparent;' || this.parentNode.getAttribute('style') == 'border: 1px inset transparent; border-image: none;') {
129
  var inputs = document.getElementById('mpay24_table').getElementsByTagName('input');
130
 
131
  for(var i=0; i<inputs.length; i++) {
138
  this.parentNode.setAttribute('style', 'border: 1px inset blue;');
139
  document.getElementById('<?php echo $id;?>').disabled = false;
140
 
141
+ selectedPayment = '<?php echo "$id.png";?>';
142
  payment.save();
143
  } else {
144
  this.parentNode.setAttribute('style', 'border: 1px inset transparent;');
164
  <tr>
165
  <td></td>
166
  <td>
167
+ <img style="float:right" src="https://www.mpay24.com/web/img/logos/payment-mpay24.svg" alt="mPAY24" title="mPAY24" width="40%" >
168
  </td>
169
  </tr>
170
  </table>
app/design/frontend/{default → base}/default/template/mpay24/form/dropDown.phtml RENAMED
@@ -13,10 +13,10 @@
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category design
16
- * @package default_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: dropDown.phtml 27 2014-08-27 13:59:46Z sapolhei $
20
  */
21
  ?>
22
  <?php
@@ -99,17 +99,17 @@ if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true') {
99
  <tr>
100
  <td>
101
  <?php if(Mage::getStoreConfig('mpay24/mpay24/forced_preselection') == 1):?>
102
- <select id="mpay24_ps" name="mpay24_ps" style="margin-top: 20px; margin-bottom:20px; width: 256px" title="mPAY24 <?php echo Mage::helper('mpay24')->__("Payment method");?>" onchange="document.getElementById('mpay24_img').src='https://www.mpay24.com/web/img/logos/ptypes/'+this.options[this.selectedIndex].value.substr(7,3)+'.png';selectedPayment=this.options[this.selectedIndex].value.substr(7,3);">
103
  <?php else:?>
104
  <select id="mpay24_ps" name="mpay24_ps" style="margin-top: 20px; margin-bottom:20px; width: 256px" title="mPAY24 <?php echo Mage::helper('mpay24')->__("Payment method");?>" onchange="document.getElementById('mpay24_img').style.display = (this.selectedIndex != 0) ? 'block' : 'none';
105
- document.getElementById('mpay24_img').src='https://www.mpay24.com/web/img/logos/ptypes/'+this.options[this.selectedIndex].value.substr(7,3)+'.png';selectedPayment=this.options[this.selectedIndex].value.substr(7,3);">
106
  <?php endif;?>
107
  <?php if(Mage::getStoreConfig('mpay24/mpay24/forced_preselection') != 1):?>
108
  <option value="false">mPAY24 (<?php echo Mage::helper('mpay24')->__("All payment methods") ?>)</option>
109
  <?php endif;?>
110
  <?php
111
- if(isset($_REQUEST['mpay24_ps']) && $_REQUEST['mpay24_ps'] != "")
112
- $firstID = $_REQUEST['mpay24_ps'];
113
  else
114
  $firstID = "";
115
  $j = 1;
@@ -161,7 +161,7 @@ if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true') {
161
  <?php if(Mage::getStoreConfig('mpay24/mpay24/forced_preselection') == 1)
162
  echo "<script type='text/javascript'>var selectedPayment = '$firstID'</script>";
163
  else
164
- echo "<script type='text/javascript'>var selectedPayment = '../../../web/img/logos/payment-mpay24';</script>";
165
  ?>
166
  </tr>
167
  <tr>
@@ -172,7 +172,7 @@ if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'true') {
172
  <tr>
173
  <td></td>
174
  <td>
175
- <img style="float:right" src="https://www.mpay24.com/web/img/logos/payment-mpay24.png" alt="mPAY24" title="mPAY24" width="40%" height="40%">
176
  </td>
177
  </tr>
178
  </table>
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category design
16
+ * @package base_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: dropDown.phtml 36 2015-01-27 16:48:06Z sapolhei $
20
  */
21
  ?>
22
  <?php
99
  <tr>
100
  <td>
101
  <?php if(Mage::getStoreConfig('mpay24/mpay24/forced_preselection') == 1):?>
102
+ <select id="mpay24_ps" name="mpay24_ps" style="margin-top: 20px; margin-bottom:20px; width: 256px" title="mPAY24 <?php echo Mage::helper('mpay24')->__("Payment method");?>" onchange="document.getElementById('mpay24_img').src='https://www.mpay24.com/web/img/logos/ptypes/'+this.options[this.selectedIndex].value.substr(7,3)+'.png';selectedPayment=this.options[this.selectedIndex].value.substr(7,3)+'.png';">
103
  <?php else:?>
104
  <select id="mpay24_ps" name="mpay24_ps" style="margin-top: 20px; margin-bottom:20px; width: 256px" title="mPAY24 <?php echo Mage::helper('mpay24')->__("Payment method");?>" onchange="document.getElementById('mpay24_img').style.display = (this.selectedIndex != 0) ? 'block' : 'none';
105
+ document.getElementById('mpay24_img').src='https://www.mpay24.com/web/img/logos/ptypes/'+this.options[this.selectedIndex].value.substr(7,3)+'.png';selectedPayment=this.options[this.selectedIndex].value.substr(7,3)+'.png';">
106
  <?php endif;?>
107
  <?php if(Mage::getStoreConfig('mpay24/mpay24/forced_preselection') != 1):?>
108
  <option value="false">mPAY24 (<?php echo Mage::helper('mpay24')->__("All payment methods") ?>)</option>
109
  <?php endif;?>
110
  <?php
111
+ if(Mage::app()->getRequest()->getParam('mpay24_ps') != null && Mage::app()->getRequest()->getParam('mpay24_ps') != "")
112
+ $firstID = Mage::app()->getRequest()->getParam('mpay24_ps');
113
  else
114
  $firstID = "";
115
  $j = 1;
161
  <?php if(Mage::getStoreConfig('mpay24/mpay24/forced_preselection') == 1)
162
  echo "<script type='text/javascript'>var selectedPayment = '$firstID'</script>";
163
  else
164
+ echo "<script type='text/javascript'>var selectedPayment = '../../../web/img/logos/payment-mpay24.svg';</script>";
165
  ?>
166
  </tr>
167
  <tr>
172
  <tr>
173
  <td></td>
174
  <td>
175
+ <img style="float:right" src="https://www.mpay24.com/web/img/logos/payment-mpay24.svg" alt="mPAY24" title="mPAY24" width="40%" height="40%">
176
  </td>
177
  </tr>
178
  </table>
app/design/frontend/{default → base}/default/template/mpay24/form/radio.phtml RENAMED
@@ -13,10 +13,10 @@
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category design
16
- * @package default_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: radio.phtml 27 2014-08-27 13:59:46Z sapolhei $
20
  */
21
  ?>
22
  <?php
@@ -97,8 +97,8 @@ window.onload = function() {
97
  </script>
98
  <div id="myDIV" style="min-height:100px; padding-top:10px; padding-bottom: 15px; margin-left: -30px;">
99
  <?php
100
- if(isset($_REQUEST['mpay24_ps']) && $_REQUEST['mpay24_ps'] != "")
101
- $firstID = $_REQUEST['mpay24_ps'];
102
  else
103
  $firstID = "";
104
  $j = 1;
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category design
16
+ * @package base_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: radio.phtml 36 2015-01-27 16:48:06Z sapolhei $
20
  */
21
  ?>
22
  <?php
97
  </script>
98
  <div id="myDIV" style="min-height:100px; padding-top:10px; padding-bottom: 15px; margin-left: -30px;">
99
  <?php
100
+ if(Mage::app()->getRequest()->getParam('mpay24_ps') != null && Mage::app()->getRequest()->getParam('mpay24_ps') != "")
101
+ $firstID = Mage::app()->getRequest()->getParam('mpay24_ps');
102
  else
103
  $firstID = "";
104
  $j = 1;
app/design/frontend/{default → base}/default/template/mpay24/info/selectpayment.phtml RENAMED
@@ -13,15 +13,15 @@
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category design
16
- * @package default_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: selectpayment.phtml 29 2014-11-10 13:21:51Z sapolhei $
20
  */
21
  ?>
22
  <p><b>
23
  <?php
24
- echo "<img onerror='if(typeof selectedPayment === \"undefined\") selectedPayment=\"../../../img/logos/payment-mpay24\"; this.src=\"https://www.mpay24.com/web/img/logos/ptypes/\" + selectedPayment + \".png\";this.title=brand;this.alt=brand;' style='max-width: 40%;padding-top: 5px;' src='https://www.mpay24.com/web/img/logos/ptypes/".$this->getPMethId().".png' alt='".$this->getPType()."-".$this->getBrand()."' title='".$this->getPType()."-".$this->getBrand()."'>".' ('.Mage::getStoreConfig('payment/mpay24/title').')' ?></b><br/>
25
 
26
  <?php if($this->getMethod()->getData('info_instance')->getOrder() !== null): ?>
27
  <br/><b><?php echo "<label for='acct_holder'>".Mage::helper('mpay24')->__("Approval code")."</label><span name='appr_code' style='float: right; margin-right: 400px;'>".$this->htmlEscape($this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('appr_code'))."</span>"; ?></b><br/>
13
  * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * @category design
16
+ * @package base_defaut
17
  * @author Firedrago Magento
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: selectpayment.phtml 33 2015-01-15 16:29:36Z sapolhei $
20
  */
21
  ?>
22
  <p><b>
23
  <?php
24
+ echo "<img onerror='if(typeof selectedPayment === \"undefined\") selectedPayment=\"../../../img/logos/payment-mpay24.svg\"; this.src=\"https://www.mpay24.com/web/img/logos/ptypes/\" + selectedPayment;this.title=brand;this.alt=brand;' style='max-width: 40%;padding-top: 5px;' src='https://www.mpay24.com/web/img/logos/ptypes/".$this->getPMethId().".png' alt='".$this->getPType()."-".$this->getBrand()."' title='".$this->getPType()."-".$this->getBrand()."'>".' ('.Mage::getStoreConfig('payment/mpay24/title').')' ?></b><br/>
25
 
26
  <?php if($this->getMethod()->getData('info_instance')->getOrder() !== null): ?>
27
  <br/><b><?php echo "<label for='acct_holder'>".Mage::helper('mpay24')->__("Approval code")."</label><span name='appr_code' style='float: right; margin-right: 400px;'>".$this->htmlEscape($this->getInfo()->getOrder()->getPayment()->getAdditionalInformation('appr_code'))."</span>"; ?></b><br/>
app/design/frontend/default/default/layout/mpay24.xml DELETED
@@ -1,19 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- * @version $Id: mpay24.xml 5 2013-10-10 13:08:44Z sapolhei $
4
- -->
5
- <layout version="0.1.0">
6
- <mpay24_payment_payment>
7
- <reference name="root">
8
- <action method="setTemplate"><template>page/1column.phtml</template></action>
9
- </reference>
10
- </mpay24_payment_payment>
11
- <mpay24_payment_errormsg>
12
- <reference name="root">
13
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
14
- </reference>
15
- <reference name="content">
16
- <block type="mpay24/mpay24" name="errormsg" template="mpay24/error.phtml"/>
17
- </reference>
18
- </mpay24_payment_errormsg>
19
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Mpay24_Mpay24.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- * @version $Id: Mpay24_Mpay24.xml 29 2014-11-10 13:21:51Z sapolhei $
4
  -->
5
  <config>
6
  <modules>
@@ -10,7 +10,7 @@
10
  <depends>
11
  <Mage_Payment />
12
  </depends>
13
- <version>1.5.5</version>
14
  </Mpay24_Mpay24>
15
  </modules>
16
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
+ * @version $Id: Mpay24_Mpay24.xml 30 2014-11-10 14:00:27Z sapolhei $
4
  -->
5
  <config>
6
  <modules>
10
  <depends>
11
  <Mage_Payment />
12
  </depends>
13
+ <version>1.5.6</version>
14
  </Mpay24_Mpay24>
15
  </modules>
16
  </config>
app/locale/de_AT/Mpay24_Mpay24.csv CHANGED
@@ -80,4 +80,5 @@
80
  "Account number", "IBAN"
81
  "Bank code", "BIC"
82
  "Bank name", "Bankname"
83
- "Reference", "Referenz"
 
80
  "Account number", "IBAN"
81
  "Bank code", "BIC"
82
  "Bank name", "Bankname"
83
+ "Reference", "Referenz"
84
+ "ONLY FOR 'SOFORT Überweisung' merchants: Please contact support@mpay24.com for more information!","NUR FÜR 'SOFORT Überweisung' Händler: Für weitere Informationen, kontaktieren Sie bitte support@mpay24.com!"
app/locale/de_CH/Mpay24_Mpay24.csv CHANGED
@@ -80,4 +80,5 @@
80
  "Account number", "IBAN"
81
  "Bank code", "BIC"
82
  "Bank name", "Bankname"
83
- "Reference", "Referenz"
 
80
  "Account number", "IBAN"
81
  "Bank code", "BIC"
82
  "Bank name", "Bankname"
83
+ "Reference", "Referenz"
84
+ "ONLY FOR 'SOFORT Überweisung' merchants: Please contact support@mpay24.com for more information!","NUR FÜR 'SOFORT Überweisung' Händler: Für weitere Informationen, kontaktieren Sie bitte support@mpay24.com!"
app/locale/de_DE/Mpay24_Mpay24.csv CHANGED
@@ -80,4 +80,5 @@
80
  "Account number", "IBAN"
81
  "Bank code", "BIC"
82
  "Bank name", "Bankname"
83
- "Reference", "Referenz"
 
80
  "Account number", "IBAN"
81
  "Bank code", "BIC"
82
  "Bank name", "Bankname"
83
+ "Reference", "Referenz"
84
+ "ONLY FOR 'SOFORT Überweisung' merchants: Please contact support@mpay24.com for more information!","NUR FÜR 'SOFORT Überweisung' Händler: Für weitere Informationen, kontaktieren Sie bitte support@mpay24.com!"
app/locale/en_US/Mpay24_Mpay24.csv CHANGED
@@ -80,4 +80,5 @@
80
  "Account number", "Account number"
81
  "Bank code", "Bank code"
82
  "Bank name", "Bank name"
83
- "Reference", "Reference"
 
80
  "Account number", "Account number"
81
  "Bank code", "Bank code"
82
  "Bank name", "Bank name"
83
+ "Reference", "Reference"
84
+ "ONLY FOR 'SOFORT Überweisung' merchants: Please contact support@mpay24.com for more information!","ONLY FOR 'SOFORT Überweisung' merchants: Please contact support@mpay24.com for more information!"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>mPAY24</name>
4
- <version>1.5.5</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -26,11 +26,20 @@ Die Payment L&#xF6;sung der mPAY24 GmbH unterst&#xFC;tzt folgende Bezahlarten un
26
  &#xD;
27
  &#xD;
28
  Weitere Informationen unter www.mPAY24.com</description>
29
- <notes>Version's scripts update</notes>
 
 
 
 
 
 
 
 
 
30
  <authors><author><name>Filipp Akinfiev</name><user>firedrago</user><email>firedrago.magento@gmail.com</email></author></authors>
31
- <date>2014-11-10</date>
32
- <time>14:01:43</time>
33
- <contents><target name="magelocale"><dir name="de_AT"><file name="Mpay24_Mpay24.csv" hash="2e6a91a14f3c966fe7c8b6a7832edad0"/></dir><dir name="de_DE"><file name="Mpay24_Mpay24.csv" hash="2e6a91a14f3c966fe7c8b6a7832edad0"/></dir><dir name="de_CH"><file name="Mpay24_Mpay24.csv" hash="2e6a91a14f3c966fe7c8b6a7832edad0"/></dir><dir name="en_US"><file name="Mpay24_Mpay24.csv" hash="038e60a7040401a375a2d07f39993864"/></dir></target><target name="mageetc"><dir name="modules"><file name="Mpay24_Mpay24.xml" hash="c5a99e8d8cc2a19581870404fa686f5e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="form"><file name="area.phtml" hash="9f4f9fec6dadc41ea02e14da3060f17c"/><file name="dropDown.phtml" hash="6e1b3da46645a4ee733038eb5dc51d5b"/><file name="radio.phtml" hash="76ac74909f951575038b0265cd32866e"/></dir><dir name="info"><file name="selectpayment.phtml" hash="294191fd37cbc893e41359e55569e319"/></dir></dir></dir><dir name="layout"><file name="mpay24.xml" hash="f61a3b1f24cf322c25d0cbfc23f473d6"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="info"><dir name="pdf"><file name="selectpayment.phtml" hash="72560f7d19995e6ad68ee6ed9ecb538a"/></dir><file name="selectpayment.phtml" hash="5c2fce609138157ac9c99493221e85e8"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mpay24"><dir name="Mpay24"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="3370e076767f51aaf3a5e35564b64d7b"/></dir><dir name="Invoice"><file name="Totals.php" hash="45beeec6902eddd0a68d5d196c9c8993"/></dir><file name="Totals.php" hash="a9ea28f1c34c458ef346484a07a25ce4"/></dir><file name="Totals.php" hash="3e7a1e3c5e7beecf656708fb6ef451ba"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Fieldset.php" hash="6a32d04093ed17bd205049fc2c08a149"/></dir></dir></dir></dir><dir name="Form"><file name="Selectpayment.php" hash="d7c2782f8d5307a3fca856b44ced5af4"/></dir><file name="Form.php" hash="72f46c1cddecdb39cac90558ae3f8f34"/><dir name="Info"><file name="Selectpayment.php" hash="39c93c8c340083d48acec81987b7be29"/></dir><file name="Mpay24.php" hash="7cd507fba0979dc4f3eb937e37bc52ff"/><file name="ParentRedirect.php" hash="f99827ac084d828afdeeea9014933c57"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="1d10e5e7f3022b8b4e12ffaf9fa0b42d"/></dir><dir name="Invoice"><file name="Totals.php" hash="b531a8c77d11c6af8ff13807062c3a36"/></dir><file name="Totals.php" hash="6012cce58a706e6762c5624e52a6191b"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d02323e509bf1e693641a007e881d84a"/></dir><dir name="Model"><dir name="Api"><file name="MDXI.xsd" hash="5cc518b9386fdadf6bc43c9169bfd615"/><file name="MPay24Api.php" hash="6f96a97da40b296db3aabdd6447985a5"/><file name="MPay24MagentoShop.php" hash="804839a171258b35d1b051bd539d993e"/><file name="MPay24Shop.php" hash="e42d98233a8e32905f349fc7a006ef17"/><file name="cacert.pem" hash="b4bc508481b6291f414f4e6fd7e5d0a5"/><file name="curllog.log" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="orderXML.php" hash="704a162695cd9f540ca3123d0e7c6f12"/><dir name="xmls"><file name="Example_MDXI.xml" hash="dddd02e4cdc0905792c1a2a9f3681bfd"/></dir></dir><file name="Config.php" hash="3f24700f4a88009c8b288f0b28cdecc8"/><dir name="Entity"><file name="Setup.php" hash="b430870f5b30400666d49e872fcb1829"/></dir><dir name="Method"><file name="Abstract.php" hash="fc8ae6c60da3f92ad5a8f94e5f6685b3"/><file name="Selectpayment.php" hash="e9fc8005ae3b4edf149184cee0c9d96a"/></dir><dir name="Mpay24"><file name="Debug.php" hash="0292a590e18f447302a567e4805cc395"/></dir><dir name="Mysql4"><dir name="Mpay24"><dir name="Debug"><file name="Collection.php" hash="8ad74bfe0138d89799966b0a5098b973"/></dir><file name="Debug.php" hash="92e0274bbf10e95551ee1b2ce32fe77f"/></dir><file name="Setup.php" hash="cfde4d0356acd80dfc7ab96eb6fbc435"/></dir><file name="Observer.php" hash="fee0d97f00f19ec06dc77ae0528fd152"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="Paymentcharge.php" hash="2a18a3056a29073476c71167b0123b65"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Paymentcharge.php" hash="0ac2ca2a09948eab7b5c29d3b167ed90"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Paymentcharge.php" hash="03a51272dd89821e69d8ca9677f20a81"/></dir></dir></dir></dir><file name="Selectpayment.php" hash="42f90d8fdc11f41d11e8d64c459074ac"/><file name="Session.php" hash="4b5004e1e1bb6eb411ff3462f0b01112"/><dir name="Source"><file name="AllowedIPs.php" hash="18da40de21159be4ac8be98909c5e284"/><file name="BillAddr.php" hash="80f771c682b65ed5f33eadfca86d6b58"/><file name="ClearingAction.php" hash="49c51df9cb1b1d444ac03437fc9d0a4d"/><file name="FormTemplate.php" hash="1231ad5dd8970b965ad39d82246b30a2"/><file name="PaidOrder.php" hash="ea962026625292782fd3830667419490"/><file name="PaymentCharge.php" hash="8f3f8b1548699bca5c63942e4c8916bb"/><file name="PaymentsActive.php" hash="408c0c11925732e2d6433d867d221d63"/><file name="Request.php" hash="89a5f1bc2c4984aaa2fdbe0e3e5e2b19"/><file name="Result.php" hash="85bafadd31d2f9da948721a8831f3d9e"/><file name="SOFORTState.php" hash="a16d4556b94f6a61312fc340af81a132"/><file name="ShoppingCartRowsAction.php" hash="bc66fc6256b192d6b113537a73211cf3"/><file name="System.php" hash="f6142277dfbdab3e0e71fb9814c24652"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Encrypted.php" hash="66086ea048550c72962e7690b9a1c768"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="8ede56cc97e53af699648fa65566a7c5"/><file name="PaymentController.php" hash="c6110b34fd7e0e33ff64fa121d02efe8"/></dir><dir name="etc"><file name="config.xml" hash="fec5679f004531b4727457eafbebd37b"/><file name="system.xml" hash="daf4071d18c9f5f386b06c0b66872b14"/></dir><dir name="sql"><dir name="mpay24_setup"><file name="mysql4-install-1.5.5.php" hash="62f20b55ba4b89ad360d85a0156fa7fa"/><file name="mysql4-upgrade-1.4.4-1.4.5.php" hash="05a7d1f81102a1f05ef2c4b8cf33aa85"/><file name="mysql4-upgrade-1.4.4-1.4.6.php" hash="5bf86d6498af63fb0afe3953c14d4e7e"/><file name="mysql4-upgrade-1.4.4-1.4.7.php" hash="08e2aa39f98e5c0cdb52cdb0823a015b"/><file name="mysql4-upgrade-1.4.4-1.4.8.php" hash="ae6956df0cf6530463d98b2f0b814e32"/><file name="mysql4-upgrade-1.4.4-1.4.9.php" hash="26f251d1939ee4d9a156499c61bbd7f3"/><file name="mysql4-upgrade-1.4.4-1.5.0.php" hash="1fe55f115daa227bd09beb69374621e2"/><file name="mysql4-upgrade-1.4.4-1.5.1.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.4.4-1.5.2.php" hash="4ed92703c0a57f7ccf77cba616dca1cf"/><file name="mysql4-upgrade-1.4.4-1.5.3.php" hash="50160088013570c350f8c4340b3a0688"/><file name="mysql4-upgrade-1.4.4-1.5.4.php" hash="e81e8bfa1ceb8796e77c138d6c710c93"/><file name="mysql4-upgrade-1.4.4-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.4.5-1.4.6.php" hash="d87de8d8c3037199051d8e579a4ac3f9"/><file name="mysql4-upgrade-1.4.5-1.4.7.php" hash="86eb6d0edef7c76f4d709a1dd2187191"/><file name="mysql4-upgrade-1.4.5-1.4.8.php" hash="f3157f8e0ef74958e357ba5dcccc3fed"/><file name="mysql4-upgrade-1.4.5-1.4.9.php" hash="0f01b950b01f4ac0f9c78a200fd8f013"/><file name="mysql4-upgrade-1.4.5-1.5.0.php" hash="e4f57f182722b589520bf09b6081bdfb"/><file name="mysql4-upgrade-1.4.5-1.5.1.php" hash="dcc8afe56eddb38b918675858ac2c4a6"/><file name="mysql4-upgrade-1.4.5-1.5.2.php" hash="83f0eedc19a4c64baccf1c44bf03cfb7"/><file name="mysql4-upgrade-1.4.5-1.5.3.php" hash="b8a7dfe5785ee247ccef88533dbd04c4"/><file name="mysql4-upgrade-1.4.5-1.5.4.php" hash="e6192a433354166cc6d5a0e571d19743"/><file name="mysql4-upgrade-1.4.5-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.4.6-1.4.7.php" hash="e041611350cc319072fd0cba3824ed96"/><file name="mysql4-upgrade-1.4.6-1.4.8.php" hash="e1c0aed8b5cc3c144ba50f9526e4e9db"/><file name="mysql4-upgrade-1.4.6-1.4.9.php" hash="ce762f7b367d3863a388316faac149f9"/><file name="mysql4-upgrade-1.4.6-1.5.0.php" hash="a91ab00502b876e17256c9008d6dd1b1"/><file name="mysql4-upgrade-1.4.6-1.5.1.php" hash="ff0b66cd0bed5e90bf274e294868a33d"/><file name="mysql4-upgrade-1.4.6-1.5.2.php" hash="f62939d2af221050ca2ece04ed46a268"/><file name="mysql4-upgrade-1.4.6-1.5.3.php" hash="95dedae096f24b160766f6050f6340da"/><file name="mysql4-upgrade-1.4.6-1.5.4.php" hash="f9f7c5de04d399e50b2f1856ff45d26c"/><file name="mysql4-upgrade-1.4.6-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.4.7-1.4.8.php" hash="71cd3d81e624084012b41031083ced69"/><file name="mysql4-upgrade-1.4.7-1.4.9.php" hash="f527ac405e1d125f5b563f21cc353d7b"/><file name="mysql4-upgrade-1.4.7-1.5.0.php" hash="c6ba413e9cc5351636d0b9562aadbffb"/><file name="mysql4-upgrade-1.4.7-1.5.1.php" hash="b9a3fd5e294c4abd7ad2ff1f59b25c09"/><file name="mysql4-upgrade-1.4.7-1.5.2.php" hash="04d3c2d23d97553c42243f44a0c7f2df"/><file name="mysql4-upgrade-1.4.7-1.5.3.php" hash="6766e5e86baabe10c8681d61370aac49"/><file name="mysql4-upgrade-1.4.7-1.5.4.php" hash="a8842869b828d4538f6747e827aeb330"/><file name="mysql4-upgrade-1.4.7-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.4.8-1.4.9.php" hash="86e238979b954ca3512ec5dc0075df5a"/><file name="mysql4-upgrade-1.4.8-1.5.0.php" hash="e9b8f18afbd5e25f49c3364ee7299629"/><file name="mysql4-upgrade-1.4.8-1.5.1.php" hash="344cc2c701ebecfd7ee87f096948d205"/><file name="mysql4-upgrade-1.4.8-1.5.2.php" hash="c86769474260a650117e7c49ef6287bf"/><file name="mysql4-upgrade-1.4.8-1.5.3.php" hash="17d3d7632f5f8153fb2394e96fc8bee4"/><file name="mysql4-upgrade-1.4.8-1.5.4.php" hash="e717ce9458293506a38332b0f7c931a1"/><file name="mysql4-upgrade-1.4.8-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.4.9-1.5.0.php" hash="f2e6a9faccdbe7f37d1997ee3d1676bc"/><file name="mysql4-upgrade-1.4.9-1.5.1.php" hash="00e6081cdd6af44353e5c77aa9fd4f16"/><file name="mysql4-upgrade-1.4.9-1.5.2.php" hash="63566d24b780733f74dd102ac2812a54"/><file name="mysql4-upgrade-1.4.9-1.5.3.php" hash="009610663883bcf1fd57d5e8c52a4f18"/><file name="mysql4-upgrade-1.4.9-1.5.4.php" hash="2dc9be8536224d16393537fc6bc10215"/><file name="mysql4-upgrade-1.4.9-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.5.0-1.5.1.php" hash="b13cab4e8f540eafaed6d1b67c2d36fd"/><file name="mysql4-upgrade-1.5.0-1.5.2.php" hash="58de6132c6c20229c218f7dd6b63c517"/><file name="mysql4-upgrade-1.5.0-1.5.3.php" hash="7c279082cc7abb0059fd17efcb95743b"/><file name="mysql4-upgrade-1.5.0-1.5.4.php" hash="6ed1b0675d49e3c91b38c6480da16b74"/><file name="mysql4-upgrade-1.5.0-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.5.1-1.5.2.php" hash="ec30ce829fe0b8890a7ba5cfe4ad44f5"/><file name="mysql4-upgrade-1.5.1-1.5.3.php" hash="b9e80f15e9b6d348ca543ba1efac9b1e"/><file name="mysql4-upgrade-1.5.1-1.5.4.php" hash="98e09e4a3415c01a6a6ba2c95d4ab7e8"/><file name="mysql4-upgrade-1.5.1-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.5.2-1.5.3.php" hash="f0b50443003dd3d86adae3fe1d0df6a3"/><file name="mysql4-upgrade-1.5.2-1.5.4.php" hash="d4eedacc2a9762fe281859b9d7299a97"/><file name="mysql4-upgrade-1.5.2-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.5.3-1.5.4.php" hash="d12b6833f9855d4f9a57be0a233c4ba5"/><file name="mysql4-upgrade-1.5.3-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/><file name="mysql4-upgrade-1.5.4-1.5.5.php" hash="86ea222887a1dfcf363ff84735e904f5"/></dir></dir></dir></dir></target></contents>
34
  <compatible/>
35
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
36
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>mPAY24</name>
4
+ <version>1.5.6</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
26
  &#xD;
27
  &#xD;
28
  Weitere Informationen unter www.mPAY24.com</description>
29
+ <notes>1.Status bug fixing: initialize method used instead of authorize. &#xD;
30
+ &#xD;
31
+ 2.Template improvement: Frontend base package used instead of default.&#xD;
32
+ &#xD;
33
+ 3.IE 11 frontend template support added.&#xD;
34
+ &#xD;
35
+ 4.Payment Method discount bug fixed.&#xD;
36
+ &#xD;
37
+ 5.Default Styling added.&#xD;
38
+ </notes>
39
  <authors><author><name>Filipp Akinfiev</name><user>firedrago</user><email>firedrago.magento@gmail.com</email></author></authors>
40
+ <date>2015-02-09</date>
41
+ <time>10:48:20</time>
42
+ <contents><target name="magelocale"><dir name="de_AT"><file name="Mpay24_Mpay24.csv" hash="be5ba8435255f2b125788f1e513225fe"/></dir><dir name="de_DE"><file name="Mpay24_Mpay24.csv" hash="be5ba8435255f2b125788f1e513225fe"/></dir><dir name="de_CH"><file name="Mpay24_Mpay24.csv" hash="be5ba8435255f2b125788f1e513225fe"/></dir><dir name="en_US"><file name="Mpay24_Mpay24.csv" hash="dd7dc27a5f34809094689e0c7cfbf511"/></dir></target><target name="mageetc"><dir name="modules"><file name="Mpay24_Mpay24.xml" hash="c4240c748dddde41f3b843eea1307477"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="form"><file name="area.phtml" hash="1c17a0f8e794ea54624353bc6e8fcc6f"/><file name="dropDown.phtml" hash="0e1d4e2b3c014e0037a8428be5df99c5"/><file name="radio.phtml" hash="40675c11f9114261f8590e9f5faa7c00"/></dir><dir name="info"><file name="selectpayment.phtml" hash="9f3f3adbbdc18aba8710c6bdee2176a9"/></dir></dir></dir><dir name="layout"><file name="mpay24.xml" hash="92ba7cb97b6ce38c68dab60320dec9eb"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="info"><dir name="pdf"><file name="selectpayment.phtml" hash="72560f7d19995e6ad68ee6ed9ecb538a"/></dir><file name="selectpayment.phtml" hash="930025a984717c6be1a18d54d06ad9e1"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mpay24"><dir name="Mpay24"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="3370e076767f51aaf3a5e35564b64d7b"/></dir><dir name="Invoice"><file name="Totals.php" hash="45beeec6902eddd0a68d5d196c9c8993"/></dir><file name="Totals.php" hash="a9ea28f1c34c458ef346484a07a25ce4"/></dir><file name="Totals.php" hash="3e7a1e3c5e7beecf656708fb6ef451ba"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Fieldset.php" hash="6a32d04093ed17bd205049fc2c08a149"/></dir></dir></dir></dir><dir name="Form"><file name="Selectpayment.php" hash="d7c2782f8d5307a3fca856b44ced5af4"/></dir><file name="Form.php" hash="72f46c1cddecdb39cac90558ae3f8f34"/><dir name="Info"><file name="Selectpayment.php" hash="39c93c8c340083d48acec81987b7be29"/></dir><file name="Mpay24.php" hash="7cd507fba0979dc4f3eb937e37bc52ff"/><file name="ParentRedirect.php" hash="f99827ac084d828afdeeea9014933c57"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="1d10e5e7f3022b8b4e12ffaf9fa0b42d"/></dir><dir name="Invoice"><file name="Totals.php" hash="b531a8c77d11c6af8ff13807062c3a36"/></dir><file name="Totals.php" hash="6012cce58a706e6762c5624e52a6191b"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d02323e509bf1e693641a007e881d84a"/></dir><dir name="Model"><dir name="Api"><file name="MDXI.xsd" hash="632a64d7b4c62518dcbb451ed514edb9"/><file name="MPay24Api.php" hash="6f96a97da40b296db3aabdd6447985a5"/><file name="MPay24MagentoShop.php" hash="de23765bfce5ce95d287489b5c9e302c"/><file name="MPay24Shop.php" hash="e42d98233a8e32905f349fc7a006ef17"/><file name="cacert.pem" hash="b4bc508481b6291f414f4e6fd7e5d0a5"/><file name="curllog.log" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="orderXML.php" hash="704a162695cd9f540ca3123d0e7c6f12"/><dir name="xmls"><file name="Example_MDXI.xml" hash="dddd02e4cdc0905792c1a2a9f3681bfd"/></dir></dir><file name="Config.php" hash="3f24700f4a88009c8b288f0b28cdecc8"/><dir name="Entity"><file name="Setup.php" hash="b430870f5b30400666d49e872fcb1829"/></dir><dir name="Method"><file name="Abstract.php" hash="fc8ae6c60da3f92ad5a8f94e5f6685b3"/><file name="Selectpayment.php" hash="0adcb299abd53d7c683b8f5ebef37aae"/></dir><dir name="Mpay24"><file name="Debug.php" hash="0292a590e18f447302a567e4805cc395"/></dir><dir name="Mysql4"><dir name="Mpay24"><dir name="Debug"><file name="Collection.php" hash="8ad74bfe0138d89799966b0a5098b973"/></dir><file name="Debug.php" hash="92e0274bbf10e95551ee1b2ce32fe77f"/></dir><file name="Setup.php" hash="cfde4d0356acd80dfc7ab96eb6fbc435"/></dir><file name="Observer.php" hash="fee0d97f00f19ec06dc77ae0528fd152"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="Paymentcharge.php" hash="2a18a3056a29073476c71167b0123b65"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Paymentcharge.php" hash="0ac2ca2a09948eab7b5c29d3b167ed90"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Paymentcharge.php" hash="1a86b6bd8d2e1ef83f2f740fb6fa99d6"/></dir></dir></dir></dir><file name="Selectpayment.php" hash="a4ce18ae75aa766bc1ede368ef1625a4"/><file name="Session.php" hash="4b5004e1e1bb6eb411ff3462f0b01112"/><dir name="Source"><file name="AllowedIPs.php" hash="18da40de21159be4ac8be98909c5e284"/><file name="BillAddr.php" hash="80f771c682b65ed5f33eadfca86d6b58"/><file name="ClearingAction.php" hash="49c51df9cb1b1d444ac03437fc9d0a4d"/><file name="FormTemplate.php" hash="1231ad5dd8970b965ad39d82246b30a2"/><file name="PaidOrder.php" hash="ea962026625292782fd3830667419490"/><file name="PaymentCharge.php" hash="8f3f8b1548699bca5c63942e4c8916bb"/><file name="PaymentsActive.php" hash="408c0c11925732e2d6433d867d221d63"/><file name="Request.php" hash="89a5f1bc2c4984aaa2fdbe0e3e5e2b19"/><file name="Result.php" hash="85bafadd31d2f9da948721a8831f3d9e"/><file name="SOFORTState.php" hash="a16d4556b94f6a61312fc340af81a132"/><file name="ShoppingCartRowsAction.php" hash="bc66fc6256b192d6b113537a73211cf3"/><file name="System.php" hash="f6142277dfbdab3e0e71fb9814c24652"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Encrypted.php" hash="66086ea048550c72962e7690b9a1c768"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="8ede56cc97e53af699648fa65566a7c5"/><file name="PaymentController.php" hash="f1c8951f20ab43b49fcba035795061d7"/></dir><dir name="etc"><file name="config.xml" hash="30cd3c6df62455656ea512f9faab8920"/><file name="system.xml" hash="9db594bb4804c0ce465515e9f21297a3"/></dir><dir name="sql"><dir name="mpay24_setup"><file name="mysql4-install-1.5.6.php" hash="8d9fd18c79349bddc659fad52f8268a0"/><file name="mysql4-upgrade-1.5.0-1.5.1.php" hash="b13cab4e8f540eafaed6d1b67c2d36fd"/><file name="mysql4-upgrade-1.5.0-1.5.2.php" hash="58de6132c6c20229c218f7dd6b63c517"/><file name="mysql4-upgrade-1.5.0-1.5.3.php" hash="7c279082cc7abb0059fd17efcb95743b"/><file name="mysql4-upgrade-1.5.0-1.5.4.php" hash="6ed1b0675d49e3c91b38c6480da16b74"/><file name="mysql4-upgrade-1.5.0-1.5.5.php" hash="08e713f5dfe1052a80074379c2e825b4"/><file name="mysql4-upgrade-1.5.0-1.5.6.php" hash="d23a8de77b456dd9947d33ff340e73ef"/><file name="mysql4-upgrade-1.5.1-1.5.2.php" hash="ec30ce829fe0b8890a7ba5cfe4ad44f5"/><file name="mysql4-upgrade-1.5.1-1.5.3.php" hash="b9e80f15e9b6d348ca543ba1efac9b1e"/><file name="mysql4-upgrade-1.5.1-1.5.4.php" hash="98e09e4a3415c01a6a6ba2c95d4ab7e8"/><file name="mysql4-upgrade-1.5.1-1.5.5.php" hash="83f421852862b528296efcfb69478286"/><file name="mysql4-upgrade-1.5.1-1.5.6.php" hash="8f1676e7dc9745294055561da67777fd"/><file name="mysql4-upgrade-1.5.2-1.5.3.php" hash="f0b50443003dd3d86adae3fe1d0df6a3"/><file name="mysql4-upgrade-1.5.2-1.5.4.php" hash="d4eedacc2a9762fe281859b9d7299a97"/><file name="mysql4-upgrade-1.5.2-1.5.5.php" hash="d38edd4e064bb4d22b2156a6313accf0"/><file name="mysql4-upgrade-1.5.2-1.5.6.php" hash="62cd8ede70f69fca8c967535eaafb522"/><file name="mysql4-upgrade-1.5.3-1.5.4.php" hash="d12b6833f9855d4f9a57be0a233c4ba5"/><file name="mysql4-upgrade-1.5.3-1.5.5.php" hash="ed28b0437bdd6bb51397a092089a05a2"/><file name="mysql4-upgrade-1.5.3-1.5.6.php" hash="e97395aaa2b4ca62e805f9f7babc2c93"/><file name="mysql4-upgrade-1.5.4-1.5.5.php" hash="1c4f542ef99a0483ed65aa6b2b5c698a"/><file name="mysql4-upgrade-1.5.4-1.5.6.php" hash="b2318c532a0f245161cce4b24ab9c7ce"/><file name="mysql4-upgrade-1.5.5-1.5.6.php" hash="046f95cfef93bc42f9b7ae5252643a9c"/></dir></dir></dir></dir></target></contents>
43
  <compatible/>
44
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
45
  </package>