9bbd841bf705997db5b5633f8e1b794d - Version 2.0.0.0

Version Notes

Good!

Download this release

Release Info

Developer PB
Extension 9bbd841bf705997db5b5633f8e1b794d
Version 2.0.0.0
Comparing to
See all releases


Code changes from version 1.0.0.0 to 2.0.0.0

{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/code/local/Payparts/Payment/Block/Message.php RENAMED
File without changes
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/code/local/Payparts/Payment/Block/Redirect.php RENAMED
File without changes
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/code/local/Payparts/Payment/Helper/Data.php RENAMED
File without changes
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/code/local/Payparts/Payment/Model/Redirect.php RENAMED
@@ -48,7 +48,6 @@ class Payparts_Payment_Model_Redirect extends Mage_Payment_Model_Method_Abstract
48
  if(!$resultToken['status']){
49
  Mage::throwException(Mage::helper('payparts')->__('PayParts :', $resultToken['message']));
50
  }
51
- // die;
52
  return '//payparts2.privatbank.ua/ipp/v2/payment?token=' . (string)$resultToken['token'];
53
  }
54
 
48
  if(!$resultToken['status']){
49
  Mage::throwException(Mage::helper('payparts')->__('PayParts :', $resultToken['message']));
50
  }
 
51
  return '//payparts2.privatbank.ua/ipp/v2/payment?token=' . (string)$resultToken['token'];
52
  }
53
 
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/code/local/Payparts/Payment/controllers/PaymentController.php RENAMED
File without changes
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/code/local/Payparts/Payment/etc/config.xml RENAMED
File without changes
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/code/local/Payparts/Payment/etc/system.xml RENAMED
File without changes
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/design/frontend/base/default/template/payparts/message.phtml RENAMED
@@ -64,7 +64,7 @@
64
  result['name'] = e.options[e.selectedIndex].getAttribute('name');
65
  return result;
66
  }
67
-
68
  function periodChange(){
69
  var selectData = getPaySelectedAttr();
70
  var result = '<option disabled>Срок,мес.</option><option selected value="2">2</option>';
@@ -79,8 +79,20 @@
79
  document.getElementById('system-name').innerHTML = selectData['name'];
80
 
81
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  document.getElementById("send-parts-error").style.display = "none";
83
- document.getElementById("payment-buttons-container").style.display = "none";
84
  document.getElementById('send-period').onclick = send;
85
  document.getElementById('system-sel').onchange = periodChange;
86
  </script>
64
  result['name'] = e.options[e.selectedIndex].getAttribute('name');
65
  return result;
66
  }
67
+
68
  function periodChange(){
69
  var selectData = getPaySelectedAttr();
70
  var result = '<option disabled>Срок,мес.</option><option selected value="2">2</option>';
79
  document.getElementById('system-name').innerHTML = selectData['name'];
80
 
81
  }
82
+ function radioLisener(){
83
+ var radios = document.forms["co-payment-form"].elements["payment[method]"];
84
+ for(var i = 0, max = radios.length; i < max; i++) {
85
+ radios[i].onchange = function() {
86
+ if(document.getElementById('p_method_payparts_redirect').checked){
87
+ document.getElementById("payment-buttons-container").style.display = "none";
88
+ } else{
89
+ document.getElementById("payment-buttons-container").style.display = "block";
90
+ }
91
+ }
92
+ }
93
+ }
94
+ radioLisener();
95
  document.getElementById("send-parts-error").style.display = "none";
 
96
  document.getElementById('send-period').onclick = send;
97
  document.getElementById('system-sel').onchange = periodChange;
98
  </script>
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/design/frontend/base/default/template/payparts/redirect.phtml RENAMED
File without changes
Payparts_Payment-1.0.0.0/app/etc/modules/Payparts_Payparts_Payment.xml → Payparts_Payment-2.0.0.0/app/etc/modules/Payparts_Payment.xml RENAMED
@@ -2,8 +2,8 @@
2
  <config>
3
  <modules>
4
  <Payparts_Payment>
5
- <active>enable</active>
6
- <codePool>community</codePool>
7
  <depends>
8
  <Mage_Sales />
9
  <Mage_Payment />
2
  <config>
3
  <modules>
4
  <Payparts_Payment>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
  <depends>
8
  <Mage_Sales />
9
  <Mage_Payment />
{Payparts_Payment-1.0.0.0 → Payparts_Payment-2.0.0.0}/app/locale/ru_RU/Payparts_Payment.csv RENAMED
@@ -1,7 +1,7 @@
1
  "Extension:","Модуль:"
2
  "Enabled","Включен"
3
  "Ident shop","Идентификатор магазина"
4
- "Shop password","Проль магазина"
5
  "Check hash","Проверять HASH"
6
  "Secret key","Секретный ключ"
7
  "Sort order","Порядок сортировки"
1
  "Extension:","Модуль:"
2
  "Enabled","Включен"
3
  "Ident shop","Идентификатор магазина"
4
+ "Shop password","Пароль магазина"
5
  "Check hash","Проверять HASH"
6
  "Secret key","Секретный ключ"
7
  "Sort order","Порядок сортировки"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>9bbd841bf705997db5b5633f8e1b794d</name>
4
- <version>1.0.0.0</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>This is new payment method.</description>
11
  <notes>Good!</notes>
12
  <authors><author><name>PB</name><user>pbuser</user><email>info@privatbank.ua</email></author></authors>
13
- <date>2015-11-25</date>
14
- <time>15:31:57</time>
15
- <contents><target name="magecommunity"><dir><dir name="app"><dir name="code"><dir name="local"><dir name="Payparts"><dir name="Payment"><dir name="etc"><file name="system.xml" hash=""/><file name="config.xml" hash=""/></dir><dir name="Block"><file name="Message.php" hash=""/><file name="Redirect.php" hash=""/></dir><dir name="controllers"><file name="PaymentController.php" hash=""/></dir><dir name="Helper"><file name="Data.php" hash=""/></dir><dir name="Model"><file name="Redirect.php" hash=""/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Payparts_PaypartsPayment.xml" hash=""/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="app"><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payparts"><file name="message.phtml" hash=""/><file name="redirect.phtml" hash=""/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="app"><dir name="locale"><dir name="ru_RU"><file name="Payparts_Payment.csv" hash=""/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.5.9</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>9bbd841bf705997db5b5633f8e1b794d</name>
4
+ <version>2.0.0.0</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
10
  <description>This is new payment method.</description>
11
  <notes>Good!</notes>
12
  <authors><author><name>PB</name><user>pbuser</user><email>info@privatbank.ua</email></author></authors>
13
+ <date>2016-03-02</date>
14
+ <time>17:14:57</time>
15
+ <contents><target name="magecommunity"><dir><dir name="app"><dir name="code"><dir name="local"><dir name="Payparts"><dir name="Payment"><dir name="etc"><file name="system.xml" hash=""/><file name="config.xml" hash=""/></dir><dir name="Block"><file name="Message.php" hash=""/><file name="Redirect.php" hash=""/></dir><dir name="controllers"><file name="PaymentController.php" hash=""/></dir><dir name="Helper"><file name="Data.php" hash=""/></dir><dir name="Model"><file name="Redirect.php" hash=""/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Payparts_Payment.xml" hash=""/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="app"><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payparts"><file name="message.phtml" hash=""/><file name="redirect.phtml" hash=""/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="app"><dir name="locale"><dir name="ru_RU"><file name="Payparts_Payment.csv" hash=""/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.5.9</min><max>7.0.0</max></php></required></dependencies>
18
  </package>