Konduto - Version 1.1.1

Version Notes

Fixed an issue where analysis would not be sent in some gateways

Download this release

Release Info

Developer Konduto
Extension Konduto
Version 1.1.1
Comparing to
See all releases


Code changes from version 1.1.0 to 1.1.1

app/code/local/Konduto/Score/Helper/Order.php CHANGED
@@ -109,8 +109,8 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
109
  CURLOPT_POST => 1,
110
  CURLOPT_POSTFIELDS => $data,
111
  CURLOPT_HTTPHEADER => $header,
112
- CURLOPT_CONNECTTIMEOUT => 60,
113
- CURLOPT_TIMEOUT => 60,
114
  CURLOPT_SSL_VERIFYHOST => $sslVerify,
115
  CURLOPT_SSL_VERIFYPEER => $sslVerify
116
  ));
@@ -132,8 +132,8 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
132
  $payment = $model->getPayment();
133
  $instance = $payment->getMethodInstance();
134
  $ccNumber = $instance->getInfoInstance()->getCcNumber();
135
- $cc_six = substr($ccNumber, 0, 6);
136
  $use = false;
 
137
 
138
  switch ($payment->getMethod()) {
139
  case 'authorizenet':
@@ -176,12 +176,13 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
176
  $ret = array(
177
  "include" => $use,
178
  "type" => 'credit',
179
- "bin" => $cc_six,
180
  "last4" => $last4,
181
  "expiration_date" => $month . $payment->getCcExpYear(),
182
  "status" => "pending"
183
  );
184
-
 
 
185
 
186
  return $ret;
187
  }
@@ -225,7 +226,7 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
225
  try {
226
  $model->save();
227
  } catch (Exception $exc) {
228
- Mage::log('Error while saving data==>' . $exc, null, 'score_debug.log');
229
  }
230
  }
231
 
109
  CURLOPT_POST => 1,
110
  CURLOPT_POSTFIELDS => $data,
111
  CURLOPT_HTTPHEADER => $header,
112
+ CURLOPT_CONNECTTIMEOUT => 30,
113
+ CURLOPT_TIMEOUT => 30,
114
  CURLOPT_SSL_VERIFYHOST => $sslVerify,
115
  CURLOPT_SSL_VERIFYPEER => $sslVerify
116
  ));
132
  $payment = $model->getPayment();
133
  $instance = $payment->getMethodInstance();
134
  $ccNumber = $instance->getInfoInstance()->getCcNumber();
 
135
  $use = false;
136
+ $cc_six = substr($ccNumber, 0, 6);
137
 
138
  switch ($payment->getMethod()) {
139
  case 'authorizenet':
176
  $ret = array(
177
  "include" => $use,
178
  "type" => 'credit',
 
179
  "last4" => $last4,
180
  "expiration_date" => $month . $payment->getCcExpYear(),
181
  "status" => "pending"
182
  );
183
+ if ((is_string($cc_six)) && (strlen($cc_six)==6)) {
184
+ $ret["bin"] = $cc_six;
185
+ }
186
 
187
  return $ret;
188
  }
226
  try {
227
  $model->save();
228
  } catch (Exception $exc) {
229
+ Mage::log('Error while saving data==>' . $exc, null, 'konduto.log');
230
  }
231
  }
232
 
app/code/local/Konduto/Score/Model/Observer.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  class Konduto_Score_Model_Observer {
4
 
5
  public function getScore(Varien_Event_Observer $evt) {
@@ -113,4 +112,4 @@ class Konduto_Score_Model_Observer {
113
  return $block->getUrl('score/adminhtml_score/getScore');
114
  }
115
 
116
- }
1
  <?php
 
2
  class Konduto_Score_Model_Observer {
3
 
4
  public function getScore(Varien_Event_Observer $evt) {
112
  return $block->getUrl('score/adminhtml_score/getScore');
113
  }
114
 
115
+ }
app/code/local/Konduto/Score/etc/config.xml CHANGED
@@ -114,7 +114,7 @@
114
  </score>
115
  </helpers>
116
  <events>
117
- <checkout_type_onepage_save_order_after>
118
  <observers>
119
  <get_konduto_score>
120
  <type>singleton</type>
@@ -122,7 +122,7 @@
122
  <method>getScore</method>
123
  </get_konduto_score>
124
  </observers>
125
- </checkout_type_onepage_save_order_after>
126
  <core_block_abstract_to_html_before>
127
  <observers>
128
  <konduto_invoice>
114
  </score>
115
  </helpers>
116
  <events>
117
+ <sales_order_place_after>
118
  <observers>
119
  <get_konduto_score>
120
  <type>singleton</type>
122
  <method>getScore</method>
123
  </get_konduto_score>
124
  </observers>
125
+ </sales_order_place_after>
126
  <core_block_abstract_to_html_before>
127
  <observers>
128
  <konduto_invoice>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Konduto</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license>OSLv3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Konduto fraud detection service integration</summary>
10
  <description>Konduto is a fraud detection service that helps e-commerce merchants spot fraud with Buying Behavior</description>
11
- <notes>Bump to Stable!</notes>
12
  <authors><author><name>Konduto</name><user>konduto</user><email>magentoconnect@konduto.com</email></author><author><name>Excellence Technologies</name><user>manish</user><email>manish@excellencetechnologies.in</email></author></authors>
13
- <date>2014-08-14</date>
14
- <time>21:43:16</time>
15
- <contents><target name="magelocal"><dir name="Konduto"><dir name="Score"><dir name="Block"><dir name="Adminhtml"><dir name="Order"><file name="Grid.php" hash="befb067ef6c9badc9879fa3e27b5b690"/></dir></dir><dir name="Product"><file name="View.php" hash="26e9a7dda59bf978431e2cf564c59da1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4eb1e86fb4c5f3833f5d055d594b6a16"/><file name="Order.php" hash="3a55da01081fabf6ff6003f6b90f0ea5"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Score"><file name="Collection.php" hash="2dedf14be82d224d6d8f56fe1a4fa5fc"/></dir><file name="Score.php" hash="938cbb8ae489bc9b0c39e75ca0f180f1"/></dir><file name="Observer.php" hash="22a5ee6052a80ef81728384be291cfd5"/><file name="Score.php" hash="d9f8efdb0b45bbb00c0faf62e23c2b26"/><dir name="System"><file name="Review.php" hash="ba34a6e86750cac3b2ebfa9554c2ceb6"/><file name="Save.php" hash="84fad33f0f1477cebab1ab2c6eb1f8c1"/><file name="Select.php" hash="7af3a6cc2f51f3c503385406d381307a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ScoreController.php" hash="e9d29876ff47a7acd216589499410d46"/></dir><file name="ScoreController.php" hash="e8b6004c67d4d9f498d74fba1602de0a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="df125e243e6163fcd0a4c1401c0e18c6"/><file name="config.xml" hash="8e096c314b391c181a1e6f15b1bb4ecb"/><file name="system.xml" hash="8b68877bd02c594276af02b0c681d075"/></dir><dir name="sql"><dir name="score_setup"><file name="mysql4-install-0.1.0.php" hash="81b07a2cfb4bb6910166e1f6cfa9a838"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Konduto_Score.xml" hash="aa8bf0381a4cfb0ef47a47f354eeb1ec"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="score.xml" hash="ce8033fbd64586bbe5ae8c2b2a6c2e3c"/></dir><dir name="template"><dir name="score"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="928ede4ea46893156290655727b862cf"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="score.xml" hash="2c92434bd76a1ccb2023a2db9a122949"/></dir><dir name="template"><dir name="score"><file name="score.phtml" hash="ea756884a98790d698b2356656fd1019"/><file name="getId.phtml" hash="e3df324fdf29fa9c48ed02a799458d51"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.8.1.0</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Konduto</name>
4
+ <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license>OSLv3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Konduto fraud detection service integration</summary>
10
  <description>Konduto is a fraud detection service that helps e-commerce merchants spot fraud with Buying Behavior</description>
11
+ <notes>Fixed an issue where analysis would not be sent in some gateways</notes>
12
  <authors><author><name>Konduto</name><user>konduto</user><email>magentoconnect@konduto.com</email></author><author><name>Excellence Technologies</name><user>manish</user><email>manish@excellencetechnologies.in</email></author></authors>
13
+ <date>2014-08-20</date>
14
+ <time>20:30:32</time>
15
+ <contents><target name="magelocal"><dir name="Konduto"><dir name="Score"><dir name="Block"><dir name="Adminhtml"><dir name="Order"><file name="Grid.php" hash="befb067ef6c9badc9879fa3e27b5b690"/></dir></dir><dir name="Product"><file name="View.php" hash="26e9a7dda59bf978431e2cf564c59da1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4eb1e86fb4c5f3833f5d055d594b6a16"/><file name="Order.php" hash="e2a417dc413244432cceaadb01ddf572"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Score"><file name="Collection.php" hash="2dedf14be82d224d6d8f56fe1a4fa5fc"/></dir><file name="Score.php" hash="938cbb8ae489bc9b0c39e75ca0f180f1"/></dir><file name="Observer.php" hash="1e63bfe563d1e28a4554a17ee2246f7f"/><file name="Score.php" hash="d9f8efdb0b45bbb00c0faf62e23c2b26"/><dir name="System"><file name="Review.php" hash="ba34a6e86750cac3b2ebfa9554c2ceb6"/><file name="Save.php" hash="84fad33f0f1477cebab1ab2c6eb1f8c1"/><file name="Select.php" hash="7af3a6cc2f51f3c503385406d381307a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ScoreController.php" hash="e9d29876ff47a7acd216589499410d46"/></dir><file name="ScoreController.php" hash="e8b6004c67d4d9f498d74fba1602de0a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="df125e243e6163fcd0a4c1401c0e18c6"/><file name="config.xml" hash="87df8530b6efc8a19e3ecae226f1815a"/><file name="system.xml" hash="8b68877bd02c594276af02b0c681d075"/></dir><dir name="sql"><dir name="score_setup"><file name="mysql4-install-0.1.0.php" hash="81b07a2cfb4bb6910166e1f6cfa9a838"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Konduto_Score.xml" hash="aa8bf0381a4cfb0ef47a47f354eeb1ec"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="score.xml" hash="ce8033fbd64586bbe5ae8c2b2a6c2e3c"/></dir><dir name="template"><dir name="score"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="928ede4ea46893156290655727b862cf"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="score.xml" hash="2c92434bd76a1ccb2023a2db9a122949"/></dir><dir name="template"><dir name="score"><file name="score.phtml" hash="ea756884a98790d698b2356656fd1019"/><file name="getId.phtml" hash="e3df324fdf29fa9c48ed02a799458d51"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.1.0</min><max>1.8.1.0</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
18
  </package>