Version Notes
- Card number detection fixed for Authorize.net payment method
Download this release
Release Info
Developer | Shloimy Stauber |
Extension | Eye4Fraud_Connector_integration |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
app/code/local/Eye4Fraud/Connector/Model/Authorizenet.php
CHANGED
@@ -1,13 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(mageFindClassFile("Some_Other_Class")){
|
4 |
-
/** @noinspection PhpUndefinedClassInspection */
|
5 |
-
class Eye4Fraud_Connector_Model_Authorizenet_Parent extends Some_Other_Class{}
|
6 |
-
}
|
7 |
-
else{
|
8 |
-
class Eye4Fraud_Connector_Model_Authorizenet_Parent extends Mage_Paygate_Model_Authorizenet{}
|
9 |
-
}
|
10 |
-
|
11 |
/**
|
12 |
* Extend Authorize.net payment instance to keep access to response data
|
13 |
|
@@ -15,10 +7,12 @@ else{
|
|
15 |
* @package Eye4Fraud_Connector
|
16 |
* @author Mikhail Valiushko
|
17 |
*/
|
18 |
-
class Eye4Fraud_Connector_Model_Authorizenet extends
|
19 |
{
|
20 |
/** @var Mage_Paygate_Model_Authorizenet_Result */
|
21 |
-
protected $
|
|
|
|
|
22 |
|
23 |
/**
|
24 |
* Post request to gateway and return responce
|
@@ -28,15 +22,24 @@ class Eye4Fraud_Connector_Model_Authorizenet extends Eye4Fraud_Connector_Model_A
|
|
28 |
*/
|
29 |
protected function _postRequest(Varien_Object $request)
|
30 |
{
|
31 |
-
$this->
|
32 |
-
|
|
|
33 |
}
|
34 |
|
35 |
/**
|
36 |
* Return response data
|
37 |
-
* @return
|
38 |
-
|
39 |
public function getResponseData(){
|
40 |
-
return $this->
|
41 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
/**
|
4 |
* Extend Authorize.net payment instance to keep access to response data
|
5 |
|
7 |
* @package Eye4Fraud_Connector
|
8 |
* @author Mikhail Valiushko
|
9 |
*/
|
10 |
+
class Eye4Fraud_Connector_Model_Authorizenet extends Mage_Paygate_Model_Authorizenet
|
11 |
{
|
12 |
/** @var Mage_Paygate_Model_Authorizenet_Result */
|
13 |
+
protected $responseData = null;
|
14 |
+
/** @var bool|string Card Number */
|
15 |
+
protected $cardNumber = false;
|
16 |
|
17 |
/**
|
18 |
* Post request to gateway and return responce
|
22 |
*/
|
23 |
protected function _postRequest(Varien_Object $request)
|
24 |
{
|
25 |
+
$this->responseData = parent::_postRequest($request);
|
26 |
+
$this->cardNumber = $request->getData('x_card_num');
|
27 |
+
return $this->responseData;
|
28 |
}
|
29 |
|
30 |
/**
|
31 |
* Return response data
|
32 |
+
* @return Mage_Paygate_Model_Authorizenet_Result
|
33 |
+
*/
|
34 |
public function getResponseData(){
|
35 |
+
return $this->responseData;
|
36 |
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Return first 6 digits of card
|
40 |
+
* @return bool|string
|
41 |
+
*/
|
42 |
+
public function getCardNumber(){
|
43 |
+
return $this->cardNumber;
|
44 |
+
}
|
45 |
}
|
app/code/local/Eye4Fraud/Connector/Model/Config/Frontend/Grid.php
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Check order grid rewrite
|
5 |
-
* @category Eye4fraud
|
6 |
-
* @package Eye4fraud_Connector
|
7 |
-
*/
|
8 |
-
class Eye4Fraud_Connector_Model_Config_Frontend_Grid extends Mage_Adminhtml_Block_System_Config_Form_Field
|
9 |
-
{
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Render config field
|
13 |
-
*
|
14 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
15 |
-
* @return string
|
16 |
-
*/
|
17 |
-
public function render(Varien_Data_Form_Element_Abstract $element){
|
18 |
-
$order_grid = Mage::getBlockSingleton('adminhtml/sales_order_grid');
|
19 |
-
|
20 |
-
$rewrite_status = is_a($order_grid, 'Eye4Fraud_Connector_Block_Sales_Order_Grid');
|
21 |
-
$element->setData('value', '[dummy]');
|
22 |
-
|
23 |
-
if($rewrite_status){
|
24 |
-
$value = '<img src="'.$this->getSkinUrl('images/fam_bullet_success.gif').'" style="margin-bottom: -5px;">';
|
25 |
-
}
|
26 |
-
else{
|
27 |
-
$value = '<img src="'.$this->getSkinUrl('images/error_msg_icon.gif').'" style="margin-bottom: -5px;">';
|
28 |
-
$element->setData('comment', get_class($order_grid));
|
29 |
-
}
|
30 |
-
$html = parent::render($element);
|
31 |
-
$html = str_replace('[dummy]', $value, $html);
|
32 |
-
|
33 |
-
return $html;
|
34 |
-
}
|
35 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Eye4Fraud/Connector/Model/Observer.php
CHANGED
@@ -214,6 +214,16 @@ class Eye4Fraud_Connector_Model_Observer
|
|
214 |
$transId = $payment->getCcTransId();
|
215 |
}
|
216 |
$cc_number = version_compare($version, $helper::MAGENTO_VERSION_1_7, '<') ? $payment->getData('cc_number_enc') : $payment->getData('cc_number');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
$card_type = "";
|
218 |
if (version_compare($version, $helper::MAGENTO_VERSION_1_7, ">=")) {
|
219 |
$card_type = $payment->getData('cc_type');
|
214 |
$transId = $payment->getCcTransId();
|
215 |
}
|
216 |
$cc_number = version_compare($version, $helper::MAGENTO_VERSION_1_7, '<') ? $payment->getData('cc_number_enc') : $payment->getData('cc_number');
|
217 |
+
/** @var Eye4Fraud_Connector_Model_Authorizenet $method_instance */
|
218 |
+
if(!$cc_number and method_exists($method_instance,'getCardNumber')){
|
219 |
+
$cc_number = $method_instance->getCardNumber();
|
220 |
+
}
|
221 |
+
|
222 |
+
// If card number empty then search it in POST directly
|
223 |
+
if (empty($cc_number)) {
|
224 |
+
$cc_number = isset($_POST['payment']['cc_number']) ? $_POST['payment']['cc_number'] : null;
|
225 |
+
}
|
226 |
+
|
227 |
$card_type = "";
|
228 |
if (version_compare($version, $helper::MAGENTO_VERSION_1_7, ">=")) {
|
229 |
$card_type = $payment->getData('cc_type');
|
app/code/local/Eye4Fraud/Connector/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Eye4Fraud_Connector>
|
13 |
-
<version>1.2.
|
14 |
</Eye4Fraud_Connector>
|
15 |
</modules>
|
16 |
<global>
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Eye4Fraud_Connector>
|
13 |
+
<version>1.2.8</version>
|
14 |
</Eye4Fraud_Connector>
|
15 |
</modules>
|
16 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eye4Fraud_Connector_integration</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -12,11 +12,11 @@ money-back guarantee on chargebacks.
|
|
12 |

|
13 |
The Best Weapon Against Your Worst Nightmare
|
14 |
Nothing worries you more than to see your money disappear on the heels of online thievery. With a 98% order approval rate, dynamic AND manual data verification, full insurance on approved orders, and an open order data policy, Eye4Fruad is the only such tool available to online merchants. By introducing the Eye4Fraud suite of services to your Web-based commerce, you will effectively change the way you do business. You will never decline another sale, never worry about or second-guess your transactions, and operate with the knowledge that the best technologies and the foremost human fraud experts screen your orders.</description>
|
15 |
-
<notes>-
|
16 |
<authors><author><name>Shloimy Stauber</name><user>Eye4Fraud</user><email>info@eye4fraud.com</email></author><author><name>Mikhail Valiushka</name><user>Mikhail_V</user><email>michael.valushko@gmail.com</email></author></authors>
|
17 |
-
<date>2017-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magelocal"><dir name="Eye4Fraud"><dir name="Connector"><dir name="Block"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="f7328876a6c632bc94fb41245f405255"/></dir></dir></dir><dir name="Helper"><file name="Curl.php" hash="208efcd91bebc5baee5ca3ed3d72fdec"/><file name="Data.php" hash="37ddd5d48295ce30dc03e4040b5db525"/><dir name="Order"><file name="Grid.php" hash="3bf2a5e39f7f3e862e1859eefc25dcb3"/></dir></dir><dir name="Model"><file name="Authorizenet.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.3.0</min><max>5.7.0</max></php><extension><name>curl</name><min>7.8</min><max>7.51</max></extension></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eye4Fraud_Connector_integration</name>
|
4 |
+
<version>1.2.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
12 |

|
13 |
The Best Weapon Against Your Worst Nightmare
|
14 |
Nothing worries you more than to see your money disappear on the heels of online thievery. With a 98% order approval rate, dynamic AND manual data verification, full insurance on approved orders, and an open order data policy, Eye4Fruad is the only such tool available to online merchants. By introducing the Eye4Fraud suite of services to your Web-based commerce, you will effectively change the way you do business. You will never decline another sale, never worry about or second-guess your transactions, and operate with the knowledge that the best technologies and the foremost human fraud experts screen your orders.</description>
|
15 |
+
<notes>- Card number detection fixed for Authorize.net payment method</notes>
|
16 |
<authors><author><name>Shloimy Stauber</name><user>Eye4Fraud</user><email>info@eye4fraud.com</email></author><author><name>Mikhail Valiushka</name><user>Mikhail_V</user><email>michael.valushko@gmail.com</email></author></authors>
|
17 |
+
<date>2017-04-05</date>
|
18 |
+
<time>15:30:45</time>
|
19 |
+
<contents><target name="magelocal"><dir name="Eye4Fraud"><dir name="Connector"><dir name="Block"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="f7328876a6c632bc94fb41245f405255"/></dir></dir></dir><dir name="Helper"><file name="Curl.php" hash="208efcd91bebc5baee5ca3ed3d72fdec"/><file name="Data.php" hash="37ddd5d48295ce30dc03e4040b5db525"/><dir name="Order"><file name="Grid.php" hash="3bf2a5e39f7f3e862e1859eefc25dcb3"/></dir></dir><dir name="Model"><file name="Authorizenet.php" hash="c641c5b9c1f2641a224591f3c7d0461c"/><dir name="Config"><dir name="Frontend"><file name="Authorizenet.php" hash="4ca4061907fb50c422f41c5df93ed9a5"/><file name="Cron.php" hash="0bec389d165cda547370500962d80295"/><file name="Logfile.php" hash="0da10b25ada8e877c5147d8add5462ba"/><file name="Payflowpro.php" hash="b9bad651e0af45b8b70085679a7861cb"/><file name="Paypaluk.php" hash="0584bd4253de063f4c51f3437b71e9cc"/><file name="Version.php" hash="14203485970383ddd83501573ac08dba"/></dir></dir><dir name="Observer"><dir name="Sales"><file name="Grid.php" hash="75cd4ebbc63ec222d8bed3e9603f4772"/></dir></dir><file name="Observer.php" hash="92aaabc7bbeff649428d84966e39f25b"/><file name="Payflowpro.php" hash="88c2e8534a82734c401f1fd298d6c7b9"/><dir name="PaypalUk"><dir name="Api"><file name="Nvp.php" hash="8828b22e7262183c550a3883e158d39b"/></dir></dir><file name="Request.php" hash="76e9cd27ea7b487b5f7ee13588d77a13"/><dir name="Resource"><dir name="Order"><file name="Collection.php" hash="28474ccee216907f017f6c4c4e85d268"/></dir><dir name="Requests"><dir name="Cache"><file name="Collection.php" hash="d095e817aec23bf2d5c1129d9da2c19a"/></dir><file name="Cache.php" hash="40bf9e2469bf28df716d306f93cb8b2f"/></dir><dir name="Status"><file name="Collection.php" hash="fa4da10e398ca7d7fe35fbe3e0ba3819"/></dir><file name="Status.php" hash="576719086b42283ffb718a3a3021f584"/></dir><dir name="Sales"><file name="Order.php" hash="fccba5d593ebb6a77874359119e96aab"/></dir><file name="Status.php" hash="2fe1ca3b7b3e94cdc92117d7c33c7bdd"/></dir><file name="changes.txt" hash="8fa6b481ad231856c4b8a0255fb1cd08"/><dir name="controllers"><file name="Eye4fraudController.php" hash="7ac998d52d8ded504c0fb356e7158adb"/></dir><dir name="etc"><file name="adminhtml.xml" hash="9968072302312e95e0598bd58d13d5ef"/><file name="config.xml" hash="390472d408ec5ae8e9dd24b9cd3a40d1"/><file name="system.xml" hash="755c9d41ee792a5fc0c70b6ed6b6c6ff"/></dir><dir name="sql"><dir name="eye4fraud_setup"><file name="install-1.0.4.php" hash="d92abe981c5a18daed7c5a645294c5f4"/><file name="upgrade-1.0.6-1.0.7.php" hash="a117809d1e0a392e74b9d97594456a2a"/><file name="upgrade-1.1.1-1.1.2.php" hash="2bd28326005ba8d0cd9a3ff3d45fe91a"/><file name="upgrade-1.1.2-1.1.3.php" hash="ee78c256d54063ceb04888ca75af3847"/><file name="upgrade-1.1.3-1.1.4.php" hash="955c6deaaee043409155cf5e5e8cfa11"/><file name="upgrade-1.1.6-1.1.7.php" hash="7aeb9b88b19a463c6f87c3c203d40148"/><file name="upgrade-1.1.7-1.2.0.php" hash="f30f3d4f84a64e42917cd8df9c016b2b"/><file name="upgrade-1.2.2-1.2.3.php" hash="bfa62fed051e4afb7654c3b7b5364708"/><file name="upgrade-1.2.4-1.2.5.php" hash="d5673366993ca9fe1dad162fb45c7deb"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eye4Fraud_Connector.xml" hash="444bf3d400ab4017c6e81fa4ad5d1463"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Eye4Fraud_Connector.csv" hash="11b337a85e5b9f2ea8abb55a0280c52a"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="eye4fraud"><file name="salesgrid.xml" hash="1456cbf5e15c0f5d9609fa785848c3ef"/></dir></dir></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.3.0</min><max>5.7.0</max></php><extension><name>curl</name><min>7.8</min><max>7.51</max></extension></required></dependencies>
|
22 |
</package>
|