NoFraud_TegraDirect - Version 1.0.1

Version Notes

Notes: uses cURL to send information to NoFraud Service.

Requires NoFraud service account in order to work.

Configure is set in System > Configuration > Payment Services

---------
v1.0.1
Hotfix for Custom Error message.

Download this release

Release Info

Developer Blumi Gross
Extension NoFraud_TegraDirect
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/NoFraud/TegraDirect/Model/Observer.php CHANGED
@@ -47,7 +47,8 @@ class NoFraud_TegraDirect_Model_Observer {
47
  if(isset($result['decision']) && $result['decision'] == "fail"){
48
  $this->last_transaction = "";
49
  Mage::getSingleton('core/session')->unsNfLastTransaction();
50
- $message = $result['message'] || "Declined";
 
51
  Mage::throwException(Mage::helper('paygate')->__($message));
52
  }
53
  }
47
  if(isset($result['decision']) && $result['decision'] == "fail"){
48
  $this->last_transaction = "";
49
  Mage::getSingleton('core/session')->unsNfLastTransaction();
50
+ $message = ($result['message'] || "Declined")? $result['message']:"Declined";
51
+ Mage::log(var_export($result,true),null,'tegra-direct.log');
52
  Mage::throwException(Mage::helper('paygate')->__($message));
53
  }
54
  }
app/code/community/NoFraud/TegraDirect/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <NoFraud_TegraDirect>
5
- <version>1.0.0</version>
6
  </NoFraud_TegraDirect>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <NoFraud_TegraDirect>
5
+ <version>1.0.1</version>
6
  </NoFraud_TegraDirect>
7
  </modules>
8
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NoFraud_TegraDirect</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/afl-3.0">Academic Free License</license>
7
  <channel>community</channel>
@@ -12,11 +12,15 @@
12
  &#xD;
13
  Requires NoFraud service account in order to work.&#xD;
14
  &#xD;
15
- Configure is set in System &gt; Configuration &gt; Payment Services</notes>
 
 
 
 
16
  <authors><author><name>Blumi Gross</name><user>BlumiNoFraud</user><email>blumi@nofraud.com</email></author><author><name>Michael Esposito</name><user>mesposito</user><email>mesposito@nofraud.com</email></author></authors>
17
- <date>2016-05-13</date>
18
- <time>13:31:06</time>
19
- <contents><target name="magecommunity"><dir name="NoFraud"><dir name="TegraDirect"><dir name="Helper"><file name="Data.php" hash="9575aac8a692bf4f66c5fb62a14a2167"/></dir><dir name="Model"><file name="Observer.php" hash="30eaa99dc0182f24732855b5844db584"/></dir><dir name="etc"><file name="config.xml" hash="cb2a3a1f76b9f1675f2959137a4f1bbe"/><file name="system.xml" hash="57d0d0d658acf9aad00e13377f53d061"/></dir><dir name="sql"><dir name="tegradirect_setup"><file name="install-1.0.0.php" hash="e894527bb612d9748cf8212f1e38f459"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NoFraud_TegraDirect.xml" hash="5611cb98606f5f733e0820bb47d8418e"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.0.0</min><max>5.6.0</max></php><extension><name>curl</name><min>7.35.0</min><max/></extension></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NoFraud_TegraDirect</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/afl-3.0">Academic Free License</license>
7
  <channel>community</channel>
12
  &#xD;
13
  Requires NoFraud service account in order to work.&#xD;
14
  &#xD;
15
+ Configure is set in System &gt; Configuration &gt; Payment Services&#xD;
16
+ &#xD;
17
+ ---------&#xD;
18
+ v1.0.1&#xD;
19
+ Hotfix for Custom Error message.</notes>
20
  <authors><author><name>Blumi Gross</name><user>BlumiNoFraud</user><email>blumi@nofraud.com</email></author><author><name>Michael Esposito</name><user>mesposito</user><email>mesposito@nofraud.com</email></author></authors>
21
+ <date>2016-05-20</date>
22
+ <time>13:59:44</time>
23
+ <contents><target name="magecommunity"><dir name="NoFraud"><dir name="TegraDirect"><dir name="Helper"><file name="Data.php" hash="9575aac8a692bf4f66c5fb62a14a2167"/></dir><dir name="Model"><file name="Observer.php" hash="615fdb5a12ad4059d15357c26a895052"/></dir><dir name="etc"><file name="config.xml" hash="b9aec73a0121f688fe5ce5faab1fa851"/><file name="system.xml" hash="57d0d0d658acf9aad00e13377f53d061"/></dir><dir name="sql"><dir name="tegradirect_setup"><file name="install-1.0.0.php" hash="e894527bb612d9748cf8212f1e38f459"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NoFraud_TegraDirect.xml" hash="5611cb98606f5f733e0820bb47d8418e"/></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.0.0</min><max>5.6.0</max></php><extension><name>curl</name><min>7.35.0</min><max/></extension></required></dependencies>
26
  </package>