Version Notes
- Added tag to OSC page
Download this release
Release Info
| Developer | Konduto |
| Extension | Konduto |
| Version | 1.6.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.5.4 to 1.6.2
- app/code/community/Konduto/Score/Helper/Order.php +42 -54
- app/code/community/Konduto/Score/Model/Observer.php +13 -29
- app/code/community/Konduto/Score/etc/config.xml +5 -45
- app/design/frontend/base/default/layout/score.xml +12 -0
- app/design/frontend/base/default/template/score/score.phtml +1 -1
- package.xml +6 -6
app/code/community/Konduto/Score/Helper/Order.php
CHANGED
|
@@ -2,38 +2,49 @@
|
|
| 2 |
|
| 3 |
class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
| 4 |
|
| 5 |
-
public function getOrderData($order, $visitor =
|
| 6 |
if ($visitor == NULL) { $visitor = $this->getVisitorId(); }
|
| 7 |
-
|
| 8 |
-
$
|
| 9 |
-
|
| 10 |
-
$payment = $this->getPaymentDetails($order);
|
| 11 |
-
if (!$payment['include']) {
|
| 12 |
-
Mage::getSingleton('core/session')->unsScorePrepared();
|
| 13 |
if (Mage::getStoreConfig("scoreoptions/messages/debug")) {
|
| 14 |
Mage::log('No credit card detected. Will not send for analysis.', null, 'konduto.log');
|
| 15 |
-
}
|
| 16 |
-
return;
|
| 17 |
}
|
|
|
|
| 18 |
unset($payment['include']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
$billing = $order->getBillingAddress()->getData();
|
| 20 |
$shipping = $order->getShippingAddress()->getData();
|
| 21 |
-
if ($
|
| 22 |
-
else { $customer_id = $
|
| 23 |
$data['id'] = substr($order_id,0,100);
|
| 24 |
-
$data['total_amount'] = (float) $
|
| 25 |
-
$data['shipping_amount'] = (float) $
|
| 26 |
-
$data['tax_amount'] = (float) $
|
| 27 |
$data['currency'] = $currency;
|
| 28 |
$data['visitor'] = substr($visitor,0,100);
|
| 29 |
$data['customer'] = array(
|
| 30 |
'id' => substr($customer_id,0,100),
|
| 31 |
-
'name' => substr($
|
| 32 |
'phone1' => substr($billing['telephone'],0,100),
|
| 33 |
-
'email' => substr($
|
| 34 |
);
|
| 35 |
-
if (!($
|
| 36 |
-
$data['customer']['tax_id'] = substr($
|
| 37 |
}
|
| 38 |
$data['payment'][] = $payment;
|
| 39 |
$data['billing'] = array(
|
|
@@ -73,52 +84,31 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
|
| 73 |
$data[$key] = array_filter($value);
|
| 74 |
}
|
| 75 |
}
|
| 76 |
-
$data['analyze'] = false;
|
| 77 |
-
|
| 78 |
}
|
| 79 |
|
| 80 |
-
public function
|
| 81 |
-
$data = unserialize(Mage::getSingleton('core/session')->getScoreData());
|
| 82 |
-
if ((!isset($data)) || (!$data)) {
|
| 83 |
-
Mage::getSingleton('core/session')->unsScorePrepared();
|
| 84 |
-
Mage::getSingleton('core/session')->unsScoreData();
|
| 85 |
-
if (Mage::getStoreConfig("scoreoptions/messages/debug")) {
|
| 86 |
-
Mage::log('No serialized data found. Aborting...', null, 'konduto.log');
|
| 87 |
-
}
|
| 88 |
-
return;
|
| 89 |
-
}
|
| 90 |
-
$data['id'] = $order->getIncrementId();
|
| 91 |
-
$data['payment'][0]['status'] = "pending";
|
| 92 |
-
$data['analyze'] = true;
|
| 93 |
-
$data['oid'] = $order->getId();
|
| 94 |
-
Mage::getSingleton('core/session')->setScoreData(serialize($data));
|
| 95 |
-
}
|
| 96 |
-
|
| 97 |
-
public function fireRequest() {
|
| 98 |
-
$data = unserialize(Mage::getSingleton('core/session')->getScoreData());
|
| 99 |
if ((!isset($data)) || (!$data)) {
|
| 100 |
-
Mage::getSingleton('core/session')->unsScorePrepared();
|
| 101 |
-
Mage::getSingleton('core/session')->unsScoreData();
|
| 102 |
if (Mage::getStoreConfig("scoreoptions/messages/debug")) {
|
| 103 |
-
Mage::log('No
|
| 104 |
}
|
| 105 |
return;
|
| 106 |
}
|
| 107 |
-
if (isset($data['oid'])) {
|
| 108 |
-
$oid = $data['oid'];
|
| 109 |
-
unset($data['oid']);
|
| 110 |
-
}
|
| 111 |
$data = json_encode($data);
|
| 112 |
$header = array();
|
| 113 |
$header[] = 'Content-type: application/json; charset=utf-8';
|
| 114 |
-
$header[] = 'X-Requested-With: Magento v1.
|
| 115 |
$mode = Mage::getStoreConfig('scoreoptions/messages/mode');
|
| 116 |
if ($mode == 1) {
|
| 117 |
$private = Mage::getStoreConfig('scoreoptions/messages/productionprikey');
|
| 118 |
-
$
|
| 119 |
-
|
|
|
|
|
|
|
| 120 |
$private = Mage::getStoreConfig('scoreoptions/messages/sandboxprikey');
|
| 121 |
-
$
|
|
|
|
| 122 |
}
|
| 123 |
$curl = curl_init();
|
| 124 |
curl_setopt_array($curl, array(
|
|
@@ -130,8 +120,8 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
|
| 130 |
CURLOPT_HTTPHEADER => $header,
|
| 131 |
CURLOPT_CONNECTTIMEOUT => 30,
|
| 132 |
CURLOPT_TIMEOUT => 30,
|
| 133 |
-
CURLOPT_SSL_VERIFYHOST => $
|
| 134 |
-
CURLOPT_SSL_VERIFYPEER => $
|
| 135 |
));
|
| 136 |
$resp = array();
|
| 137 |
try {
|
|
@@ -143,7 +133,6 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
|
| 143 |
Mage::log('request==>' . $data, null, 'konduto.log');
|
| 144 |
Mage::log('response=>' . $resp, null, 'konduto.log');
|
| 145 |
}
|
| 146 |
-
|
| 147 |
if (isset($oid)) {
|
| 148 |
$save = $this->saveData($data, $resp, $oid);
|
| 149 |
}
|
|
@@ -156,7 +145,6 @@ class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
|
| 156 |
$cc_six = substr($ccNumber, 0, 6);
|
| 157 |
$ret["type"] = "credit";
|
| 158 |
$ret["include"] = false;
|
| 159 |
-
$ret['status'] = "declined";
|
| 160 |
if (($payment->getCcExpMonth()) && ($payment->getCcExpYear())) {
|
| 161 |
$ret["expiration_date"] = sprintf("%02d", $payment->getCcExpMonth()) . $payment->getCcExpYear();
|
| 162 |
}
|
| 2 |
|
| 3 |
class Konduto_Score_Helper_Order extends Mage_Core_Helper_Abstract {
|
| 4 |
|
| 5 |
+
public function getOrderData($order, $payment_status, $visitor = null) {
|
| 6 |
if ($visitor == NULL) { $visitor = $this->getVisitorId(); }
|
| 7 |
+
//$odm = Mage::getModel('sales/quote')->load($order->getQuoteId());
|
| 8 |
+
$payment = $this->getPaymentDetails($order);
|
| 9 |
+
if (!$payment['include']) {
|
|
|
|
|
|
|
|
|
|
| 10 |
if (Mage::getStoreConfig("scoreoptions/messages/debug")) {
|
| 11 |
Mage::log('No credit card detected. Will not send for analysis.', null, 'konduto.log');
|
| 12 |
+
}
|
| 13 |
+
return;
|
| 14 |
}
|
| 15 |
+
$payment["status"] = $payment_status;
|
| 16 |
unset($payment['include']);
|
| 17 |
+
if ($payment_status === "pending") {
|
| 18 |
+
$order_id = $order->getIncrementId();
|
| 19 |
+
}
|
| 20 |
+
else if ($payment_status === "declined") {
|
| 21 |
+
$order_id = "Try-".$order->getIncrementId()."-".uniqid();
|
| 22 |
+
}
|
| 23 |
+
else {
|
| 24 |
+
if (Mage::getStoreConfig("scoreoptions/messages/debug")) {
|
| 25 |
+
Mage::log('Payment status is not supported:'.$payment_status, null, 'konduto.log');
|
| 26 |
+
}
|
| 27 |
+
return;
|
| 28 |
+
}
|
| 29 |
+
$currency = $order->getQuoteCurrencyCode();
|
| 30 |
$billing = $order->getBillingAddress()->getData();
|
| 31 |
$shipping = $order->getShippingAddress()->getData();
|
| 32 |
+
if ($order->getCustomerId() == '' || $order->getCustomerId() == NULL) { $customer_id = $order->getCustomerEmail(); }
|
| 33 |
+
else { $customer_id = $order->getCustomerId(); }
|
| 34 |
$data['id'] = substr($order_id,0,100);
|
| 35 |
+
$data['total_amount'] = (float) $order->getGrandTotal();
|
| 36 |
+
$data['shipping_amount'] = (float) $order->getShippingAmount();
|
| 37 |
+
$data['tax_amount'] = (float) $order->getTaxAmount();
|
| 38 |
$data['currency'] = $currency;
|
| 39 |
$data['visitor'] = substr($visitor,0,100);
|
| 40 |
$data['customer'] = array(
|
| 41 |
'id' => substr($customer_id,0,100),
|
| 42 |
+
'name' => substr($order->getCustomerFirstname() . " " . $order->getCustomerLastname(),0,100),
|
| 43 |
'phone1' => substr($billing['telephone'],0,100),
|
| 44 |
+
'email' => substr($order->getCustomerEmail(),0,100)
|
| 45 |
);
|
| 46 |
+
if (!($order->getCustomerTaxvat() == NULL || $order->getCustomerTaxvat() == " ")) {
|
| 47 |
+
$data['customer']['tax_id'] = substr($order->getCustomerTaxvat(),0,100);
|
| 48 |
}
|
| 49 |
$data['payment'][] = $payment;
|
| 50 |
$data['billing'] = array(
|
| 84 |
$data[$key] = array_filter($value);
|
| 85 |
}
|
| 86 |
}
|
| 87 |
+
$data['analyze'] = ($payment_status === "pending" ? true : false);
|
| 88 |
+
$this->fireRequest($data, $order->getId());
|
| 89 |
}
|
| 90 |
|
| 91 |
+
public function fireRequest($data, $oid = null) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
if ((!isset($data)) || (!$data)) {
|
|
|
|
|
|
|
| 93 |
if (Mage::getStoreConfig("scoreoptions/messages/debug")) {
|
| 94 |
+
Mage::log('No data found. Aborting...', null, 'konduto.log');
|
| 95 |
}
|
| 96 |
return;
|
| 97 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
$data = json_encode($data);
|
| 99 |
$header = array();
|
| 100 |
$header[] = 'Content-type: application/json; charset=utf-8';
|
| 101 |
+
$header[] = 'X-Requested-With: Magento v1.6.1';
|
| 102 |
$mode = Mage::getStoreConfig('scoreoptions/messages/mode');
|
| 103 |
if ($mode == 1) {
|
| 104 |
$private = Mage::getStoreConfig('scoreoptions/messages/productionprikey');
|
| 105 |
+
$sslVerifyHost = 2;
|
| 106 |
+
$sslVerifyPeer = true;
|
| 107 |
+
}
|
| 108 |
+
else {
|
| 109 |
$private = Mage::getStoreConfig('scoreoptions/messages/sandboxprikey');
|
| 110 |
+
$sslVerifyHost = false;
|
| 111 |
+
$sslVerifyPeer = false;
|
| 112 |
}
|
| 113 |
$curl = curl_init();
|
| 114 |
curl_setopt_array($curl, array(
|
| 120 |
CURLOPT_HTTPHEADER => $header,
|
| 121 |
CURLOPT_CONNECTTIMEOUT => 30,
|
| 122 |
CURLOPT_TIMEOUT => 30,
|
| 123 |
+
CURLOPT_SSL_VERIFYHOST => $sslVerifyHost,
|
| 124 |
+
CURLOPT_SSL_VERIFYPEER => $sslVerifyPeer
|
| 125 |
));
|
| 126 |
$resp = array();
|
| 127 |
try {
|
| 133 |
Mage::log('request==>' . $data, null, 'konduto.log');
|
| 134 |
Mage::log('response=>' . $resp, null, 'konduto.log');
|
| 135 |
}
|
|
|
|
| 136 |
if (isset($oid)) {
|
| 137 |
$save = $this->saveData($data, $resp, $oid);
|
| 138 |
}
|
| 145 |
$cc_six = substr($ccNumber, 0, 6);
|
| 146 |
$ret["type"] = "credit";
|
| 147 |
$ret["include"] = false;
|
|
|
|
| 148 |
if (($payment->getCcExpMonth()) && ($payment->getCcExpYear())) {
|
| 149 |
$ret["expiration_date"] = sprintf("%02d", $payment->getCcExpMonth()) . $payment->getCcExpYear();
|
| 150 |
}
|
app/code/community/Konduto/Score/Model/Observer.php
CHANGED
|
@@ -12,7 +12,8 @@ class Konduto_Score_Model_Observer {
|
|
| 12 |
'catalog_category_default',
|
| 13 |
'catalog_product_view',
|
| 14 |
'cms_index_index',
|
| 15 |
-
'catalog_category_view'
|
|
|
|
| 16 |
);
|
| 17 |
|
| 18 |
public function setTag(Varien_Event_Observer $evt) {
|
|
@@ -23,39 +24,22 @@ class Konduto_Score_Model_Observer {
|
|
| 23 |
$evt->getEvent()->getLayout()->getUpdate()->addHandle('konduto_'.$tag);
|
| 24 |
}
|
| 25 |
|
| 26 |
-
public function
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
$response = $helper->setOrderPayment($order);
|
| 32 |
-
}
|
| 33 |
-
return;
|
| 34 |
}
|
| 35 |
}
|
| 36 |
|
| 37 |
-
public function
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
Mage::getSingleton('core/session')->unsScorePrepared();
|
| 44 |
-
Mage::getSingleton('core/session')->unsScoreData();
|
| 45 |
-
return;
|
| 46 |
-
}
|
| 47 |
}
|
| 48 |
|
| 49 |
-
public function prepareScore(Varien_Event_Observer $evt) {
|
| 50 |
-
$helper = Mage::helper('score/order');
|
| 51 |
-
$order = $evt->getEvent()->getOrder();
|
| 52 |
-
Mage::getSingleton('core/session')->setScorePrepared(true);
|
| 53 |
-
if (Mage::getStoreConfig("scoreoptions/messages/activate")) {
|
| 54 |
-
$response = $helper->getOrderData($order);
|
| 55 |
-
}
|
| 56 |
-
return;
|
| 57 |
-
}
|
| 58 |
-
|
| 59 |
public function addManualButton($evt) {
|
| 60 |
$order_id = Mage::app()->getFrontController()->getRequest()->getParam('order_id');
|
| 61 |
$score_details = Mage::getModel('score/score')->getCollection()->addFieldToFilter('order_no', $order_id)->getFirstItem();
|
| 12 |
'catalog_category_default',
|
| 13 |
'catalog_product_view',
|
| 14 |
'cms_index_index',
|
| 15 |
+
'catalog_category_view',
|
| 16 |
+
'onestepcheckout_index_index'
|
| 17 |
);
|
| 18 |
|
| 19 |
public function setTag(Varien_Event_Observer $evt) {
|
| 24 |
$evt->getEvent()->getLayout()->getUpdate()->addHandle('konduto_'.$tag);
|
| 25 |
}
|
| 26 |
|
| 27 |
+
public function sendOrderPaymentOk(Varien_Event_Observer $evt) {
|
| 28 |
+
$helper = Mage::helper('score/order');
|
| 29 |
+
$order = $evt->getEvent()->getOrder();
|
| 30 |
+
if (Mage::getStoreConfig("scoreoptions/messages/activate")) {
|
| 31 |
+
$response = $helper->getOrderData($order, 'pending');
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
}
|
| 34 |
|
| 35 |
+
public function sendOrderPaymentFail(Varien_Event_Observer $evt) {
|
| 36 |
+
$helper = Mage::helper('score/order');
|
| 37 |
+
$order = $evt->getEvent()->getOrder();
|
| 38 |
+
if (Mage::getStoreConfig("scoreoptions/messages/activate")) {
|
| 39 |
+
$response = $helper->getOrderData($order, 'declined');
|
| 40 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
public function addManualButton($evt) {
|
| 44 |
$order_id = Mage::app()->getFrontController()->getRequest()->getParam('order_id');
|
| 45 |
$score_details = Mage::getModel('score/score')->getCollection()->addFieldToFilter('order_no', $order_id)->getFirstItem();
|
app/code/community/Konduto/Score/etc/config.xml
CHANGED
|
@@ -128,65 +128,25 @@
|
|
| 128 |
</tag_konduto>
|
| 129 |
</observers>
|
| 130 |
</controller_action_layout_load_before>
|
| 131 |
-
|
| 132 |
-
<observers>
|
| 133 |
-
<get_konduto_score>
|
| 134 |
-
<type>singleton</type>
|
| 135 |
-
<class>Konduto_Score_Model_Observer</class>
|
| 136 |
-
<method>prepareScore</method>
|
| 137 |
-
</get_konduto_score>
|
| 138 |
-
</observers>
|
| 139 |
-
</sales_model_service_quote_submit_before>
|
| 140 |
<sales_model_service_quote_submit_success>
|
| 141 |
<observers>
|
| 142 |
<get_konduto_score>
|
| 143 |
<type>singleton</type>
|
| 144 |
<class>Konduto_Score_Model_Observer</class>
|
| 145 |
-
<method>
|
| 146 |
</get_konduto_score>
|
| 147 |
</observers>
|
| 148 |
</sales_model_service_quote_submit_success>
|
| 149 |
-
<
|
| 150 |
-
<observers>
|
| 151 |
-
<get_konduto_score>
|
| 152 |
-
<type>singleton</type>
|
| 153 |
-
<class>Konduto_Score_Model_Observer</class>
|
| 154 |
-
<method>sendScoreRequest</method>
|
| 155 |
-
</get_konduto_score>
|
| 156 |
-
</observers>
|
| 157 |
-
</controller_action_postdispatch_onestepcheckout>
|
| 158 |
-
<controller_action_postdispatch_checkout>
|
| 159 |
<observers>
|
| 160 |
<get_konduto_score>
|
| 161 |
<type>singleton</type>
|
| 162 |
<class>Konduto_Score_Model_Observer</class>
|
| 163 |
-
<method>
|
| 164 |
</get_konduto_score>
|
| 165 |
</observers>
|
| 166 |
-
</
|
| 167 |
-
<!-- <core_block_abstract_to_html_before>
|
| 168 |
-
<observers>
|
| 169 |
-
<konduto_invoice>
|
| 170 |
-
<type>singleton</type>
|
| 171 |
-
<class>Konduto_Score_Model_Observer</class>
|
| 172 |
-
<method>addAlertonInvoice</method>
|
| 173 |
-
</konduto_invoice>
|
| 174 |
-
<konduto_order_page>
|
| 175 |
-
<type>singleton</type>
|
| 176 |
-
<class>Konduto_Score_Model_Observer</class>
|
| 177 |
-
<method>addManualButton</method>
|
| 178 |
-
</konduto_order_page>
|
| 179 |
-
</observers>
|
| 180 |
-
</core_block_abstract_to_html_before>
|
| 181 |
-
<sales_order_invoice_register>
|
| 182 |
-
<observers>
|
| 183 |
-
<invoice_save>
|
| 184 |
-
<type>singleton</type>
|
| 185 |
-
<class>Konduto_Score_Model_Observer</class>
|
| 186 |
-
<method>updateOrder</method>
|
| 187 |
-
</invoice_save>
|
| 188 |
-
</observers>
|
| 189 |
-
</sales_order_invoice_register> -->
|
| 190 |
</events>
|
| 191 |
</global>
|
| 192 |
<default>
|
| 128 |
</tag_konduto>
|
| 129 |
</observers>
|
| 130 |
</controller_action_layout_load_before>
|
| 131 |
+
<!-- -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
<sales_model_service_quote_submit_success>
|
| 133 |
<observers>
|
| 134 |
<get_konduto_score>
|
| 135 |
<type>singleton</type>
|
| 136 |
<class>Konduto_Score_Model_Observer</class>
|
| 137 |
+
<method>sendOrderPaymentOk</method>
|
| 138 |
</get_konduto_score>
|
| 139 |
</observers>
|
| 140 |
</sales_model_service_quote_submit_success>
|
| 141 |
+
<sales_model_service_quote_submit_failure>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
<observers>
|
| 143 |
<get_konduto_score>
|
| 144 |
<type>singleton</type>
|
| 145 |
<class>Konduto_Score_Model_Observer</class>
|
| 146 |
+
<method>sendOrderPaymentFail</method>
|
| 147 |
</get_konduto_score>
|
| 148 |
</observers>
|
| 149 |
+
</sales_model_service_quote_submit_failure>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
</events>
|
| 151 |
</global>
|
| 152 |
<default>
|
app/design/frontend/base/default/layout/score.xml
CHANGED
|
@@ -92,6 +92,18 @@
|
|
| 92 |
</block>
|
| 93 |
</reference>
|
| 94 |
</konduto_checkout_onepage_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
|
| 96 |
<konduto_checkout_cart_index>
|
| 97 |
<reference name="head">
|
| 92 |
</block>
|
| 93 |
</reference>
|
| 94 |
</konduto_checkout_onepage_index>
|
| 95 |
+
|
| 96 |
+
<konduto_onestepcheckout_index_index>
|
| 97 |
+
<reference name="head">
|
| 98 |
+
<block type="core/text" name="checkout_kdt">
|
| 99 |
+
<action method="setText">
|
| 100 |
+
<text>
|
| 101 |
+
<![CDATA[<meta name="kdt:page" content="checkout"/>]]>
|
| 102 |
+
</text>
|
| 103 |
+
</action>
|
| 104 |
+
</block>
|
| 105 |
+
</reference>
|
| 106 |
+
</konduto_onestepcheckout_index_index>
|
| 107 |
|
| 108 |
<konduto_checkout_cart_index>
|
| 109 |
<reference name="head">
|
app/design/frontend/base/default/template/score/score.phtml
CHANGED
|
@@ -19,7 +19,7 @@ if (Mage::getStoreConfig("scoreoptions/messages/activate")) {
|
|
| 19 |
(function() {
|
| 20 |
var kdt = document.createElement("script");
|
| 21 |
kdt.id = "kdtjs"; kdt.type = "text/javascript"; kdt.async = true;
|
| 22 |
-
kdt.src = "https://
|
| 23 |
var s = document.getElementsByTagName("body")[0];
|
| 24 |
s.parentNode.insertBefore(kdt, s);
|
| 25 |
})();
|
| 19 |
(function() {
|
| 20 |
var kdt = document.createElement("script");
|
| 21 |
kdt.id = "kdtjs"; kdt.type = "text/javascript"; kdt.async = true;
|
| 22 |
+
kdt.src = "https://i.k-analytix.com/k.js";
|
| 23 |
var s = document.getElementsByTagName("body")[0];
|
| 24 |
s.parentNode.insertBefore(kdt, s);
|
| 25 |
})();
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Konduto</name>
|
| 4 |
-
<version>1.
|
| 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>-
|
| 12 |
<authors><author><name>Konduto</name><user>konduto</user><email>magentoconnect@konduto.com</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Konduto"><dir name="Score"><dir name="Block"><dir name="Adminhtml"><dir name="Order"><file name="Grid.php" hash="7ca27f1f6cfb61b5658ecf6bfdf83466"/></dir></dir><dir name="Sales"><dir name="Order"><dir name="View"><file name="Score.php" hash="5690f0e18f102bf2a1747708e81d2d6f"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4eb1e86fb4c5f3833f5d055d594b6a16"/><file name="Order.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Konduto</name>
|
| 4 |
+
<version>1.6.2</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>- Added tag to OSC page</notes>
|
| 12 |
<authors><author><name>Konduto</name><user>konduto</user><email>magentoconnect@konduto.com</email></author></authors>
|
| 13 |
+
<date>2015-01-06</date>
|
| 14 |
+
<time>20:48:46</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Konduto"><dir name="Score"><dir name="Block"><dir name="Adminhtml"><dir name="Order"><file name="Grid.php" hash="7ca27f1f6cfb61b5658ecf6bfdf83466"/></dir></dir><dir name="Sales"><dir name="Order"><dir name="View"><file name="Score.php" hash="5690f0e18f102bf2a1747708e81d2d6f"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4eb1e86fb4c5f3833f5d055d594b6a16"/><file name="Order.php" hash="c5f2722bf994660707b18f219d5a3730"/></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="f5f3548312985f8ce0144b6d938067f0"/><file name="Score.php" hash="d9f8efdb0b45bbb00c0faf62e23c2b26"/><dir name="System"><file name="Review.php" hash="141b400a28bf7f280f2bddf582eb4949"/><file name="Save.php" hash="8e059419faa31fe0f5592651436ff092"/><file name="Select.php" hash="7af3a6cc2f51f3c503385406d381307a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ScoreController.php" hash="f82feac7c2074c32f5254c5c7b915c01"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="df125e243e6163fcd0a4c1401c0e18c6"/><file name="config.xml" hash="d45f3f47b8e4ef25a331fa2c0b67bab4"/><file name="system.xml" hash="9946ce3210bb4b8a3cbe9761ad2604e1"/></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="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="score.xml" hash="435c86b572cddcc6f92a683709acb22d"/></dir><dir name="template"><dir name="score"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="26738627adec425585f59334aea405bb"/><file name="score.phtml" hash="d119d621d868c815f705c615bd1b1db2"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="score.xml" hash="aae56257e1c48d7878f0010f1998928d"/></dir><dir name="template"><dir name="score"><file name="product.phtml" hash="70f95845a94de6aee51a7711633bebc5"/><file name="score.phtml" hash="9476dc1f6663a258685849c92b010d1a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Konduto_Score.xml" hash="c549e42d553ccdeeb1e1ff8e7af82194"/></dir></target><target name="magelocale"><dir name="pt_BR"><file name="Konduto_Score.csv" hash="58c42a8ccf3b8c982546f11336cde45b"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
