Version Notes
Fixed path to Global Configuration file.
Download this release
Release Info
| Developer | Instamojo |
| Extension | Instamojo_Imojo |
| Version | 0.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 0.0.4 to 0.0.5
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,6 +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 |
$order->sendNewOrderEmail();
|
| 124 |
$order->setEmailSent(true);
|
| 125 |
|
|
@@ -138,13 +139,13 @@ class Instamojo_Imojo_PaymentController extends Mage_Core_Controller_Front_Actio
|
|
| 138 |
$payment->setIsTransactionClosed(1);
|
| 139 |
// $this->_processInvoice($orderId);
|
| 140 |
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template',
|
| 141 |
-
'
|
| 142 |
-
array('template' => '
|
| 143 |
// Curl fetch status information to cross compare
|
| 144 |
}else{
|
| 145 |
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template',
|
| 146 |
-
'
|
| 147 |
-
array('template' => '
|
| 148 |
}
|
| 149 |
$this->getLayout()->getBlock('content')->append($block);
|
| 150 |
$this->renderLayout();
|
| 75 |
$transaction->save();
|
| 76 |
$order->save();
|
| 77 |
|
| 78 |
+
$block = $this->getLayout()->createBlock('Mage_Core_Block_Template', 'instamojo', array('template' => 'instamojo/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");
|
| 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 |
+
'instamojo',
|
| 143 |
+
array('template' => 'instamojo/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 |
+
'instamojo',
|
| 148 |
+
array('template' => 'instamojo/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.5</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>
|
|
@@ -13,9 +13,9 @@ We provide you an out-of-the-box e-commerce framework that takes care of mundane
|
|
| 13 |
</description>
|
| 14 |
<notes>Fixed path to Global Configuration file.</notes>
|
| 15 |
<authors><author><name>Instamojo</name><user>Instamojo</user><email>dev@instamojo.com</email></author></authors>
|
| 16 |
-
<date>2015-04-
|
| 17 |
-
<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="
|
| 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.5</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/MIT">MIT</license>
|
| 7 |
<channel>community</channel>
|
| 13 |
</description>
|
| 14 |
<notes>Fixed path to Global Configuration file.</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:34:19</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="da162f1171565f117ff3c45dadcbd4c0"/></dir><dir name="etc"><file name="config.xml" hash="6783f653e9cc1cf88540ac34532479a5"/><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>
|
