ChronoPay - Version 1.0.1

Version Notes

1.0.1

Download this release

Release Info

Developer Magento Core Team
Extension ChronoPay
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/{Magetrix/Chrono/Block/Magentrix.php → Magazento/Chrono/Block/Developer.php} RENAMED
@@ -1,11 +1,11 @@
1
  <?php
2
 
3
- class Magetrix_Chrono_Block_Magentrix extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
4
 
5
  public function render(Varien_Data_Form_Element_Abstract $element) {
6
  $content.= '<p></p>';
7
  $content.= '<style>';
8
- $content.= '.magtrix {
9
  background:#FAFAFA;
10
  border: 1px solid #CCCCCC;
11
  margin-bottom: 10px;
@@ -13,19 +13,19 @@ class Magetrix_Chrono_Block_Magentrix extends Mage_Adminhtml_Block_System_Config
13
  height:auto;
14
 
15
  }
16
- .magtrix h3 {
17
  color: #EA7601;
18
  }
19
  .contact-type {
20
  color: #EA7601;
21
  font-weight:bold;
22
  }
23
- .magtrix img {
24
  border: 1px solid #CCCCCC;
25
  float:left;
26
  height:235px;
27
  }
28
- .magtrix .info {
29
  border: 1px solid #CCCCCC;
30
  background:#E7EFEF;
31
  padding: 5px 10px 0 5px;
@@ -36,19 +36,19 @@ class Magetrix_Chrono_Block_Magentrix extends Mage_Adminhtml_Block_System_Config
36
  $content.= '</style>';
37
 
38
 
39
- $content.= '<div class="magtrix">';
40
- $content.= '<img src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/default/default/magetrix/general/magetrix.jpg" alt="www.magetrix.com" />';
41
  $content.= '<div class="info">';
42
  $content.= '<h3>Magento extensions</h3>';
43
- $content.= '<a href="http://www.magetrix.com/" target="_blank">www.magetrix.com</a> - experts are specializing in custom extension development for the world\'s fastest growing eCommerce platform - Magento. <br/>';
44
  $content.= 'All extensions are designed for the Magento CMS archetecture, using native libraries and only the most efficient approaches to development.<br/>';
45
  $content.= 'If you need Magento development or have a concept for an extension you\'d like developed for the Magento CMS platform, please contact us.</br>';
46
- $content.= '-----------------------------------------------------<br>';
47
- $content.= '<span class="contact-type">Company website:</span> <a href="http://www.magetrix.com/" target="_blank">www.magetrix.com</a> <br/>';
48
- $content.= '<span class="contact-type">E-mail:</span> volgodark@gmail.com <br/>';
49
  $content.= '<span class="contact-type">Skype:</span> volgodark <br/>';
50
  $content.= '<span class="contact-type">Phone:</span> +7 909389 2222 <br/>';
51
- // $content.= '<span class="contact-type">Magento profile:</span> <a href="http://www.magentocommerce.com/magento-connect/developer/Magetrix" target="_blank">visit</a> <br/>';
52
  // $content.= '<span class="contact-type">LinkedIn profile:</span> <a href="http://www.linkedin.com/pub/ivan-proskuryakov/31/200/316" target="_blank">visit</a> <br/>';
53
  // $content.= '<span class="contact-type">Facebook profile:</span> <a href="http://www.facebook.com/ivan.proskuryakov" target="_blank">visit</a> <br/>';
54
 
1
  <?php
2
 
3
+ class Magazento_Chrono_Block_Developer extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
4
 
5
  public function render(Varien_Data_Form_Element_Abstract $element) {
6
  $content.= '<p></p>';
7
  $content.= '<style>';
8
+ $content.= '.magazento {
9
  background:#FAFAFA;
10
  border: 1px solid #CCCCCC;
11
  margin-bottom: 10px;
13
  height:auto;
14
 
15
  }
16
+ .magazento h3 {
17
  color: #EA7601;
18
  }
19
  .contact-type {
20
  color: #EA7601;
21
  font-weight:bold;
22
  }
23
+ .magazento img {
24
  border: 1px solid #CCCCCC;
25
  float:left;
26
  height:235px;
27
  }
28
+ .magazento .info {
29
  border: 1px solid #CCCCCC;
30
  background:#E7EFEF;
31
  padding: 5px 10px 0 5px;
36
  $content.= '</style>';
37
 
38
 
39
+ $content.= '<div class="magazento">';
40
+ $content.= '<a href="http://www.magazento.com/" target="_blank"><img src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/default/default/magazento/promo/magazento.jpg" alt="www.magazento.com" /></a>';
41
  $content.= '<div class="info">';
42
  $content.= '<h3>Magento extensions</h3>';
43
+ $content.= '<a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> - experts are specializing in custom extension development for the world\'s fastest growing eCommerce platform - Magento. <br/>';
44
  $content.= 'All extensions are designed for the Magento CMS archetecture, using native libraries and only the most efficient approaches to development.<br/>';
45
  $content.= 'If you need Magento development or have a concept for an extension you\'d like developed for the Magento CMS platform, please contact us.</br>';
46
+ $content.= '--------------------------------------------------------<br>';
47
+ $content.= '<span class="contact-type">Company website:</span> <a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> <br/>';
48
+ $content.= '<span class="contact-type">E-mail:</span> info@magazento.com <br/>';
49
  $content.= '<span class="contact-type">Skype:</span> volgodark <br/>';
50
  $content.= '<span class="contact-type">Phone:</span> +7 909389 2222 <br/>';
51
+ $content.= '<span class="contact-type">Magento profile:</span> <a href="http://www.magentocommerce.com/magento-connect/developer/Magazento" target="_blank">visit</a> <br/>';
52
  // $content.= '<span class="contact-type">LinkedIn profile:</span> <a href="http://www.linkedin.com/pub/ivan-proskuryakov/31/200/316" target="_blank">visit</a> <br/>';
53
  // $content.= '<span class="contact-type">Facebook profile:</span> <a href="http://www.facebook.com/ivan.proskuryakov" target="_blank">visit</a> <br/>';
54
 
app/code/community/Magazento/Chrono/Block/Form.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Magazento_Chrono_Block_Form extends Mage_Payment_Block_Form
5
+ {
6
+ protected function _construct()
7
+ {
8
+ parent::_construct();
9
+ $this->setTemplate('magazento/chrono/form.phtml');
10
+
11
+ }
12
+ }
app/code/community/Magazento/Chrono/Block/Info.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Magazento_Chrono_Block_Info extends Mage_Payment_Block_Info {
4
+
5
+ protected function _construct() {
6
+ parent::_construct();
7
+ $this->setTemplate('magazento/chrono/info.phtml');
8
+ }
9
+ }
app/code/community/{Magetrix → Magazento}/Chrono/Block/Redirect.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Magetrix_Chrono_Block_Redirect extends Mage_Core_Block_Abstract
4
  {
5
  protected function _toHtml()
6
  {
@@ -13,17 +13,17 @@ class Magetrix_Chrono_Block_Redirect extends Mage_Core_Block_Abstract
13
  ->setUseContainer(true);
14
  foreach ($chrono->getFormFields() as $field=>$value) {
15
  $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$value));
16
- echo 'name=>'.$field.'value=>'.$value.'<br>';
17
  }
18
 
19
- $form->addField('input', 'submit', array('value'=>'Pay'));
20
 
21
  $html = '<html><body>';
22
  $html.= Mage::getStoreConfig('payment/chrono/redirecttext');
23
  $html.= '<br>';
24
  $html.= $form->toHtml();
25
  $html.= '<br>';
26
- // $html.= '<script type="text/javascript">document.getElementById("pay").submit();</script>';
27
  $html.= '</body></html>';
28
 
29
 
1
  <?php
2
 
3
+ class Magazento_Chrono_Block_Redirect extends Mage_Core_Block_Abstract
4
  {
5
  protected function _toHtml()
6
  {
13
  ->setUseContainer(true);
14
  foreach ($chrono->getFormFields() as $field=>$value) {
15
  $form->addField($field, 'hidden', array('name'=>$field, 'value'=>$value));
16
+ // echo 'name=>'.$field.'value=>'.$value.'<br>';
17
  }
18
 
19
+ // $form->addField('input', 'submit', array('value'=>'Pay'));
20
 
21
  $html = '<html><body>';
22
  $html.= Mage::getStoreConfig('payment/chrono/redirecttext');
23
  $html.= '<br>';
24
  $html.= $form->toHtml();
25
  $html.= '<br>';
26
+ $html.= '<script type="text/javascript">document.getElementById("pay").submit();</script>';
27
  $html.= '</body></html>';
28
 
29
 
app/code/community/Magazento/Chrono/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Magazento_Chrono_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/community/{Magetrix → Magazento}/Chrono/Model/Checkout.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Magetrix_Chrono_Model_Checkout extends Mage_Payment_Model_Method_Abstract {
4
 
5
  protected $_code = 'chrono';
6
  protected $_formBlockType = 'chrono/form';
1
  <?php
2
 
3
+ class Magazento_Chrono_Model_Checkout extends Mage_Payment_Model_Method_Abstract {
4
 
5
  protected $_code = 'chrono';
6
  protected $_formBlockType = 'chrono/form';
app/code/community/{Magetrix → Magazento}/Chrono/controllers/RedirectController.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Magetrix_Chrono_RedirectController extends Mage_Core_Controller_Front_Action {
4
 
5
  protected $_order;
6
 
1
  <?php
2
 
3
+ class Magazento_Chrono_RedirectController extends Mage_Core_Controller_Front_Action {
4
 
5
  protected $_order;
6
 
app/code/community/{Magetrix → Magazento}/Chrono/etc/config.xml RENAMED
@@ -1,25 +1,25 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <Magetrix_Chrono>
5
  <version>1.0.0</version>
6
- </Magetrix_Chrono>
7
  </modules>
8
  <global>
9
  <models>
10
  <chrono>
11
- <class>Magetrix_Chrono_Model</class>
12
  </chrono>
13
  </models>
14
  <blocks>
15
  <chrono>
16
- <class>Magetrix_Chrono_Block</class>
17
  </chrono>
18
  </blocks>
19
  <resources>
20
  <chrono_setup>
21
  <setup>
22
- <module>Magetrix_Chrono</module>
23
  </setup>
24
  <connection>
25
  <use>core_setup</use>
@@ -38,7 +38,7 @@
38
  </resources>
39
  <helpers>
40
  <chrono>
41
- <class>Magetrix_Chrono_Helper</class>
42
  </chrono>
43
  </helpers>
44
  </global>
@@ -50,29 +50,29 @@
50
  <chrono>
51
  <use>standard</use>
52
  <args>
53
- <module>Magetrix_Chrono</module>
54
  <frontName>chrono</frontName>
55
  </args>
56
  </chrono>
57
  </routers>
58
  <translate>
59
  <modules>
60
- <Magetrix_Chrono>
61
  <files>
62
- <default>Magetrix_Chrono.csv</default>
63
  </files>
64
- </Magetrix_Chrono>
65
  </modules>
66
  </translate>
67
  </frontend>
68
  <adminhtml>
69
  <translate>
70
  <modules>
71
- <Magetrix_Chrono>
72
  <files>
73
- <default>Magetrix_Chrono.csv</default>
74
  </files>
75
- </Magetrix_Chrono>
76
  </modules>
77
  </translate>
78
  </adminhtml>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <Magazento_Chrono>
5
  <version>1.0.0</version>
6
+ </Magazento_Chrono>
7
  </modules>
8
  <global>
9
  <models>
10
  <chrono>
11
+ <class>Magazento_Chrono_Model</class>
12
  </chrono>
13
  </models>
14
  <blocks>
15
  <chrono>
16
+ <class>Magazento_Chrono_Block</class>
17
  </chrono>
18
  </blocks>
19
  <resources>
20
  <chrono_setup>
21
  <setup>
22
+ <module>Magazento_Chrono</module>
23
  </setup>
24
  <connection>
25
  <use>core_setup</use>
38
  </resources>
39
  <helpers>
40
  <chrono>
41
+ <class>Magazento_Chrono_Helper</class>
42
  </chrono>
43
  </helpers>
44
  </global>
50
  <chrono>
51
  <use>standard</use>
52
  <args>
53
+ <module>Magazento_Chrono</module>
54
  <frontName>chrono</frontName>
55
  </args>
56
  </chrono>
57
  </routers>
58
  <translate>
59
  <modules>
60
+ <Magazento_Chrono>
61
  <files>
62
+ <default>Magazento_Chrono.csv</default>
63
  </files>
64
+ </Magazento_Chrono>
65
  </modules>
66
  </translate>
67
  </frontend>
68
  <adminhtml>
69
  <translate>
70
  <modules>
71
+ <Magazento_Chrono>
72
  <files>
73
+ <default>Magazento_Chrono.csv</default>
74
  </files>
75
+ </Magazento_Chrono>
76
  </modules>
77
  </translate>
78
  </adminhtml>
app/code/community/{Magetrix → Magazento}/Chrono/etc/system.xml RENAMED
@@ -4,7 +4,7 @@
4
  <payment>
5
  <groups>
6
  <chrono translate="label" module="chrono">
7
- <label>Chronopay.com</label>
8
  <frontend_type>text</frontend_type>
9
  <sort_order>103</sort_order>
10
  <show_in_default>1</show_in_default>
@@ -115,13 +115,13 @@
115
  </about>-->
116
  </fields>
117
  </chrono>
118
- <magentrix>
119
- <frontend_model>chrono/magentrix</frontend_model>
120
  <sort_order>9999</sort_order>
121
  <show_in_default>1</show_in_default>
122
  <show_in_website>1</show_in_website>
123
  <show_in_store>1</show_in_store>
124
- </magentrix>
125
  </groups>
126
 
127
  </payment>
4
  <payment>
5
  <groups>
6
  <chrono translate="label" module="chrono">
7
+ <label>ChronoPay.com</label>
8
  <frontend_type>text</frontend_type>
9
  <sort_order>103</sort_order>
10
  <show_in_default>1</show_in_default>
115
  </about>-->
116
  </fields>
117
  </chrono>
118
+ <developer>
119
+ <frontend_model>chrono/developer</frontend_model>
120
  <sort_order>9999</sort_order>
121
  <show_in_default>1</show_in_default>
122
  <show_in_website>1</show_in_website>
123
  <show_in_store>1</show_in_store>
124
+ </developer>
125
  </groups>
126
 
127
  </payment>
app/code/community/Magetrix/Chrono/Block/Form.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
-
4
- class Magetrix_Chrono_Block_Form extends Mage_Payment_Block_Form
5
- {
6
- protected function _construct()
7
- {
8
- parent::_construct();
9
- $this->setTemplate('magetrix/chrono/form.phtml');
10
-
11
- }
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Magetrix/Chrono/Block/Info.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
-
3
- class Magetrix_Chrono_Block_Info extends Mage_Payment_Block_Info {
4
-
5
- protected function _construct() {
6
- parent::_construct();
7
- $this->setTemplate('magetrix/chrono/info.phtml');
8
- }
9
- }
 
 
 
 
 
 
 
 
 
app/code/community/Magetrix/Chrono/Helper/Data.php DELETED
@@ -1,6 +0,0 @@
1
- <?php
2
-
3
- class Magetrix_Chrono_Helper_Data extends Mage_Core_Helper_Abstract
4
- {
5
-
6
- }
 
 
 
 
 
 
app/design/frontend/default/default/template/{magetrix → magazento}/chrono/form.phtml RENAMED
File without changes
app/design/frontend/default/default/template/{magetrix → magazento}/chrono/info.phtml RENAMED
File without changes
app/etc/modules/{Magetrix_Chrono.xml → Magazento_Chrono.xml} RENAMED
@@ -1,9 +1,9 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <Magetrix_Chrono>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- </Magetrix_Chrono>
8
  </modules>
9
- </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <Magazento_Chrono>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ </Magazento_Chrono>
8
  </modules>
9
+ </config>
app/locale/en_US/{Magetrix_Chrono.csv → Magazento_Chrono.csv} RENAMED
File without changes
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ChronoPay</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Chrono</summary>
10
  <description>Chrono</description>
11
- <notes>1.0.0</notes>
12
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
13
- <date>2011-04-12</date>
14
- <time>10:00:13</time>
15
- <contents><target name="magelocale"><dir name="en_US"><file name="Magetrix_Chrono.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magetrix"><dir name="general"><file name="magetrix.jpg" hash="286b5647bcf2fa35163d655ad4965414"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="magetrix"><dir name="chrono"><file name="form.phtml" hash="5f2a6f09578dc497411a6299249161d0"/><file name="info.phtml" hash="289ab12c3774a99b4dd5adf9a1ab0b71"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magetrix"><dir name="Chrono"><dir name="Block"><file name="Form.php" hash="de66e85db42b623f6df9695566ae7455"/><file name="Info.php" hash="8c43420e2b98e9384d4d054b0660a529"/><file name="Magentrix.php" hash="147bb71e7ab37e05adeea1223bc606b7"/><file name="Redirect.php" hash="bed163026eb06e51dcda4428c91b05bc"/></dir><dir name="controllers"><file name="RedirectController.php" hash="57cb66f30c384a282d471ac06cb7fe3e"/></dir><dir name="etc"><file name="config.xml" hash="5803243466a5a46d2484864a3d02d8df"/><file name="system.xml" hash="0df0862415a073f8d03faa05de085407"/></dir><dir name="Helper"><file name="Data.php" hash="33f83d7cd4005d9f7649ad29f0388f19"/></dir><dir name="Model"><file name="Checkout.php" hash="8614d8171742bb2dbeb8f04e218af58e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magetrix_Chrono.xml" hash="970927db797b1ee2c71dd7f47c617a53"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ChronoPay</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Chrono</summary>
10
  <description>Chrono</description>
11
+ <notes>1.0.1</notes>
12
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
13
+ <date>2011-04-13</date>
14
+ <time>08:11:13</time>
15
+ <contents><target name="magelocale"><dir name="en_US"><file name="Magazento_Chrono.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magazento"><dir name="promo"><file name="magazento.jpg" hash="88520d456df68c98130433b5184b8e7f"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="magazento"><dir name="chrono"><file name="form.phtml" hash="5f2a6f09578dc497411a6299249161d0"/><file name="info.phtml" hash="289ab12c3774a99b4dd5adf9a1ab0b71"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Chrono"><dir name="Block"><file name="Developer.php" hash="56b5deab3aaf72a2cb16f71a4b9acf19"/><file name="Form.php" hash="39332138c0d574426a340ef274a718bc"/><file name="Info.php" hash="a5b3a59c8a7f80c0f13bc271ae06dc5d"/><file name="Redirect.php" hash="5b422cc2281e7ea39b2fcda1520242e5"/></dir><dir name="controllers"><file name="RedirectController.php" hash="ea0ff3572bb821ab7c8fbd2db6075de9"/></dir><dir name="etc"><file name="config.xml" hash="3af08e11a901143f9e740cb0b40b035a"/><file name="system.xml" hash="baa5e8a8b51da62259a7bcf3c213b122"/></dir><dir name="Helper"><file name="Data.php" hash="8f90ed4d0d4a1770e14025a66e0f886f"/></dir><dir name="Model"><file name="Checkout.php" hash="e5082535310d3461bdf1f4051215a7b4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Chrono.xml" hash="e74bec1539bb55d9672937ba855eafc7"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
skin/frontend/default/default/magazento/promo/magazento.jpg ADDED
Binary file
skin/frontend/default/default/magetrix/general/magetrix.jpg DELETED
Binary file