Skip to content

Commit 48a1fa5

Browse files
committed
fix device information capture issue
1 parent 9f864b3 commit 48a1fa5

File tree

8 files changed

+26
-30
lines changed

8 files changed

+26
-30
lines changed

Diff for: CHANGELOG

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ Revision History for FraudLabs Pro Magento2
1212
Fixed IP detection when Magento is running behind a reverse proxy server.
1313

1414
2.0.7 2017-09-15
15-
Added new fields for screen/order API.
15+
Added new fields for screen/order API.
16+
17+
2.0.8 2017-10-20
18+
Fixed device information capture issue.

Diff for: Controller/Observer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public function processSendRequestToFraudLabsPro($order) {
126126
'user_order_id' => $orderId,
127127
'magento_order_id' => $order->getEntityId(),
128128
'payment_mode' => $paymentMode,
129-
'flp_checksum' => '',
129+
'flp_checksum' => ( isset( $_COOKIE['flp_checksum'] ) ) ? $_COOKIE['flp_checksum'] : '',
130130
'source' => 'magento',
131-
'source_version' => '2.0.7',
131+
'source_version' => '2.0.8',
132132
);
133133

134134
$shippingAddress = $order->getShippingAddress();

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The features of this extension are:
1414
* Email notification of fraud orders
1515
* Mobile app notification of fraud orders
1616

17-
This extension requires a valid API key to function. Please sign up for a free API key at http://www.fraudlabspro.com/sign-up.
17+
This extension requires a valid API key to function. Please sign up for a free API key at https://www.fraudlabspro.com/sign-up.
1818

1919
# Installation
2020

@@ -33,4 +33,4 @@ This extension requires a valid API key to function. Please sign up for a free A
3333
2. Next continue by entering: composer update
3434
3. Then follow by: php bin/magento setup:upgrade
3535

36-
For more detail information please refer http://www.fraudlabspro.com/tutorials/how-to-install-fraudlabs-pro-plugin-on-magento2.
36+
For more detail information please refer https://www.fraudlabspro.com/tutorials/how-to-install-fraudlabs-pro-plugin-on-magento2.

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hexasoft/module-fraudlabspro",
33
"description": "FraudLabs Pro Fraud Prevention plugin that screen the order transaction for online frauds. Fraud Prevention extension for Magento 2.",
4-
"version": "2.0.7",
4+
"version": "2.0.8",
55
"type": "magento2-module",
66
"require": {
77
"php": "~5.5.0|~5.6.0|~7.0.0"

Diff for: view/frontend/layout/default.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0"?>
2+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
3+
<head>
4+
<script src="Hexasoft_FraudLabsPro::fraudlabsproagent.js"/>
5+
</head>
6+
</page>

Diff for: view/frontend/layout/fraudlabspro_agent.xml

-8
This file was deleted.

Diff for: view/frontend/templates/agent.phtml

-16
This file was deleted.

Diff for: view/frontend/web/fraudlabsproagent.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(function () {
2+
function s() {
3+
var e = document.createElement('script');
4+
e.type = 'text/javascript';
5+
e.async = true;
6+
e.src = ('https:' === document.location.protocol ? 'https://' : 'http://') + 'cdn.fraudlabspro.com/s.js';
7+
var s = document.getElementsByTagName('script')[0];
8+
s.parentNode.insertBefore(e, s);
9+
}
10+
(window.attachEvent) ? window.attachEvent('onload', s) : window.addEventListener('load', s, false);
11+
})();

0 commit comments

Comments
 (0)