Version Notes
Supports all versions of Magento
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Signifyd_Connect |
| Version | 3.5.0 |
| Comparing to | |
| See all releases | |
Code changes from version 3.4.8 to 3.5.0
app/code/community/Signifyd/Connect/Helper/Data.php
CHANGED
|
@@ -24,6 +24,8 @@ class Signifyd_Connect_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 24 |
return "https://www.signifyd.com/cases/" . $case->getCode();
|
| 25 |
}
|
| 26 |
}
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
public function getProductImage($product, $size="150")
|
| 24 |
return "https://www.signifyd.com/cases/" . $case->getCode();
|
| 25 |
}
|
| 26 |
}
|
| 27 |
+
Mage::log('Case URL not found: '.$order_id, null, 'signifyd_connect.log');
|
| 28 |
+
return '';
|
| 29 |
}
|
| 30 |
|
| 31 |
public function getProductImage($product, $size="150")
|
app/code/community/Signifyd/Connect/controllers/ConnectController.php
CHANGED
|
@@ -84,12 +84,10 @@ class Signifyd_Connect_ConnectController extends Mage_Core_Controller_Front_Acti
|
|
| 84 |
|
| 85 |
public function unsupported()
|
| 86 |
{
|
| 87 |
-
echo 'This request type is currently unsupported';
|
| 88 |
-
|
| 89 |
Mage::app()->getResponse()
|
| 90 |
->setHeader('HTTP/1.1','403 Forbidden')
|
| 91 |
->sendResponse();
|
| 92 |
-
|
| 93 |
exit;
|
| 94 |
}
|
| 95 |
|
|
@@ -130,18 +128,7 @@ class Signifyd_Connect_ConnectController extends Mage_Core_Controller_Front_Acti
|
|
| 130 |
break;
|
| 131 |
}
|
| 132 |
}
|
| 133 |
-
|
| 134 |
-
/*
|
| 135 |
-
// Do not create cases if not found -- potential concurrency issues
|
| 136 |
-
if (!$case) {
|
| 137 |
-
$order = Mage::getModel('sales/order')->loadByIncrementId($order_increment);
|
| 138 |
-
|
| 139 |
-
if ($order && $order->getId()) {
|
| 140 |
-
$case = Mage::helper('signifyd_connect')->generateCase($order);
|
| 141 |
-
}
|
| 142 |
-
}
|
| 143 |
-
*/
|
| 144 |
-
|
| 145 |
return $case;
|
| 146 |
}
|
| 147 |
|
|
@@ -149,7 +136,7 @@ class Signifyd_Connect_ConnectController extends Mage_Core_Controller_Front_Acti
|
|
| 149 |
{
|
| 150 |
$this->_request = json_decode($request, true);
|
| 151 |
|
| 152 |
-
$topic = $this->getHeader('
|
| 153 |
|
| 154 |
$this->_topic = $topic;
|
| 155 |
|
|
@@ -371,19 +358,6 @@ class Signifyd_Connect_ConnectController extends Mage_Core_Controller_Front_Acti
|
|
| 371 |
$this->_case = $case;
|
| 372 |
break;
|
| 373 |
}
|
| 374 |
-
|
| 375 |
-
/*
|
| 376 |
-
// Do not create cases if not found -- potential concurrency issues
|
| 377 |
-
if (!$this->_case && isset($request['investigationId'])) {
|
| 378 |
-
$case = Mage::getModel('signifyd_connect/case');
|
| 379 |
-
$case->setOrderIncrement($request['orderId']);
|
| 380 |
-
$case->setCode($request['investigationId']);
|
| 381 |
-
$case->setCreated(strftime('%Y-%m-%d %H:%M:%S', time()));
|
| 382 |
-
$case->setUpdated(strftime('%Y-%m-%d %H:%M:%S', time()));
|
| 383 |
-
|
| 384 |
-
$this->_case = $case;
|
| 385 |
-
}
|
| 386 |
-
*/
|
| 387 |
}
|
| 388 |
|
| 389 |
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($this->_request['orderId']);
|
|
@@ -413,12 +387,21 @@ class Signifyd_Connect_ConnectController extends Mage_Core_Controller_Front_Acti
|
|
| 413 |
|
| 414 |
public function getHeader($header)
|
| 415 |
{
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 419 |
}
|
| 420 |
-
|
|
|
|
| 421 |
return '';
|
|
|
|
| 422 |
}
|
| 423 |
|
| 424 |
public function apiAction()
|
|
@@ -431,7 +414,7 @@ class Signifyd_Connect_ConnectController extends Mage_Core_Controller_Front_Acti
|
|
| 431 |
|
| 432 |
$request = $this->getRawPost();
|
| 433 |
|
| 434 |
-
$hash = $this->getHeader('
|
| 435 |
|
| 436 |
if ($this->logRequest()) {
|
| 437 |
Mage::log('API request: ' . $request, null, 'signifyd_connect.log');
|
| 84 |
|
| 85 |
public function unsupported()
|
| 86 |
{
|
|
|
|
|
|
|
| 87 |
Mage::app()->getResponse()
|
| 88 |
->setHeader('HTTP/1.1','403 Forbidden')
|
| 89 |
->sendResponse();
|
| 90 |
+
echo 'This request type is currently unsupported';
|
| 91 |
exit;
|
| 92 |
}
|
| 93 |
|
| 128 |
break;
|
| 129 |
}
|
| 130 |
}
|
| 131 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
return $case;
|
| 133 |
}
|
| 134 |
|
| 136 |
{
|
| 137 |
$this->_request = json_decode($request, true);
|
| 138 |
|
| 139 |
+
$topic = $this->getHeader('X-SIGNIFYD-TOPIC');
|
| 140 |
|
| 141 |
$this->_topic = $topic;
|
| 142 |
|
| 358 |
$this->_case = $case;
|
| 359 |
break;
|
| 360 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
}
|
| 362 |
|
| 363 |
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($this->_request['orderId']);
|
| 387 |
|
| 388 |
public function getHeader($header)
|
| 389 |
{
|
| 390 |
+
// T379: Some frameworks add an extra HTTP_ before the header, so check for both names
|
| 391 |
+
// Header values stored in the $_SERVER variable have dashes converted to underscores, hence str_replace
|
| 392 |
+
$direct = strtoupper(str_replace('-', '_', $header));
|
| 393 |
+
$extraHttp = 'HTTP_' . $direct;
|
| 394 |
+
|
| 395 |
+
// Check the $_SERVER global
|
| 396 |
+
if (isset($_SERVER[$direct])) {
|
| 397 |
+
return $_SERVER[$direct];
|
| 398 |
+
} else if (isset($_SERVER[$extraHttp])) {
|
| 399 |
+
return $_SERVER[$extraHttp];
|
| 400 |
}
|
| 401 |
+
|
| 402 |
+
Mage::log('Valid Header Not Found: ' . $header, null, 'signifyd_connect.log');
|
| 403 |
return '';
|
| 404 |
+
|
| 405 |
}
|
| 406 |
|
| 407 |
public function apiAction()
|
| 414 |
|
| 415 |
$request = $this->getRawPost();
|
| 416 |
|
| 417 |
+
$hash = $this->getHeader('X-SIGNIFYD-SEC-HMAC-SHA256');
|
| 418 |
|
| 419 |
if ($this->logRequest()) {
|
| 420 |
Mage::log('API request: ' . $request, null, 'signifyd_connect.log');
|
app/code/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-upgrade-3.4.8-3.4.9.php
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
try {
|
| 4 |
+
$this->startSetup();
|
| 5 |
+
$this->endSetup();
|
| 6 |
+
} catch (Exception $e) {
|
| 7 |
+
Mage::log('Signifyd_Connect upgrade: ' . $e->__toString(), null, 'signifyd_connect.log');
|
| 8 |
+
}
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Signifyd_Connect</name>
|
| 4 |
-
<version>3.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>Supports all versions of Magento</description>
|
| 11 |
<notes>Supports all versions of Magento</notes>
|
| 12 |
<authors><author><name>signifyd</name><user>auto-converted</user><email>manelis@signifyd.com</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Signifyd_Connect.xml" hash="bcd998a24567eba8a20423c40fba2adf"/></dir></target><target name="magecommunity"><dir name="Signifyd"><dir name="Connect"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="fcdcd4cb2933147e4b573b4fb7217992"/></dir><file name="Order.php" hash="e49f869c0aa5fb3ab6b70fb5752049ac"/></dir></dir><file name="Renderer.php" hash="5564e9c6926afbbdade26a6fe746948a"/></dir><dir name="Helper"><file name="Data.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Signifyd_Connect</name>
|
| 4 |
+
<version>3.5.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>Supports all versions of Magento</description>
|
| 11 |
<notes>Supports all versions of Magento</notes>
|
| 12 |
<authors><author><name>signifyd</name><user>auto-converted</user><email>manelis@signifyd.com</email></author></authors>
|
| 13 |
+
<date>2015-02-12</date>
|
| 14 |
+
<time>06:47:57</time>
|
| 15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Signifyd_Connect.xml" hash="bcd998a24567eba8a20423c40fba2adf"/></dir></target><target name="magecommunity"><dir name="Signifyd"><dir name="Connect"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="fcdcd4cb2933147e4b573b4fb7217992"/></dir><file name="Order.php" hash="e49f869c0aa5fb3ab6b70fb5752049ac"/></dir></dir><file name="Renderer.php" hash="5564e9c6926afbbdade26a6fe746948a"/></dir><dir name="Helper"><file name="Data.php" hash="2b4ecd3e91506eed6d155f8f6e299507"/></dir><dir name="Model"><dir name="Resource"><dir name="Case"><file name="Collection.php" hash="b7dac9979a0c81db56294d1548570fc2"/></dir><file name="Case.php" hash="621fb50264bd0cdeba720dee6949a0bf"/></dir><file name="Case.php" hash="92e044f7414eddfe084320b4a2098cee"/><file name="Cron.php" hash="51665978bd2bcf67b493f2a2b450d1b8"/><file name="Link.php" hash="0027fc75ef766aa1f51a004305987937"/><file name="Observer.php" hash="2215026284b8f4fe415380ea0cdb19f1"/><file name="Setup.php" hash="e803ffb4b86c7d8ec1d149e665d65877"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SignifydController.php" hash="937fa40bfd59857c738691e0fc6594e7"/></dir><file name="ConnectController.php" hash="4d5cf9c36b3a72e8f1d1f80aa4752b26"/></dir><dir name="etc"><file name="adminhtml.xml" hash="894bd3f5ac76e9f602ab6ab592648b03"/><file name="config.xml" hash="7a18e7f7d5b395882c8bf90b56724d8a"/><file name="system.xml" hash="dc115570682f75c6666d5b4657db729f"/></dir><dir name="sql"><dir name="signifyd_connect_setup"><file name="mysql4-install-3.1.1.php" hash="7fb2ccaf8352eea26e626ace6de53d80"/><file name="mysql4-install-3.3.0.php" hash="f61d0c018b28ae04d8d14b38556d18ad"/><file name="mysql4-install-3.4.0.php" hash="109cc5ca60974d0c4755dcb0f5ade3e7"/><file name="mysql4-install-3.4.5.php" hash="401b92235c0e534c941a64c60d24b851"/><file name="mysql4-upgrade-3.2.0-3.2.1.php" hash="9e36c608afd6e30e3052334e085eeff4"/><file name="mysql4-upgrade-3.2.1-3.2.2.php" hash="efcc5d46a41e549e508a693f1e77bf44"/><file name="mysql4-upgrade-3.2.2-3.2.3.php" hash="3ceb86495f33475774d4fc8727254cfc"/><file name="mysql4-upgrade-3.2.3-3.3.0.php" hash="94b907c2cacde5fb9831408ce9a06190"/><file name="mysql4-upgrade-3.3.0-3.4.0.php" hash="6eb18705081483bb8d9c14adcdefd095"/><file name="mysql4-upgrade-3.4.0-3.4.1.php" hash="79f2064f1fa20d646e66aa3e7912d2a0"/><file name="mysql4-upgrade-3.4.1-3.4.2.php" hash="3ceb86495f33475774d4fc8727254cfc"/><file name="mysql4-upgrade-3.4.2-3.4.3.php" hash="3ceb86495f33475774d4fc8727254cfc"/><file name="mysql4-upgrade-3.4.3-3.4.4.php" hash="3ceb86495f33475774d4fc8727254cfc"/><file name="mysql4-upgrade-3.4.4-3.4.5.php" hash="5b7507d6bb97bf44d27b7a89c56924bb"/><file name="mysql4-upgrade-3.4.5-3.4.6.php" hash="3ceb86495f33475774d4fc8727254cfc"/><file name="mysql4-upgrade-3.4.6-3.4.7.php" hash="3ceb86495f33475774d4fc8727254cfc"/><file name="mysql4-upgrade-3.4.7-3.4.8.php" hash="3ceb86495f33475774d4fc8727254cfc"/><file name="mysql4-upgrade-3.4.8-3.4.9.php" hash="3ceb86495f33475774d4fc8727254cfc"/></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
