Version Notes
1.0.1:
- fixing live/test flag
- re-factored backward compatibility for getConfigData
1.0.0:
- implementation of the Card Gate Plus payment method.
Download this release
Release Info
Developer | Paul Saparov |
Extension | Mage_Cgp |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Mage/Cgp/Model/Base.php
CHANGED
@@ -89,7 +89,7 @@ class Mage_Cgp_Model_Base extends Varien_Object
|
|
89 |
*/
|
90 |
public function isTest()
|
91 |
{
|
92 |
-
return $this->getConfigData('test_mode');
|
93 |
}
|
94 |
|
95 |
/**
|
89 |
*/
|
90 |
public function isTest()
|
91 |
{
|
92 |
+
return ($this->getConfigData('test_mode') == "test");
|
93 |
}
|
94 |
|
95 |
/**
|
app/code/community/Mage/Cgp/Model/Gateway/Abstract.php
CHANGED
@@ -147,7 +147,7 @@ abstract class Mage_Cgp_Model_Gateway_Abstract extends Mage_Payment_Model_Method
|
|
147 |
* @param mixed $store
|
148 |
* @return mixed
|
149 |
*/
|
150 |
-
public function getConfigData($field
|
151 |
{
|
152 |
if ($storeId === null) {
|
153 |
$storeId = $this->getStore();
|
@@ -157,11 +157,7 @@ abstract class Mage_Cgp_Model_Gateway_Abstract extends Mage_Payment_Model_Method
|
|
157 |
$configGateway = Mage::getStoreConfig($this->_module .'/'. $this->_code, $storeId);
|
158 |
$config = array_merge($configSettings, $configGateway);
|
159 |
|
160 |
-
|
161 |
-
return $config;
|
162 |
-
} else {
|
163 |
-
return @$config[$field];
|
164 |
-
}
|
165 |
}
|
166 |
|
167 |
/**
|
147 |
* @param mixed $store
|
148 |
* @return mixed
|
149 |
*/
|
150 |
+
public function getConfigData($field, $storeId = null)
|
151 |
{
|
152 |
if ($storeId === null) {
|
153 |
$storeId = $this->getStore();
|
157 |
$configGateway = Mage::getStoreConfig($this->_module .'/'. $this->_code, $storeId);
|
158 |
$config = array_merge($configSettings, $configGateway);
|
159 |
|
160 |
+
return @$config[$field];
|
|
|
|
|
|
|
|
|
161 |
}
|
162 |
|
163 |
/**
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mage_Cgp</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -24,12 +24,16 @@ We accept the following payment methods:
|
|
24 |
- PayPal
|
25 |

|
26 |
For more information about Card Gate Plus or a test account, please visit http://www.cardgate.com/</description>
|
27 |
-
<notes>1.0.
|
|
|
|
|
|
|
|
|
28 |
- implementation of the Card Gate Plus payment method.</notes>
|
29 |
<authors><author><name>Paul Saparov</name><user>cardgate</user><email>info@cardgate.com</email></author></authors>
|
30 |
-
<date>2011-06-
|
31 |
-
<time>
|
32 |
-
<contents><target name="magecommunity"><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="Cgp"><dir name="Config"><dir name="Source"><file name="Languages.php" hash="821536af861ebcde43ebda148361fbcb"/><file name="Modes.php" hash="0229fa85237675c6617a760624c6c5b7"/></dir></dir></dir></dir></dir><dir name="Cgp"><dir><dir name="Block"><dir name="Form"><file name="Ideal.php" hash="7299cfd4cfbfe789fbd2a67f45114fe3"/></dir><file name="Redirect.php" hash="cf683a717354dabd3374b8e98d8dccec"/></dir><dir name="Helper"><file name="Data.php" hash="7ba89d8143b52dd6d7b12a21d06ada1a"/></dir><dir name="Model"><file name="Base.php" hash="
|
33 |
<compatible/>
|
34 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
35 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mage_Cgp</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
24 |
- PayPal
|
25 |

|
26 |
For more information about Card Gate Plus or a test account, please visit http://www.cardgate.com/</description>
|
27 |
+
<notes>1.0.1:
|
28 |
+
- fixing live/test flag
|
29 |
+
- re-factored backward compatibility for getConfigData
|
30 |
+

|
31 |
+
1.0.0:
|
32 |
- implementation of the Card Gate Plus payment method.</notes>
|
33 |
<authors><author><name>Paul Saparov</name><user>cardgate</user><email>info@cardgate.com</email></author></authors>
|
34 |
+
<date>2011-06-10</date>
|
35 |
+
<time>08:40:35</time>
|
36 |
+
<contents><target name="magecommunity"><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="Cgp"><dir name="Config"><dir name="Source"><file name="Languages.php" hash="821536af861ebcde43ebda148361fbcb"/><file name="Modes.php" hash="0229fa85237675c6617a760624c6c5b7"/></dir></dir></dir></dir></dir><dir name="Cgp"><dir><dir name="Block"><dir name="Form"><file name="Ideal.php" hash="7299cfd4cfbfe789fbd2a67f45114fe3"/></dir><file name="Redirect.php" hash="cf683a717354dabd3374b8e98d8dccec"/></dir><dir name="Helper"><file name="Data.php" hash="7ba89d8143b52dd6d7b12a21d06ada1a"/></dir><dir name="Model"><file name="Base.php" hash="5cd857492c2c99850872faf53ff24f4e"/><dir name="Gateway"><file name="Abstract.php" hash="8750727a744ae0e144f147e442b819a8"/><file name="Americanexpress.php" hash="97ef4d7129f67eda4fab3d370530b957"/><file name="Default.php" hash="825e7a7eedcec0ab5da6a4c91bf4d0eb"/><file name="Directebanking.php" hash="fa28a248c17b06b0b176d0a304ff2476"/><file name="Ideal.php" hash="9988133f985cc31907bf3f12a1a065df"/><file name="Maestro.php" hash="fdd0923d00271802fd3bdc4f68d6b3ba"/><file name="Mastercard.php" hash="26487c47abfea5247dc74eef799e7ec6"/><file name="Mistercash.php" hash="268a27f76303af63d03175d469ffce47"/><file name="Paypal.php" hash="a4a9688502587f0cc5a9f659e12099d8"/><file name="Visa.php" hash="5f3167a8f1fd8277a7720c756eea793a"/><file name="Webmoney.php" hash="67e6715fa62af240cef0367bbf262a3c"/></dir></dir><dir name="controllers"><file name="StandardController.php" hash="03a8928f3b8be013a3e0181a32b94684"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f81650bb81243ac3f8c887b0ccc81993"/><file name="config.xml" hash="1b63f627bc5c2e642e6d6050740a8aa0"/><file name="system.xml" hash="903b60368b3cc0e13779e4b02c3ec67d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="cgp.xml" hash="4971f43f104b22a7fabb089d2e80e8f0"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="cgp"><dir><dir name="form"><file name="ideal.phtml" hash="6f25c5cc0d29a9f0b30f1d985a571720"/></dir></dir><file name="redirect.phtml" hash="140b175f78fde16c3e681eaa4a601815"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Cgp.xml" hash="9a42b367cb9faf250c28a449da0a909e"/></dir></target><target name="magelocale"><dir name="nl_NL"><file name="Mage_Cgp.csv" hash="83a886bcf0b520727b1b84fd105359c7"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="cardgate_section.png" hash="b97b15baba0b27042733c8ea4b4fb6bc"/></dir><file name="cgp.css" hash="555e61e8aa5fb98ae030015fff2c24a3"/></dir></dir></dir></target></contents>
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
39 |
</package>
|