ClearSale_Total - Version 1.1.5

Version Notes

Braintree AVS

Download this release

Release Info

Developer ClearSale Dev Team
Extension ClearSale_Total
Version 1.1.5
Comparing to
See all releases


Code changes from version 1.1.4 to 1.1.5

app/code/community/Clearsale/Total/Model/Observer.php CHANGED
@@ -23,35 +23,49 @@ class Clearsale_Total_Model_Observer
23
 
24
  if ($isActive)
25
  {
26
- $csLog->log('gravar pedido');
27
  $session = Mage::getSingleton("core/session")->getEncryptedSessionId();
28
  $orderBO = Mage::getModel('total/order_business_object');
29
- $magentoOrder = $evt->getOrder();//new Mage_Sales_Model_Order();
30
- $orderID = $magentoOrder->getRealOrderId();//Mage::getSingleton('checkout/session')->getQuoteId();
31
- //$magentoOrder->loadByIncrementId($orderID);
32
- $payment = $magentoOrder->getPayment();
33
- $csStatus = array('pending_clearsale','approved_clearsale','reproved_clearsale','canceled_clearsale','analysing_clearsale');
34
- $CreditcardMethods = explode(",", Mage::getStoreConfig("clearsale_total/general/credicardmethod"));
35
- $magentoStatus = $magentoOrder->getStatus();
36
 
37
- $csLog->log('Status : ' . $magentoStatus . ' ID: ' . $orderID );
38
-
39
- if($payment)
40
- {
41
- if (!in_array($magentoStatus,$csStatus))
42
- {
43
-
44
- if (in_array($payment->getMethodInstance()->getCode(), $CreditcardMethods))
45
  {
46
- $order = new Clearsale_Total_Model_Order_Entity_Status();
47
- $payment->setAdditionalInformation('clearsaleSessionID', $session);
48
- $order->ID = $orderID;
49
- $order->Status = 'PED';
50
- $orderBO->save($order);
51
- $csLog->log('gravar pedido - OK');
52
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  }
54
- }
55
  }
56
  }catch(Exception $e){
57
  $csLog->log($e->getMessage());
@@ -70,8 +84,7 @@ class Clearsale_Total_Model_Observer
70
  ->addFieldToFilter('status', 'analysing_clearsale');
71
 
72
  if($orders)
73
- {
74
-
75
  foreach ($orders as $order) {
76
 
77
  $storeId = $order->getStoreId();
@@ -87,7 +100,7 @@ class Clearsale_Total_Model_Observer
87
  $orderId = $order->getRealOrderId();
88
  $requestOrder = Mage::getModel('total/order_entity_requestorder');
89
  $requestOrder->ApiKey = Mage::getStoreConfig("clearsale_total/general/key",$storeId);
90
- $requestOrder->LoginToken = $authResponse->Token->Value;;
91
  $requestOrder->AnalysisLocation = $analysisLocation;
92
  $requestOrder->Orders = array();
93
  $requestOrder->Orders[0] = $orderId;
@@ -194,7 +207,9 @@ class Clearsale_Total_Model_Observer
194
  $clearsaleOrder->Payments[$paymentIndex]->Amount = number_format(floatval($order->getGrandTotal()), 2, ".", "");
195
  $clearsaleOrder->Payments[$paymentIndex]->Type = 14;
196
  $clearsaleOrder->Payments[$paymentIndex]->CardType = 4;
197
- $clearsaleOrder->Payments[$paymentIndex]->Date = $date;
 
 
198
 
199
  if($payment->getAdditionalInformation('clearsaleCCNumber'))
200
  {
@@ -216,7 +231,28 @@ class Clearsale_Total_Model_Observer
216
  $clearsaleOrder->Customfields[1]->Type = 1;
217
  $clearsaleOrder->Customfields[1]->Name = 'CC_RESPONSE';
218
  $clearsaleOrder->Customfields[1]->Value = $payment->getAdditionalInformation('clearsaleCCResponseCode');
219
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  }
221
 
222
  $countryCode = $billingAddress->getCountry();
@@ -542,6 +578,16 @@ class Clearsale_Total_Model_Observer
542
 
543
 
544
  }
 
 
 
 
 
 
 
 
 
 
545
 
546
 
547
  public function getSpecificOrder($orderID)
@@ -571,7 +617,7 @@ class Clearsale_Total_Model_Observer
571
  {
572
  $requestOrder = Mage::getModel('total/order_entity_requestorder');
573
  $requestOrder->ApiKey = Mage::getStoreConfig("clearsale_total/general/key",$storeId);
574
- $requestOrder->LoginToken = $authResponse->Token->Value;;
575
  $requestOrder->AnalysisLocation = $analysisLocation;
576
  $requestOrder->Orders = array();
577
  $requestOrder->Orders[0] = $orderID;
@@ -582,6 +628,54 @@ class Clearsale_Total_Model_Observer
582
  }
583
  }
584
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585
 
586
  public function sendPendingOrders()
587
  {
@@ -602,8 +696,7 @@ class Clearsale_Total_Model_Observer
602
  $from = date('Y-m-d H:i:s', $lastTime);
603
 
604
  $orders = Mage::getModel('sales/order')->getCollection()
605
- ->addFieldToFilter('status', 'pending_clearsale')
606
- ->addAttributeToFilter('created_at', array('from' => $from, 'to' => $to));
607
 
608
  if($orders)
609
  {
@@ -614,6 +707,9 @@ class Clearsale_Total_Model_Observer
614
  $orderId = $order->getRealOrderId();
615
  $response = $this->sendSpecificOrder($orderId);
616
 
 
 
 
617
  if($response->HttpCode == 200)
618
  {
619
  $orderResponse = json_decode($response->Body);
23
 
24
  if ($isActive)
25
  {
26
+ $csLog->log('gravar pedido ' . json_encode($evt));
27
  $session = Mage::getSingleton("core/session")->getEncryptedSessionId();
28
  $orderBO = Mage::getModel('total/order_business_object');
29
+ $magentoOrder = $evt->getOrder();
 
 
 
 
 
 
30
 
31
+ if(!empty($magentoOrder))
32
+ {
33
+ $orderID = $magentoOrder->getRealOrderId();
34
+
35
+ if(!$orderID)
 
 
 
36
  {
37
+ return;
 
 
 
 
 
38
  }
39
+
40
+ $payment = $magentoOrder->getPayment();
41
+ if($payment)
42
+ {
43
+ if(!$this->orderExists($orderID))
44
+ {
45
+ $csLog->log('Sending to ClearSale OrderID - '. $orderID);
46
+ $CreditcardMethods = explode(",", Mage::getStoreConfig("clearsale_total/general/credicardmethod"));
47
+ $magentoStatus = $magentoOrder->getStatus();
48
+
49
+ $csLog->log('Status : ' . $magentoStatus . ' ID: ' . $orderID );
50
+
51
+
52
+ if (in_array($payment->getMethodInstance()->getCode(), $CreditcardMethods))
53
+ {
54
+ $order = new Clearsale_Total_Model_Order_Entity_Status();
55
+ $payment->setAdditionalInformation('clearsaleSessionID', $session);
56
+ $order->ID = $orderID;
57
+ $order->Status = 'PED';
58
+ $orderBO->save($order);
59
+ $csLog->log('Sent to ClearSale OrderID - '. $orderID);
60
+ $this->setAsSent($orderID);
61
+ }
62
+
63
+ }else
64
+ {
65
+ $csLog->log('Order Update : ID: ' . $orderID );
66
+ }
67
  }
68
+ }
69
  }
70
  }catch(Exception $e){
71
  $csLog->log($e->getMessage());
84
  ->addFieldToFilter('status', 'analysing_clearsale');
85
 
86
  if($orders)
87
+ {
 
88
  foreach ($orders as $order) {
89
 
90
  $storeId = $order->getStoreId();
100
  $orderId = $order->getRealOrderId();
101
  $requestOrder = Mage::getModel('total/order_entity_requestorder');
102
  $requestOrder->ApiKey = Mage::getStoreConfig("clearsale_total/general/key",$storeId);
103
+ $requestOrder->LoginToken = $authResponse->Token->Value;
104
  $requestOrder->AnalysisLocation = $analysisLocation;
105
  $requestOrder->Orders = array();
106
  $requestOrder->Orders[0] = $orderId;
207
  $clearsaleOrder->Payments[$paymentIndex]->Amount = number_format(floatval($order->getGrandTotal()), 2, ".", "");
208
  $clearsaleOrder->Payments[$paymentIndex]->Type = 14;
209
  $clearsaleOrder->Payments[$paymentIndex]->CardType = 4;
210
+ $clearsaleOrder->Payments[$paymentIndex]->Date = $date;
211
+
212
+ $payment->setAdditionalInformation('clearsale', 'ok');
213
 
214
  if($payment->getAdditionalInformation('clearsaleCCNumber'))
215
  {
231
  $clearsaleOrder->Customfields[1]->Type = 1;
232
  $clearsaleOrder->Customfields[1]->Name = 'CC_RESPONSE';
233
  $clearsaleOrder->Customfields[1]->Value = $payment->getAdditionalInformation('clearsaleCCResponseCode');
234
+ }
235
+ }
236
+
237
+ if($payment->getAdditionalInformation('avsPostalCodeResponseCode'))
238
+ {
239
+ $clearsaleOrder->Customfields[0]->Type = 1;
240
+ $clearsaleOrder->Customfields[0]->Name = 'avsPostalCodeResponseCode';
241
+ $clearsaleOrder->Customfields[0]->Value = $payment->getAdditionalInformation('avsPostalCodeResponseCode');
242
+ }
243
+
244
+ if($payment->getAdditionalInformation('avsStreetAddressResponseCode'))
245
+ {
246
+ $clearsaleOrder->Customfields[1]->Type = 1;
247
+ $clearsaleOrder->Customfields[1]->Name = 'avsStreetAddressResponseCode';
248
+ $clearsaleOrder->Customfields[1]->Value = $payment->getAdditionalInformation('avsStreetAddressResponseCode');
249
+ }
250
+
251
+ if($payment->getAdditionalInformation('cvvResponseCode'))
252
+ {
253
+ $clearsaleOrder->Customfields[1]->Type = 1;
254
+ $clearsaleOrder->Customfields[1]->Name = 'CVV_RESULT_CODE';
255
+ $clearsaleOrder->Customfields[1]->Value = $payment->getAdditionalInformation('cvvResponseCode');
256
  }
257
 
258
  $countryCode = $billingAddress->getCountry();
578
 
579
 
580
  }
581
+
582
+ public function setAsSent($orderID)
583
+ {
584
+ require_once('app/Mage.php');
585
+ Mage::app();
586
+ $order = new Mage_Sales_Model_Order();
587
+ $order->loadByIncrementId($orderID);
588
+ $payment = $order->getPayment();
589
+ $payment->setAdditionalInformation('clearsale', 'ok');
590
+ }
591
 
592
 
593
  public function getSpecificOrder($orderID)
617
  {
618
  $requestOrder = Mage::getModel('total/order_entity_requestorder');
619
  $requestOrder->ApiKey = Mage::getStoreConfig("clearsale_total/general/key",$storeId);
620
+ $requestOrder->LoginToken = $authResponse->Token->Value;
621
  $requestOrder->AnalysisLocation = $analysisLocation;
622
  $requestOrder->Orders = array();
623
  $requestOrder->Orders[0] = $orderID;
628
  }
629
  }
630
 
631
+ public function orderExists($orderID)
632
+ {
633
+ try {
634
+ require_once('app/Mage.php');
635
+ Mage::app();
636
+
637
+ $csLog = Mage::getSingleton('total/log');
638
+
639
+ $isActive = Mage::getStoreConfig("clearsale_total/general/active");
640
+ $return = true;
641
+
642
+ $order = new Mage_Sales_Model_Order();
643
+ $order->loadByIncrementId($orderID);
644
+
645
+ if($order)
646
+ {
647
+ $csStatus = array('approved_clearsale','reproved_clearsale','canceled_clearsale','analysing_clearsale','holded','complete','canceled','closed');
648
+
649
+ $payment = $order->getPayment();
650
+
651
+ $history = $order->getStatusHistoryCollection();
652
+
653
+ if($history)
654
+ {
655
+ foreach($history as $comment)
656
+ {
657
+ $csLog->log('HistoryStatus -> ' .$comment->getStatus());
658
+
659
+ if (in_array($comment->getStatus(),$csStatus))
660
+ {
661
+ return true;
662
+ }
663
+ }
664
+ }
665
+
666
+ return false;
667
+ }
668
+
669
+ return $return;
670
+ }
671
+ catch (Exception $e) {
672
+ $csLog->log('OrderExistsFunction: '.$e->getMessage());
673
+ return false;
674
+ }
675
+ }
676
+
677
+
678
+
679
 
680
  public function sendPendingOrders()
681
  {
696
  $from = date('Y-m-d H:i:s', $lastTime);
697
 
698
  $orders = Mage::getModel('sales/order')->getCollection()
699
+ ->addFieldToFilter('status', 'pending_clearsale');
 
700
 
701
  if($orders)
702
  {
707
  $orderId = $order->getRealOrderId();
708
  $response = $this->sendSpecificOrder($orderId);
709
 
710
+
711
+ $csLog->log('Response: ' .$response);
712
+
713
  if($response->HttpCode == 200)
714
  {
715
  $orderResponse = json_decode($response->Body);
app/code/community/Clearsale/Total/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Clearsale_Total>
5
- <version>1.1.2</version>
6
  </Clearsale_Total>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Clearsale_Total>
5
+ <version>1.1.5</version>
6
  </Clearsale_Total>
7
  </modules>
8
  <global>
app/code/community/Clearsale/Total/sql/total_setup/{mysql4-install-1.1.3.php → mysql4-install-1.1.5.php} RENAMED
File without changes
app/etc/modules/Clearsale_Total.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Clearsale_Total>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>1.1.2</version>
8
  </Clearsale_Total>
9
  </modules>
10
  </config>
4
  <Clearsale_Total>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>1.1.4</version>
8
  </Clearsale_Total>
9
  </modules>
10
  </config>
clearsalegetorders.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
-
3
- require_once 'app/Mage.php';
4
-
5
- Varien_Profiler::enable();
6
- Mage::setIsDeveloperMode(true);
7
- ini_set('display_errors', 1);
8
-
9
- umask(0);
10
- Mage::app();
11
-
12
- $obj = Mage::getModel('total/observer');
13
-
14
- $obj->getClearsaleOrderStatus();
15
-
16
- echo "OK";
17
-
18
-
19
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
clearsaleretry.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
-
3
- require_once('app/Mage.php');
4
- Mage::app();
5
- Varien_Profiler::enable();
6
- Mage::setIsDeveloperMode(true);
7
- ini_set('display_errors', 1);
8
- umask(0);
9
-
10
- try{
11
- $isActive = Mage::getStoreConfig("clearsale_total/general/active");
12
- $csLog = Mage::getSingleton('total/log');
13
-
14
- $maxTries = 5;
15
-
16
- if ($isActive)
17
- {
18
- $obj = Mage::getModel('total/observer');
19
- $obj->retry();
20
- echo "ok";
21
- }
22
-
23
- }catch (Exception $e)
24
- {
25
- print_r($e->getMessage());
26
- $csLog = Mage::getSingleton('total/log');
27
- $csLog->log($e->getMessage());
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ClearSale_Total</name>
4
- <version>1.1.4</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -13,12 +13,12 @@ Because of the nature of the market the country was born in, considered one of t
13
  We offer a 100% chargeback guarantee and a fully outsourced fraud management solution. We give you the final decision: (a) to sell - the order has a minimum risk of becoming a chargeback or (b) do not sell - we already checked the order and know that that order is a fraudulent one. As no order is automatically turned down, these orders have to be analyzed by people with special skills and training to detect subtle details to avoid turning down good customers.&#xD;
14
  We charge a fixed % only for approved transactions, regardless of whether the decision was automatic or not. The more orders we approve and the lower our client&#x2019;s chargebacks, the more Clearsale benefits. We also have an incentive to increase our instant decisions, since this improves our cost structure and the buying experience of our clients. &#xD;
15
  More than offering tools, Clearsale is always looking for the optimum balance between chargeback losses, orders rejected and response time.</description>
16
- <notes>Async Mode as mandatory.&#xD;
17
  </notes>
18
  <authors><author><name>ClearSale Dev Team</name><user>clearsale_dev</user><email>support@clear.sale</email></author></authors>
19
- <date>2016-12-21</date>
20
- <time>21:21:54</time>
21
- <contents><target name="magecommunity"><dir name="Clearsale"><dir name="Total"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="View.php" hash="92bdbfdd90c3b7e1040252bf15950dd1"/><file name="testimonial.txt" hash="c3e091a20252d989f80da96ffecd74ae"/></dir></dir><file name="Totalbackend.php" hash="8bb5082623943fa6686af41de4f25119"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e2372ddf1f40626c1b85549d78f3eed2"/></dir><dir name="Model"><dir name="Auth"><dir name="Business"><file name="Object.php" hash="a75e924d9fde7432a39a87483799ded3"/></dir><dir name="Entity"><file name="Credentials.php" hash="a0c74f0eb00025a4fa0ea1a5632cff25"/><file name="RequestAuth.php" hash="3b07965ef09be73b7ad672b97efb2a82"/><file name="ResponseAuth.php" hash="d4236e408c52abc32b19b90c2ae9ed67"/><file name="Token.php" hash="ab6b05a2b1bafe66bf42ef1c68a74008"/></dir></dir><file name="Authorizenet.php" hash="655a5332b349a0a10c8edfcbaaffdf40"/><dir name="Gateway"><file name="Authorizenet.php" hash="5facb6fd677fde085625bb510dab13e1"/></dir><file name="Log.php" hash="4ef1d30b39450a84919284b093b3f9b8"/><dir name="Mysql4"><dir name="Clearsaleorderdiagnostic"><file name="Collection.php" hash="5ecea4a48d5eb3b2bcd7cc413b40c9e9"/></dir><file name="Clearsaleorderdiagnostic.php" hash="cd81082bccda08a7f5725f24dc56fb19"/></dir><file name="Observer.php" hash="5563962f9c65aecc147d5a008ae7da65"/><dir name="Order"><dir name="Business"><file name="Object.php" hash="31fb1bed92a1169a48370efaf23e8095"/></dir><dir name="Entity"><file name="Address.php" hash="75efca7d3a5b595aeca5171ba944f15c"/><file name="CustomField.php" hash="bfbe2c97fa78575a887d470d864dd723"/><file name="Diagnostic.php" hash="d96e05ff7fad3f619418b30729bec133"/><file name="Item.php" hash="9fe1b333deb3c7651c33e8ea0a769352"/><file name="Order.php" hash="74d8d917208014ad32c0ec22c8bd5874"/><file name="Payment.php" hash="f76c5abf01a17350fb10d06ac5b8e451"/><file name="Person.php" hash="19492db5e1a66cdff3a3725712dd55ff"/><file name="Phone.php" hash="9a47b48b2915685ea978e0d44c732dfc"/><file name="ResponseOrder.php" hash="78f0fa0225acccd8bae760576f2b584c"/><file name="Status.php" hash="de2201c06c9109ba28ae37eea9cc5a98"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Analysislocation"><file name="Values.php" hash="2bea7b2d240748262997c5255147dc43"/></dir><dir name="Cron"><file name="Values.php" hash="0039f5f91e8b31e46197cfc91f1db96f"/></dir><dir name="Environment"><file name="Values.php" hash="d2716bd93c212bb1717d7951a552eff3"/></dir><dir name="OrderStatus"><file name="Values.php" hash="2bff6581aa0320b3067b6914b86ac0f2"/></dir><dir name="Paymentmethod"><file name="Values.php" hash="00023fd6ebb78fc692cfe5f4d8757257"/></dir></dir></dir></dir><dir name="Utils"><file name="HttpHelper.php" hash="c1035d3caa764ff7a8b74fefc7a85440"/><file name="HttpMessage.php" hash="81a7aab4bf241d7e9838a8edacf772e9"/><file name="Status.php" hash="14afbf39cdec95fe1e3707455a85735f"/></dir><file name="app - Atalho.lnk" hash="4604eb44c9c8fdb3fc6e3f82ab86eb21"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TotalbackendController.php" hash="246df39ec4bc19f9a65f57d6f4d5ff20"/></dir><file name="IndexController.php" hash="dd6c505031b4278d6a57179d7245d217"/><dir name="Integration"><file name="IndexController.php" hash="8eb2f144d0eaa9bef40e476f9c28c311"/></dir></dir><dir name="etc"><file name="config.xml" hash="581049b83e4e6159493c3d1ebe12afde"/><file name="system.xml" hash="b7ed2fed790c92e4b4d1566a1c5e00d8"/></dir><dir name="sql"><dir name="total_setup"><file name="mysql4-install-1.0.1.php" hash="dc54c04d5b5f2f7715a24dbca414dcac"/><file name="mysql4-install-1.1.3.php" hash="9c252bf70ba58fa5cb9766b036dba693"/><file name="mysql4-upgrade-1.0.3-1.1.0.php" hash="e4e7907b576eb2543e2ee9078e4927d4"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="total.xml" hash="b20fb23ff3df99b69874c8b6513b148f"/></dir><dir name="template"><dir name="total"><file name="totalbackend.phtml" hash="38c275932ab4a801ade0572d16b3ca0c"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="total.xml" hash="1677f62474494d918fd012da57f6cb54"/></dir><dir name="template"><dir name="total"><file name="fingerprint.phtml" hash="7ec23ab40ab28a0fc7f77d1421041721"/><file name="getorderstatus.phtml" hash="ff5c297a1a594607024888293181557e"/><file name="mapper.phtml" hash="6b3b2c690d4c0509d497fc94433aaab9"/><file name="meta_account_create.phtml" hash="9942098ce07732b0011e513da0fea91b"/><file name="meta_account_edit.phtml" hash="9f992ff686789d059a9a5ff4801e3884"/><file name="meta_cart.phtml" hash="013250fb64b4dc6cf50082898c345657"/><file name="meta_checkout.phtml" hash="10e00a4bc18f4e07050fd440d3c3f290"/><file name="meta_contact.phtml" hash="7eef5f6c488368ca91dc43827f6d4fdc"/><file name="meta_home.phtml" hash="e53aeefb23c4e4b3a1380c659d49494e"/><file name="meta_pass_fail.phtml" hash="1404a1f3c07d0574fce666b72f770e32"/><file name="meta_password_reset.phtml" hash="a6ecdc56b080695e03499cad8f93dea5"/><file name="meta_product.html" hash="21e064ad8b3b6c8587b4e48a229a97b0"/><file name="meta_purchase_confirmation.phtml" hash="2ee03b7ee3f60bd1489c103020b215ab"/><file name="meta_search.phtml" hash="c452fede6e703b549bc939f7a28bab50"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clearsale_Total.xml" hash="f43234d3956fbbbe0a6d8c90fd59b3e7"/></dir></target><target name="mage"><dir name="js"><dir name="clearsale"><dir name="total"><dir name="Graphs"><file name="graph-data.js" hash="6871eca20564813f7ecf413fc7478883"/></dir><dir name="Plugin"><file name="morris.min.js" hash="fadac462637afd6cdc0cb0a0137629af"/><file name="raphael.min.js" hash="df3aee40d12beaa16159fa297d28c132"/></dir><file name="bootstrap.min.js" hash="046ba2b5f4cff7d2eaaa1af55caa9fd8"/><file name="formats.js" hash="6084ce895fb54436ecc842d78751b53d"/><file name="jquery-1.11.1.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-2.1.1.min.js" hash="e40ec2161fe7993196f23c8a07346306"/><file name="jquery.clearsale.js" hash="94e83745ccf9ab784331e181c029bd9b"/><file name="jquery.js" hash="3c9137d88a00b1ae0b41ff6a70571615"/><file name="noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="timeago.js" hash="b1e1d1a0576a9a952d2fdac4c3dd321f"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="clearsale"><dir name="font"><file name="klavikalight-osf-webfont.eot" hash="70c694623ae6e600d65b17cb767ec64a"/><file name="klavikalight-osf-webfont.svg" hash="318c533f3c8563ca910f9b74bb0acf41"/><file name="klavikalight-osf-webfont.ttf" hash="53adda2104cc31f2e2d332e372bd020e"/><file name="klavikalight-osf-webfont.woff" hash="2a0466f4aa6715c05dff3a62c37bec3d"/><file name="klavikalight-osf-webfont.woff2" hash="85bbd3b7ba594c02340da194b5b2d1b3"/><file name="klavikalight-plain-webfont.eot" hash="b83fe7b442d00705780147aa583d34f9"/><file name="klavikalight-plain-webfont.svg" hash="a0f73c6fc6dffbf3d18c63ec6c3b5191"/><file name="klavikalight-plain-webfont.ttf" hash="94609b6db82cfc5adb6a4b29603f551d"/><file name="klavikalight-plain-webfont.woff" hash="f704cce62e9b346845cc1111cc0f604b"/><file name="klavikalight-plain-webfont.woff2" hash="bcf62c18730f756a848bc1cb5b631bd3"/><file name="klavikamedium-osf-webfont.eot" hash="a6435da6686dfe15caf1b7b916a71d96"/><file name="klavikamedium-osf-webfont.svg" hash="c4ebeb1cb0df09e2717345b233555855"/><file name="klavikamedium-osf-webfont.ttf" hash="290323eee0539406adde3637294bae2b"/><file name="klavikamedium-osf-webfont.woff" hash="f35c8871e39ae9bad7b173bf02c2c111"/><file name="klavikamedium-osf-webfont.woff2" hash="d43a2625c3252dcf5405617c058be2b6"/><file name="klavikaregular-osf-webfont.eot" hash="8146f953bb696559fd3c277dad2e3075"/><file name="klavikaregular-osf-webfont.svg" hash="fa60750a7d4c93ed7a621e67321140cd"/><file name="klavikaregular-osf-webfont.ttf" hash="de531bd4e7e99df5d672bc253b886969"/><file name="klavikaregular-osf-webfont.woff" hash="f168b99aad67559207101a9a792f6a24"/><file name="klavikaregular-osf-webfont.woff2" hash="4d45eb7fd558c191c91bc0da5190784e"/></dir><dir name="total"><file name="app.css" hash="437bd0c5441986efc8ce0a53eeb4654f"/><file name="bootstrap.css" hash="d2ab08de4855f3f73d2ecec6da794293"/><file name="bootstrap.min.css" hash="3ab3438f85ad9f9e27e1af1facf0a9c4"/><file name="dashboard.css" hash="547897957c8a66d307a36ea9ae3c2fe0"/><dir name="fonts"><file name="Material-Design-Iconic-Font.eot" hash="83d896ed524d89eb7cb1273e26be3ea6"/><file name="Material-Design-Iconic-Font.svg" hash="6383f1e33e4159197aa854dfac4676e1"/><file name="Material-Design-Iconic-Font.ttf" hash="aa1af632841550199ebdf0c3cc1e47a6"/><file name="Material-Design-Iconic-Font.woff" hash="a2a1ba89e7f9d29f7d5aee76e8b9f7ab"/></dir><file name="material-design-iconic-font.min.css" hash="ed31cc228d731ae1f667d440cc00fceb"/><file name="morris.css" hash="36e70bf949fcdb7d0fe55fc16ce86445"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="."><file name="clearsalegetorders.php" hash="6012a01a456a3a26256a8a75c1c269eb"/><file name="clearsaleretry.php" hash="a5cd59cc326cd5a7b125567901477b03"/></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>4.4.1</min><max>5.6.13</max></php></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ClearSale_Total</name>
4
+ <version>1.1.5</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
13
  We offer a 100% chargeback guarantee and a fully outsourced fraud management solution. We give you the final decision: (a) to sell - the order has a minimum risk of becoming a chargeback or (b) do not sell - we already checked the order and know that that order is a fraudulent one. As no order is automatically turned down, these orders have to be analyzed by people with special skills and training to detect subtle details to avoid turning down good customers.&#xD;
14
  We charge a fixed % only for approved transactions, regardless of whether the decision was automatic or not. The more orders we approve and the lower our client&#x2019;s chargebacks, the more Clearsale benefits. We also have an incentive to increase our instant decisions, since this improves our cost structure and the buying experience of our clients. &#xD;
15
  More than offering tools, Clearsale is always looking for the optimum balance between chargeback losses, orders rejected and response time.</description>
16
+ <notes>Braintree AVS &#xD;
17
  </notes>
18
  <authors><author><name>ClearSale Dev Team</name><user>clearsale_dev</user><email>support@clear.sale</email></author></authors>
19
+ <date>2017-05-11</date>
20
+ <time>06:53:24</time>
21
+ <contents><target name="magecommunity"><dir name="Clearsale"><dir name="Total"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="View.php" hash="92bdbfdd90c3b7e1040252bf15950dd1"/><file name="testimonial.txt" hash="c3e091a20252d989f80da96ffecd74ae"/></dir></dir><file name="Totalbackend.php" hash="8bb5082623943fa6686af41de4f25119"/></dir></dir><dir name="Helper"><file name="Data.php" hash="e2372ddf1f40626c1b85549d78f3eed2"/></dir><dir name="Model"><dir name="Auth"><dir name="Business"><file name="Object.php" hash="a75e924d9fde7432a39a87483799ded3"/></dir><dir name="Entity"><file name="Credentials.php" hash="a0c74f0eb00025a4fa0ea1a5632cff25"/><file name="RequestAuth.php" hash="3b07965ef09be73b7ad672b97efb2a82"/><file name="ResponseAuth.php" hash="d4236e408c52abc32b19b90c2ae9ed67"/><file name="Token.php" hash="ab6b05a2b1bafe66bf42ef1c68a74008"/></dir></dir><file name="Authorizenet.php" hash="655a5332b349a0a10c8edfcbaaffdf40"/><dir name="Gateway"><file name="Authorizenet.php" hash="5facb6fd677fde085625bb510dab13e1"/></dir><file name="Log.php" hash="4ef1d30b39450a84919284b093b3f9b8"/><dir name="Mysql4"><dir name="Clearsaleorderdiagnostic"><file name="Collection.php" hash="5ecea4a48d5eb3b2bcd7cc413b40c9e9"/></dir><file name="Clearsaleorderdiagnostic.php" hash="cd81082bccda08a7f5725f24dc56fb19"/></dir><file name="Observer.php" hash="53eaf031a1e4483d902c9e57d97f3afe"/><dir name="Order"><dir name="Business"><file name="Object.php" hash="31fb1bed92a1169a48370efaf23e8095"/></dir><dir name="Entity"><file name="Address.php" hash="75efca7d3a5b595aeca5171ba944f15c"/><file name="CustomField.php" hash="bfbe2c97fa78575a887d470d864dd723"/><file name="Diagnostic.php" hash="d96e05ff7fad3f619418b30729bec133"/><file name="Item.php" hash="9fe1b333deb3c7651c33e8ea0a769352"/><file name="Order.php" hash="74d8d917208014ad32c0ec22c8bd5874"/><file name="Payment.php" hash="f76c5abf01a17350fb10d06ac5b8e451"/><file name="Person.php" hash="19492db5e1a66cdff3a3725712dd55ff"/><file name="Phone.php" hash="9a47b48b2915685ea978e0d44c732dfc"/><file name="ResponseOrder.php" hash="78f0fa0225acccd8bae760576f2b584c"/><file name="Status.php" hash="de2201c06c9109ba28ae37eea9cc5a98"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Analysislocation"><file name="Values.php" hash="2bea7b2d240748262997c5255147dc43"/></dir><dir name="Cron"><file name="Values.php" hash="0039f5f91e8b31e46197cfc91f1db96f"/></dir><dir name="Environment"><file name="Values.php" hash="d2716bd93c212bb1717d7951a552eff3"/></dir><dir name="OrderStatus"><file name="Values.php" hash="2bff6581aa0320b3067b6914b86ac0f2"/></dir><dir name="Paymentmethod"><file name="Values.php" hash="00023fd6ebb78fc692cfe5f4d8757257"/></dir></dir></dir></dir><dir name="Utils"><file name="HttpHelper.php" hash="c1035d3caa764ff7a8b74fefc7a85440"/><file name="HttpMessage.php" hash="81a7aab4bf241d7e9838a8edacf772e9"/><file name="Status.php" hash="14afbf39cdec95fe1e3707455a85735f"/></dir><file name="app - Atalho.lnk" hash="4604eb44c9c8fdb3fc6e3f82ab86eb21"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="TotalbackendController.php" hash="246df39ec4bc19f9a65f57d6f4d5ff20"/></dir><file name="IndexController.php" hash="dd6c505031b4278d6a57179d7245d217"/><dir name="Integration"><file name="IndexController.php" hash="8eb2f144d0eaa9bef40e476f9c28c311"/></dir></dir><dir name="etc"><file name="config.xml" hash="a14241d7bdd704803d7d3a01e2e04df4"/><file name="system.xml" hash="b7ed2fed790c92e4b4d1566a1c5e00d8"/></dir><dir name="sql"><dir name="total_setup"><file name="mysql4-install-1.0.1.php" hash="dc54c04d5b5f2f7715a24dbca414dcac"/><file name="mysql4-install-1.1.5.php" hash="9c252bf70ba58fa5cb9766b036dba693"/><file name="mysql4-upgrade-1.0.3-1.1.0.php" hash="e4e7907b576eb2543e2ee9078e4927d4"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="total.xml" hash="b20fb23ff3df99b69874c8b6513b148f"/></dir><dir name="template"><dir name="total"><file name="totalbackend.phtml" hash="38c275932ab4a801ade0572d16b3ca0c"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="total.xml" hash="1677f62474494d918fd012da57f6cb54"/></dir><dir name="template"><dir name="total"><file name="fingerprint.phtml" hash="7ec23ab40ab28a0fc7f77d1421041721"/><file name="getorderstatus.phtml" hash="ff5c297a1a594607024888293181557e"/><file name="mapper.phtml" hash="6b3b2c690d4c0509d497fc94433aaab9"/><file name="meta_account_create.phtml" hash="9942098ce07732b0011e513da0fea91b"/><file name="meta_account_edit.phtml" hash="9f992ff686789d059a9a5ff4801e3884"/><file name="meta_cart.phtml" hash="013250fb64b4dc6cf50082898c345657"/><file name="meta_checkout.phtml" hash="10e00a4bc18f4e07050fd440d3c3f290"/><file name="meta_contact.phtml" hash="7eef5f6c488368ca91dc43827f6d4fdc"/><file name="meta_home.phtml" hash="e53aeefb23c4e4b3a1380c659d49494e"/><file name="meta_pass_fail.phtml" hash="1404a1f3c07d0574fce666b72f770e32"/><file name="meta_password_reset.phtml" hash="a6ecdc56b080695e03499cad8f93dea5"/><file name="meta_product.html" hash="21e064ad8b3b6c8587b4e48a229a97b0"/><file name="meta_purchase_confirmation.phtml" hash="2ee03b7ee3f60bd1489c103020b215ab"/><file name="meta_search.phtml" hash="c452fede6e703b549bc939f7a28bab50"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clearsale_Total.xml" hash="79a17d9415bb1f479458912176188737"/></dir></target><target name="mage"><dir name="js"><dir name="clearsale"><dir name="total"><dir name="Graphs"><file name="graph-data.js" hash="6871eca20564813f7ecf413fc7478883"/></dir><dir name="Plugin"><file name="morris.min.js" hash="fadac462637afd6cdc0cb0a0137629af"/><file name="raphael.min.js" hash="df3aee40d12beaa16159fa297d28c132"/></dir><file name="bootstrap.min.js" hash="046ba2b5f4cff7d2eaaa1af55caa9fd8"/><file name="formats.js" hash="6084ce895fb54436ecc842d78751b53d"/><file name="jquery-1.11.1.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-2.1.1.min.js" hash="e40ec2161fe7993196f23c8a07346306"/><file name="jquery.clearsale.js" hash="94e83745ccf9ab784331e181c029bd9b"/><file name="jquery.js" hash="3c9137d88a00b1ae0b41ff6a70571615"/><file name="noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="timeago.js" hash="b1e1d1a0576a9a952d2fdac4c3dd321f"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="clearsale"><dir name="font"><file name="klavikalight-osf-webfont.eot" hash="70c694623ae6e600d65b17cb767ec64a"/><file name="klavikalight-osf-webfont.svg" hash="318c533f3c8563ca910f9b74bb0acf41"/><file name="klavikalight-osf-webfont.ttf" hash="53adda2104cc31f2e2d332e372bd020e"/><file name="klavikalight-osf-webfont.woff" hash="2a0466f4aa6715c05dff3a62c37bec3d"/><file name="klavikalight-osf-webfont.woff2" hash="85bbd3b7ba594c02340da194b5b2d1b3"/><file name="klavikalight-plain-webfont.eot" hash="b83fe7b442d00705780147aa583d34f9"/><file name="klavikalight-plain-webfont.svg" hash="a0f73c6fc6dffbf3d18c63ec6c3b5191"/><file name="klavikalight-plain-webfont.ttf" hash="94609b6db82cfc5adb6a4b29603f551d"/><file name="klavikalight-plain-webfont.woff" hash="f704cce62e9b346845cc1111cc0f604b"/><file name="klavikalight-plain-webfont.woff2" hash="bcf62c18730f756a848bc1cb5b631bd3"/><file name="klavikamedium-osf-webfont.eot" hash="a6435da6686dfe15caf1b7b916a71d96"/><file name="klavikamedium-osf-webfont.svg" hash="c4ebeb1cb0df09e2717345b233555855"/><file name="klavikamedium-osf-webfont.ttf" hash="290323eee0539406adde3637294bae2b"/><file name="klavikamedium-osf-webfont.woff" hash="f35c8871e39ae9bad7b173bf02c2c111"/><file name="klavikamedium-osf-webfont.woff2" hash="d43a2625c3252dcf5405617c058be2b6"/><file name="klavikaregular-osf-webfont.eot" hash="8146f953bb696559fd3c277dad2e3075"/><file name="klavikaregular-osf-webfont.svg" hash="fa60750a7d4c93ed7a621e67321140cd"/><file name="klavikaregular-osf-webfont.ttf" hash="de531bd4e7e99df5d672bc253b886969"/><file name="klavikaregular-osf-webfont.woff" hash="f168b99aad67559207101a9a792f6a24"/><file name="klavikaregular-osf-webfont.woff2" hash="4d45eb7fd558c191c91bc0da5190784e"/></dir><dir name="total"><file name="app.css" hash="437bd0c5441986efc8ce0a53eeb4654f"/><file name="bootstrap.css" hash="d2ab08de4855f3f73d2ecec6da794293"/><file name="bootstrap.min.css" hash="3ab3438f85ad9f9e27e1af1facf0a9c4"/><file name="dashboard.css" hash="547897957c8a66d307a36ea9ae3c2fe0"/><dir name="fonts"><file name="Material-Design-Iconic-Font.eot" hash="83d896ed524d89eb7cb1273e26be3ea6"/><file name="Material-Design-Iconic-Font.svg" hash="6383f1e33e4159197aa854dfac4676e1"/><file name="Material-Design-Iconic-Font.ttf" hash="aa1af632841550199ebdf0c3cc1e47a6"/><file name="Material-Design-Iconic-Font.woff" hash="a2a1ba89e7f9d29f7d5aee76e8b9f7ab"/></dir><file name="material-design-iconic-font.min.css" hash="ed31cc228d731ae1f667d440cc00fceb"/><file name="morris.css" hash="36e70bf949fcdb7d0fe55fc16ce86445"/></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>4.4.1</min><max>5.6.13</max></php></required></dependencies>
24
  </package>