FraudShields - Version 1.3.0.1

Version Notes

Added Discount Code to Fraud array

Download this release

Release Info

Developer Shaya Krauss
Extension FraudShields
Version 1.3.0.1
Comparing to
See all releases


Code changes from version 1.3.0.0 to 1.3.0.1

app/code/local/FraudShields/Post/Model/Observer.php CHANGED
@@ -25,15 +25,8 @@ class FraudShields_Post_Model_Observer extends Mage_Payment_Block_Info {
25
  $_shippingAddress = $order->getShippingAddress();
26
  $_billingAddress = $order->getBillingAddress();
27
  $items = $order->getAllItems();
28
- $itemcount=count($items);
29
- $name=array();
30
- $unitPrice=array();
31
- $sku=array();
32
- $ids=array();
33
- $qty=array();
34
  $OrderItems = array();
35
- foreach ($items as $itemId => $item)
36
- {
37
  $OrderItems[] = array(
38
  'name' => $item->getName(),
39
  'unitPrice' => $item->getPrice(),
@@ -72,6 +65,7 @@ class FraudShields_Post_Model_Observer extends Mage_Payment_Block_Info {
72
  "billing_postcode" => $_billingAddress->getPostcode(),
73
  "billing_telephone" => $_billingAddress->getTelephone(),
74
  "billing_country_id" => $_billingAddress->getCountry(),
 
75
  "ip" => $_SERVER["REMOTE_ADDR"],
76
  "cardnum" => $this->cardnum,
77
  "exp" => $this->exp,
25
  $_shippingAddress = $order->getShippingAddress();
26
  $_billingAddress = $order->getBillingAddress();
27
  $items = $order->getAllItems();
 
 
 
 
 
 
28
  $OrderItems = array();
29
+ foreach ($items as $itemId => $item) {
 
30
  $OrderItems[] = array(
31
  'name' => $item->getName(),
32
  'unitPrice' => $item->getPrice(),
65
  "billing_postcode" => $_billingAddress->getPostcode(),
66
  "billing_telephone" => $_billingAddress->getTelephone(),
67
  "billing_country_id" => $_billingAddress->getCountry(),
68
+ "coupon_code" => $order->getCouponCode(),
69
  "ip" => $_SERVER["REMOTE_ADDR"],
70
  "cardnum" => $this->cardnum,
71
  "exp" => $this->exp,
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>FraudShields</name>
4
- <version>1.3.0.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
@@ -10,11 +10,11 @@
10
  <description>This is the official FraudShields Magento Extension.&#xD;
11
  &#xD;
12
  For more info visit http://fraudshields.com/</description>
13
- <notes>The first stable release of the FraudShields Extension</notes>
14
- <authors><author><name>Shaya Krauss</name><user>fpswebmaster</user><email>webmaster@fidelitypayment.com</email></author></authors>
15
- <date>2013-12-27</date>
16
- <time>17:32:50</time>
17
- <contents><target name="magelocal"><dir name="FraudShields"><dir name="Post"><dir name="Model"><file name="Observer.php" hash="2c38d8a777f40e90680118da25fcf08d"/></dir><dir name="etc"><file name="config.xml" hash="d437c91c58849dc592ec512de60efb40"/><file name="adminhtml.xml" hash="d677b49801a1a685a51c9d72f1466143"/><file name="system.xml" hash="5377821d52d403032a31a690bbe0f8af"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="FraudShields_Post.xml" hash="ce04ec50e7e1ad4ebbcbec6180c9f925"/></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>FraudShields</name>
4
+ <version>1.3.0.1</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
10
  <description>This is the official FraudShields Magento Extension.&#xD;
11
  &#xD;
12
  For more info visit http://fraudshields.com/</description>
13
+ <notes>Added Discount Code to Fraud array</notes>
14
+ <authors><author><name>Shaya Krauss</name><user>skrauss</user><email>webmaster@fidelitypayment.com</email></author></authors>
15
+ <date>2014-01-14</date>
16
+ <time>17:18:28</time>
17
+ <contents><target name="magelocal"><dir name="FraudShields"><dir name="Post"><dir name="Model"><file name="Observer.php" hash="90c2fb3669a66204418cf4a3d6340718"/></dir><dir name="etc"><file name="config.xml" hash="d437c91c58849dc592ec512de60efb40"/><file name="adminhtml.xml" hash="d677b49801a1a685a51c9d72f1466143"/><file name="system.xml" hash="5377821d52d403032a31a690bbe0f8af"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="FraudShields_Post.xml" hash="ce04ec50e7e1ad4ebbcbec6180c9f925"/></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>