Version Notes
stable release
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | ET_PaymentRobokassa |
| Version | 1.0.6 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.5 to 1.0.6
app/code/community/ET/PaymentRobokassa/Model/Method/Etrobokassa.php
CHANGED
|
@@ -289,20 +289,13 @@ class ET_PaymentRobokassa_Model_Method_Etrobokassa extends Mage_Payment_Model_Me
|
|
| 289 |
|
| 290 |
/**
|
| 291 |
* @param $order Mage_Sales_Model_Order
|
|
|
|
|
|
|
|
|
|
| 292 |
*/
|
| 293 |
public function generateHash($order, $writeLog = false)
|
| 294 |
{
|
| 295 |
-
|
| 296 |
-
$outSum = $this->getOutSum($order);
|
| 297 |
-
if ($writeLog) {
|
| 298 |
-
Mage::helper("etpaymentrobokassa")->log('Currency converted from [' .
|
| 299 |
-
Mage::app()->getStore()->getCurrentCurrencyCode() . '] to [' .
|
| 300 |
-
$this->_transferCurrency . '] ' . $order->getBaseGrandTotal() . ' ' . $outSum . '');
|
| 301 |
-
}
|
| 302 |
-
} else {
|
| 303 |
-
$outSum = $order->getGrandTotal();
|
| 304 |
-
}
|
| 305 |
-
|
| 306 |
$hashData = array(
|
| 307 |
"MrchLogin" => $this->_sMerchantLogin,
|
| 308 |
"OutSum" => round($outSum, 2),
|
|
@@ -317,10 +310,23 @@ class ET_PaymentRobokassa_Model_Method_Etrobokassa extends Mage_Payment_Model_Me
|
|
| 317 |
|
| 318 |
/**
|
| 319 |
* @param $order Mage_Sales_Model_Order
|
|
|
|
|
|
|
|
|
|
| 320 |
*/
|
| 321 |
-
public function getOutSum($order)
|
| 322 |
{
|
| 323 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
return $outSum;
|
| 325 |
}
|
| 326 |
|
| 289 |
|
| 290 |
/**
|
| 291 |
* @param $order Mage_Sales_Model_Order
|
| 292 |
+
* @param bool $writeLog
|
| 293 |
+
*
|
| 294 |
+
* @return string
|
| 295 |
*/
|
| 296 |
public function generateHash($order, $writeLog = false)
|
| 297 |
{
|
| 298 |
+
$outSum = $this->getOutSum($order, $writeLog);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 299 |
$hashData = array(
|
| 300 |
"MrchLogin" => $this->_sMerchantLogin,
|
| 301 |
"OutSum" => round($outSum, 2),
|
| 310 |
|
| 311 |
/**
|
| 312 |
* @param $order Mage_Sales_Model_Order
|
| 313 |
+
* @param bool $writeLog
|
| 314 |
+
*
|
| 315 |
+
* @return float
|
| 316 |
*/
|
| 317 |
+
public function getOutSum($order, $writeLog = false)
|
| 318 |
{
|
| 319 |
+
if ($this->_transferCurrency != $order->getOrderCurrencyCode()) {
|
| 320 |
+
$outSum = $order->getBaseCurrency()->convert($order->getBaseGrandTotal(), $this->_transferCurrency);
|
| 321 |
+
if ($writeLog) {
|
| 322 |
+
Mage::helper("etpaymentrobokassa")->log('Currency converted from [' .
|
| 323 |
+
Mage::app()->getStore()->getCurrentCurrencyCode() . '] to [' .
|
| 324 |
+
$this->_transferCurrency . '] ' . $order->getBaseGrandTotal() . ' ' . $outSum . '');
|
| 325 |
+
}
|
| 326 |
+
} else {
|
| 327 |
+
$outSum = $order->getGrandTotal();
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
return $outSum;
|
| 331 |
}
|
| 332 |
|
app/code/community/ET/PaymentRobokassa/etc/config.xml
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
<modules>
|
| 23 |
<ET_PaymentRobokassa>
|
| 24 |
<name>ET Payment Robokassa</name>
|
| 25 |
-
<version>1.0.
|
| 26 |
<descr>
|
| 27 |
<ru_RU><![CDATA[Платёжный модуль Robokassa. Позволяет использовать сервис приёма платежей Robokassa (robokassa.ru) на вашем Magento сайте.]]>
|
| 28 |
</ru_RU>
|
| 22 |
<modules>
|
| 23 |
<ET_PaymentRobokassa>
|
| 24 |
<name>ET Payment Robokassa</name>
|
| 25 |
+
<version>1.0.6</version>
|
| 26 |
<descr>
|
| 27 |
<ru_RU><![CDATA[Платёжный модуль Robokassa. Позволяет использовать сервис приёма платежей Robokassa (robokassa.ru) на вашем Magento сайте.]]>
|
| 28 |
</ru_RU>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>ET_PaymentRobokassa</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://shop.etwebsolutions.com/eng/etws-license-free-v1">ETWS Free License (EFL1)</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>_Free payment extension ET Payment Robokassa allows you to use payment gateway Robokassa (robokassa.ru) on your website._</description>
|
| 11 |
<notes>stable release</notes>
|
| 12 |
<authors><author><name>Jurij</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
|
| 13 |
-
<date>2014-07
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="ET"><dir name="PaymentRobokassa"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Heading.php" hash="71c419849070047ca9f024b08ea2cd1e"/><file name="Linktoinfo.php" hash="c4dc4b21897d093dbd9736c3079ce03b"/><file name="Linktooptions.php" hash="687813f8551ed509486fc7da6dc60540"/></dir></dir></dir></dir><file name="Support.php" hash="1e98b88c9d5a482c9f698637f3db0c21"/></dir><dir name="Single"><file name="Form.php" hash="748fa65742a34d66a80209dad81f23ea"/><file name="Info.php" hash="6ca2b3f7f318164f520144419ac3720e"/></dir><file name="Form.php" hash="3f3773311e029601aa6755fd2fc6a7f2"/><file name="Info.php" hash="3fc0ac20cd14002acdf8deff3359c68e"/><file name="Redirect.php" hash="45e05f5cc2869584eb90bd0a05e8fbc1"/></dir><dir name="Controller"><file name="Router.php" hash="8271139fa6af2cd57d6a5f45d767d4a1"/></dir><dir name="Helper"><file name="Data.php" hash="8e427557290d5bee091f3a181af45a4e"/></dir><dir name="Model"><dir name="Method"><file name="Etrobokassa.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>ET_PaymentRobokassa</name>
|
| 4 |
+
<version>1.0.6</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://shop.etwebsolutions.com/eng/etws-license-free-v1">ETWS Free License (EFL1)</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>_Free payment extension ET Payment Robokassa allows you to use payment gateway Robokassa (robokassa.ru) on your website._</description>
|
| 11 |
<notes>stable release</notes>
|
| 12 |
<authors><author><name>Jurij</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
|
| 13 |
+
<date>2014-11-07</date>
|
| 14 |
+
<time>09:53:27</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="ET"><dir name="PaymentRobokassa"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Heading.php" hash="71c419849070047ca9f024b08ea2cd1e"/><file name="Linktoinfo.php" hash="c4dc4b21897d093dbd9736c3079ce03b"/><file name="Linktooptions.php" hash="687813f8551ed509486fc7da6dc60540"/></dir></dir></dir></dir><file name="Support.php" hash="1e98b88c9d5a482c9f698637f3db0c21"/></dir><dir name="Single"><file name="Form.php" hash="748fa65742a34d66a80209dad81f23ea"/><file name="Info.php" hash="6ca2b3f7f318164f520144419ac3720e"/></dir><file name="Form.php" hash="3f3773311e029601aa6755fd2fc6a7f2"/><file name="Info.php" hash="3fc0ac20cd14002acdf8deff3359c68e"/><file name="Redirect.php" hash="45e05f5cc2869584eb90bd0a05e8fbc1"/></dir><dir name="Controller"><file name="Router.php" hash="8271139fa6af2cd57d6a5f45d767d4a1"/></dir><dir name="Helper"><file name="Data.php" hash="8e427557290d5bee091f3a181af45a4e"/></dir><dir name="Model"><dir name="Method"><file name="Etrobokassa.php" hash="d33e1721a9bb54ea821574771dcc4543"/></dir><file name="Culture.php" hash="1f549bdc0bcb2dcf53b656bcf2bc4677"/><file name="Paysystem.php" hash="dbe855edb31265e13c389fc5d964fc62"/></dir><dir name="controllers"><file name="GateController.php" hash="8a14c909a69b7012d43a0f6fec47a728"/></dir><dir name="etc"><file name="config.xml" hash="7f33f75cd845135bf1c4086137f9cd2e"/><file name="system.xml" hash="75d61cc3824fbc62e4d89c67b320d4fd"/></dir><dir name="sql"><dir name="etpaymentrobokassa_setup"><file name="mysql4-install-1.0.0.php" hash="550cabe108b7453b09d2de7e8720459d"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="ru_RU"><file name="ET_PaymentRobokassa.csv" hash="9df34388c47b662f17b5161e7c3fb242"/></dir><dir name="en_US"><file name="ET_PaymentRobokassa.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageetc"><dir name="modules"><file name="ET_PaymentRobokassa.xml" hash="29a6a6d442729714e93aded22ce4b1b2"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="et_paymentrobokassa"><dir name="single"><file name="form.phtml" hash="ffdb96cd7677d5b256a49bb8fe5d9145"/><file name="info.phtml" hash="460b5111ae8b9d78e0a320c5878cc30d"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="et_paymentrobokassa"><dir name="single"><file name="form.phtml" hash="594645a04acfd21185ba89fbc3752f60"/><file name="info.phtml" hash="460b5111ae8b9d78e0a320c5878cc30d"/></dir></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
