Version Notes
ServerResult action exception message included in the Message response variable
Download this release
Release Info
Developer | Magento Core Team |
Extension | Iridiumcorp_Tpg |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
app/code/local/Iridiumcorp/Tpg/controllers/PaymentController.php
CHANGED
@@ -251,13 +251,14 @@ class Iridiumcorp_Tpg_PaymentController extends Mage_Core_Controller_Front_Actio
|
|
251 |
catch (Exception $exc)
|
252 |
{
|
253 |
$boError = true;
|
|
|
254 |
$szNotificationMessage = Iridiumcorp_Tpg_Model_Tpg_GlobalErrors::ERROR_183;
|
255 |
Mage::logException($exc);
|
256 |
}
|
257 |
|
258 |
if($boError == true)
|
259 |
{
|
260 |
-
|
261 |
}
|
262 |
else
|
263 |
{
|
@@ -280,10 +281,9 @@ class Iridiumcorp_Tpg_PaymentController extends Mage_Core_Controller_Front_Actio
|
|
280 |
{
|
281 |
Mage::getSingleton('checkout/session')->clear();
|
282 |
}
|
|
|
|
|
283 |
}
|
284 |
-
|
285 |
-
// set the response with StatusCode=30 so that the PaymentForm always displays the result
|
286 |
-
$this->getResponse()->setBody('StatusCode=30');
|
287 |
}
|
288 |
|
289 |
/**
|
251 |
catch (Exception $exc)
|
252 |
{
|
253 |
$boError = true;
|
254 |
+
$szErrorMessage = $exc->getMessage();
|
255 |
$szNotificationMessage = Iridiumcorp_Tpg_Model_Tpg_GlobalErrors::ERROR_183;
|
256 |
Mage::logException($exc);
|
257 |
}
|
258 |
|
259 |
if($boError == true)
|
260 |
{
|
261 |
+
$this->getResponse()->setBody('StatusCode=30&Message='.$szErrorMessage);
|
262 |
}
|
263 |
else
|
264 |
{
|
281 |
{
|
282 |
Mage::getSingleton('checkout/session')->clear();
|
283 |
}
|
284 |
+
|
285 |
+
$this->getResponse()->setBody('StatusCode=0');
|
286 |
}
|
|
|
|
|
|
|
287 |
}
|
288 |
|
289 |
/**
|
app/design/adminhtml/default/default/template/tpg/info.phtml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php $direct = Mage::getModel('tpg/direct'); ?>
|
2 |
<?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
|
3 |
<?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
|
4 |
-
<?php echo $this->__('
|
5 |
<?php } else {?>
|
6 |
<?php echo $this->__('No card information is available'); ?>
|
7 |
<?php }?>
|
1 |
<?php $direct = Mage::getModel('tpg/direct'); ?>
|
2 |
<?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
|
3 |
<?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
|
4 |
+
<?php echo $this->__('Iridiumcorp secure payment'); ?>
|
5 |
<?php } else {?>
|
6 |
<?php echo $this->__('No card information is available'); ?>
|
7 |
<?php }?>
|
app/design/frontend/default/default/template/tpg/info.phtml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php $direct = Mage::getModel('tpg/direct'); ?>
|
2 |
<?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
|
3 |
<?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
|
4 |
-
<?php echo $this->__('
|
5 |
<?php } else {?>
|
6 |
<?php echo $this->__('No card information is available'); ?>
|
7 |
<?php }?>
|
1 |
<?php $direct = Mage::getModel('tpg/direct'); ?>
|
2 |
<?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
|
3 |
<?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
|
4 |
+
<?php echo $this->__('Iridiumcorp secure payment'); ?>
|
5 |
<?php } else {?>
|
6 |
<?php echo $this->__('No card information is available'); ?>
|
7 |
<?php }?>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Iridiumcorp_Tpg</name>
|
4 |
-
<version>1.8.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Iridium Payment Extension</summary>
|
10 |
<description>Magento payment extension for the Iridium payment gateway. This extension fully supports the processing of 3D secure (Verified By Visa and Mastercard SecureCode) transactions. It also supports all of the integration methods provided by Iridium.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Iridium Support</name><user>auto-converted</user><email>support@iridiumcorp.co.uk</email></author><author><name>Benjamin Kovac</name><user>auto-converted</user><email>ben.kovac@iridiumcorp.co.uk</email></author></authors>
|
13 |
-
<date>2010-08-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="9b2afd627d6e9e4f9ad43b0a7153962b"/><file name="info.phtml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Iridiumcorp_Tpg</name>
|
4 |
+
<version>1.8.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Iridium Payment Extension</summary>
|
10 |
<description>Magento payment extension for the Iridium payment gateway. This extension fully supports the processing of 3D secure (Verified By Visa and Mastercard SecureCode) transactions. It also supports all of the integration methods provided by Iridium.</description>
|
11 |
+
<notes>ServerResult action exception message included in the Message response variable</notes>
|
12 |
<authors><author><name>Iridium Support</name><user>auto-converted</user><email>support@iridiumcorp.co.uk</email></author><author><name>Benjamin Kovac</name><user>auto-converted</user><email>ben.kovac@iridiumcorp.co.uk</email></author></authors>
|
13 |
+
<date>2010-08-04</date>
|
14 |
+
<time>15:46:41</time>
|
15 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="9b2afd627d6e9e4f9ad43b0a7153962b"/><file name="info.phtml" hash="a907d4bc506e8d75f5998a42242985f3"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="231e39bb2821718eeaec4c1d0ee3233d"/><file name="info.phtml" hash="6ab2a83f89fb6cb66740a505b6b8bc4e"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><file name="iridium_corporation.jpg" hash="589faaa1b7e80b32a425175ecfc3b455"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Iridiumcorp"><dir name="Checkout"><dir name="Block"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="a10e1c19ad7bb8718dcb3adf9d3e4de0"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="aaa95b6e1d6e145940bf9ba9bbe1dc0f"/></dir><dir name="Model"><dir name="Type"><file name="Onepage.php" hash="913717a50f7cf02f5668f698d39add35"/></dir></dir></dir><dir name="Sales"><dir name="etc"><file name="config.xml" hash="5def01c2198f4033cd647dc40fb8e297"/></dir><dir name="Model"><file name="Order.php" hash="f4040067afcda49f8a6d747a434786be"/><dir name="Order"><file name="Invoice.php" hash="0da517143d8c83606fb51721043e7be1"/></dir></dir></dir><dir name="Tpg"><dir name="Block"><file name="Error.php" hash="905367210beb53a0bc68dc6033e24127"/><file name="Form.php" hash="4b1d51aa84982486f3139510c41a221a"/><file name="Info.php" hash="f88445c4880bfe14914252bc76b6fc28"/><file name="Redirect.php" hash="a91a8a8f8b5ad887ed2cdd8d52732b8b"/><file name="Threedsecure.php" hash="6143c058d311287ff189cd149062e73b"/></dir><dir name="controllers"><file name="PaymentController.php" hash="d487efb67f47a34c8ab3b6f1b0e3f5a1"/></dir><dir name="etc"><file name="config.xml" hash="a0314d2981c25496ed0621db3e6090c9"/><file name="system.xml" hash="ab9ecc936a422ddb4ea5c6551655f217"/></dir><dir name="Helper"><file name="Data.php" hash="a72fba87e718c94d993a57199e20ca96"/></dir><dir name="Model"><file name="Direct.php" hash="e685f376832e618fc5e3e2ce2be5181f"/><file name="Request.php" hash="a96e462ed3c1882048ea45f2c3a6662c"/><dir name="Source"><file name="HashMethod.php" hash="36d7fb4fc762feae459f0e67d51006f4"/><file name="OrderStatus.php" hash="95eb926db39d4afeb26784a9396f7b18"/><file name="PaymentAction.php" hash="bd8dc40852b9ff8c80c08fc01f35a988"/><file name="PaymentMode.php" hash="6849defade8a7da4cfaeff3227ae5b83"/><file name="ResultDeliveryMethod.php" hash="b79d6fc714a25aba26cdb0ab572ae06f"/></dir><dir name="Tpg"><file name="GlobalErrors.php" hash="b85f17ff01e26bf89c04c1d60ed52f2f"/><file name="ISOCountries.php" hash="fc63d76fbe25458ba351f114782074cb"/><file name="ISOCurrencies.php" hash="89ac1e124e89c0713ef43a0cf6dd0e2b"/><file name="PaymentFormHelper.php" hash="0011b3f7693bbbe9b1bd965a2245e1e8"/><dir name="ThePaymentGateway"><file name="PaymentSystem.php" hash="4ad38bdb85f865e967153d9f253390cd"/><file name="SOAP.php" hash="504dcb0cb7c60c134b25652881349cc3"/><file name="TPG_Common.php" hash="df1033ef855c7e0e715076a105acb84a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Iridiumcorp_All.xml" hash="f1a85eaa7631af1906f461b662519732"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|