Eye4Fraud_Connector_integration - Version 1.2.9

Version Notes

- Send prices and totals in base currency instead of the store currency

Download this release

Release Info

Developer Shloimy Stauber
Extension Eye4Fraud_Connector_integration
Version 1.2.9
Comparing to
See all releases


Code changes from version 1.2.8 to 1.2.9

app/code/local/Eye4Fraud/Connector/Model/Observer.php CHANGED
@@ -129,7 +129,7 @@ class Eye4Fraud_Connector_Model_Observer
129
  $line_items[$i + 1] = array(
130
  'ProductName' => $item->getSku(),
131
  'ProductDescription' => $item->getName(),
132
- 'ProductSellingPrice' => round($item->getRowTotal(),2),
133
  'ProductQty' => round($item->getQtyOrdered(),2),
134
  'ProductCostPrice' => round($item->getBasePrice(),2),
135
  // todo convert currency
@@ -374,8 +374,8 @@ class Eye4Fraud_Connector_Model_Observer
374
  'ShippingEveningPhone' => $shipping->getTelephone(),
375
  'ShippingEmail' => $semail,
376
 
377
- 'ShippingCost' => round($order->getShippingAmount(),2),
378
- 'GrandTotal' => round($order->getGrandTotal(),2), // todo convert currency if e4f will be used outside of USA
379
  'CCType' => $helper->convertCcType($card_type),
380
  'RawCCType' => $card_type,
381
  'CCFirst6' => substr($cc_number, 0, 6),
@@ -574,8 +574,13 @@ class Eye4Fraud_Connector_Model_Observer
574
  if($ordersCollection) foreach($ordersCollection as $order){
575
  /** @var Eye4Fraud_Connector_Model_Status $item */
576
  $item = $statusesCollection->getItemById($order->getIncrementId());
577
- $helper->cancelOrder($item, $order);
578
- $status_text = $this->_getHelper()->__('status:'.$item->getData('status'));
 
 
 
 
 
579
  if($order->getData('eye4fraud_status') != $status_text) {
580
  $order->setData('eye4fraud_status', $status_text);
581
  }
129
  $line_items[$i + 1] = array(
130
  'ProductName' => $item->getSku(),
131
  'ProductDescription' => $item->getName(),
132
+ 'ProductSellingPrice' => round($item->getBaseRowTotal(),2),
133
  'ProductQty' => round($item->getQtyOrdered(),2),
134
  'ProductCostPrice' => round($item->getBasePrice(),2),
135
  // todo convert currency
374
  'ShippingEveningPhone' => $shipping->getTelephone(),
375
  'ShippingEmail' => $semail,
376
 
377
+ 'ShippingCost' => round($order->getBaseShippingAmount(),2),
378
+ 'GrandTotal' => round($order->getBaseGrandTotal(),2), // todo convert currency if e4f will be used outside of USA
379
  'CCType' => $helper->convertCcType($card_type),
380
  'RawCCType' => $card_type,
381
  'CCFirst6' => substr($cc_number, 0, 6),
574
  if($ordersCollection) foreach($ordersCollection as $order){
575
  /** @var Eye4Fraud_Connector_Model_Status $item */
576
  $item = $statusesCollection->getItemById($order->getIncrementId());
577
+ if($item!==null){
578
+ $helper->cancelOrder($item, $order);
579
+ $status_text = $this->_getHelper()->__('status:'.$item->getData('status'));
580
+ }
581
+ else{
582
+ $status_text = $this->_getHelper()->__('status:N');
583
+ }
584
  if($order->getData('eye4fraud_status') != $status_text) {
585
  $order->setData('eye4fraud_status', $status_text);
586
  }
app/code/local/Eye4Fraud/Connector/Model/Resource/Status/Collection.php CHANGED
@@ -79,7 +79,8 @@ class Eye4Fraud_Connector_Model_Resource_Status_Collection extends Mage_Core_Mod
79
 
80
  $this->exceptStatuses($finalStatuses)
81
  ->updatedBefore($maxDate)->notOlderThan($minDate, $minDateNoOrder)
82
- ->limitRecordsCount(50)->setCronFlag(true);
 
83
 
84
  return $this;
85
  }
79
 
80
  $this->exceptStatuses($finalStatuses)
81
  ->updatedBefore($maxDate)->notOlderThan($minDate, $minDateNoOrder)
82
+ ->limitRecordsCount(100)->setCronFlag(true);
83
+ $this->getSelect()->order('order_id DESC');
84
 
85
  return $this;
86
  }
app/code/local/Eye4Fraud/Connector/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Eye4Fraud_Connector>
13
- <version>1.2.8</version>
14
  </Eye4Fraud_Connector>
15
  </modules>
16
  <global>
@@ -56,14 +56,6 @@
56
  </connector_observer>
57
  </observers>
58
  </sales_order_grid_collection_load_after>
59
- <!--<sales_order_resource_init_virtual_grid_columns>-->
60
- <!--<observers>-->
61
- <!--<eye4fraud_salesgrid>-->
62
- <!--<model>eye4fraud_connector/observer_sales_grid</model>-->
63
- <!--<method>addColumnToResource</method>-->
64
- <!--</eye4fraud_salesgrid>-->
65
- <!--</observers>-->
66
- <!--</sales_order_resource_init_virtual_grid_columns>-->
67
  </events>
68
  <models>
69
  <eye4fraud_connector>
@@ -106,13 +98,6 @@
106
  </setup>
107
  </eye4fraud_setup>
108
  </resources>
109
- <!--<blocks>-->
110
- <!--<adminhtml>-->
111
- <!--<rewrite>-->
112
- <!--<sales_order_grid>Eye4Fraud_Connector_Block_Sales_Order_Grid</sales_order_grid>-->
113
- <!--</rewrite>-->
114
- <!--</adminhtml>-->
115
- <!--</blocks>-->
116
  </global>
117
  <default>
118
  <eye4fraud_connector>
10
  <config>
11
  <modules>
12
  <Eye4Fraud_Connector>
13
+ <version>1.2.9</version>
14
  </Eye4Fraud_Connector>
15
  </modules>
16
  <global>
56
  </connector_observer>
57
  </observers>
58
  </sales_order_grid_collection_load_after>
 
 
 
 
 
 
 
 
59
  </events>
60
  <models>
61
  <eye4fraud_connector>
98
  </setup>
99
  </eye4fraud_setup>
100
  </resources>
 
 
 
 
 
 
 
101
  </global>
102
  <default>
103
  <eye4fraud_connector>
package.xml CHANGED
@@ -1,7 +1,7 @@
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,11 +12,11 @@ money-back guarantee on chargebacks.&#xD;
12
  &#xD;
13
  The Best Weapon Against Your Worst Nightmare&#xD;
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eye4Fraud_Connector_integration</name>
4
+ <version>1.2.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
12
  &#xD;
13
  The Best Weapon Against Your Worst Nightmare&#xD;
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>- Send prices and totals in base currency instead of the store currency</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-07-10</date>
18
+ <time>17:24:23</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="6fc2bede6c3b9b6a34f02e946ef960c2"/><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="0bc9d0295b94c95e41637e5bdc12ae24"/></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="9f671862556bc10781866fef50ce4594"/><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>