Version Notes
Added new parameters.
Download this release
Release Info
Developer | Hexasoft |
Extension | Hexasoft_FraudLabsPro |
Version | 1.0.11 |
Comparing to | |
See all releases |
Code changes from version 1.0.10 to 1.0.11
app/code/local/Hexasoft/FraudLabsPro/Controller/Observer.php
CHANGED
@@ -33,6 +33,11 @@ class Hexasoft_FraudLabsPro_Controller_Observer{
|
|
33 |
}
|
34 |
|
35 |
public function processSendRequestToFraudLabsPro($order){
|
|
|
|
|
|
|
|
|
|
|
36 |
if(isset($_SERVER['DEV_MODE'])) $_SERVER['REMOTE_ADDR'] = '175.143.8.154';
|
37 |
|
38 |
$apiKey = Mage::getStoreConfig('fraudlabspro/basic_settings/api_key');
|
@@ -50,26 +55,26 @@ class Hexasoft_FraudLabsPro_Controller_Observer{
|
|
50 |
}
|
51 |
|
52 |
$queries = array(
|
53 |
-
'format'=>'json',
|
54 |
-
'key'
|
55 |
-
'ip'
|
56 |
-
'first_name'
|
57 |
-
'last_name'
|
58 |
-
'bill_city'
|
59 |
-
'bill_state'
|
60 |
-
'bill_country'
|
61 |
-
'bill_zip_code'
|
62 |
-
'email_domain'=>substr($order->getCustomerEmail(), strpos($order->getCustomerEmail(), '@')+1),
|
63 |
-
'email_hash'
|
64 |
-
'email'
|
65 |
-
'user_phone'
|
66 |
-
'amount'
|
67 |
-
'quantity'=>count($order->getAllItems()),
|
68 |
-
'currency'=>Mage::app()->getStore()->getCurrentCurrencyCode(),
|
69 |
-
'user_order_id'
|
70 |
-
'magento_order_id'
|
71 |
-
'source'=>'magento',
|
72 |
-
'source_version'=>'1.0.
|
73 |
);
|
74 |
|
75 |
$shippingAddress = $order->getShippingAddress();
|
33 |
}
|
34 |
|
35 |
public function processSendRequestToFraudLabsPro($order){
|
36 |
+
$orderId = $order->getIncrementId();
|
37 |
+
|
38 |
+
if(empty($orderId))
|
39 |
+
return true;
|
40 |
+
|
41 |
if(isset($_SERVER['DEV_MODE'])) $_SERVER['REMOTE_ADDR'] = '175.143.8.154';
|
42 |
|
43 |
$apiKey = Mage::getStoreConfig('fraudlabspro/basic_settings/api_key');
|
55 |
}
|
56 |
|
57 |
$queries = array(
|
58 |
+
'format' => 'json',
|
59 |
+
'key' => $apiKey,
|
60 |
+
'ip' => $ip,
|
61 |
+
'first_name' => $order->getCustomerFirstname(),
|
62 |
+
'last_name' => $order->getCustomerLastname(),
|
63 |
+
'bill_city' => $billingAddress->getCity(),
|
64 |
+
'bill_state' => $billingAddress->getRegion(),
|
65 |
+
'bill_country' => $billingAddress->getCountryId(),
|
66 |
+
'bill_zip_code' => $billingAddress->getPostcode(),
|
67 |
+
'email_domain' => substr($order->getCustomerEmail(), strpos($order->getCustomerEmail(), '@')+1),
|
68 |
+
'email_hash' => $this->_hash($order->getCustomerEmail()),
|
69 |
+
'email' => $order->getCustomerEmail(),
|
70 |
+
'user_phone' => $billingAddress->getTelephone(),
|
71 |
+
'amount' => $order->getBaseGrandTotal(),
|
72 |
+
'quantity' => count($order->getAllItems()),
|
73 |
+
'currency' => Mage::app()->getStore()->getCurrentCurrencyCode(),
|
74 |
+
'user_order_id' => $orderId,
|
75 |
+
'magento_order_id' => $order->getEntityId(),
|
76 |
+
'source' => 'magento',
|
77 |
+
'source_version' => '1.0.11',
|
78 |
);
|
79 |
|
80 |
$shippingAddress = $order->getShippingAddress();
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Hexasoft_FraudLabsPro</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
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 new parameters.</notes>
|
12 |
<authors><author><name>Hexasoft</name><user>hexasoft</user><email>tech@hexasoft.com.my</email></author></authors>
|
13 |
-
<date>2015-
|
14 |
-
<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="
|
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.0.11</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
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 new parameters.</notes>
|
12 |
<authors><author><name>Hexasoft</name><user>hexasoft</user><email>tech@hexasoft.com.my</email></author></authors>
|
13 |
+
<date>2015-11-25</date>
|
14 |
+
<time>07:59:38</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="63b4504bcca74809df23efcdae1a1954"/></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="fa0ac7b81625729c72506ea8b63a596a"/><file name="system.xml" hash="5e30289646a3fb03640b7b4bbeb4ab26"/></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>
|