Phoenix_Moneybookers - Version 1.2.4

Version Notes

1.2.4

Download this release

Release Info

Developer Magento Core Team
Extension Phoenix_Moneybookers
Version 1.2.4
Comparing to
See all releases


Version 1.2.4

Files changed (88) hide show
  1. app/code/community/Phoenix/Moneybookers/Block/Form.php +93 -0
  2. app/code/community/Phoenix/Moneybookers/Block/Info.php +51 -0
  3. app/code/community/Phoenix/Moneybookers/Block/Jsinit.php +49 -0
  4. app/code/community/Phoenix/Moneybookers/Block/Payment.php +39 -0
  5. app/code/community/Phoenix/Moneybookers/Block/Placeform.php +67 -0
  6. app/code/community/Phoenix/Moneybookers/Block/Redirect.php +30 -0
  7. app/code/community/Phoenix/Moneybookers/Helper/Data.php +130 -0
  8. app/code/community/Phoenix/Moneybookers/Model/Abstract.php +208 -0
  9. app/code/community/Phoenix/Moneybookers/Model/Acc.php +27 -0
  10. app/code/community/Phoenix/Moneybookers/Model/Csi.php +27 -0
  11. app/code/community/Phoenix/Moneybookers/Model/Did.php +27 -0
  12. app/code/community/Phoenix/Moneybookers/Model/Dnk.php +27 -0
  13. app/code/community/Phoenix/Moneybookers/Model/Ebt.php +27 -0
  14. app/code/community/Phoenix/Moneybookers/Model/Ent.php +27 -0
  15. app/code/community/Phoenix/Moneybookers/Model/Event.php +254 -0
  16. app/code/community/Phoenix/Moneybookers/Model/Gcb.php +27 -0
  17. app/code/community/Phoenix/Moneybookers/Model/Gir.php +27 -0
  18. app/code/community/Phoenix/Moneybookers/Model/Idl.php +27 -0
  19. app/code/community/Phoenix/Moneybookers/Model/Lsr.php +27 -0
  20. app/code/community/Phoenix/Moneybookers/Model/Mae.php +27 -0
  21. app/code/community/Phoenix/Moneybookers/Model/Npy.php +27 -0
  22. app/code/community/Phoenix/Moneybookers/Model/Obt.php +27 -0
  23. app/code/community/Phoenix/Moneybookers/Model/Pli.php +27 -0
  24. app/code/community/Phoenix/Moneybookers/Model/Psp.php +27 -0
  25. app/code/community/Phoenix/Moneybookers/Model/Pwy.php +27 -0
  26. app/code/community/Phoenix/Moneybookers/Model/Sft.php +27 -0
  27. app/code/community/Phoenix/Moneybookers/Model/So2.php +27 -0
  28. app/code/community/Phoenix/Moneybookers/Model/Wlt.php +28 -0
  29. app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php +87 -0
  30. app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php +146 -0
  31. app/code/community/Phoenix/Moneybookers/etc/config.xml +305 -0
  32. app/code/community/Phoenix/Moneybookers/etc/system.xml +1201 -0
  33. app/code/community/Phoenix/Moneybookers/sql/moneybookers_setup/mysql4-upgrade-1.2-1.2.0.1.php +41 -0
  34. app/design/adminhtml/default/default/layout/moneybookers.xml +28 -0
  35. app/design/adminhtml/default/default/template/moneybookers/info.phtml +26 -0
  36. app/design/adminhtml/default/default/template/moneybookers/jsinit.phtml +37 -0
  37. app/design/adminhtml/default/default/template/moneybookers/pdf/info.phtml +24 -0
  38. app/design/frontend/base/default/layout/moneybookers.xml +41 -0
  39. app/design/frontend/base/default/template/moneybookers/blank.phtml +34 -0
  40. app/design/frontend/base/default/template/moneybookers/form.phtml +48 -0
  41. app/design/frontend/base/default/template/moneybookers/info.phtml +32 -0
  42. app/design/frontend/base/default/template/moneybookers/payment.phtml +39 -0
  43. app/design/frontend/base/default/template/moneybookers/placeform.phtml +42 -0
  44. app/design/frontend/base/default/template/moneybookers/redirect.phtml +29 -0
  45. app/etc/modules/Phoenix_Moneybookers.xml +29 -0
  46. app/locale/en_US/Phoenix_Moneybookers.csv +42 -0
  47. app/locale/en_US/template/email/moneybookers_activateemail.html +6 -0
  48. js/mage/adminhtml/moneybookers.js +162 -0
  49. package.xml +35 -0
  50. skin/adminhtml/default/default/images/moneybookers/banner.jpg +0 -0
  51. skin/frontend/base/default/images/moneybookers/banner_120_de.gif +0 -0
  52. skin/frontend/base/default/images/moneybookers/banner_120_de.png +0 -0
  53. skin/frontend/base/default/images/moneybookers/banner_120_dk.gif +0 -0
  54. skin/frontend/base/default/images/moneybookers/banner_120_fr.gif +0 -0
  55. skin/frontend/base/default/images/moneybookers/banner_120_fr.png +0 -0
  56. skin/frontend/base/default/images/moneybookers/banner_120_int.gif +0 -0
  57. skin/frontend/base/default/images/moneybookers/banner_120_int.png +0 -0
  58. skin/frontend/base/default/images/moneybookers/banner_120_pl.gif +0 -0
  59. skin/frontend/base/default/images/moneybookers/banner_120_pl.png +0 -0
  60. skin/frontend/base/default/images/moneybookers/banner_120_sp.gif +0 -0
  61. skin/frontend/base/default/images/moneybookers/banner_120_sp.png +0 -0
  62. skin/frontend/base/default/images/moneybookers/moneybookers_acc.png +0 -0
  63. skin/frontend/base/default/images/moneybookers/moneybookers_csi.gif +0 -0
  64. skin/frontend/base/default/images/moneybookers/moneybookers_did.gif +0 -0
  65. skin/frontend/base/default/images/moneybookers/moneybookers_dnk.gif +0 -0
  66. skin/frontend/base/default/images/moneybookers/moneybookers_ebt.gif +0 -0
  67. skin/frontend/base/default/images/moneybookers/moneybookers_ent.gif +0 -0
  68. skin/frontend/base/default/images/moneybookers/moneybookers_gcb.gif +0 -0
  69. skin/frontend/base/default/images/moneybookers/moneybookers_gir.gif +0 -0
  70. skin/frontend/base/default/images/moneybookers/moneybookers_idl.gif +0 -0
  71. skin/frontend/base/default/images/moneybookers/moneybookers_lsr.gif +0 -0
  72. skin/frontend/base/default/images/moneybookers/moneybookers_mae.gif +0 -0
  73. skin/frontend/base/default/images/moneybookers/moneybookers_npy.gif +0 -0
  74. skin/frontend/base/default/images/moneybookers/moneybookers_obt_de.png +0 -0
  75. skin/frontend/base/default/images/moneybookers/moneybookers_obt_dk.png +0 -0
  76. skin/frontend/base/default/images/moneybookers/moneybookers_obt_ee.png +0 -0
  77. skin/frontend/base/default/images/moneybookers/moneybookers_obt_en.png +0 -0
  78. skin/frontend/base/default/images/moneybookers/moneybookers_obt_fl.png +0 -0
  79. skin/frontend/base/default/images/moneybookers/moneybookers_obt_lt.png +0 -0
  80. skin/frontend/base/default/images/moneybookers/moneybookers_obt_lv.png +0 -0
  81. skin/frontend/base/default/images/moneybookers/moneybookers_obt_pl.png +0 -0
  82. skin/frontend/base/default/images/moneybookers/moneybookers_obt_se.png +0 -0
  83. skin/frontend/base/default/images/moneybookers/moneybookers_pli.gif +0 -0
  84. skin/frontend/base/default/images/moneybookers/moneybookers_psp.gif +0 -0
  85. skin/frontend/base/default/images/moneybookers/moneybookers_pwy.gif +0 -0
  86. skin/frontend/base/default/images/moneybookers/moneybookers_sft.gif +0 -0
  87. skin/frontend/base/default/images/moneybookers/moneybookers_so2.gif +0 -0
  88. skin/frontend/base/default/images/moneybookers/moneybookers_wlt.gif +0 -0
app/code/community/Phoenix/Moneybookers/Block/Form.php ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Block_Form extends Mage_Payment_Block_Form
21
+ {
22
+ /**
23
+ * Available locales for content URL generation
24
+ *
25
+ * @var array
26
+ */
27
+ protected $_supportedInfoLocales = array('de');
28
+
29
+ /**
30
+ * Default locale for content URL generation
31
+ *
32
+ * @var string
33
+ */
34
+ protected $_defaultInfoLocale = 'en';
35
+
36
+ /**
37
+ * Constructor. Set template.
38
+ */
39
+ protected function _construct()
40
+ {
41
+ parent::_construct();
42
+ $this->setTemplate('moneybookers/form.phtml');
43
+ }
44
+
45
+ /**
46
+ * Return payment logo image src
47
+ *
48
+ * @param string $payment Payment Code
49
+ * @return string|bool
50
+ */
51
+ public function getPaymentImageSrc($payment)
52
+ {
53
+ if ($payment == 'moneybookers_obt') {
54
+ $payment .= '_'.$this->getInfoLocale();
55
+ }
56
+
57
+ $imageFilename = Mage::getDesign()
58
+ ->getFilename('images' . DS . 'moneybookers' . DS . $payment, array('_type' => 'skin'));
59
+
60
+ if (file_exists($imageFilename . '.png')) {
61
+ return $this->getSkinUrl('images/moneybookers/' . $payment . '.png');
62
+ } else if (file_exists($imageFilename . '.gif')) {
63
+ return $this->getSkinUrl('images/moneybookers/' . $payment . '.gif');
64
+ }
65
+
66
+ return false;
67
+ }
68
+
69
+ /**
70
+ * Return supported locale for information text
71
+ *
72
+ * @return string
73
+ */
74
+ public function getInfoLocale()
75
+ {
76
+ $locale = substr(Mage::app()->getLocale()->getLocaleCode(), 0 ,2);
77
+ if (!in_array($locale, $this->_supportedInfoLocales)) {
78
+ $locale = $this->_defaultInfoLocale;
79
+ }
80
+ return $locale;
81
+ }
82
+
83
+ /**
84
+ * Return info URL for eWallet payment
85
+ *
86
+ * @return string
87
+ */
88
+ public function getWltInfoUrl()
89
+ {
90
+ $locale = substr(Mage::app()->getLocale()->getLocaleCode(), 0 ,2);
91
+ return 'http://www.moneybookers.com/app/?l=' . strtoupper($locale);
92
+ }
93
+ }
app/code/community/Phoenix/Moneybookers/Block/Info.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Block_Info extends Mage_Payment_Block_Info
21
+ {
22
+ /**
23
+ * Constructor. Set template.
24
+ */
25
+ protected function _construct()
26
+ {
27
+ parent::_construct();
28
+ $this->setTemplate('moneybookers/info.phtml');
29
+ }
30
+
31
+ /**
32
+ * Returns code of payment method
33
+ *
34
+ * @return string
35
+ */
36
+ public function getMethodCode()
37
+ {
38
+ return $this->getInfo()->getMethodInstance()->getCode();
39
+ }
40
+
41
+ /**
42
+ * Build PDF content of info block
43
+ *
44
+ * @return string
45
+ */
46
+ public function toPdf()
47
+ {
48
+ $this->setTemplate('moneybookers/pdf/info.phtml');
49
+ return $this->toHtml();
50
+ }
51
+ }
app/code/community/Phoenix/Moneybookers/Block/Jsinit.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Block_Jsinit extends Mage_Adminhtml_Block_Template
21
+ {
22
+ /**
23
+ * Include JS in head if section is moneybookers
24
+ */
25
+ protected function _prepareLayout()
26
+ {
27
+ $section = $this->getAction()->getRequest()->getParam('section', false);
28
+ if ($section == 'moneybookers') {
29
+ $this->getLayout()
30
+ ->getBlock('head')
31
+ ->addJs('mage/adminhtml/moneybookers.js');
32
+ }
33
+ parent::_prepareLayout();
34
+ }
35
+
36
+ /**
37
+ * Print init JS script into body
38
+ * @return string
39
+ */
40
+ protected function _toHtml()
41
+ {
42
+ $section = $this->getAction()->getRequest()->getParam('section', false);
43
+ if ($section == 'moneybookers') {
44
+ return parent::_toHtml();
45
+ } else {
46
+ return '';
47
+ }
48
+ }
49
+ }
app/code/community/Phoenix/Moneybookers/Block/Payment.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Block_Payment extends Mage_Core_Block_Template
21
+ {
22
+ /**
23
+ * Return Payment logo src
24
+ *
25
+ * @return string
26
+ */
27
+ public function getMoneybookersLogoSrc()
28
+ {
29
+ $locale = Mage::getModel('moneybookers/acc')->getLocale();
30
+ $logoFilename = Mage::getDesign()
31
+ ->getFilename('images' . DS . 'moneybookers' . DS . 'banner_120_' . $locale . '.gif', array('_type' => 'skin'));
32
+
33
+ if (file_exists($logoFilename)) {
34
+ return $this->getSkinUrl('images/moneybookers/banner_120_'.$locale.'.gif');
35
+ }
36
+
37
+ return $this->getSkinUrl('images/moneybookers/banner_120_int.gif');
38
+ }
39
+ }
app/code/community/Phoenix/Moneybookers/Block/Placeform.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Block_Placeform extends Mage_Core_Block_Template
21
+ {
22
+ /**
23
+ * Return checkout session instance
24
+ *
25
+ * @return Mage_Checkout_Model_Session
26
+ */
27
+ protected function _getCheckout()
28
+ {
29
+ return Mage::getSingleton('checkout/session');
30
+ }
31
+
32
+ /**
33
+ * Return order instance
34
+ *
35
+ * @return Mage_Sales_Model_Order|null
36
+ */
37
+ protected function _getOrder()
38
+ {
39
+ if ($this->getOrder()) {
40
+ return $this->getOrder();
41
+ } elseif ($orderIncrementId = $this->_getCheckout()->getLastRealOrderId()) {
42
+ return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
43
+ } else {
44
+ return null;
45
+ }
46
+ }
47
+
48
+ /**
49
+ * Get Form data by using ogone payment api
50
+ *
51
+ * @return array
52
+ */
53
+ public function getFormData()
54
+ {
55
+ return $this->_getOrder()->getPayment()->getMethodInstance()->getFormFields();
56
+ }
57
+
58
+ /**
59
+ * Getting gateway url
60
+ *
61
+ * @return string
62
+ */
63
+ public function getFormAction()
64
+ {
65
+ return $this->_getOrder()->getPayment()->getMethodInstance()->getUrl();
66
+ }
67
+ }
app/code/community/Phoenix/Moneybookers/Block/Redirect.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Block_Redirect extends Mage_Core_Block_Template
21
+ {
22
+ /**
23
+ * Constructor. Set template.
24
+ */
25
+ protected function _construct()
26
+ {
27
+ parent::_construct();
28
+ $this->setTemplate('moneybookers/redirect.phtml');
29
+ }
30
+ }
app/code/community/Phoenix/Moneybookers/Helper/Data.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Helper_Data extends Mage_Payment_Helper_Data
21
+ {
22
+ const XML_PATH_EMAIL = 'moneybookers/settings/moneybookers_email';
23
+ const XML_PATH_CUSTOMER_ID = 'moneybookers/settings/customer_id';
24
+ const XML_PATH_SECRET_KEY = 'moneybookers/settings/secret_key';
25
+
26
+ /**
27
+ * Internal parameters for validation
28
+ */
29
+ protected $_moneybookersServer = 'https://www.moneybookers.com';
30
+ protected $_checkEmailUrl = '/app/email_check.pl';
31
+ protected $_checkEmailCustId = '6999315';
32
+ protected $_checkEmailPassword = 'a4ce5a98a8950c04a3d34a2e2cb8c89f';
33
+ protected $_checkSecretUrl = '/app/secret_word_check.pl';
34
+ protected $_activationEmailTo = 'ecommerce@moneybookers.com';
35
+ protected $_activationEmailSubject = 'Magento Moneybookers Activation';
36
+ protected $_moneybookersMasterCustId = '7283403';
37
+ protected $_moneybookersMasterSecretHash = 'c18524b6b1082653039078a4700367f0';
38
+
39
+ /**
40
+ * Send activation Email to Moneybookers
41
+ */
42
+ public function activateEmail()
43
+ {
44
+ $storeId = Mage::app()->getStore()->getId();
45
+
46
+ $translate = Mage::getSingleton('core/translate');
47
+ /* @var $translate Mage_Core_Model_Translate */
48
+ $translate->setTranslateInline(false);
49
+
50
+ Mage::getModel('core/email_template')
51
+ ->setDesignConfig(array('area' => 'frontend', 'store' => $storeId))
52
+ ->sendTransactional(
53
+ 'moneybookers_activateemail',
54
+ Mage::getStoreConfig(Mage_Sales_Model_Order::XML_PATH_EMAIL_IDENTITY, $storeId),
55
+ $this->_activationEmailTo,
56
+ null,
57
+ array(
58
+ 'subject' => $this->_activationEmailSubject,
59
+ 'email_addr' => Mage::getStoreConfig(self::XML_PATH_EMAIL),
60
+ 'url' => Mage::getBaseUrl(),
61
+ 'customer_id' => Mage::getStoreConfig(self::XML_PATH_CUSTOMER_ID),
62
+ 'language' => Mage::getModel('core/locale')->getDefaultLocale()
63
+ )
64
+ );
65
+
66
+ $translate->setTranslateInline(true);
67
+ }
68
+
69
+ /**
70
+ * Check if email is registered at Moneybookers
71
+ *
72
+ * @param array $params
73
+ * @return array
74
+ */
75
+ public function checkEmailRequest(Array $params) {
76
+ $response = null;
77
+ try {
78
+ $response = $this->_getHttpsPage($this->_moneybookersServer . $this->_checkEmailUrl, array(
79
+ 'email' => $params['email'],
80
+ 'cust_id' => $this->_checkEmailCustId,
81
+ 'password' => $this->_checkEmailPassword)
82
+ );
83
+ } catch (Exception $e) {
84
+ Mage::log($e->getMessage());
85
+ return null;
86
+ }
87
+ return $response;
88
+ }
89
+
90
+ /**
91
+ * Check if entered secret is valid
92
+ * @param array $params
93
+ * @return array
94
+ */
95
+ public function checkSecretRequest(Array $params)
96
+ {
97
+ $response = null;
98
+ try {
99
+ $response = $this->_getHttpsPage($this->_moneybookersServer . $this->_checkSecretUrl, array(
100
+ 'email' => $params['email'],
101
+ 'secret' => md5(md5($params['secret']) . $this->_moneybookersMasterSecretHash),
102
+ 'cust_id' => $this->_moneybookersMasterCustId)
103
+ );
104
+ } catch (Exception $e) {
105
+ Mage::log($e->getMessage());
106
+ return null;
107
+ }
108
+ return $response;
109
+ }
110
+
111
+ /**
112
+ * Reading a page via HTTPS and returning its content.
113
+ */
114
+ protected function _getHttpsPage($host, $parameter)
115
+ {
116
+ $client = new Varien_Http_Client();
117
+ $client->setUri($host)
118
+ ->setConfig(array('timeout' => 30))
119
+ ->setHeaders('accept-encoding', '')
120
+ ->setParameterGet($parameter)
121
+ ->setMethod(Zend_Http_Client::GET);
122
+ $request = $client->request();
123
+ // Workaround for pseudo chunked messages which are yet too short, so
124
+ // only an exception is is thrown instead of returning raw body
125
+ if (!preg_match("/^([\da-fA-F]+)[^\r\n]*\r\n/sm", $request->getRawBody(), $m))
126
+ return $request->getRawBody();
127
+
128
+ return $request->getBody();
129
+ }
130
+ }
app/code/community/Phoenix/Moneybookers/Model/Abstract.php ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ abstract class Phoenix_Moneybookers_Model_Abstract extends Mage_Payment_Model_Method_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_abstract';
26
+
27
+ protected $_formBlockType = 'moneybookers/form';
28
+ protected $_infoBlockType = 'moneybookers/info';
29
+
30
+ /**
31
+ * Availability options
32
+ */
33
+ protected $_isGateway = true;
34
+ protected $_canAuthorize = true;
35
+ protected $_canCapture = true;
36
+ protected $_canCapturePartial = false;
37
+ protected $_canRefund = false;
38
+ protected $_canVoid = false;
39
+ protected $_canUseInternal = false;
40
+ protected $_canUseCheckout = true;
41
+ protected $_canUseForMultishipping = false;
42
+
43
+ protected $_paymentMethod = 'abstract';
44
+ protected $_defaultLocale = 'en';
45
+ protected $_supportedLocales = array('cn', 'cz', 'da', 'en', 'es', 'fi', 'de', 'fr', 'gr', 'it', 'nl', 'ro', 'ru', 'pl', 'sv', 'tr');
46
+ protected $_hidelogin = '1';
47
+
48
+ protected $_order;
49
+
50
+ /**
51
+ * Get order model
52
+ *
53
+ * @return Mage_Sales_Model_Order
54
+ */
55
+ public function getOrder()
56
+ {
57
+ if (!$this->_order) {
58
+ $this->_order = $this->getInfoInstance()->getOrder();
59
+ }
60
+ return $this->_order;
61
+ }
62
+
63
+ /**
64
+ * Return url for redirection after order placed
65
+ * @return string
66
+ */
67
+ public function getOrderPlaceRedirectUrl()
68
+ {
69
+ return Mage::getUrl('moneybookers/processing/payment');
70
+ }
71
+
72
+ /**
73
+ * Capture payment through Moneybookers api
74
+ *
75
+ * @param Varien_Object $payment
76
+ * @param decimal $amount
77
+ * @return Phoenix_Moneybookers_Model_Abstract
78
+ */
79
+ public function capture(Varien_Object $payment, $amount)
80
+ {
81
+ $payment->setStatus(self::STATUS_APPROVED)
82
+ ->setTransactionId($this->getTransactionId())
83
+ ->setIsTransactionClosed(0);
84
+
85
+ return $this;
86
+ }
87
+
88
+ /**
89
+ * Camcel payment
90
+ *
91
+ * @param Varien_Object $payment
92
+ * @return Phoenix_Moneybookers_Model_Abstract
93
+ */
94
+ public function cancel(Varien_Object $payment)
95
+ {
96
+ $payment->setStatus(self::STATUS_DECLINED)
97
+ ->setTransactionId($this->getTransactionId())
98
+ ->setIsTransactionClosed(1);
99
+
100
+ return $this;
101
+ }
102
+
103
+ /**
104
+ * Return url of payment method
105
+ *
106
+ * @return string
107
+ */
108
+ public function getUrl()
109
+ {
110
+ return 'https://www.moneybookers.com/app/payment.pl';
111
+ }
112
+
113
+ /**
114
+ * Return url of payment method
115
+ *
116
+ * @return string
117
+ */
118
+ public function getLocale()
119
+ {
120
+ $locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
121
+ if (is_array($locale) && !empty($locale) && in_array($locale[0], $this->_supportedLocales)) {
122
+ return $locale[0];
123
+ }
124
+ return $this->getDefaultLocale();
125
+ }
126
+
127
+ /**
128
+ * prepare params array to send it to gateway page via POST
129
+ *
130
+ * @return array
131
+ */
132
+ public function getFormFields()
133
+ {
134
+ $order_id = $this->getOrder()->getRealOrderId();
135
+ $billing = $this->getOrder()->getBillingAddress();
136
+ if ($this->getOrder()->getBillingAddress()->getEmail()) {
137
+ $email = $this->getOrder()->getBillingAddress()->getEmail();
138
+ } else {
139
+ $email = $this->getOrder()->getCustomerEmail();
140
+ }
141
+
142
+ $params = array(
143
+ 'merchant_fields' => 'partner',
144
+ 'partner' => 'magento',
145
+ 'pay_to_email' => Mage::getStoreConfig(Phoenix_Moneybookers_Helper_Data::XML_PATH_EMAIL),
146
+ 'transaction_id' => $order_id,
147
+ 'return_url' => Mage::getUrl('moneybookers/processing/success', array('transaction_id' => $order_id)),
148
+ 'cancel_url' => Mage::getUrl('moneybookers/processing/cancel', array('transaction_id' => $order_id)),
149
+ 'status_url' => Mage::getUrl('moneybookers/processing/status'),
150
+ 'language' => $this->getLocale(),
151
+ 'amount' => round($this->getOrder()->getGrandTotal(), 2),
152
+ 'currency' => $this->getOrder()->getOrderCurrencyCode(),
153
+ 'recipient_description' => $this->getOrder()->getStore()->getWebsite()->getName(),
154
+ 'firstname' => $billing->getFirstname(),
155
+ 'lastname' => $billing->getLastname(),
156
+ 'address' => $billing->getStreet(-1),
157
+ 'postal_code' => $billing->getPostcode(),
158
+ 'city' => $billing->getCity(),
159
+ 'country' => $billing->getCountryModel()->getIso3Code(),
160
+ 'pay_from_email' => $email,
161
+ 'phone_number' => $billing->getTelephone(),
162
+ 'detail1_description' => Mage::helper('moneybookers')->__('Order ID'),
163
+ 'detail1_text' => $order_id,
164
+ 'payment_methods' => $this->_paymentMethod,
165
+ 'hide_login' => $this->_hidelogin,
166
+ 'new_window_redirect' => '1'
167
+ );
168
+
169
+ // add optional day of birth
170
+ if ($billing->getDob()) {
171
+ $params['date_of_birth'] = Mage::app()->getLocale()->date($billing->getDob(), null, null, false)->toString('dmY');
172
+ }
173
+
174
+ return $params;
175
+ }
176
+ /**
177
+ * Get initialized flag status
178
+ * @return true
179
+ */
180
+ public function isInitializeNeeded()
181
+ {
182
+ return true;
183
+ }
184
+
185
+ /**
186
+ * Instantiate state and set it to state onject
187
+ * //@param
188
+ * //@param
189
+ */
190
+ public function initialize($paymentAction, $stateObject)
191
+ {
192
+ $state = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
193
+ $stateObject->setState($state);
194
+ $stateObject->setStatus(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT);
195
+ $stateObject->setIsNotified(false);
196
+ }
197
+
198
+ /**
199
+ * Get config action to process initialization
200
+ *
201
+ * @return string
202
+ */
203
+ public function getConfigPaymentAction()
204
+ {
205
+ $paymentAction = $this->getConfigData('payment_action');
206
+ return empty($paymentAction) ? true : $paymentAction;
207
+ }
208
+ }
app/code/community/Phoenix/Moneybookers/Model/Acc.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Acc extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_acc';
26
+ protected $_paymentMethod = 'ACC';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Csi.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Csi extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_csi';
26
+ protected $_paymentMethod = 'CSI';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Did.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Did extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_did';
26
+ protected $_paymentMethod = 'DID';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Dnk.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Dnk extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_dnk';
26
+ protected $_paymentMethod = 'DNK';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Ebt.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Ebt extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_ebt';
26
+ protected $_paymentMethod = 'EBT';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Ent.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Ent extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_ent';
26
+ protected $_paymentMethod = 'ENT';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Event.php ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ /**
22
+ * Moneybookers notification processor model
23
+ */
24
+ class Phoenix_Moneybookers_Model_Event
25
+ {
26
+ const MONEYBOOKERS_STATUS_FAIL = -2;
27
+ const MONEYBOOKERS_STATUS_CANCEL = -1;
28
+ const MONEYBOOKERS_STATUS_PENDING = 0;
29
+ const MONEYBOOKERS_STATUS_SUCCESS = 2;
30
+
31
+ /*
32
+ * @param Mage_Sales_Model_Order
33
+ */
34
+ protected $_order = null;
35
+
36
+ /**
37
+ * Event request data
38
+ * @var array
39
+ */
40
+ protected $_eventData = array();
41
+
42
+ /**
43
+ * Enent request data setter
44
+ * @param array $data
45
+ * @return Phoenix_Moneybookers_Model_Event
46
+ */
47
+ public function setEventData(array $data)
48
+ {
49
+ $this->_eventData = $data;
50
+ return $this;
51
+ }
52
+
53
+ /**
54
+ * Event request data getter
55
+ * @param string $key
56
+ * @return array|string
57
+ */
58
+ public function getEventData($key = null)
59
+ {
60
+ if (null === $key) {
61
+ return $this->_eventData;
62
+ }
63
+ return isset($this->_eventData[$key]) ? $this->_eventData[$key] : null;
64
+ }
65
+
66
+ /**
67
+ * Get singleton of Checkout Session Model
68
+ *
69
+ * @return Mage_Checkout_Model_Session
70
+ */
71
+ protected function _getCheckout()
72
+ {
73
+ return Mage::getSingleton('checkout/session');
74
+ }
75
+
76
+ /**
77
+ * Process status notification from Monebookers server
78
+ *
79
+ * @return String
80
+ */
81
+ public function processStatusEvent()
82
+ {
83
+ try {
84
+ $params = $this->_validateEventData();
85
+ $msg = '';
86
+ switch($params['status']) {
87
+ case self::MONEYBOOKERS_STATUS_FAIL: //fail
88
+ $msg = Mage::helper('moneybookers')->__('Payment failed.');
89
+ $this->_processCancel($msg);
90
+ break;
91
+ case self::MONEYBOOKERS_STATUS_CANCEL: //cancel
92
+ $msg = Mage::helper('moneybookers')->__('Payment was canceled.');
93
+ $this->_processCancel($msg);
94
+ break;
95
+ case self::MONEYBOOKERS_STATUS_PENDING: //pending
96
+ $msg = Mage::helper('moneybookers')->__('Pending bank transfer created.');
97
+ $this->_processSale($params['status'], $msg);
98
+ break;
99
+ case self::MONEYBOOKERS_STATUS_SUCCESS: //ok
100
+ $msg = Mage::helper('moneybookers')->__('The amount has been authorized and captured by Moneybookers.');
101
+ $this->_processSale($params['status'], $msg);
102
+ break;
103
+ }
104
+ return $msg;
105
+ } catch (Mage_Core_Exception $e) {
106
+ return $e->getMessage();
107
+ } catch(Exception $e) {
108
+ Mage::logException($e);
109
+ }
110
+ return;
111
+ }
112
+
113
+ /**
114
+ * Process cancelation
115
+ */
116
+ public function cancelEvent() {
117
+ try {
118
+ $this->_validateEventData(false);
119
+ $this->_processCancel('Payment was canceled.');
120
+ return Mage::helper('moneybookers')->__('The order has been canceled.');
121
+ } catch (Mage_Core_Exception $e) {
122
+ return $e->getMessage();
123
+ } catch(Exception $e) {
124
+ Mage::logException($e);
125
+ }
126
+ return '';
127
+ }
128
+
129
+ /**
130
+ * Validate request and return QuoteId
131
+ * Can throw Mage_Core_Exception and Exception
132
+ *
133
+ * @return int
134
+ */
135
+ public function successEvent(){
136
+ $this->_validateEventData(false);
137
+ return $this->_order->getQuoteId();
138
+ }
139
+
140
+ /**
141
+ * Processed order cancelation
142
+ * @param string $msg Order history message
143
+ */
144
+ protected function _processCancel($msg)
145
+ {
146
+ $this->_order->cancel();
147
+ $this->_order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CANCELED, $msg);
148
+ $this->_order->save();
149
+ }
150
+
151
+ /**
152
+ * Processes payment confirmation, creates invoice if necessary, updates order status,
153
+ * sends order confirmation to customer
154
+ * @param string $msg Order history message
155
+ */
156
+ protected function _processSale($status, $msg)
157
+ {
158
+ switch ($status) {
159
+ case self::MONEYBOOKERS_STATUS_SUCCESS:
160
+ $this->_createInvoice();
161
+ $this->_order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true, $msg);
162
+ // save transaction ID
163
+ $this->_order->getPayment()->setLastTransId($this->getEventData('mb_transaction_id'));
164
+ // send new order email
165
+ $this->_order->sendNewOrderEmail();
166
+ $this->_order->setEmailSent(true);
167
+ break;
168
+ case self::MONEYBOOKERS_STATUS_PENDING:
169
+ $this->_order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $msg);
170
+ // save transaction ID
171
+ $this->_order->getPayment()->setLastTransId($this->getEventData('mb_transaction_id'));
172
+ break;
173
+ }
174
+ $this->_order->save();
175
+ }
176
+
177
+ /**
178
+ * Builds invoice for order
179
+ */
180
+ protected function _createInvoice()
181
+ {
182
+ if (!$this->_order->canInvoice()) {
183
+ return;
184
+ }
185
+ $invoice = $this->_order->prepareInvoice();
186
+ $invoice->register()->capture();
187
+ $this->_order->addRelatedObject($invoice);
188
+ }
189
+
190
+ /**
191
+ * Checking returned parameters
192
+ * Thorws Mage_Core_Exception if error
193
+ * @param bool $fullCheck Whether to make additional validations such as payment status, transaction signature etc.
194
+ *
195
+ * @return array $params request params
196
+ */
197
+ protected function _validateEventData($fullCheck = true)
198
+ {
199
+ // get request variables
200
+ $params = $this->_eventData;
201
+ if (empty($params)) {
202
+ Mage::throwException('Request does not contain any elements.');
203
+ }
204
+
205
+ // check order ID
206
+ if (empty($params['transaction_id'])
207
+ || ($fullCheck == false && $this->_getCheckout()->getMoneybookersRealOrderId() != $params['transaction_id']))
208
+ {
209
+ Mage::throwException('Missing or invalid order ID.');
210
+ }
211
+ // load order for further validation
212
+ $this->_order = Mage::getModel('sales/order')->loadByIncrementId($params['transaction_id']);
213
+ if (!$this->_order->getId())
214
+ Mage::throwException('Order not found.');
215
+
216
+ // make additional validation
217
+ if ($fullCheck) {
218
+ // check payment status
219
+ if (empty($params['status'])) {
220
+ Mage::throwException('Unknown payment status.');
221
+ }
222
+
223
+ // check transaction signature
224
+ if (empty($params['md5sig'])) {
225
+ Mage::throwException('Invalid transaction signature.');
226
+ }
227
+
228
+ $checkParams = array('merchant_id', 'transaction_id', 'secret', 'mb_amount', 'mb_currency', 'status');
229
+ $md5String = '';
230
+ foreach ($checkParams as $key) {
231
+ if ($key == 'merchant_id') {
232
+ $md5String .= Mage::getStoreConfig(Phoenix_Moneybookers_Helper_Data::XML_PATH_CUSTOMER_ID, $this->_order->getStoreId());
233
+ } elseif ($key == 'secret') {
234
+ $md5String .= strtoupper(md5(Mage::getStoreConfig(Phoenix_Moneybookers_Helper_Data::XML_PATH_SECRET_KEY, $this->_order->getStoreId())));
235
+ } elseif (isset($params[$key])) {
236
+ $md5String .= $params[$key];
237
+ }
238
+ }
239
+ $md5String = strtoupper(md5($md5String));
240
+
241
+ if ($md5String != $params['md5sig']) {
242
+ Mage::throwException('Hash is not valid.');
243
+ }
244
+
245
+ // check transaction amount if currency matches
246
+ if ($this->_order->getOrderCurrencyCode() == $params['mb_currency']) {
247
+ if (round($this->_order->getGrandTotal(), 2) != $params['mb_amount']) {
248
+ Mage::throwException('Transaction amount does not match.');
249
+ }
250
+ }
251
+ }
252
+ return $params;
253
+ }
254
+ }
app/code/community/Phoenix/Moneybookers/Model/Gcb.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Gcb extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_gcb';
26
+ protected $_paymentMethod = 'GCB';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Gir.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Gir extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_gir';
26
+ protected $_paymentMethod = 'GIR';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Idl.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Idl extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_idl';
26
+ protected $_paymentMethod = 'IDL';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Lsr.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Lsr extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_lsr';
26
+ protected $_paymentMethod = 'LSR';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Mae.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Mae extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_mae';
26
+ protected $_paymentMethod = 'MAE';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Npy.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Npy extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_npy';
26
+ protected $_paymentMethod = 'NPY';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Obt.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Obt extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_obt';
26
+ protected $_paymentMethod = 'OBT';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Pli.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Pli extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_pli';
26
+ protected $_paymentMethod = 'PLI';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Psp.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Psp extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_psp';
26
+ protected $_paymentMethod = 'PSP';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Pwy.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Pwy extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_pwy';
26
+ protected $_paymentMethod = 'PWY';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Sft.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Sft extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_sft';
26
+ protected $_paymentMethod = 'SFT';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/So2.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_So2 extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_so2';
26
+ protected $_paymentMethod = 'SO2';
27
+ }
app/code/community/Phoenix/Moneybookers/Model/Wlt.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_Model_Wlt extends Phoenix_Moneybookers_Model_Abstract
21
+ {
22
+ /**
23
+ * unique internal payment method identifier
24
+ */
25
+ protected $_code = 'moneybookers_wlt';
26
+ protected $_paymentMethod = 'WLT';
27
+ protected $_hidelogin = '0';
28
+ }
app/code/community/Phoenix/Moneybookers/controllers/MoneybookersController.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_MoneybookersController extends Mage_Adminhtml_Controller_Action
21
+ {
22
+ /**
23
+ * Retrieve Moneybookers helper
24
+ *
25
+ * @return Phoenix_Moneybookers_Helper_Data
26
+ */
27
+ protected function _getHelper()
28
+ {
29
+ return Mage::helper('moneybookers');
30
+ }
31
+
32
+ /**
33
+ * Send activation Email to Moneybookers
34
+ */
35
+ public function activateemailAction()
36
+ {
37
+ $this->_getHelper()->activateEmail();
38
+ }
39
+
40
+ /**
41
+ * Check if email is registered at Moneybookers
42
+ */
43
+ public function checkemailAction()
44
+ {
45
+ try {
46
+ $params = $this->getRequest()->getParams();
47
+ if (empty($params['email'])) {
48
+ Mage::throwException('Error: No parameters specified');
49
+ }
50
+ $response = $this->_getHelper()->checkEmailRequest($params);
51
+ if (empty($response)) {
52
+ Mage::throwException('Error: Connection to moneybookers.com failed');
53
+ }
54
+ $this->getResponse()->setBody($response);
55
+ return;
56
+ } catch (Mage_Core_Exception $e) {
57
+ $response = $e->getMessage();
58
+ } catch (Exception $e) {
59
+ $response = 'Error: System error during request';
60
+ }
61
+ $this->getResponse()->setBody($response);
62
+ }
63
+
64
+ /**
65
+ * Check if entered secret is valid
66
+ */
67
+ public function checksecretAction()
68
+ {
69
+ try {
70
+ $params = $this->getRequest()->getParams();
71
+ if (empty($params['email']) || empty($params['secret'])) {
72
+ Mage::throwException('Error: No parameters specified');
73
+ }
74
+ $response = $this->_getHelper()->checkSecretRequest($params);
75
+ if (empty($response)) {
76
+ Mage::throwException('Error: Connection to moneybookers.com failed');
77
+ }
78
+ $this->getResponse()->setBody($response);
79
+ return;
80
+ } catch (Mage_Core_Exception $e) {
81
+ $response = $e->getMessage();
82
+ } catch (Exception $e) {
83
+ $response = 'Error: System error during request';
84
+ }
85
+ $this->getResponse()->setBody($response);
86
+ }
87
+ }
app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Phoenix_Moneybookers_ProcessingController extends Mage_Core_Controller_Front_Action
21
+ {
22
+ /**
23
+ * Get singleton of Checkout Session Model
24
+ *
25
+ * @return Mage_Checkout_Model_Session
26
+ */
27
+ protected function _getCheckout()
28
+ {
29
+ return Mage::getSingleton('checkout/session');
30
+ }
31
+
32
+ /**
33
+ * Iframe page which submits the payment data to Moneybookers.
34
+ */
35
+ public function placeformAction()
36
+ {
37
+ $this->loadLayout();
38
+ $this->renderLayout();
39
+ }
40
+
41
+ /**
42
+ * Show orderPlaceRedirect page which contains the Moneybookers iframe.
43
+ */
44
+ public function paymentAction()
45
+ {
46
+ try {
47
+ $session = $this->_getCheckout();
48
+
49
+ $order = Mage::getModel('sales/order');
50
+ $order->loadByIncrementId($session->getLastRealOrderId());
51
+ if (!$order->getId()) {
52
+ Mage::throwException('No order for processing found');
53
+ }
54
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage_Sales_Model_Order::STATE_PENDING_PAYMENT,
55
+ Mage::helper('moneybookers')->__('The customer was redirected to Moneybookers.')
56
+ );
57
+ $order->save();
58
+
59
+ $session->setMoneybookersQuoteId($session->getQuoteId());
60
+ $session->setMoneybookersRealOrderId($session->getLastRealOrderId());
61
+ $session->getQuote()->setIsActive(false)->save();
62
+ $session->clear();
63
+
64
+ $this->loadLayout();
65
+ $this->renderLayout();
66
+ } catch (Exception $e){
67
+ Mage::logException($e);
68
+ parent::_redirect('checkout/cart');
69
+ }
70
+ }
71
+
72
+ /**
73
+ * Action to which the customer will be returned when the payment is made.
74
+ */
75
+ public function successAction()
76
+ {
77
+ $event = Mage::getModel('moneybookers/event')
78
+ ->setEventData($this->getRequest()->getParams());
79
+ try {
80
+ $quoteId = $event->successEvent();
81
+ $this->_getCheckout()->setLastSuccessQuoteId($quoteId);
82
+ $this->_redirect('checkout/onepage/success');
83
+ return;
84
+ } catch (Mage_Core_Exception $e) {
85
+ $this->_getCheckout()->addError($e->getMessage());
86
+ } catch(Exception $e) {
87
+ Mage::logException($e);
88
+ }
89
+ $this->_redirect('checkout/cart');
90
+ }
91
+
92
+ /**
93
+ * Action to which the customer will be returned if the payment process is
94
+ * cancelled.
95
+ * Cancel order and redirect user to the shopping cart.
96
+ */
97
+ public function cancelAction()
98
+ {
99
+ $event = Mage::getModel('moneybookers/event')
100
+ ->setEventData($this->getRequest()->getParams());
101
+ $message = $event->cancelEvent();
102
+
103
+ // set quote to active
104
+ $session = $this->_getCheckout();
105
+ if ($quoteId = $session->getMoneybookersQuoteId()) {
106
+ $quote = Mage::getModel('sales/quote')->load($quoteId);
107
+ if ($quote->getId()) {
108
+ $quote->setIsActive(true)->save();
109
+ $session->setQuoteId($quoteId);
110
+ }
111
+ }
112
+
113
+ $session->addError($message);
114
+ $this->_redirect('checkout/cart');
115
+ }
116
+
117
+ /**
118
+ * Action to which the transaction details will be posted after the payment
119
+ * process is complete.
120
+ */
121
+ public function statusAction()
122
+ {
123
+ $event = Mage::getModel('moneybookers/event')
124
+ ->setEventData($this->getRequest()->getParams());
125
+ $message = $event->processStatusEvent();
126
+ $this->getResponse()->setBody($message);
127
+ }
128
+
129
+ /**
130
+ * Set redirect into responce. This has to be encapsulated in an JavaScript
131
+ * call to jump out of the iframe.
132
+ *
133
+ * @param string $path
134
+ * @param array $arguments
135
+ */
136
+ protected function _redirect($path, $arguments=array())
137
+ {
138
+ $this->getResponse()->setBody(
139
+ $this->getLayout()
140
+ ->createBlock('moneybookers/redirect')
141
+ ->setRedirectUrl(Mage::getUrl($path, $arguments))
142
+ ->toHtml()
143
+ );
144
+ return $this;
145
+ }
146
+ }
app/code/community/Phoenix/Moneybookers/etc/config.xml ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Phoenix
17
+ * @package Phoenix_Moneybookers
18
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ -->
22
+ <config>
23
+ <modules>
24
+ <Phoenix_Moneybookers>
25
+ <version>1.2.0.1</version>
26
+ </Phoenix_Moneybookers>
27
+ </modules>
28
+ <global>
29
+ <models>
30
+ <moneybookers>
31
+ <class>Phoenix_Moneybookers_Model</class>
32
+ </moneybookers>
33
+ </models>
34
+ <helpers>
35
+ <moneybookers>
36
+ <class>Phoenix_Moneybookers_Helper</class>
37
+ </moneybookers>
38
+ </helpers>
39
+ <resources>
40
+ <moneybookers_setup>
41
+ <setup>
42
+ <module>Phoenix_Moneybookers</module>
43
+ </setup>
44
+ </moneybookers_setup>
45
+ </resources>
46
+ <blocks>
47
+ <moneybookers><class>Phoenix_Moneybookers_Block</class></moneybookers>
48
+ </blocks>
49
+ <template>
50
+ <email>
51
+ <moneybookers_activateemail>
52
+ <label>Moneybookers activate email</label>
53
+ <file>moneybookers_activateemail.html</file>
54
+ <type>html</type>
55
+ </moneybookers_activateemail>
56
+ </email>
57
+ </template>
58
+ <payment>
59
+ <groups>
60
+ <mbookers>Moneybookers</mbookers>
61
+ </groups>
62
+ </payment>
63
+ </global>
64
+ <frontend>
65
+ <secure_url>
66
+ <moneybookers_processing>/moneybookers/processing</moneybookers_processing>
67
+ </secure_url>
68
+ <routers>
69
+ <moneybookers>
70
+ <use>standard</use>
71
+ <args>
72
+ <module>Phoenix_Moneybookers</module>
73
+ <frontName>moneybookers</frontName>
74
+ </args>
75
+ </moneybookers>
76
+ </routers>
77
+ <translate>
78
+ <modules>
79
+ <Phoenix_Moneybookers>
80
+ <files>
81
+ <default>Phoenix_Moneybookers.csv</default>
82
+ </files>
83
+ </Phoenix_Moneybookers>
84
+ </modules>
85
+ </translate>
86
+ <layout>
87
+ <updates>
88
+ <moneybookers>
89
+ <file>moneybookers.xml</file>
90
+ </moneybookers>
91
+ </updates>
92
+ </layout>
93
+ </frontend>
94
+ <admin>
95
+ <routers>
96
+ <adminhtml>
97
+ <args>
98
+ <modules>
99
+ <moneybookers after="Mage_Adminhtml">Phoenix_Moneybookers</moneybookers>
100
+ </modules>
101
+ </args>
102
+ </adminhtml>
103
+ </routers>
104
+ </admin>
105
+ <adminhtml>
106
+ <translate>
107
+ <modules>
108
+ <Phoenix_Moneybookers>
109
+ <files>
110
+ <default>Phoenix_Moneybookers.csv</default>
111
+ </files>
112
+ </Phoenix_Moneybookers>
113
+ </modules>
114
+ </translate>
115
+ <layout>
116
+ <updates>
117
+ <moneybookers>
118
+ <file>moneybookers.xml</file>
119
+ </moneybookers>
120
+ </updates>
121
+ </layout>
122
+ <acl>
123
+ <resources>
124
+ <admin>
125
+ <children>
126
+ <system>
127
+ <children>
128
+ <config>
129
+ <children>
130
+ <moneybookers translate="title" module="moneybookers">
131
+ <title>Moneybookers Settings</title>
132
+ </moneybookers>
133
+ </children>
134
+ </config>
135
+ </children>
136
+ </system>
137
+ </children>
138
+ </admin>
139
+ </resources>
140
+ </acl>
141
+ </adminhtml>
142
+ <phoenix>
143
+ <moneybookers>
144
+ <verify_url>http://www.phoenix-medien.de/index.php?id=105</verify_url>
145
+ </moneybookers>
146
+ </phoenix>
147
+ <default>
148
+ <payment>
149
+ <moneybookers_acc>
150
+ <group>mbookers</group>
151
+ <active>0</active>
152
+ <model>moneybookers/acc</model>
153
+ <title>Credit Card / Visa, Mastercard, AMEX, JCB, Diners</title>
154
+ <allowspecific>0</allowspecific>
155
+ </moneybookers_acc>
156
+ <moneybookers_csi>
157
+ <group>mbookers</group>
158
+ <active>0</active>
159
+ <model>moneybookers/csi</model>
160
+ <title>CartaSi</title>
161
+ <allowspecific>1</allowspecific>
162
+ <specificcountry>IT</specificcountry>
163
+ </moneybookers_csi>
164
+ <moneybookers_did>
165
+ <group>mbookers</group>
166
+ <active>0</active>
167
+ <model>moneybookers/did</model>
168
+ <title>Lastschrift (ELV)</title>
169
+ <allowspecific>1</allowspecific>
170
+ <specificcountry>DE</specificcountry>
171
+ </moneybookers_did>
172
+ <moneybookers_dnk>
173
+ <group>mbookers</group>
174
+ <active>0</active>
175
+ <model>moneybookers/dnk</model>
176
+ <title>Dankort</title>
177
+ <allowspecific>1</allowspecific>
178
+ <specificcountry>DK</specificcountry>
179
+ </moneybookers_dnk>
180
+ <moneybookers_ebt>
181
+ <group>mbookers</group>
182
+ <active>0</active>
183
+ <model>moneybookers/ebt</model>
184
+ <title>Nordea Solo</title>
185
+ <allowspecific>1</allowspecific>
186
+ <specificcountry>SE</specificcountry>
187
+ </moneybookers_ebt>
188
+ <moneybookers_ent>
189
+ <group>mbookers</group>
190
+ <active>0</active>
191
+ <model>moneybookers/ent</model>
192
+ <title>eNETS</title>
193
+ <allowspecific>1</allowspecific>
194
+ <specificcountry>SG</specificcountry>
195
+ </moneybookers_ent>
196
+ <moneybookers_gcb>
197
+ <group>mbookers</group>
198
+ <active>0</active>
199
+ <model>moneybookers/gcb</model>
200
+ <title>Carte Bleue</title>
201
+ <allowspecific>1</allowspecific>
202
+ <specificcountry>FR</specificcountry>
203
+ </moneybookers_gcb>
204
+ <moneybookers_gir>
205
+ <group>mbookers</group>
206
+ <active>0</active>
207
+ <model>moneybookers/gir</model>
208
+ <title>Giropay</title>
209
+ <allowspecific>1</allowspecific>
210
+ <specificcountry>DE</specificcountry>
211
+ </moneybookers_gir>
212
+ <moneybookers_idl>
213
+ <group>mbookers</group>
214
+ <active>0</active>
215
+ <model>moneybookers/idl</model>
216
+ <title>iDeal</title>
217
+ <allowspecific>1</allowspecific>
218
+ <specificcountry>NL</specificcountry>
219
+ </moneybookers_idl>
220
+ <moneybookers_lsr>
221
+ <group>mbookers</group>
222
+ <active>0</active>
223
+ <model>moneybookers/lsr</model>
224
+ <title>Laser</title>
225
+ <allowspecific>1</allowspecific>
226
+ <specificcountry>IE</specificcountry>
227
+ </moneybookers_lsr>
228
+ <moneybookers_mae>
229
+ <group>mbookers</group>
230
+ <active>0</active>
231
+ <model>moneybookers/mae</model>
232
+ <title>Maestro</title>
233
+ <allowspecific>1</allowspecific>
234
+ <specificcountry>GB,AT,ES</specificcountry>
235
+ </moneybookers_mae>
236
+ <moneybookers_npy>
237
+ <group>mbookers</group>
238
+ <active>0</active>
239
+ <model>moneybookers/npy</model>
240
+ <title>EPS Online-Überweisung</title>
241
+ <allowspecific>1</allowspecific>
242
+ <specificcountry>AT</specificcountry>
243
+ </moneybookers_npy>
244
+ <moneybookers_pli>
245
+ <group>mbookers</group>
246
+ <active>0</active>
247
+ <model>moneybookers/pli</model>
248
+ <title>POLi</title>
249
+ <allowspecific>1</allowspecific>
250
+ <specificcountry>AU</specificcountry>
251
+ </moneybookers_pli>
252
+ <moneybookers_psp>
253
+ <group>mbookers</group>
254
+ <active>0</active>
255
+ <model>moneybookers/psp</model>
256
+ <title>Postepay</title>
257
+ <allowspecific>1</allowspecific>
258
+ <specificcountry>IT</specificcountry>
259
+ </moneybookers_psp>
260
+ <moneybookers_pwy>
261
+ <group>mbookers</group>
262
+ <active>0</active>
263
+ <model>moneybookers/pwy</model>
264
+ <title>All Polish Banks</title>
265
+ <allowspecific>1</allowspecific>
266
+ <specificcountry>PL</specificcountry>
267
+ </moneybookers_pwy>
268
+ <moneybookers_sft>
269
+ <group>mbookers</group>
270
+ <active>0</active>
271
+ <model>moneybookers/sft</model>
272
+ <title>Sofortüberweisung</title>
273
+ <allowspecific>1</allowspecific>
274
+ <specificcountry>DE</specificcountry>
275
+ </moneybookers_sft>
276
+ <moneybookers_so2>
277
+ <group>mbookers</group>
278
+ <active>0</active>
279
+ <model>moneybookers/so2</model>
280
+ <title>Nordea Solo</title>
281
+ <allowspecific>1</allowspecific>
282
+ <specificcountry>FI</specificcountry>
283
+ </moneybookers_so2>
284
+ <moneybookers_wlt>
285
+ <group>mbookers</group>
286
+ <active>0</active>
287
+ <model>moneybookers/wlt</model>
288
+ <title>Moneybookers eWallet</title>
289
+ <allowspecific>0</allowspecific>
290
+ </moneybookers_wlt>
291
+ <moneybookers_obt>
292
+ <group>mbookers</group>
293
+ <active>0</active>
294
+ <model>moneybookers/obt</model>
295
+ <title>Onlineüberweisung (empfohlen)</title>
296
+ <allowspecific>0</allowspecific>
297
+ </moneybookers_obt>
298
+ </payment>
299
+ <moneybookers>
300
+ <settings>
301
+ <activationstatus>0</activationstatus>
302
+ </settings>
303
+ </moneybookers>
304
+ </default>
305
+ </config>
app/code/community/Phoenix/Moneybookers/etc/system.xml ADDED
@@ -0,0 +1,1201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Phoenix
17
+ * @package Phoenix_Moneybookers
18
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ -->
22
+ <config>
23
+ <sections>
24
+ <moneybookers translate="label" module="moneybookers">
25
+ <label>Moneybookers</label>
26
+ <tab>sales</tab>
27
+ <frontend_type>text</frontend_type>
28
+ <sort_order>990</sort_order>
29
+ <show_in_default>1</show_in_default>
30
+ <show_in_website>1</show_in_website>
31
+ <show_in_store>1</show_in_store>
32
+ <groups>
33
+ <settings translate="label">
34
+ <label>Moneybookers Settings</label>
35
+ <frontend_type>text</frontend_type>
36
+ <sort_order>1</sort_order>
37
+ <show_in_default>1</show_in_default>
38
+ <show_in_website>0</show_in_website>
39
+ <show_in_store>0</show_in_store>
40
+ <fields>
41
+ <moneybookers_email translate="label,comment">
42
+ <label>Email Address of Your Moneybookers Account</label>
43
+ <comment><![CDATA[To have access to the international payment network of Moneybookers please register <a href="http://www.moneybookers.com/partners/magento/" target="_blank">here</a> for a free account if you don’t have one yet.]]></comment>
44
+ <frontend_type>text</frontend_type>
45
+ <sort_order>1</sort_order>
46
+ <show_in_default>1</show_in_default>
47
+ <show_in_website>0</show_in_website>
48
+ <show_in_store>0</show_in_store>
49
+ </moneybookers_email>
50
+ <customer_id translate="label">
51
+ <label>Customer ID</label>
52
+ <frontend_type>text</frontend_type>
53
+ <sort_order>2</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>0</show_in_website>
56
+ <show_in_store>0</show_in_store>
57
+ </customer_id>
58
+ <secret_key translate="label,comment">
59
+ <label>Secret Word</label>
60
+ <comment>Pre-shared secret key to secure the transaction. After activation Moneybookers will give you access to a new section in your Moneybookers account called "Merchant tools". Please choose a secret word (do not use your password for this) and provide it in your Moneybookers admin area and above.</comment>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>3</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>0</show_in_website>
65
+ <show_in_store>0</show_in_store>
66
+ </secret_key>
67
+ <activationstatus>
68
+ <comment></comment>
69
+ <frontend_type>text</frontend_type>
70
+ <sort_order>4</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>0</show_in_website>
73
+ <show_in_store>0</show_in_store>
74
+ </activationstatus>
75
+ </fields>
76
+ </settings>
77
+ <moneybookers_acc translate="label" module="moneybookers">
78
+ <label>All Credit Cards / Visa, Mastercard, AMEX, JCB, Diners (powered by Moneybookers) - International</label>
79
+ <frontend_type>text</frontend_type>
80
+ <sort_order>201</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>1</show_in_store>
84
+ <fields>
85
+ <active translate="label">
86
+ <label>Enabled</label>
87
+ <frontend_type>select</frontend_type>
88
+ <config_path>payment/moneybookers_acc/active</config_path>
89
+ <source_model>adminhtml/system_config_source_yesno</source_model>
90
+ <sort_order>1</sort_order>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>1</show_in_store>
94
+ </active>
95
+ <sort_order translate="label">
96
+ <label>Sort Order</label>
97
+ <frontend_type>text</frontend_type>
98
+ <config_path>payment/moneybookers_acc/sort_order</config_path>
99
+ <sort_order>3</sort_order>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>1</show_in_store>
103
+ </sort_order>
104
+ <title translate="label">
105
+ <label>Title</label>
106
+ <frontend_type>text</frontend_type>
107
+ <config_path>payment/moneybookers_acc/title</config_path>
108
+ <sort_order>5</sort_order>
109
+ <show_in_default>1</show_in_default>
110
+ <show_in_website>1</show_in_website>
111
+ <show_in_store>1</show_in_store>
112
+ </title>
113
+ <allowspecific translate="label">
114
+ <label>Payment from Applicable Countries</label>
115
+ <frontend_type>allowspecific</frontend_type>
116
+ <config_path>payment/moneybookers_acc/allowspecific</config_path>
117
+ <sort_order>6</sort_order>
118
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
119
+ <show_in_default>1</show_in_default>
120
+ <show_in_website>1</show_in_website>
121
+ <show_in_store>1</show_in_store>
122
+ </allowspecific>
123
+ <specificcountry translate="label">
124
+ <label>Payment from Specific Countries</label>
125
+ <frontend_type>multiselect</frontend_type>
126
+ <config_path>payment/moneybookers_acc/specificcountry</config_path>
127
+ <sort_order>7</sort_order>
128
+ <source_model>adminhtml/system_config_source_country</source_model>
129
+ <show_in_default>1</show_in_default>
130
+ <show_in_website>1</show_in_website>
131
+ <show_in_store>1</show_in_store>
132
+ <can_be_empty>1</can_be_empty>
133
+ </specificcountry>
134
+ </fields>
135
+ </moneybookers_acc>
136
+ <moneybookers_csi translate="label" module="moneybookers">
137
+ <label>CartaSi (powered by Moneybookers) - Italy</label>
138
+ <frontend_type>text</frontend_type>
139
+ <sort_order>252</sort_order>
140
+ <show_in_default>1</show_in_default>
141
+ <show_in_website>1</show_in_website>
142
+ <show_in_store>1</show_in_store>
143
+ <fields>
144
+ <active translate="label">
145
+ <label>Enabled</label>
146
+ <frontend_type>select</frontend_type>
147
+ <config_path>payment/moneybookers_csi/active</config_path>
148
+ <source_model>adminhtml/system_config_source_yesno</source_model>
149
+ <sort_order>1</sort_order>
150
+ <show_in_default>1</show_in_default>
151
+ <show_in_website>1</show_in_website>
152
+ <show_in_store>1</show_in_store>
153
+ </active>
154
+ <sort_order translate="label">
155
+ <label>Sort Order</label>
156
+ <frontend_type>text</frontend_type>
157
+ <config_path>payment/moneybookers_csi/sort_order</config_path>
158
+ <sort_order>3</sort_order>
159
+ <show_in_default>1</show_in_default>
160
+ <show_in_website>1</show_in_website>
161
+ <show_in_store>1</show_in_store>
162
+ </sort_order>
163
+ <title translate="label">
164
+ <label>Title</label>
165
+ <frontend_type>text</frontend_type>
166
+ <config_path>payment/moneybookers_csi/title</config_path>
167
+ <sort_order>5</sort_order>
168
+ <show_in_default>1</show_in_default>
169
+ <show_in_website>1</show_in_website>
170
+ <show_in_store>1</show_in_store>
171
+ </title>
172
+ <allowspecific translate="label">
173
+ <label>Payment from Applicable Countries</label>
174
+ <frontend_type>allowspecific</frontend_type>
175
+ <config_path>payment/moneybookers_csi/allowspecific</config_path>
176
+ <sort_order>6</sort_order>
177
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
178
+ <show_in_default>1</show_in_default>
179
+ <show_in_website>1</show_in_website>
180
+ <show_in_store>1</show_in_store>
181
+ </allowspecific>
182
+ <specificcountry translate="label">
183
+ <label>Payment from Specific Countries</label>
184
+ <frontend_type>multiselect</frontend_type>
185
+ <config_path>payment/moneybookers_csi/specificcountry</config_path>
186
+ <sort_order>7</sort_order>
187
+ <source_model>adminhtml/system_config_source_country</source_model>
188
+ <show_in_default>1</show_in_default>
189
+ <show_in_website>1</show_in_website>
190
+ <show_in_store>1</show_in_store>
191
+ <can_be_empty>1</can_be_empty>
192
+ </specificcountry>
193
+ </fields>
194
+ </moneybookers_csi>
195
+ <moneybookers_did translate="label" module="moneybookers">
196
+ <label>Lastschrift (ELV) (powered by Moneybookers) - Germany</label>
197
+ <frontend_type>text</frontend_type>
198
+ <sort_order>211</sort_order>
199
+ <show_in_default>1</show_in_default>
200
+ <show_in_website>1</show_in_website>
201
+ <show_in_store>1</show_in_store>
202
+ <fields>
203
+ <active translate="label">
204
+ <label>Enabled</label>
205
+ <frontend_type>select</frontend_type>
206
+ <config_path>payment/moneybookers_did/active</config_path>
207
+ <source_model>adminhtml/system_config_source_yesno</source_model>
208
+ <sort_order>1</sort_order>
209
+ <show_in_default>1</show_in_default>
210
+ <show_in_website>1</show_in_website>
211
+ <show_in_store>1</show_in_store>
212
+ </active>
213
+ <sort_order translate="label">
214
+ <label>Sort Order</label>
215
+ <frontend_type>text</frontend_type>
216
+ <config_path>payment/moneybookers_did/sort_order</config_path>
217
+ <sort_order>3</sort_order>
218
+ <show_in_default>1</show_in_default>
219
+ <show_in_website>1</show_in_website>
220
+ <show_in_store>1</show_in_store>
221
+ </sort_order>
222
+ <title translate="label">
223
+ <label>Title</label>
224
+ <frontend_type>text</frontend_type>
225
+ <config_path>payment/moneybookers_did/title</config_path>
226
+ <sort_order>5</sort_order>
227
+ <show_in_default>1</show_in_default>
228
+ <show_in_website>1</show_in_website>
229
+ <show_in_store>1</show_in_store>
230
+ </title>
231
+ <allowspecific translate="label">
232
+ <label>Payment from Applicable Countries</label>
233
+ <frontend_type>allowspecific</frontend_type>
234
+ <config_path>payment/moneybookers_did/allowspecific</config_path>
235
+ <sort_order>6</sort_order>
236
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
237
+ <show_in_default>1</show_in_default>
238
+ <show_in_website>1</show_in_website>
239
+ <show_in_store>1</show_in_store>
240
+ </allowspecific>
241
+ <specificcountry translate="label">
242
+ <label>Payment from Specific Countries</label>
243
+ <frontend_type>multiselect</frontend_type>
244
+ <config_path>payment/moneybookers_did/specificcountry</config_path>
245
+ <sort_order>7</sort_order>
246
+ <source_model>adminhtml/system_config_source_country</source_model>
247
+ <show_in_default>1</show_in_default>
248
+ <show_in_website>1</show_in_website>
249
+ <show_in_store>1</show_in_store>
250
+ <can_be_empty>1</can_be_empty>
251
+ </specificcountry>
252
+ </fields>
253
+ </moneybookers_did>
254
+ <moneybookers_dnk translate="label" module="moneybookers">
255
+ <label>Dankort (powered by Moneybookers) - Denmark</label>
256
+ <frontend_type>text</frontend_type>
257
+ <sort_order>241</sort_order>
258
+ <show_in_default>1</show_in_default>
259
+ <show_in_website>1</show_in_website>
260
+ <show_in_store>1</show_in_store>
261
+ <fields>
262
+ <active translate="label">
263
+ <label>Enabled</label>
264
+ <frontend_type>select</frontend_type>
265
+ <config_path>payment/moneybookers_dnk/active</config_path>
266
+ <source_model>adminhtml/system_config_source_yesno</source_model>
267
+ <sort_order>1</sort_order>
268
+ <show_in_default>1</show_in_default>
269
+ <show_in_website>1</show_in_website>
270
+ <show_in_store>1</show_in_store>
271
+ </active>
272
+ <sort_order translate="label">
273
+ <label>Sort Order</label>
274
+ <frontend_type>text</frontend_type>
275
+ <config_path>payment/moneybookers_dnk/sort_order</config_path>
276
+ <sort_order>3</sort_order>
277
+ <show_in_default>1</show_in_default>
278
+ <show_in_website>1</show_in_website>
279
+ <show_in_store>1</show_in_store>
280
+ </sort_order>
281
+ <title translate="label">
282
+ <label>Title</label>
283
+ <frontend_type>text</frontend_type>
284
+ <config_path>payment/moneybookers_dnk/title</config_path>
285
+ <sort_order>5</sort_order>
286
+ <show_in_default>1</show_in_default>
287
+ <show_in_website>1</show_in_website>
288
+ <show_in_store>1</show_in_store>
289
+ </title>
290
+ <allowspecific translate="label">
291
+ <label>Payment from Applicable Countries</label>
292
+ <frontend_type>allowspecific</frontend_type>
293
+ <config_path>payment/moneybookers_dnk/allowspecific</config_path>
294
+ <sort_order>6</sort_order>
295
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
296
+ <show_in_default>1</show_in_default>
297
+ <show_in_website>1</show_in_website>
298
+ <show_in_store>1</show_in_store>
299
+ </allowspecific>
300
+ <specificcountry translate="label">
301
+ <label>Payment from Specific Countries</label>
302
+ <frontend_type>multiselect</frontend_type>
303
+ <config_path>payment/moneybookers_dnk/specificcountry</config_path>
304
+ <sort_order>7</sort_order>
305
+ <source_model>adminhtml/system_config_source_country</source_model>
306
+ <show_in_default>1</show_in_default>
307
+ <show_in_website>1</show_in_website>
308
+ <show_in_store>1</show_in_store>
309
+ <can_be_empty>1</can_be_empty>
310
+ </specificcountry>
311
+ </fields>
312
+ </moneybookers_dnk>
313
+ <moneybookers_ebt translate="label" module="moneybookers">
314
+ <label>Nordea Solo (powered by Moneybookers) - Sweden</label>
315
+ <frontend_type>text</frontend_type>
316
+ <sort_order>271</sort_order>
317
+ <show_in_default>1</show_in_default>
318
+ <show_in_website>1</show_in_website>
319
+ <show_in_store>1</show_in_store>
320
+ <fields>
321
+ <active translate="label">
322
+ <label>Enabled</label>
323
+ <frontend_type>select</frontend_type>
324
+ <config_path>payment/moneybookers_ebt/active</config_path>
325
+ <source_model>adminhtml/system_config_source_yesno</source_model>
326
+ <sort_order>1</sort_order>
327
+ <show_in_default>1</show_in_default>
328
+ <show_in_website>1</show_in_website>
329
+ <show_in_store>1</show_in_store>
330
+ </active>
331
+ <sort_order translate="label">
332
+ <label>Sort Order</label>
333
+ <frontend_type>text</frontend_type>
334
+ <config_path>payment/moneybookers_ebt/sort_order</config_path>
335
+ <sort_order>3</sort_order>
336
+ <show_in_default>1</show_in_default>
337
+ <show_in_website>1</show_in_website>
338
+ <show_in_store>1</show_in_store>
339
+ </sort_order>
340
+ <title translate="label">
341
+ <label>Title</label>
342
+ <frontend_type>text</frontend_type>
343
+ <config_path>payment/moneybookers_ebt/title</config_path>
344
+ <sort_order>5</sort_order>
345
+ <show_in_default>1</show_in_default>
346
+ <show_in_website>1</show_in_website>
347
+ <show_in_store>1</show_in_store>
348
+ </title>
349
+ <allowspecific translate="label">
350
+ <label>Payment from Applicable Countries</label>
351
+ <config_path>payment/moneybookers_ebt/allowspecific</config_path>
352
+ <frontend_type>allowspecific</frontend_type>
353
+ <sort_order>6</sort_order>
354
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
355
+ <show_in_default>1</show_in_default>
356
+ <show_in_website>1</show_in_website>
357
+ <show_in_store>1</show_in_store>
358
+ </allowspecific>
359
+ <specificcountry translate="label">
360
+ <label>Payment from Specific Countries</label>
361
+ <frontend_type>multiselect</frontend_type>
362
+ <config_path>payment/moneybookers_ebt/specificcountry</config_path>
363
+ <sort_order>7</sort_order>
364
+ <source_model>adminhtml/system_config_source_country</source_model>
365
+ <show_in_default>1</show_in_default>
366
+ <show_in_website>1</show_in_website>
367
+ <show_in_store>1</show_in_store>
368
+ <can_be_empty>1</can_be_empty>
369
+ </specificcountry>
370
+ </fields>
371
+ </moneybookers_ebt>
372
+ <moneybookers_ent translate="label" module="moneybookers">
373
+ <label>eNETS (powered by Moneybookers) - Singapore</label>
374
+ <frontend_type>text</frontend_type>
375
+ <sort_order>261</sort_order>
376
+ <show_in_default>1</show_in_default>
377
+ <show_in_website>1</show_in_website>
378
+ <show_in_store>1</show_in_store>
379
+ <fields>
380
+ <active translate="label">
381
+ <label>Enabled</label>
382
+ <frontend_type>select</frontend_type>
383
+ <config_path>payment/moneybookers_ent/active</config_path>
384
+ <source_model>adminhtml/system_config_source_yesno</source_model>
385
+ <sort_order>1</sort_order>
386
+ <show_in_default>1</show_in_default>
387
+ <show_in_website>1</show_in_website>
388
+ <show_in_store>1</show_in_store>
389
+ </active>
390
+ <sort_order translate="label">
391
+ <label>Sort Order</label>
392
+ <frontend_type>text</frontend_type>
393
+ <config_path>payment/moneybookers_ent/sort_order</config_path>
394
+ <sort_order>3</sort_order>
395
+ <show_in_default>1</show_in_default>
396
+ <show_in_website>1</show_in_website>
397
+ <show_in_store>1</show_in_store>
398
+ </sort_order>
399
+ <title translate="label">
400
+ <label>Title</label>
401
+ <frontend_type>text</frontend_type>
402
+ <config_path>payment/moneybookers_ent/title</config_path>
403
+ <sort_order>5</sort_order>
404
+ <show_in_default>1</show_in_default>
405
+ <show_in_website>1</show_in_website>
406
+ <show_in_store>1</show_in_store>
407
+ </title>
408
+ <allowspecific translate="label">
409
+ <label>Payment from Applicable Countries</label>
410
+ <frontend_type>allowspecific</frontend_type>
411
+ <config_path>payment/moneybookers_ent/allowspecific</config_path>
412
+ <sort_order>6</sort_order>
413
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
414
+ <show_in_default>1</show_in_default>
415
+ <show_in_website>1</show_in_website>
416
+ <show_in_store>1</show_in_store>
417
+ </allowspecific>
418
+ <specificcountry translate="label">
419
+ <label>Payment from Specific Countries</label>
420
+ <frontend_type>multiselect</frontend_type>
421
+ <config_path>payment/moneybookers_ent/specificcountry</config_path>
422
+ <sort_order>7</sort_order>
423
+ <source_model>adminhtml/system_config_source_country</source_model>
424
+ <show_in_default>1</show_in_default>
425
+ <show_in_website>1</show_in_website>
426
+ <show_in_store>1</show_in_store>
427
+ <can_be_empty>1</can_be_empty>
428
+ </specificcountry>
429
+ </fields>
430
+ </moneybookers_ent>
431
+ <moneybookers_gcb translate="label" module="moneybookers">
432
+ <label>Carte Bleue (powered by Moneybookers) - France</label>
433
+ <frontend_type>text</frontend_type>
434
+ <sort_order>231</sort_order>
435
+ <show_in_default>1</show_in_default>
436
+ <show_in_website>1</show_in_website>
437
+ <show_in_store>1</show_in_store>
438
+ <fields>
439
+ <active translate="label">
440
+ <label>Enabled</label>
441
+ <frontend_type>select</frontend_type>
442
+ <config_path>payment/moneybookers_gcb/active</config_path>
443
+ <source_model>adminhtml/system_config_source_yesno</source_model>
444
+ <sort_order>1</sort_order>
445
+ <show_in_default>1</show_in_default>
446
+ <show_in_website>1</show_in_website>
447
+ <show_in_store>1</show_in_store>
448
+ </active>
449
+ <sort_order translate="label">
450
+ <label>Sort Order</label>
451
+ <frontend_type>text</frontend_type>
452
+ <config_path>payment/moneybookers_gcb/sort_order</config_path>
453
+ <sort_order>3</sort_order>
454
+ <show_in_default>1</show_in_default>
455
+ <show_in_website>1</show_in_website>
456
+ <show_in_store>1</show_in_store>
457
+ </sort_order>
458
+ <title translate="label">
459
+ <label>Title</label>
460
+ <frontend_type>text</frontend_type>
461
+ <config_path>payment/moneybookers_gcb/title</config_path>
462
+ <sort_order>5</sort_order>
463
+ <show_in_default>1</show_in_default>
464
+ <show_in_website>1</show_in_website>
465
+ <show_in_store>1</show_in_store>
466
+ </title>
467
+ <allowspecific translate="label">
468
+ <label>Payment from Applicable Countries</label>
469
+ <frontend_type>allowspecific</frontend_type>
470
+ <config_path>payment/moneybookers_gcb/allowspecific</config_path>
471
+ <sort_order>6</sort_order>
472
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
473
+ <show_in_default>1</show_in_default>
474
+ <show_in_website>1</show_in_website>
475
+ <show_in_store>1</show_in_store>
476
+ </allowspecific>
477
+ <specificcountry translate="label">
478
+ <label>Payment from Specific Countries</label>
479
+ <frontend_type>multiselect</frontend_type>
480
+ <config_path>payment/moneybookers_gcb/specificcountry</config_path>
481
+ <sort_order>7</sort_order>
482
+ <source_model>adminhtml/system_config_source_country</source_model>
483
+ <show_in_default>1</show_in_default>
484
+ <show_in_website>1</show_in_website>
485
+ <show_in_store>1</show_in_store>
486
+ <can_be_empty>1</can_be_empty>
487
+ </specificcountry>
488
+ </fields>
489
+ </moneybookers_gcb>
490
+ <moneybookers_gir translate="label" module="moneybookers">
491
+ <label>Giropay (powered by Moneybookers) - Germany</label>
492
+ <frontend_type>text</frontend_type>
493
+ <sort_order>212</sort_order>
494
+ <show_in_default>1</show_in_default>
495
+ <show_in_website>1</show_in_website>
496
+ <show_in_store>1</show_in_store>
497
+ <fields>
498
+ <active translate="label">
499
+ <label>Enabled</label>
500
+ <frontend_type>select</frontend_type>
501
+ <config_path>payment/moneybookers_gir/active</config_path>
502
+ <source_model>adminhtml/system_config_source_yesno</source_model>
503
+ <sort_order>1</sort_order>
504
+ <show_in_default>1</show_in_default>
505
+ <show_in_website>1</show_in_website>
506
+ <show_in_store>1</show_in_store>
507
+ </active>
508
+ <sort_order translate="label">
509
+ <label>Sort Order</label>
510
+ <frontend_type>text</frontend_type>
511
+ <config_path>payment/moneybookers_gir/sort_order</config_path>
512
+ <sort_order>3</sort_order>
513
+ <show_in_default>1</show_in_default>
514
+ <show_in_website>1</show_in_website>
515
+ <show_in_store>1</show_in_store>
516
+ </sort_order>
517
+ <title translate="label">
518
+ <label>Title</label>
519
+ <frontend_type>text</frontend_type>
520
+ <config_path>payment/moneybookers_gir/title</config_path>
521
+ <sort_order>5</sort_order>
522
+ <show_in_default>1</show_in_default>
523
+ <show_in_website>1</show_in_website>
524
+ <show_in_store>1</show_in_store>
525
+ </title>
526
+ <allowspecific translate="label">
527
+ <label>Payment from Applicable Countries</label>
528
+ <frontend_type>allowspecific</frontend_type>
529
+ <config_path>payment/moneybookers_gir/allowspecific</config_path>
530
+ <sort_order>6</sort_order>
531
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
532
+ <show_in_default>1</show_in_default>
533
+ <show_in_website>1</show_in_website>
534
+ <show_in_store>1</show_in_store>
535
+ </allowspecific>
536
+ <specificcountry translate="label">
537
+ <label>Payment from Specific Countries</label>
538
+ <frontend_type>multiselect</frontend_type>
539
+ <config_path>payment/moneybookers_gir/specificcountry</config_path>
540
+ <sort_order>7</sort_order>
541
+ <source_model>adminhtml/system_config_source_country</source_model>
542
+ <show_in_default>1</show_in_default>
543
+ <show_in_website>1</show_in_website>
544
+ <show_in_store>1</show_in_store>
545
+ <can_be_empty>1</can_be_empty>
546
+ </specificcountry>
547
+ </fields>
548
+ </moneybookers_gir>
549
+ <moneybookers_idl translate="label" module="moneybookers">
550
+ <label>iDeal (powered by Moneybookers) - Netherlands</label>
551
+ <frontend_type>text</frontend_type>
552
+ <sort_order>291</sort_order>
553
+ <show_in_default>1</show_in_default>
554
+ <show_in_website>1</show_in_website>
555
+ <show_in_store>1</show_in_store>
556
+ <fields>
557
+ <active translate="label">
558
+ <label>Enabled</label>
559
+ <frontend_type>select</frontend_type>
560
+ <config_path>payment/moneybookers_idl/active</config_path>
561
+ <source_model>adminhtml/system_config_source_yesno</source_model>
562
+ <sort_order>1</sort_order>
563
+ <show_in_default>1</show_in_default>
564
+ <show_in_website>1</show_in_website>
565
+ <show_in_store>1</show_in_store>
566
+ </active>
567
+ <sort_order translate="label">
568
+ <label>Sort Order</label>
569
+ <frontend_type>text</frontend_type>
570
+ <config_path>payment/moneybookers_idl/sort_order</config_path>
571
+ <sort_order>3</sort_order>
572
+ <show_in_default>1</show_in_default>
573
+ <show_in_website>1</show_in_website>
574
+ <show_in_store>1</show_in_store>
575
+ </sort_order>
576
+ <title translate="label">
577
+ <label>Title</label>
578
+ <frontend_type>text</frontend_type>
579
+ <config_path>payment/moneybookers_idl/title</config_path>
580
+ <sort_order>5</sort_order>
581
+ <show_in_default>1</show_in_default>
582
+ <show_in_website>1</show_in_website>
583
+ <show_in_store>1</show_in_store>
584
+ </title>
585
+ <allowspecific translate="label">
586
+ <label>Payment from Applicable Countries</label>
587
+ <frontend_type>allowspecific</frontend_type>
588
+ <config_path>payment/moneybookers_idl/allowspecific</config_path>
589
+ <sort_order>6</sort_order>
590
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
591
+ <show_in_default>1</show_in_default>
592
+ <show_in_website>1</show_in_website>
593
+ <show_in_store>1</show_in_store>
594
+ </allowspecific>
595
+ <specificcountry translate="label">
596
+ <label>Payment from Specific Countries</label>
597
+ <frontend_type>multiselect</frontend_type>
598
+ <config_path>payment/moneybookers_idl/specificcountry</config_path>
599
+ <sort_order>7</sort_order>
600
+ <source_model>adminhtml/system_config_source_country</source_model>
601
+ <show_in_default>1</show_in_default>
602
+ <show_in_website>1</show_in_website>
603
+ <show_in_store>1</show_in_store>
604
+ <can_be_empty>1</can_be_empty>
605
+ </specificcountry>
606
+ </fields>
607
+ </moneybookers_idl>
608
+ <moneybookers_lsr translate="label" module="moneybookers">
609
+ <label>Laser (powered by Moneybookers) - Ireland</label>
610
+ <frontend_type>text</frontend_type>
611
+ <sort_order>221</sort_order>
612
+ <show_in_default>1</show_in_default>
613
+ <show_in_website>1</show_in_website>
614
+ <show_in_store>1</show_in_store>
615
+ <fields>
616
+ <active translate="label">
617
+ <label>Enabled</label>
618
+ <frontend_type>select</frontend_type>
619
+ <config_path>payment/moneybookers_lsr/active</config_path>
620
+ <source_model>adminhtml/system_config_source_yesno</source_model>
621
+ <sort_order>1</sort_order>
622
+ <show_in_default>1</show_in_default>
623
+ <show_in_website>1</show_in_website>
624
+ <show_in_store>1</show_in_store>
625
+ </active>
626
+ <sort_order translate="label">
627
+ <label>Sort Order</label>
628
+ <frontend_type>text</frontend_type>
629
+ <config_path>payment/moneybookers_lsr/sort_order</config_path>
630
+ <sort_order>3</sort_order>
631
+ <show_in_default>1</show_in_default>
632
+ <show_in_website>1</show_in_website>
633
+ <show_in_store>1</show_in_store>
634
+ </sort_order>
635
+ <title translate="label">
636
+ <label>Title</label>
637
+ <frontend_type>text</frontend_type>
638
+ <config_path>payment/moneybookers_lsr/title</config_path>
639
+ <sort_order>5</sort_order>
640
+ <show_in_default>1</show_in_default>
641
+ <show_in_website>1</show_in_website>
642
+ <show_in_store>1</show_in_store>
643
+ </title>
644
+ <allowspecific translate="label">
645
+ <label>Payment from Applicable Countries</label>
646
+ <frontend_type>allowspecific</frontend_type>
647
+ <config_path>payment/moneybookers_lsr/allowspecific</config_path>
648
+ <sort_order>6</sort_order>
649
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
650
+ <show_in_default>1</show_in_default>
651
+ <show_in_website>1</show_in_website>
652
+ <show_in_store>1</show_in_store>
653
+ </allowspecific>
654
+ <specificcountry translate="label">
655
+ <label>Payment from Specific Countries</label>
656
+ <frontend_type>multiselect</frontend_type>
657
+ <config_path>payment/moneybookers_lsr/specificcountry</config_path>
658
+ <sort_order>7</sort_order>
659
+ <source_model>adminhtml/system_config_source_country</source_model>
660
+ <show_in_default>1</show_in_default>
661
+ <show_in_website>1</show_in_website>
662
+ <show_in_store>1</show_in_store>
663
+ <can_be_empty>1</can_be_empty>
664
+ </specificcountry>
665
+ </fields>
666
+ </moneybookers_lsr>
667
+ <moneybookers_mae translate="label" module="moneybookers">
668
+ <label>Maestro (powered by Moneybookers) - United Kingdom, Austria, Spain</label>
669
+ <frontend_type>text</frontend_type>
670
+ <sort_order>231</sort_order>
671
+ <show_in_default>1</show_in_default>
672
+ <show_in_website>1</show_in_website>
673
+ <show_in_store>1</show_in_store>
674
+ <fields>
675
+ <active translate="label">
676
+ <label>Enabled</label>
677
+ <frontend_type>select</frontend_type>
678
+ <config_path>payment/moneybookers_mae/active</config_path>
679
+ <source_model>adminhtml/system_config_source_yesno</source_model>
680
+ <sort_order>1</sort_order>
681
+ <show_in_default>1</show_in_default>
682
+ <show_in_website>1</show_in_website>
683
+ <show_in_store>1</show_in_store>
684
+ </active>
685
+ <sort_order translate="label">
686
+ <label>Sort Order</label>
687
+ <frontend_type>text</frontend_type>
688
+ <config_path>payment/moneybookers_mae/sort_order</config_path>
689
+ <sort_order>3</sort_order>
690
+ <show_in_default>1</show_in_default>
691
+ <show_in_website>1</show_in_website>
692
+ <show_in_store>1</show_in_store>
693
+ </sort_order>
694
+ <title translate="label">
695
+ <label>Title</label>
696
+ <frontend_type>text</frontend_type>
697
+ <config_path>payment/moneybookers_mae/title</config_path>
698
+ <sort_order>5</sort_order>
699
+ <show_in_default>1</show_in_default>
700
+ <show_in_website>1</show_in_website>
701
+ <show_in_store>1</show_in_store>
702
+ </title>
703
+ <allowspecific translate="label">
704
+ <label>Payment from Applicable Countries</label>
705
+ <frontend_type>allowspecific</frontend_type>
706
+ <config_path>payment/moneybookers_mae/allowspecific</config_path>
707
+ <sort_order>6</sort_order>
708
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
709
+ <show_in_default>1</show_in_default>
710
+ <show_in_website>1</show_in_website>
711
+ <show_in_store>1</show_in_store>
712
+ </allowspecific>
713
+ <specificcountry translate="label">
714
+ <label>Payment from Specific Countries</label>
715
+ <frontend_type>multiselect</frontend_type>
716
+ <config_path>payment/moneybookers_mae/specificcountry</config_path>
717
+ <sort_order>7</sort_order>
718
+ <source_model>adminhtml/system_config_source_country</source_model>
719
+ <show_in_default>1</show_in_default>
720
+ <show_in_website>1</show_in_website>
721
+ <show_in_store>1</show_in_store>
722
+ <can_be_empty>1</can_be_empty>
723
+ </specificcountry>
724
+ </fields>
725
+ </moneybookers_mae>
726
+ <moneybookers_npy translate="label" module="moneybookers">
727
+ <label>EPS Online-Überweisung (powered by Moneybookers) - Austria</label>
728
+ <frontend_type>text</frontend_type>
729
+ <sort_order>301</sort_order>
730
+ <show_in_default>1</show_in_default>
731
+ <show_in_website>1</show_in_website>
732
+ <show_in_store>1</show_in_store>
733
+ <fields>
734
+ <active translate="label">
735
+ <label>Enabled</label>
736
+ <frontend_type>select</frontend_type>
737
+ <config_path>payment/moneybookers_npy/active</config_path>
738
+ <source_model>adminhtml/system_config_source_yesno</source_model>
739
+ <sort_order>1</sort_order>
740
+ <show_in_default>1</show_in_default>
741
+ <show_in_website>1</show_in_website>
742
+ <show_in_store>1</show_in_store>
743
+ </active>
744
+ <sort_order translate="label">
745
+ <label>Sort Order</label>
746
+ <frontend_type>text</frontend_type>
747
+ <config_path>payment/moneybookers_npy/sort_order</config_path>
748
+ <sort_order>3</sort_order>
749
+ <show_in_default>1</show_in_default>
750
+ <show_in_website>1</show_in_website>
751
+ <show_in_store>1</show_in_store>
752
+ </sort_order>
753
+ <title translate="label">
754
+ <label>Title</label>
755
+ <frontend_type>text</frontend_type>
756
+ <config_path>payment/moneybookers_npy/title</config_path>
757
+ <sort_order>5</sort_order>
758
+ <show_in_default>1</show_in_default>
759
+ <show_in_website>1</show_in_website>
760
+ <show_in_store>1</show_in_store>
761
+ </title>
762
+ <allowspecific translate="label">
763
+ <label>Payment from Applicable Countries</label>
764
+ <frontend_type>allowspecific</frontend_type>
765
+ <config_path>payment/moneybookers_npy/allowspecific</config_path>
766
+ <sort_order>6</sort_order>
767
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
768
+ <show_in_default>1</show_in_default>
769
+ <show_in_website>1</show_in_website>
770
+ <show_in_store>1</show_in_store>
771
+ </allowspecific>
772
+ <specificcountry translate="label">
773
+ <label>Payment from Specific Countries</label>
774
+ <frontend_type>multiselect</frontend_type>
775
+ <config_path>payment/moneybookers_npy/specificcountry</config_path>
776
+ <sort_order>7</sort_order>
777
+ <source_model>adminhtml/system_config_source_country</source_model>
778
+ <show_in_default>1</show_in_default>
779
+ <show_in_website>1</show_in_website>
780
+ <show_in_store>1</show_in_store>
781
+ <can_be_empty>1</can_be_empty>
782
+ </specificcountry>
783
+ </fields>
784
+ </moneybookers_npy>
785
+ <moneybookers_pli translate="label" module="moneybookers">
786
+ <label>POLi (powered by Moneybookers) - Australia</label>
787
+ <frontend_type>text</frontend_type>
788
+ <sort_order>311</sort_order>
789
+ <show_in_default>1</show_in_default>
790
+ <show_in_website>1</show_in_website>
791
+ <show_in_store>1</show_in_store>
792
+ <fields>
793
+ <active translate="label">
794
+ <label>Enabled</label>
795
+ <frontend_type>select</frontend_type>
796
+ <config_path>payment/moneybookers_pli/active</config_path>
797
+ <source_model>adminhtml/system_config_source_yesno</source_model>
798
+ <sort_order>1</sort_order>
799
+ <show_in_default>1</show_in_default>
800
+ <show_in_website>1</show_in_website>
801
+ <show_in_store>1</show_in_store>
802
+ </active>
803
+ <sort_order translate="label">
804
+ <label>Sort Order</label>
805
+ <frontend_type>text</frontend_type>
806
+ <config_path>payment/moneybookers_pli/sort_order</config_path>
807
+ <sort_order>3</sort_order>
808
+ <show_in_default>1</show_in_default>
809
+ <show_in_website>1</show_in_website>
810
+ <show_in_store>1</show_in_store>
811
+ </sort_order>
812
+ <title translate="label">
813
+ <label>Title</label>
814
+ <frontend_type>text</frontend_type>
815
+ <config_path>payment/moneybookers_pli/title</config_path>
816
+ <sort_order>5</sort_order>
817
+ <show_in_default>1</show_in_default>
818
+ <show_in_website>1</show_in_website>
819
+ <show_in_store>1</show_in_store>
820
+ </title>
821
+ <allowspecific translate="label">
822
+ <label>Payment from Applicable Countries</label>
823
+ <frontend_type>allowspecific</frontend_type>
824
+ <config_path>payment/moneybookers_pli/allowspecific</config_path>
825
+ <sort_order>6</sort_order>
826
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
827
+ <show_in_default>1</show_in_default>
828
+ <show_in_website>1</show_in_website>
829
+ <show_in_store>1</show_in_store>
830
+ </allowspecific>
831
+ <specificcountry translate="label">
832
+ <label>Payment from Specific Countries</label>
833
+ <frontend_type>multiselect</frontend_type>
834
+ <config_path>payment/moneybookers_pli/specificcountry</config_path>
835
+ <sort_order>7</sort_order>
836
+ <source_model>adminhtml/system_config_source_country</source_model>
837
+ <show_in_default>1</show_in_default>
838
+ <show_in_website>1</show_in_website>
839
+ <show_in_store>1</show_in_store>
840
+ <can_be_empty>1</can_be_empty>
841
+ </specificcountry>
842
+ </fields>
843
+ </moneybookers_pli>
844
+ <moneybookers_psp translate="label" module="moneybookers">
845
+ <label>Postepay (powered by Moneybookers) - Italy</label>
846
+ <frontend_type>text</frontend_type>
847
+ <sort_order>251</sort_order>
848
+ <show_in_default>1</show_in_default>
849
+ <show_in_website>1</show_in_website>
850
+ <show_in_store>1</show_in_store>
851
+ <fields>
852
+ <active translate="label">
853
+ <label>Enabled</label>
854
+ <frontend_type>select</frontend_type>
855
+ <config_path>payment/moneybookers_psp/active</config_path>
856
+ <source_model>adminhtml/system_config_source_yesno</source_model>
857
+ <sort_order>1</sort_order>
858
+ <show_in_default>1</show_in_default>
859
+ <show_in_website>1</show_in_website>
860
+ <show_in_store>1</show_in_store>
861
+ </active>
862
+ <sort_order translate="label">
863
+ <label>Sort Order</label>
864
+ <frontend_type>text</frontend_type>
865
+ <config_path>payment/moneybookers_psp/sort_order</config_path>
866
+ <sort_order>3</sort_order>
867
+ <show_in_default>1</show_in_default>
868
+ <show_in_website>1</show_in_website>
869
+ <show_in_store>1</show_in_store>
870
+ </sort_order>
871
+ <title translate="label">
872
+ <label>Title</label>
873
+ <frontend_type>text</frontend_type>
874
+ <config_path>payment/moneybookers_psp/title</config_path>
875
+ <sort_order>5</sort_order>
876
+ <show_in_default>1</show_in_default>
877
+ <show_in_website>1</show_in_website>
878
+ <show_in_store>1</show_in_store>
879
+ </title>
880
+ <allowspecific translate="label">
881
+ <label>Payment from Applicable Countries</label>
882
+ <frontend_type>allowspecific</frontend_type>
883
+ <config_path>payment/moneybookers_psp/allowspecific</config_path>
884
+ <sort_order>6</sort_order>
885
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
886
+ <show_in_default>1</show_in_default>
887
+ <show_in_website>1</show_in_website>
888
+ <show_in_store>1</show_in_store>
889
+ </allowspecific>
890
+ <specificcountry translate="label">
891
+ <label>Payment from Specific Countries</label>
892
+ <frontend_type>multiselect</frontend_type>
893
+ <config_path>payment/moneybookers_psp/specificcountry</config_path>
894
+ <sort_order>7</sort_order>
895
+ <source_model>adminhtml/system_config_source_country</source_model>
896
+ <show_in_default>1</show_in_default>
897
+ <show_in_website>1</show_in_website>
898
+ <show_in_store>1</show_in_store>
899
+ <can_be_empty>1</can_be_empty>
900
+ </specificcountry>
901
+ </fields>
902
+ </moneybookers_psp>
903
+ <moneybookers_pwy translate="label" module="moneybookers">
904
+ <label>Przelewy24 (powered by Moneybookers) - Poland</label>
905
+ <frontend_type>text</frontend_type>
906
+ <sort_order>321</sort_order>
907
+ <show_in_default>1</show_in_default>
908
+ <show_in_website>1</show_in_website>
909
+ <show_in_store>1</show_in_store>
910
+ <fields>
911
+ <active translate="label">
912
+ <label>Enabled</label>
913
+ <frontend_type>select</frontend_type>
914
+ <config_path>payment/moneybookers_pwy/active</config_path>
915
+ <source_model>adminhtml/system_config_source_yesno</source_model>
916
+ <sort_order>1</sort_order>
917
+ <show_in_default>1</show_in_default>
918
+ <show_in_website>1</show_in_website>
919
+ <show_in_store>1</show_in_store>
920
+ </active>
921
+ <sort_order translate="label">
922
+ <label>Sort Order</label>
923
+ <frontend_type>text</frontend_type>
924
+ <config_path>payment/moneybookers_pwy/sort_order</config_path>
925
+ <sort_order>3</sort_order>
926
+ <show_in_default>1</show_in_default>
927
+ <show_in_website>1</show_in_website>
928
+ <show_in_store>1</show_in_store>
929
+ </sort_order>
930
+ <title translate="label">
931
+ <label>Title</label>
932
+ <frontend_type>text</frontend_type>
933
+ <config_path>payment/moneybookers_pwy/title</config_path>
934
+ <sort_order>5</sort_order>
935
+ <show_in_default>1</show_in_default>
936
+ <show_in_website>1</show_in_website>
937
+ <show_in_store>1</show_in_store>
938
+ </title>
939
+ <allowspecific translate="label">
940
+ <label>Payment from Applicable Countries</label>
941
+ <frontend_type>allowspecific</frontend_type>
942
+ <config_path>payment/moneybookers_pwy/allowspecific</config_path>
943
+ <sort_order>6</sort_order>
944
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
945
+ <show_in_default>1</show_in_default>
946
+ <show_in_website>1</show_in_website>
947
+ <show_in_store>1</show_in_store>
948
+ </allowspecific>
949
+ <specificcountry translate="label">
950
+ <label>Payment from Specific Countries</label>
951
+ <frontend_type>multiselect</frontend_type>
952
+ <config_path>payment/moneybookers_pwy/specificcountry</config_path>
953
+ <sort_order>7</sort_order>
954
+ <source_model>adminhtml/system_config_source_country</source_model>
955
+ <show_in_default>1</show_in_default>
956
+ <show_in_website>1</show_in_website>
957
+ <show_in_store>1</show_in_store>
958
+ <can_be_empty>1</can_be_empty>
959
+ </specificcountry>
960
+ </fields>
961
+ </moneybookers_pwy>
962
+ <moneybookers_sft translate="label" module="moneybookers">
963
+ <label>Sofortüberweisung (powered by Moneybookers) - Germany</label>
964
+ <frontend_type>text</frontend_type>
965
+ <sort_order>213</sort_order>
966
+ <show_in_default>1</show_in_default>
967
+ <show_in_website>1</show_in_website>
968
+ <show_in_store>1</show_in_store>
969
+ <fields>
970
+ <active translate="label">
971
+ <label>Enabled</label>
972
+ <frontend_type>select</frontend_type>
973
+ <config_path>payment/moneybookers_sft/active</config_path>
974
+ <source_model>adminhtml/system_config_source_yesno</source_model>
975
+ <sort_order>1</sort_order>
976
+ <show_in_default>1</show_in_default>
977
+ <show_in_website>1</show_in_website>
978
+ <show_in_store>1</show_in_store>
979
+ </active>
980
+ <sort_order translate="label">
981
+ <label>Sort Order</label>
982
+ <frontend_type>text</frontend_type>
983
+ <config_path>payment/moneybookers_sft/sort_order</config_path>
984
+ <sort_order>3</sort_order>
985
+ <show_in_default>1</show_in_default>
986
+ <show_in_website>1</show_in_website>
987
+ <show_in_store>1</show_in_store>
988
+ </sort_order>
989
+ <title translate="label">
990
+ <label>Title</label>
991
+ <frontend_type>text</frontend_type>
992
+ <config_path>payment/moneybookers_sft/title</config_path>
993
+ <sort_order>5</sort_order>
994
+ <show_in_default>1</show_in_default>
995
+ <show_in_website>1</show_in_website>
996
+ <show_in_store>1</show_in_store>
997
+ </title>
998
+ <allowspecific translate="label">
999
+ <label>Payment from Applicable Countries</label>
1000
+ <frontend_type>allowspecific</frontend_type>
1001
+ <config_path>payment/moneybookers_sft/allowspecific</config_path>
1002
+ <sort_order>6</sort_order>
1003
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1004
+ <show_in_default>1</show_in_default>
1005
+ <show_in_website>1</show_in_website>
1006
+ <show_in_store>1</show_in_store>
1007
+ </allowspecific>
1008
+ <specificcountry translate="label">
1009
+ <label>Payment from Specific Countries</label>
1010
+ <frontend_type>multiselect</frontend_type>
1011
+ <config_path>payment/moneybookers_sft/specificcountry</config_path>
1012
+ <sort_order>7</sort_order>
1013
+ <source_model>adminhtml/system_config_source_country</source_model>
1014
+ <show_in_default>1</show_in_default>
1015
+ <show_in_website>1</show_in_website>
1016
+ <show_in_store>1</show_in_store>
1017
+ <can_be_empty>1</can_be_empty>
1018
+ </specificcountry>
1019
+ </fields>
1020
+ </moneybookers_sft>
1021
+ <moneybookers_so2 translate="label" module="moneybookers">
1022
+ <label>Nordea Solo (powered by Moneybookers) - Finland</label>
1023
+ <frontend_type>text</frontend_type>
1024
+ <sort_order>281</sort_order>
1025
+ <show_in_default>1</show_in_default>
1026
+ <show_in_website>1</show_in_website>
1027
+ <show_in_store>1</show_in_store>
1028
+ <fields>
1029
+ <active translate="label">
1030
+ <label>Enabled</label>
1031
+ <frontend_type>select</frontend_type>
1032
+ <config_path>payment/moneybookers_so2/active</config_path>
1033
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1034
+ <sort_order>1</sort_order>
1035
+ <show_in_default>1</show_in_default>
1036
+ <show_in_website>1</show_in_website>
1037
+ <show_in_store>1</show_in_store>
1038
+ </active>
1039
+ <sort_order translate="label">
1040
+ <label>Sort Order</label>
1041
+ <frontend_type>text</frontend_type>
1042
+ <config_path>payment/moneybookers_so2/sort_order</config_path>
1043
+ <sort_order>3</sort_order>
1044
+ <show_in_default>1</show_in_default>
1045
+ <show_in_website>1</show_in_website>
1046
+ <show_in_store>1</show_in_store>
1047
+ </sort_order>
1048
+ <title translate="label">
1049
+ <label>Title</label>
1050
+ <frontend_type>text</frontend_type>
1051
+ <config_path>payment/moneybookers_so2/title</config_path>
1052
+ <sort_order>5</sort_order>
1053
+ <show_in_default>1</show_in_default>
1054
+ <show_in_website>1</show_in_website>
1055
+ <show_in_store>1</show_in_store>
1056
+ </title>
1057
+ <allowspecific translate="label">
1058
+ <label>Payment from Applicable Countries</label>
1059
+ <frontend_type>allowspecific</frontend_type>
1060
+ <config_path>payment/moneybookers_so2/allowspecific</config_path>
1061
+ <sort_order>6</sort_order>
1062
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1063
+ <show_in_default>1</show_in_default>
1064
+ <show_in_website>1</show_in_website>
1065
+ <show_in_store>1</show_in_store>
1066
+ </allowspecific>
1067
+ <specificcountry translate="label">
1068
+ <label>Payment from Specific Countries</label>
1069
+ <frontend_type>multiselect</frontend_type>
1070
+ <config_path>payment/moneybookers_so2/specificcountry</config_path>
1071
+ <sort_order>7</sort_order>
1072
+ <source_model>adminhtml/system_config_source_country</source_model>
1073
+ <show_in_default>1</show_in_default>
1074
+ <show_in_website>1</show_in_website>
1075
+ <show_in_store>1</show_in_store>
1076
+ <can_be_empty>1</can_be_empty>
1077
+ </specificcountry>
1078
+ </fields>
1079
+ </moneybookers_so2>
1080
+ <moneybookers_wlt translate="label" module="moneybookers">
1081
+ <label>Moneybookers eWallet</label>
1082
+ <frontend_type>text</frontend_type>
1083
+ <sort_order>331</sort_order>
1084
+ <show_in_default>1</show_in_default>
1085
+ <show_in_website>1</show_in_website>
1086
+ <show_in_store>1</show_in_store>
1087
+ <fields>
1088
+ <active translate="label">
1089
+ <label>Enabled</label>
1090
+ <frontend_type>select</frontend_type>
1091
+ <config_path>payment/moneybookers_wlt/active</config_path>
1092
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1093
+ <sort_order>1</sort_order>
1094
+ <show_in_default>1</show_in_default>
1095
+ <show_in_website>1</show_in_website>
1096
+ <show_in_store>1</show_in_store>
1097
+ </active>
1098
+ <sort_order translate="label">
1099
+ <label>Sort Order</label>
1100
+ <frontend_type>text</frontend_type>
1101
+ <config_path>payment/moneybookers_wlt/sort_order</config_path>
1102
+ <sort_order>3</sort_order>
1103
+ <show_in_default>1</show_in_default>
1104
+ <show_in_website>1</show_in_website>
1105
+ <show_in_store>1</show_in_store>
1106
+ </sort_order>
1107
+ <title translate="label">
1108
+ <label>Title</label>
1109
+ <frontend_type>text</frontend_type>
1110
+ <config_path>payment/moneybookers_wlt/title</config_path>
1111
+ <sort_order>5</sort_order>
1112
+ <show_in_default>1</show_in_default>
1113
+ <show_in_website>1</show_in_website>
1114
+ <show_in_store>1</show_in_store>
1115
+ </title>
1116
+ <allowspecific translate="label">
1117
+ <label>Payment from Applicable Countries</label>
1118
+ <frontend_type>allowspecific</frontend_type>
1119
+ <config_path>payment/moneybookers_wlt/allowspecific</config_path>
1120
+ <sort_order>6</sort_order>
1121
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1122
+ <show_in_default>1</show_in_default>
1123
+ <show_in_website>1</show_in_website>
1124
+ <show_in_store>1</show_in_store>
1125
+ </allowspecific>
1126
+ <specificcountry translate="label">
1127
+ <label>Payment from Specific Countries</label>
1128
+ <frontend_type>multiselect</frontend_type>
1129
+ <config_path>payment/moneybookers_wlt/specificcountry</config_path>
1130
+ <sort_order>7</sort_order>
1131
+ <source_model>adminhtml/system_config_source_country</source_model>
1132
+ <show_in_default>1</show_in_default>
1133
+ <show_in_website>1</show_in_website>
1134
+ <show_in_store>1</show_in_store>
1135
+ <can_be_empty>1</can_be_empty>
1136
+ </specificcountry>
1137
+ </fields>
1138
+ </moneybookers_wlt>
1139
+ <moneybookers_obt translate="label" module="moneybookers">
1140
+ <label>Online Bank Transfer (powered by Moneybookers)</label>
1141
+ <frontend_type>text</frontend_type>
1142
+ <sort_order>381</sort_order>
1143
+ <show_in_default>1</show_in_default>
1144
+ <show_in_website>1</show_in_website>
1145
+ <show_in_store>1</show_in_store>
1146
+ <fields>
1147
+ <active translate="label">
1148
+ <label>Enabled</label>
1149
+ <frontend_type>select</frontend_type>
1150
+ <config_path>payment/moneybookers_obt/active</config_path>
1151
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1152
+ <sort_order>1</sort_order>
1153
+ <show_in_default>1</show_in_default>
1154
+ <show_in_website>1</show_in_website>
1155
+ <show_in_store>1</show_in_store>
1156
+ </active>
1157
+ <sort_order translate="label">
1158
+ <label>Sort Order</label>
1159
+ <frontend_type>text</frontend_type>
1160
+ <config_path>payment/moneybookers_obt/sort_order</config_path>
1161
+ <sort_order>3</sort_order>
1162
+ <show_in_default>1</show_in_default>
1163
+ <show_in_website>1</show_in_website>
1164
+ <show_in_store>1</show_in_store>
1165
+ </sort_order>
1166
+ <title translate="label">
1167
+ <label>Title</label>
1168
+ <frontend_type>text</frontend_type>
1169
+ <config_path>payment/moneybookers_obt/title</config_path>
1170
+ <sort_order>5</sort_order>
1171
+ <show_in_default>1</show_in_default>
1172
+ <show_in_website>1</show_in_website>
1173
+ <show_in_store>1</show_in_store>
1174
+ </title>
1175
+ <allowspecific translate="label">
1176
+ <label>Payment from Applicable Countries</label>
1177
+ <frontend_type>allowspecific</frontend_type>
1178
+ <config_path>payment/moneybookers_obt/allowspecific</config_path>
1179
+ <sort_order>6</sort_order>
1180
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1181
+ <show_in_default>1</show_in_default>
1182
+ <show_in_website>1</show_in_website>
1183
+ <show_in_store>1</show_in_store>
1184
+ </allowspecific>
1185
+ <specificcountry translate="label">
1186
+ <label>Payment from Specific Countries</label>
1187
+ <frontend_type>multiselect</frontend_type>
1188
+ <config_path>payment/moneybookers_obt/specificcountry</config_path>
1189
+ <sort_order>7</sort_order>
1190
+ <source_model>adminhtml/system_config_source_country</source_model>
1191
+ <show_in_default>1</show_in_default>
1192
+ <show_in_website>1</show_in_website>
1193
+ <show_in_store>1</show_in_store>
1194
+ <can_be_empty>1</can_be_empty>
1195
+ </specificcountry>
1196
+ </fields>
1197
+ </moneybookers_obt>
1198
+ </groups>
1199
+ </moneybookers>
1200
+ </sections>
1201
+ </config>
app/code/community/Phoenix/Moneybookers/sql/moneybookers_setup/mysql4-upgrade-1.2-1.2.0.1.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Phoenix
16
+ * @package Phoenix_Moneybookers
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ /* @var $installer Mage_Core_Model_Resource_Setup */
22
+ $installer = $this;
23
+
24
+ $installer->startSetup();
25
+ $conn = $installer->getConnection();
26
+
27
+ $select = $conn
28
+ ->select()
29
+ ->from($this->getTable('core/config_data'), array('scope', 'scope_id', 'path', 'value'))
30
+ ->where(new Zend_Db_Expr("path LIKE 'moneybookers/moneybookers%'"));
31
+ $data = $conn->fetchAll($select);
32
+
33
+ if (!empty($data)) {
34
+ foreach ($data as $key => $value) {
35
+ $data[$key]['path'] = preg_replace('/^moneybookers\/moneybookers/', 'payment/moneybookers', $value['path']);
36
+ }
37
+ $conn->insertOnDuplicate($this->getTable('core/config_data'), $data, array('path'));
38
+ $conn->delete($this->getTable('core/config_data'), new Zend_Db_Expr("path LIKE 'moneybookers/moneybookers%'"));
39
+ }
40
+
41
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/moneybookers.xml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category design
17
+ * @package default_default
18
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ -->
22
+ <layout>
23
+ <adminhtml_system_config_edit>
24
+ <reference name="content">
25
+ <block type="moneybookers/jsinit" name="moneybookers_jsinit" template="moneybookers/jsinit.phtml"></block>
26
+ </reference>
27
+ </adminhtml_system_config_edit>
28
+ </layout>
app/design/adminhtml/default/default/template/moneybookers/info.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category design
16
+ * @package default_default
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?><br />
22
+ <?php if ($this->getInfo()->getLastTransId() == ''): ?>
23
+ <?php echo Mage::helper('moneybookers')->__('Payment has not been processed yet.') ?><br />
24
+ <?php else: ?>
25
+ <?php echo Mage::helper('moneybookers')->__('Moneybookers Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) ?><br />
26
+ <?php endif; ?>
app/design/adminhtml/default/default/template/moneybookers/jsinit.phtml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 design
16
+ * @package default_default
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+
22
+ <script type="text/javascript">
23
+ //<![CDATA[
24
+ function initMoneybookers() {
25
+ if (!document.getElementById("moneybookers_settings_activationstatus")) {
26
+ // Don't perform for website and store view
27
+ return;
28
+ }
29
+ document.getElementById("moneybookers_settings_activationstatus").style.display = "none";
30
+ $('moneybookers_settings_activationstatus').up().insert('<button type="button" id="moneybookers_multifuncbutton" onclick="moneybookers.button()" style="display: none; margin-top: 1em;"><span id="moneybookers_multifuncbutton_label" style="display:block; margin-top:1em;"></span></button>');
31
+ $('moneybookers_settings_activationstatus').up().insert('<span id="moneybookers_inf_div" style="display:block; margin-top:1em;"></span>');
32
+ $('moneybookers_settings_activationstatus').up().insert('<input id="moneybookers_settings_customer_id_hidden" type="hidden"/>');
33
+ moneybookers = new Moneybookers('<?php echo $this->getSkinUrl('images/moneybookers/banner.jpg'); ?>', '<?php echo $this->getUrl('*/moneybookers/activateemail'); ?>', '<?php echo $this->getUrl('*/moneybookers/checksecret'); ?>', '<?php echo $this->getUrl('*/moneybookers/checkemail');?>');
34
+ }
35
+ //]]>
36
+ </script>
37
+
app/design/adminhtml/default/default/template/moneybookers/pdf/info.phtml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 design
16
+ * @package default_default
17
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <?php echo $this->getMethod()->getTitle() ?>
22
+ {{pdf_row_separator}}
23
+ <?php echo Mage::helper('moneybookers')->__('Moneybookers Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) ?>
24
+ {{pdf_row_separator}}
app/design/frontend/base/default/layout/moneybookers.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category design
17
+ * @package base_default
18
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+
22
+ -->
23
+ <layout version="0.1.0">
24
+ <moneybookers_processing_payment>
25
+ <reference name="root">
26
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
27
+ </reference>
28
+ <reference name="content">
29
+ <block type="moneybookers/payment" name="moneybookers_payment" template="moneybookers/payment.phtml" />
30
+ </reference>
31
+ </moneybookers_processing_payment>
32
+
33
+ <moneybookers_processing_placeform>
34
+ <reference name="root">
35
+ <action method="setTemplate"><template>moneybookers/blank.phtml</template></action>
36
+ </reference>
37
+ <reference name="content">
38
+ <block type="moneybookers/placeform" name="moneybookers_placeform" template="moneybookers/placeform.phtml" />
39
+ </reference>
40
+ </moneybookers_processing_placeform>
41
+ </layout>
app/design/frontend/base/default/template/moneybookers/blank.phtml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
28
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
29
+ <head>
30
+ </head>
31
+ <body>
32
+ <?php echo $this->getChildHtml('content') ?>
33
+ </body>
34
+ </html>
app/design/frontend/base/default/template/moneybookers/form.phtml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <?php $_code = $this->getMethodCode(); ?>
28
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
29
+ <li>
30
+ <?php echo Mage::helper('moneybookers')->__('You will be redirected to our secure payment page when you place an order.') ?>
31
+ </li>
32
+ <?php if ($_img = $this->getPaymentImageSrc($_code)): ?>
33
+ <li>
34
+ <div style="padding:10px 15px 15px;">
35
+ <img src="<?php echo $_img ?>" alt="" /><br />
36
+ <?php if ($_code == 'moneybookers_wlt'): ?>
37
+ <a href="<?php echo $this->getWltInfoUrl() ?>" target="_blank"><?php echo Mage::helper('moneybookers')->__('More information about Moneybookers') ?></a>
38
+ <?php elseif ($_code == 'moneybookers_obt'): ?>
39
+ <?php $_locale = $this->getInfoLocale(); ?>
40
+ <a onclick="window.open(this.href, 'http://www.nextgenerationpayments.com/<?php echo $_locale ?>/customerinfo/', 'width=1000,height=760,scrollbars=auto'); return false;" href="http://www.nextgenerationpayments.com/<?php echo $_locale ?>/customerinfo/" target="_blank">
41
+ <?php echo Mage::helper('moneybookers')->__('Find out more about Online Bank Transfer') ?>
42
+ </a>
43
+ <?php endif; ?>
44
+ </div>
45
+ </li>
46
+ <?php endif; ?>
47
+ </ul>
48
+
app/design/frontend/base/default/template/moneybookers/info.phtml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?><br />
28
+ <?php if ($this->getInfo()->getLastTransId() == ''): ?>
29
+ <em><?php echo Mage::helper('moneybookers')->__('You will be redirected to our secure payment page when you place an order.') ?></em>
30
+ <?php else: ?>
31
+ <?php echo Mage::helper('moneybookers')->__('Moneybookers Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) ?><br />
32
+ <?php endif; ?>
app/design/frontend/base/default/template/moneybookers/payment.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <div class="page-head">
28
+ <h3><?php echo Mage::helper('moneybookers')->__('Please pay your order now') ?></h3>
29
+ </div>
30
+ <table style="width:100%;">
31
+ <tr>
32
+ <td style="width:75%">
33
+ <iframe style="width:100%; height:600px;" src="<?php echo Mage::getUrl('moneybookers/processing/placeform') ?>"></iframe>
34
+ </td>
35
+ <td style="text-align:center;">
36
+ <img src="<?php echo $this->getMoneybookersLogoSrc() ?>" title="<?php echo Mage::helper('moneybookers')->__('Powered by Moneybookers') ?>" alt="<?php echo Mage::helper('moneybookers')->__('Powered by Moneybookers') ?>" />
37
+ </td>
38
+ </tr>
39
+ </table>
app/design/frontend/base/default/template/moneybookers/placeform.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <b><?php echo Mage::helper('moneybookers')->__('Loading secure payment page (SSL)'); ?></b>
29
+ <form name="moneybookers" id="moneybookers_place_form" action="<?php echo $this->getFormAction();?>" method="POST">
30
+ <?php if (is_array($this->getFormData())): ?>
31
+ <?php foreach ($this->getFormData() as $name => $value): ?>
32
+ <input type="hidden" name="<?php echo $name; ?>" value="<?php echo $value; ?>"/>
33
+ <?php endforeach; ?>
34
+ <?php endif; ?>
35
+ </form>
36
+
37
+ <script type="text/javascript">
38
+ //<![CDATA[
39
+ var paymentform = document.getElementById('moneybookers_place_form');
40
+ window.onload = paymentform.submit();
41
+ //]]>
42
+ </script>
app/design/frontend/base/default/template/moneybookers/redirect.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <html><body>
28
+ <script type="text/javascript">parent.location.href="<?php echo $this->getRedirectUrl() ?>";</script>
29
+ </body></html>
app/etc/modules/Phoenix_Moneybookers.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Phoenix
17
+ * @package Phoenix_Moneybookers
18
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ -->
22
+ <config>
23
+ <modules>
24
+ <Phoenix_Moneybookers>
25
+ <active>true</active>
26
+ <codePool>community</codePool>
27
+ </Phoenix_Moneybookers>
28
+ </modules>
29
+ </config>
app/locale/en_US/Phoenix_Moneybookers.csv ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "All Credit Cards / Visa, Mastercard, AMEX, JCB, Diners (powered by Moneybookers) - International","All Credit Cards / Visa, Mastercard, AMEX, JCB, Diners (powered by Moneybookers) - International"
2
+ "CartaSi (powered by Moneybookers) - Italy","CartaSi (powered by Moneybookers) - Italy"
3
+ "Carte Bleue (powered by Moneybookers) - France","Carte Bleue (powered by Moneybookers) - France"
4
+ "Customer ID","Customer ID"
5
+ "Dankort (powered by Moneybookers) - Denmark","Dankort (powered by Moneybookers) - Denmark"
6
+ "EPS Online-Überweisung (powered by Moneybookers) - Austria","EPS Online-Überweisung (powered by Moneybookers) - Austria"
7
+ "Enabled","Enabled"
8
+ "Find out more about Online Bank Transfer","Find out more about Online Bank Transfer"
9
+ "Giropay (powered by Moneybookers) - Germany","Giropay (powered by Moneybookers) - Germany"
10
+ "Laser (powered by Moneybookers) - Ireland","Laser (powered by Moneybookers) - Ireland"
11
+ "Lastschrift (ELV) (powered by Moneybookers) - Germany","Lastschrift (ELV) (powered by Moneybookers) - Germany"
12
+ "Loading secure payment page (SSL)","Loading secure payment page (SSL)"
13
+ "Maestro (powered by Moneybookers) - United Kingdom, Austria, Spain","Maestro (powered by Moneybookers) - United Kingdom, Austria, Spain"
14
+ "Moneybookers","Moneybookers"
15
+ "Moneybookers Settings","Moneybookers Settings"
16
+ "Moneybookers Transaction ID: %s","Moneybookers Transaction ID: %s"
17
+ "Moneybookers eWallet","Moneybookers eWallet"
18
+ "More information about Moneybookers","More information about Moneybookers"
19
+ "Nordea Solo (powered by Moneybookers) - Finland","Nordea Solo (powered by Moneybookers) - Finland"
20
+ "Nordea Solo (powered by Moneybookers) - Sweden","Nordea Solo (powered by Moneybookers) - Sweden"
21
+ "Online Bank Transfer (powered by Moneybookers)","Online Bank Transfer (powered by Moneybookers)"
22
+ "Order ID","Order ID"
23
+ "POLi (powered by Moneybookers) - Australia","POLi (powered by Moneybookers) - Australia"
24
+ "Payment failed.","Payment failed."
25
+ "Payment from Applicable Countries","Payment from Applicable Countries"
26
+ "Payment from Specific Countries","Payment from Specific Countries"
27
+ "Payment has not been processed yet.","Payment has not been processed yet."
28
+ "Payment was canceled.","Payment was canceled."
29
+ "Pending bank transfer created.","Pending bank transfer created."
30
+ "Please pay your order now","Please pay your order now"
31
+ "Postepay (powered by Moneybookers) - Italy","Postepay (powered by Moneybookers) - Italy"
32
+ "Powered by Moneybookers","Powered by Moneybookers"
33
+ "Przelewy24 (powered by Moneybookers) - Poland","Przelewy24 (powered by Moneybookers) - Poland"
34
+ "Sofortüberweisung (powered by Moneybookers) - Germany","Sofortüberweisung (powered by Moneybookers) - Germany"
35
+ "Sort Order","Sort Order"
36
+ "The amount has been authorized and captured by Moneybookers.","The amount has been authorized and captured by Moneybookers."
37
+ "The customer was redirected to Moneybookers.","The customer was redirected to Moneybookers."
38
+ "The order has been canceled.","The order has been canceled."
39
+ "Title","Title"
40
+ "You will be redirected to our secure payment page when you place an order.","You will be redirected to our secure payment page when you place an order."
41
+ "eNETS (powered by Moneybookers) - Singapore","eNETS (powered by Moneybookers) - Singapore"
42
+ "iDeal (powered by Moneybookers) - Netherlands","iDeal (powered by Moneybookers) - Netherlands"
app/locale/en_US/template/email/moneybookers_activateemail.html ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <!--@subject {{var subject}} @-->
2
+ Magento<br>
3
+ Moneybookers Email Address: {{var email_addr}}<br>
4
+ Moneybookers Customer ID: {{var customer_id}}<br>
5
+ URL: {{var url}}<br>
6
+ Language: {{var language}}<br>
js/mage/adminhtml/moneybookers.js ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
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 Phoenix
15
+ * @package Phoenix_Moneybookers
16
+ * @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+
20
+ Event.observe(window, 'load', function() {
21
+ initMoneybookers();
22
+ });
23
+
24
+ Moneybookers = Class.create();
25
+ Moneybookers.prototype = {
26
+ initialize: function(bannerUrl, activateemailUrl, checksecretUrl, checkemailUrl){
27
+ this.bannerUrl = bannerUrl;
28
+ this.activateemailUrl = activateemailUrl;
29
+ this.checksecretUrl = checksecretUrl;
30
+ this.checkemailUrl = checkemailUrl;
31
+
32
+ this.txtBtnStatus0 = this.translate('Validate Email');
33
+ this.txtBtnStatus1 = this.translate('Activate Moneybookers Quick Checkout');
34
+ this.txtBtnStatus2 = this.translate('Validate Secret Word');
35
+ this.txtErrStatus0 = this.translate('This email address is not registered.');
36
+ this.txtErrStatus2 = this.translate('This Secret Word is incorrect. After activation Moneybookers will give you access to a new section in your Moneybookers account called "Merchant tools". Please choose a secret word (do not use your password for this) and provide it in your Moneybookers admin area and above.');
37
+ this.txtInfStatus0 = this.translate('<strong><a href="http://www.moneybookers.com/" target="_blank">Moneybookers</a></strong> is an all in one payments solution that enables a merchant to accept debit and credit card payments, bank transfers and the largest range of local payments directly on your website.<ul style="list-style-position: inside;list-style-type: disc;"><li>Widest network of international and local payment options in the world.</li><li>One interface including payments, banking and marketing.</li><li>Direct payments without the need for direct registration.</li><li>Moneybookers stands for a highly converting payment gateway that turns payment processing into a simple, fast and customer friendly operation.</li><li>Highly competitive rates. Please <a href="http://www.moneybookers.com/app/help.pl?s=m_fees" target="_blank">click here</a> for more detailed information.</li></ul>') + '<img src="' + this.bannerUrl + '" alt="" />';
38
+ this.txtInfStatus1 = this.translate('<strong>Moneybookers Quick Checkout</strong> enables you to take <strong>direct</strong> payments from credit cards, debit cards and over 50 other local payment options in over 200 countries for customers without an existing Moneybookers eWallet.');
39
+ this.txtNotSavechanges = this.translate('Please save the configuration before continuing.');
40
+ this.txtNotStatus0 = this.translate('Email was validated by Moneybookers.');
41
+ this.txtNotStatus1 = this.translate('Activation email was sent to Moneybookers. Please be aware that the verification process to use Moneybookers Quick Checkout takes some time. You will be contacted by Moneybookers when the verification process has been completed.');
42
+ this.txtNotStatus2 = this.translate('Secret Word was validated by Moneybookers. Your installation is completed and you are ready to receive international and local payments.');
43
+
44
+ $("moneybookers_settings_moneybookers_email").setAttribute("onchange", "moneybookers.setStatus(0); moneybookers.changeUi(); document.getElementById('moneybookers_settings_customer_id').value = ''; document.getElementById('moneybookers_settings_customer_id_hidden').value = '';");
45
+ $("moneybookers_settings_customer_id").disabled = true;
46
+ $("moneybookers_settings_customer_id_hidden").name = document.getElementById("moneybookers_settings_customer_id").name;
47
+ $("moneybookers_settings_customer_id_hidden").value = document.getElementById("moneybookers_settings_customer_id").value;
48
+ $("moneybookers_settings_secret_key").setAttribute("onchange", "moneybookers.setStatus(2); moneybookers.changeUi();");
49
+ this.changeUi();
50
+ },
51
+
52
+ translate: function(text) {
53
+ try {
54
+ if(Translator){
55
+ return Translator.translate(text);
56
+ }
57
+ }
58
+ catch(e){}
59
+ return text;
60
+ },
61
+
62
+ button: function () {
63
+ var status, response, result;
64
+ status = this.getStatus();
65
+ if (status < 1) {
66
+ response = this.getHttp(this.checkemailUrl + "?email=" + $("moneybookers_settings_moneybookers_email").value);
67
+ result = response.split(',');
68
+ if (result[0] == "OK") {
69
+ $("moneybookers_settings_customer_id").value = result[1];
70
+ $("moneybookers_settings_customer_id_hidden").value = result[1];
71
+ this.setStatus(1);
72
+ status = 1;
73
+ alert(this.txtNotStatus0);
74
+ }
75
+ else {
76
+ $("moneybookers_settings_customer_id").value = "";
77
+ alert(this.txtErrStatus0 + "\n("+response+")");
78
+ }
79
+ }
80
+ if (status == 1) {
81
+ this.getHttp(this.activateemailUrl);
82
+ this.setStatus(2);
83
+ alert(this.txtNotStatus1);
84
+ this.alertSaveChanges();
85
+ }
86
+ if (status == 2) {
87
+ response = this.getHttp(this.checksecretUrl + "?email=" + $("moneybookers_settings_moneybookers_email").value
88
+ + "&secret=" + $("moneybookers_settings_secret_key").value
89
+ + "&cust_id=" + $("moneybookers_settings_customer_id").value);
90
+ if (response == "OK") {
91
+ this.setStatus(3);
92
+ alert(this.txtNotStatus2);
93
+ this.alertSaveChanges();
94
+ }
95
+ else {
96
+ alert(this.txtErrStatus2 + "\n("+response+")");
97
+ }
98
+ }
99
+ },
100
+
101
+ alertSaveChanges: function () {
102
+ $("moneybookers_multifuncbutton").style.display = "none";
103
+ alert(this.txtNotSavechanges);
104
+ },
105
+
106
+ getHttp: function (url) {
107
+ var response;
108
+ new Ajax.Request(
109
+ url,
110
+ {
111
+ method: "get",
112
+ onComplete: function(transport) {response = transport.responseText;},
113
+ asynchronous: false
114
+ });
115
+ return response;
116
+ },
117
+
118
+ getInteger: function (number) {
119
+ number = parseInt(number);
120
+ if (isNaN(number)) return 0;
121
+ return number;
122
+ },
123
+
124
+ getStatus: function () {
125
+ var status = this.getInteger($("moneybookers_settings_activationstatus").value);
126
+ if (status == 1 && $("moneybookers_settings_customer_id").value != '' && $("moneybookers_settings_secret_key").value == '') {
127
+ status = 2;
128
+ this.setStatus(status);
129
+ }
130
+ return status;
131
+ },
132
+
133
+ setStatus: function (number) {
134
+ number = this.getInteger(number);
135
+ if (number < 0) number = 0;
136
+ else if (number > 3) number = 3;
137
+ $("moneybookers_settings_activationstatus").value = number;
138
+ },
139
+ changeUi: function () {
140
+ var status = this.getStatus();
141
+ if (status < 1) {
142
+ $("moneybookers_inf_div").update(this.txtInfStatus0);
143
+ $("moneybookers_multifuncbutton_label").update(this.txtBtnStatus0);
144
+ }
145
+ if (status == 1) {
146
+ $("moneybookers_inf_div").update(this.txtInfStatus1);
147
+ $("moneybookers_multifuncbutton_label").update(this.txtBtnStatus1);
148
+ }
149
+ if (status < 2) {
150
+ $("moneybookers_inf_div").style.display = "block";
151
+ $("moneybookers_settings_secret_key").disabled = true;
152
+ }
153
+ if (status == 2) {
154
+ $("moneybookers_multifuncbutton_label").update(this.txtBtnStatus2);
155
+ }
156
+ if (status > 2) {
157
+ $("moneybookers_multifuncbutton").style.display = "none";
158
+ } else {
159
+ $("moneybookers_multifuncbutton").style.display = "block";
160
+ }
161
+ }
162
+ }
package.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Phoenix_Moneybookers</name>
4
+ <version>1.2.4</version>
5
+ <stability>stable</stability>
6
+ <license>mixed</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Moneybookers payment gateway integration</summary>
10
+ <description>Moneybookers payment gateway official integration, implemented by Phoenix Medien GmbH. Provides integration for payment options powered by Moneybookers, as separate payment methods:
11
+ All Credit Cards / Visa, Mastercard, AMEX, JCB, Diners - International
12
+ CartaSi - Italy
13
+ Lastschrift (ELV) - Germany
14
+ Dankort - Denmark
15
+ Nordea Solo - Sweden
16
+ eNETS - Singapore
17
+ Carte Bleue - France
18
+ Giropay - Germany
19
+ iDeal - Netherlands
20
+ Laser - Ireland
21
+ EPS Online-&#xDC;berweisung - Austria
22
+ POLi - Australia
23
+ Postepay - Italy
24
+ Przelewy24 - Poland
25
+ Sofort&#xFC;berweisung - Germany
26
+ Nordea Solo - Finland
27
+ Moneybookers eWallet</description>
28
+ <notes>1.2.4</notes>
29
+ <authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
30
+ <date>2011-02-08</date>
31
+ <time>19:01:29</time>
32
+ <contents><target name="magecommunity"><dir name="Phoenix"><dir name="Moneybookers"><dir name="Block"><file name="Form.php" hash="7362800109e7df0673b70a50f15514b8"/><file name="Info.php" hash="5062092dc12ac979d51f62df076c484c"/><file name="Jsinit.php" hash="181b71230ba85f9489cd94ee25c7f69e"/><file name="Payment.php" hash="294a779f06aa325ff03670d8abc6aced"/><file name="Placeform.php" hash="f3f499669cabe3a5f197d02437b89209"/><file name="Redirect.php" hash="8555e7d0a22936a0c72e2ad6527f3eda"/></dir><dir name="Helper"><file name="Data.php" hash="dee5ed5fbeb5058877d70cd3da1f1cea"/></dir><dir name="Model"><file name="Abstract.php" hash="ac518a9a051a24bf5badea61ac3693ae"/><file name="Acc.php" hash="84b9d75dd477ea05b4e96e40576568a2"/><file name="Csi.php" hash="a8de5bea52003baaa8af71697c551ea2"/><file name="Did.php" hash="52fc9085912c6c5ecdddee1427cdbd5c"/><file name="Dnk.php" hash="e030675ccadb5ffc5f6198865f447338"/><file name="Ebt.php" hash="940e2a9dc2c1de98c921d1da8f72c528"/><file name="Ent.php" hash="a7dcf758adce6a6fc9531320e0f94b41"/><file name="Event.php" hash="6a0974e49dd5de59b63df9a52d044344"/><file name="Gcb.php" hash="8641d7d32ed5dd1beb2d3f70b7c9dd10"/><file name="Gir.php" hash="e4c018afe24dae2b4263668b2f4ff9ec"/><file name="Idl.php" hash="bfa830d7e901d20d27f9c327a76d9402"/><file name="Lsr.php" hash="c39ed6f8b3b26bf096b429b8e256c06f"/><file name="Mae.php" hash="629fa6112ccac8087cf942f662763797"/><file name="Npy.php" hash="8dec432e005dc20d1d25267d4787b993"/><file name="Obt.php" hash="cecf249ff370aab1efe3183a2aec67d0"/><file name="Pli.php" hash="7b7e3cf2d6e5f67fbf252cb653aa1cfb"/><file name="Psp.php" hash="22a7676f817febce6cb2fac3259e9630"/><file name="Pwy.php" hash="b60b1ac86d51e47454c0900ab1241bdd"/><file name="Sft.php" hash="cf4c8b08ee4f459de12f2784507ad438"/><file name="So2.php" hash="7bf238df48ab5b4b688860f2518bd94c"/><file name="Wlt.php" hash="ef84c11ee7a44f6169c06c7dc320609e"/></dir><dir name="controllers"><file name="MoneybookersController.php" hash="79f384514987ab367f8bd59108b04a00"/><file name="ProcessingController.php" hash="e5c9ee9d48aa6ec56206f8ecfdc43968"/></dir><dir name="etc"><file name="config.xml" hash="61f99b8c65b8db72e3fa9e7308de7010"/><file name="system.xml" hash="bbd273bff180878d7c84fe87ec46174a"/></dir><dir name="sql"><dir name="moneybookers_setup"><file name="mysql4-upgrade-1.2-1.2.0.1.php" hash="3fa446a24b95d005bd4bea215fba4158"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Phoenix_Moneybookers.xml" hash="304935f2701d765b0b7c236ec6a083cc"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="moneybookers"><file name="info.phtml" hash="8f3cd1b6374617f6b32bd7628081c047"/><file name="jsinit.phtml" hash="ca2ff60ebd1a4a4344bfd29400202dfa"/><dir name="pdf"><file name="info.phtml" hash="09e7b1b673646e8fda49240831d68385"/></dir></dir></dir><dir name="layout"><file name="moneybookers.xml" hash="5cf6463c5434f212d9c020784624468a"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="moneybookers"><file name="blank.phtml" hash="979c41c03b99c115e8d321ef62894eb3"/><file name="form.phtml" hash="879d913e2f6c7998e2b3807ae0ac4ea4"/><file name="info.phtml" hash="5f2448d85c64230333f77c65a60d76b8"/><file name="payment.phtml" hash="a0c66a3b497ba93d42d60d2066b12cfb"/><file name="placeform.phtml" hash="bda8632a83fd18084b940de62b0b34a6"/><file name="redirect.phtml" hash="99811d651f215827bbd85db9ade1824b"/></dir></dir><dir name="layout"><file name="moneybookers.xml" hash="80babadf83679af768eb2d851154f36e"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Phoenix_Moneybookers.csv" hash="c92cee5c0ca36fdedfbab70e95a91983"/><dir name="template"><dir name="email"><file name="moneybookers_activateemail.html" hash="c8cbc9e897052ed3806046512a785639"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="moneybookers"><file name="banner_120_de.gif" hash="74815117bf378543e5b3496bb5bc4e8a"/><file name="banner_120_de.png" hash="6c3f708fcb6dac92e53472d4c2246c68"/><file name="banner_120_dk.gif" hash="2106bd994d188d40474bf2a2e8d62a8d"/><file name="banner_120_fr.gif" hash="a84241eef7bc38fb38567e7aa8ca245a"/><file name="banner_120_fr.png" hash="8994d1dc3b4f5c9e5efc67ce3f9f55a9"/><file name="banner_120_int.gif" hash="e23ddcf71e15f0a9300062ef9cdea512"/><file name="banner_120_int.png" hash="f9dfbc26041e52b34eea65348707d64f"/><file name="banner_120_pl.gif" hash="44313c7d27cdcf59c2f66708c6c5abd5"/><file name="banner_120_pl.png" hash="67d3385f93bc9113880305ee7c7da9de"/><file name="banner_120_sp.gif" hash="a003ed8db63620672ae945682b1e1e39"/><file name="banner_120_sp.png" hash="f9c4a653d6814ab3f8c535da706f5f77"/><file name="moneybookers_acc.png" hash="a3e639a68fafdffaca81e91985127735"/><file name="moneybookers_csi.gif" hash="4eec4ed7c494d01d518a3c6c691128e9"/><file name="moneybookers_did.gif" hash="6a3a3365894e9cdb199647a5b74ba35b"/><file name="moneybookers_dnk.gif" hash="7d4b8d27784f8a6fa6ef81c4e911831b"/><file name="moneybookers_ebt.gif" hash="9911d8cc223e7f3d9ec12f50c280ec61"/><file name="moneybookers_ent.gif" hash="704e9551ed4aff82b67114242b9fba1a"/><file name="moneybookers_gcb.gif" hash="e2e7c0f501e5ab0136f859ca5f57abc2"/><file name="moneybookers_gir.gif" hash="f16e949bc60bbd812f803d5e377d47f6"/><file name="moneybookers_idl.gif" hash="fe0ad1efc12d43df6c9ff3ffdd9dd59b"/><file name="moneybookers_lsr.gif" hash="58cdadfa20b6d37aeaa19e50995e4baf"/><file name="moneybookers_mae.gif" hash="4d4b5f0cf3377939c7738fc7e416d25f"/><file name="moneybookers_npy.gif" hash="01242c5ad7bc667e7493b550b6397fab"/><file name="moneybookers_obt_de.png" hash="ce44fd2974b8d279401778292e2c4484"/><file name="moneybookers_obt_dk.png" hash="2985e8cb472d1886d584fa31d56bee92"/><file name="moneybookers_obt_ee.png" hash="cb186be1c7595544f61d3737c7bf85aa"/><file name="moneybookers_obt_en.png" hash="eee098a06e3ea34f33e276724b084774"/><file name="moneybookers_obt_fl.png" hash="6c3766df052d875ce399e62ad8a435f8"/><file name="moneybookers_obt_lt.png" hash="adf61f248fc6d5985840db3e0c23391e"/><file name="moneybookers_obt_lv.png" hash="4e7f16b4988ea30f049942d4dcdb5f78"/><file name="moneybookers_obt_pl.png" hash="fb2c43c18ba73d390e5b5f5261261f4a"/><file name="moneybookers_obt_se.png" hash="9028412e9c3f25d114bf40bb2049d225"/><file name="moneybookers_pli.gif" hash="93989e85caff760af7a61838db0300bf"/><file name="moneybookers_psp.gif" hash="7abffc2246f172625be2ce31f4315cb2"/><file name="moneybookers_pwy.gif" hash="b4a0b9db9a031855e6e3899592012fae"/><file name="moneybookers_sft.gif" hash="e9e774163c99a8ab4deb18d37feaf658"/><file name="moneybookers_so2.gif" hash="9911d8cc223e7f3d9ec12f50c280ec61"/><file name="moneybookers_wlt.gif" hash="4b9cbc5aa5c32f3015ce7bec98da2670"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="moneybookers"><file name="banner.jpg" hash="382b1eea5550ce6c1b88cd4444058362"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="mage"><dir name="adminhtml"><file name="moneybookers.js" hash="23aa035ee2785459ca7682b9689bfb03"/></dir></dir></dir></target></contents>
33
+ <compatible/>
34
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.0-alpha1</min><max>1.6.0.0</max></package></required></dependencies>
35
+ </package>
skin/adminhtml/default/default/images/moneybookers/banner.jpg ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_de.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_de.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_dk.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_fr.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_fr.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_int.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_int.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_pl.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_pl.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_sp.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/banner_120_sp.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_acc.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_csi.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_did.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_dnk.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_ebt.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_ent.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_gcb.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_gir.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_idl.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_lsr.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_mae.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_npy.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_de.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_dk.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_ee.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_en.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_fl.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_lt.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_lv.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_pl.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_obt_se.png ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_pli.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_psp.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_pwy.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_sft.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_so2.gif ADDED
Binary file
skin/frontend/base/default/images/moneybookers/moneybookers_wlt.gif ADDED
Binary file