Hexasoft_FraudLabsPro - Version 1.2.0

Version Notes

Added Javascript agent to track device information.

Download this release

Release Info

Developer Hexasoft
Extension Hexasoft_FraudLabsPro
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.0 to 1.2.0

app/code/local/Hexasoft/FraudLabsPro/Block/Agent.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Hexasoft_FraudLabsPro_Block_Agent extends Mage_Core_Block_Template
3
+ {
4
+ public function isActive()
5
+ {
6
+ if(!Mage::getStoreConfig('fraudlabspro/basic_settings/active')){
7
+ return false;
8
+ }
9
+
10
+ return true;
11
+ }
12
+ }
app/code/local/Hexasoft/FraudLabsPro/Controller/Observer.php CHANGED
@@ -80,8 +80,9 @@ class Hexasoft_FraudLabsPro_Controller_Observer{
80
  'currency' => Mage::app()->getStore()->getCurrentCurrencyCode(),
81
  'user_order_id' => $orderId,
82
  'magento_order_id' => $order->getEntityId(),
 
83
  'source' => 'magento',
84
- 'source_version' => '1.0.11',
85
  );
86
 
87
  $shippingAddress = $order->getShippingAddress();
80
  'currency' => Mage::app()->getStore()->getCurrentCurrencyCode(),
81
  'user_order_id' => $orderId,
82
  'magento_order_id' => $order->getEntityId(),
83
+ 'flp_checksum' => Mage::getModel('core/cookie')->get('flp_checksum'),
84
  'source' => 'magento',
85
+ 'source_version' => '1.2.0',
86
  );
87
 
88
  $shippingAddress = $order->getShippingAddress();
app/code/local/Hexasoft/FraudLabsPro/controllers/IndexController.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class Hexasoft_FraudLabsPro_IndexController extends Mage_Core_Controller_Front_Action{
3
  public function indexAction(){
4
- $this->loadLayout(array('default'));
5
  $this->renderLayout();
6
  }
7
  }
1
  <?php
2
  class Hexasoft_FraudLabsPro_IndexController extends Mage_Core_Controller_Front_Action{
3
  public function indexAction(){
4
+ $this->loadLayout();
5
  $this->renderLayout();
6
  }
7
  }
app/code/local/Hexasoft/FraudLabsPro/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Hexasoft_FraudLabsPro>
5
- <version>1.1.0</version>
6
  </Hexasoft_FraudLabsPro>
7
  </modules>
8
 
@@ -83,6 +83,13 @@
83
  </args>
84
  </fraudlabspro>
85
  </routers>
 
 
 
 
 
 
 
86
  </frontend>
87
 
88
  <default>
2
  <config>
3
  <modules>
4
  <Hexasoft_FraudLabsPro>
5
+ <version>1.2.0</version>
6
  </Hexasoft_FraudLabsPro>
7
  </modules>
8
 
83
  </args>
84
  </fraudlabspro>
85
  </routers>
86
+ <layout>
87
+ <updates>
88
+ <fraudlabspro>
89
+ <file>fraudlabspro_agent.xml</file>
90
+ </fraudlabspro>
91
+ </updates>
92
+ </layout>
93
  </frontend>
94
 
95
  <default>
app/design/frontend/base/default/layout/fraudlabspro_agent.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="before_body_end">
5
+ <block type="fraudlabspro/agent" name="fraudlabspro_agent" template="fraudlabspro/agent.phtml" />
6
+ </reference>
7
+ </default>
8
+ </layout>
app/design/frontend/base/default/template/fraudlabspro/agent.phtml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php /** */?>
2
+ <?php if($this->isActive()): ?>
3
+ <script>
4
+ (function(){
5
+ function s() {
6
+ var e = document.createElement('script');
7
+ e.type = 'text/javascript';
8
+ e.async = true;
9
+ e.src = ('https:' === document.location.protocol ? 'https://' : 'http://') + 'cdn.fraudlabspro.com/s.js';
10
+ var s = document.getElementsByTagName('script')[0];
11
+ s.parentNode.insertBefore(e, s);
12
+ }
13
+ (window.attachEvent) ? window.attachEvent('onload', s) : window.addEventListener('load', s, false);
14
+ })();
15
+ </script>
16
+ <?php endif; ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Hexasoft_FraudLabsPro</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension screens online transactions for frauds.</summary>
10
  <description>FraudLabs Pro service screens online transactions for frauds. It increases e-commerce merchant profits by reduces chargeback, improves operation efficiency and provides business intelligence.</description>
11
- <notes>Added custom action for review and rejected transactions.</notes>
12
  <authors><author><name>Hexasoft</name><user>hexasoft</user><email>tech@hexasoft.com.my</email></author></authors>
13
- <date>2015-11-26</date>
14
- <time>02:17:46</time>
15
- <contents><target name="magelocal"><dir name="Hexasoft"><dir name="FraudLabsPro"><dir name="Block"><dir name="Sales"><dir name="Order"><file name="Fraudlabsproresult.php" hash="8d345ebe9d7b8ee3166482a1648fb783"/><dir name="Grid"><dir name="Renderer"><file name="Risk.php" hash="19c8ca6a7656fee2e66b904dc97079a0"/></dir></dir><file name="Grid.php" hash="154790c49632c35af5e301c33a1e3188"/></dir></dir></dir><dir name="Controller"><file name="Observer.php" hash="0dccbf8924f27ef8fdda09d2131d65bd"/></dir><dir name="Helper"><file name="Data.php" hash="948a251b0d5415653b1efce1af279b28"/></dir><dir name="controllers"><file name="IndexController.php" hash="92a43627feee95218815cf1aad91f439"/></dir><dir name="etc"><file name="adminhtml.xml" hash="38ccfabe77e18a8f8d9050359d44d13e"/><file name="config.xml" hash="e977b3eab5534d2209401690a4228747"/><file name="system.xml" hash="fbed11ab9291bc1f95112559562df9c7"/></dir><dir name="sql"><dir name="fraudlabspro_setup"><file name="mysql4-install-1.0.0.php" hash="be13e48218b5120641393e68df201d8b"/></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Hexasoft_FraudLabsPro.xml" hash="e8bb308243797bda5769209a8b360577"/></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fraudlabspro.xml" hash="43ae7917d3084744031b90d33f515f87"/></dir><dir name="template"><dir name="fraudlabspro"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><file name="info.phtml" hash="25a46ae56e812c120f2125ad32f4bb1c"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
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>Hexasoft_FraudLabsPro</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension screens online transactions for frauds.</summary>
10
  <description>FraudLabs Pro service screens online transactions for frauds. It increases e-commerce merchant profits by reduces chargeback, improves operation efficiency and provides business intelligence.</description>
11
+ <notes>Added Javascript agent to track device information.</notes>
12
  <authors><author><name>Hexasoft</name><user>hexasoft</user><email>tech@hexasoft.com.my</email></author></authors>
13
+ <date>2015-12-30</date>
14
+ <time>00:57:18</time>
15
+ <contents><target name="magelocal"><dir name="Hexasoft"><dir name="FraudLabsPro"><dir name="Block"><file name="Agent.php" hash="4bdc83087e13d73c5aad938e13514255"/><dir name="Sales"><dir name="Order"><file name="Fraudlabsproresult.php" hash="8d345ebe9d7b8ee3166482a1648fb783"/><dir name="Grid"><dir name="Renderer"><file name="Risk.php" hash="19c8ca6a7656fee2e66b904dc97079a0"/></dir></dir><file name="Grid.php" hash="154790c49632c35af5e301c33a1e3188"/></dir></dir></dir><dir name="Controller"><file name="Observer.php" hash="8052a01d2e3f5cbb1ef2802fb2ad1b9e"/></dir><dir name="Helper"><file name="Data.php" hash="948a251b0d5415653b1efce1af279b28"/></dir><dir name="controllers"><file name="IndexController.php" hash="2bc99063ff21e0a4484e2955e78ccf46"/></dir><dir name="etc"><file name="adminhtml.xml" hash="38ccfabe77e18a8f8d9050359d44d13e"/><file name="config.xml" hash="96b0c1a59282ad6187243b9e4da13540"/><file name="system.xml" hash="fbed11ab9291bc1f95112559562df9c7"/></dir><dir name="sql"><dir name="fraudlabspro_setup"><file name="mysql4-install-1.0.0.php" hash="be13e48218b5120641393e68df201d8b"/></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Hexasoft_FraudLabsPro.xml" hash="e8bb308243797bda5769209a8b360577"/></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fraudlabspro.xml" hash="43ae7917d3084744031b90d33f515f87"/></dir><dir name="template"><dir name="fraudlabspro"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><file name="info.phtml" hash="25a46ae56e812c120f2125ad32f4bb1c"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="fraudlabspro_agent.xml" hash="d5a98ac1e05315bc3bc4b5f4aef948d2"/></dir><dir name="template"><dir name="fraudlabspro"><file name="agent.phtml" hash="51c365bd36dcad836a573798d2df14ff"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>