Version Notes
Fixed issue with template path.
Download this release
Release Info
Developer | Instamojo |
Extension | Instamojo_Imojo |
Version | 0.0.6 |
Comparing to | |
See all releases |
Code changes from version 0.0.5 to 0.0.6
app/code/community/Instamojo/Imojo/controllers/PaymentController.php
CHANGED
@@ -75,7 +75,7 @@ class Instamojo_Imojo_PaymentController extends Mage_Core_Controller_Front_Actio
|
|
75 |
$transaction->save();
|
76 |
$order->save();
|
77 |
|
78 |
-
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template', '
|
79 |
->assign(array_merge($data, array('url'=>$url, 'custom_field_name'=>'data_' . $custom_field)));
|
80 |
$this->getLayout()->getBlock('content')->append($block);
|
81 |
$this->renderLayout();
|
@@ -120,7 +120,7 @@ class Instamojo_Imojo_PaymentController extends Mage_Core_Controller_Front_Actio
|
|
120 |
$this->_processInvoice($orderId);
|
121 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true)->save();
|
122 |
$order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, false)->save();
|
123 |
-
Mage::log("Pending payment is set to False");
|
124 |
$order->sendNewOrderEmail();
|
125 |
$order->setEmailSent(true);
|
126 |
|
@@ -139,13 +139,13 @@ class Instamojo_Imojo_PaymentController extends Mage_Core_Controller_Front_Actio
|
|
139 |
$payment->setIsTransactionClosed(1);
|
140 |
// $this->_processInvoice($orderId);
|
141 |
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template',
|
142 |
-
'
|
143 |
-
array('template' => '
|
144 |
// Curl fetch status information to cross compare
|
145 |
}else{
|
146 |
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template',
|
147 |
-
'
|
148 |
-
array('template' => '
|
149 |
}
|
150 |
$this->getLayout()->getBlock('content')->append($block);
|
151 |
$this->renderLayout();
|
75 |
$transaction->save();
|
76 |
$order->save();
|
77 |
|
78 |
+
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template', 'imojo', array('template' => 'imojo/redirect.phtml'))
|
79 |
->assign(array_merge($data, array('url'=>$url, 'custom_field_name'=>'data_' . $custom_field)));
|
80 |
$this->getLayout()->getBlock('content')->append($block);
|
81 |
$this->renderLayout();
|
120 |
$this->_processInvoice($orderId);
|
121 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true)->save();
|
122 |
$order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, false)->save();
|
123 |
+
Mage::log("Pending payment is set to False", Zend_Log::DEBUG, $LOG_FILE_NAME);
|
124 |
$order->sendNewOrderEmail();
|
125 |
$order->setEmailSent(true);
|
126 |
|
139 |
$payment->setIsTransactionClosed(1);
|
140 |
// $this->_processInvoice($orderId);
|
141 |
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template',
|
142 |
+
'imojo',
|
143 |
+
array('template' => 'imojo/success.phtml'))->assign(array('instaId'=> $insta_id));
|
144 |
// Curl fetch status information to cross compare
|
145 |
}else{
|
146 |
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template',
|
147 |
+
'imojo',
|
148 |
+
array('template' => 'imojo/failure.phtml'))->assign(array('instaId'=> $insta_id));
|
149 |
}
|
150 |
$this->getLayout()->getBlock('content')->append($block);
|
151 |
$this->renderLayout();
|
app/code/community/Instamojo/Imojo/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Instamojo_Imojo>
|
5 |
-
<version>0.0.
|
6 |
</Instamojo_Imojo>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Instamojo_Imojo>
|
5 |
+
<version>0.0.6</version>
|
6 |
</Instamojo_Imojo>
|
7 |
</modules>
|
8 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Instamojo_Imojo</name>
|
4 |
-
<version>0.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/MIT">MIT</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,11 @@
|
|
11 |

|
12 |
We provide you an out-of-the-box e-commerce framework that takes care of mundane stuff from payments to delivery. All you need to do is share a link wherever your audience is.
|
13 |
</description>
|
14 |
-
<notes>Fixed
|
15 |
<authors><author><name>Instamojo</name><user>Instamojo</user><email>dev@instamojo.com</email></author></authors>
|
16 |
<date>2015-04-15</date>
|
17 |
-
<time>01:
|
18 |
-
<contents><target name="magecommunity"><dir name="Instamojo"><dir name="Imojo"><dir name="Helper"><file name="Data.php" hash="e53c6598fa917d8791e046b20d76d221"/></dir><dir name="Model"><file name="PaymentMethod.php" hash="3eb0e176696408fd756ca40ba022b1f3"/></dir><dir name="controllers"><file name="PaymentController.php" hash="
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.3.0</min><max>5.6.6</max></php></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Instamojo_Imojo</name>
|
4 |
+
<version>0.0.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/MIT">MIT</license>
|
7 |
<channel>community</channel>
|
11 |

|
12 |
We provide you an out-of-the-box e-commerce framework that takes care of mundane stuff from payments to delivery. All you need to do is share a link wherever your audience is.
|
13 |
</description>
|
14 |
+
<notes>Fixed issue with template path.</notes>
|
15 |
<authors><author><name>Instamojo</name><user>Instamojo</user><email>dev@instamojo.com</email></author></authors>
|
16 |
<date>2015-04-15</date>
|
17 |
+
<time>01:54:47</time>
|
18 |
+
<contents><target name="magecommunity"><dir name="Instamojo"><dir name="Imojo"><dir name="Helper"><file name="Data.php" hash="e53c6598fa917d8791e046b20d76d221"/></dir><dir name="Model"><file name="PaymentMethod.php" hash="3eb0e176696408fd756ca40ba022b1f3"/></dir><dir name="controllers"><file name="PaymentController.php" hash="d2010587021f9757f7e8f02edc55295a"/></dir><dir name="etc"><file name="config.xml" hash="4e59689c297bb48e836964b8b2ca33d7"/><file name="system.xml" hash="428898819cd38b15ab4a222964179e65"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="imojo"><file name="deposit_failure.phtml" hash="a01f8d2f503ccaf5d3f6a4682b9caf2b"/><file name="deposit_success.phtml" hash="6952afc4383fbf0eab18ee94e185f329"/><file name="redirect.phtml" hash="42463d0fa90f0085320b5069ed9ba7af"/><file name="success.phtml" hash="ad5d2318608673f5ba6ea85bd784198f"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Instamojo_Imojo.xml" hash="9a80f70915e53671e26ea6476fdbe6a4"/></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.3.0</min><max>5.6.6</max></php></required></dependencies>
|
21 |
</package>
|