Version Notes
Official commit
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Fianet_Sac |
| Version | 1.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0 to 1.1.1
- app/code/community/Fianet/Sac/Block/Adminhtml/Payment/Configuration.php +1 -1
- app/code/community/Fianet/Sac/Block/Adminhtml/Payment/Edit/Form.php +5 -4
- app/code/community/Fianet/Sac/Helper/Data.php +1 -1
- app/code/community/Fianet/Sac/Helper/Order.php +1 -1
- app/code/community/Fianet/Sac/Model/Action.php +72 -60
- app/code/community/Fianet/Sac/Model/Fianet/Order/Info/Sac.php +1 -1
- app/code/community/Fianet/Sac/Model/Fianet/Order/Sac.php +95 -44
- app/code/community/Fianet/Sac/Model/Mysql4/Payment/Association.php +1 -1
- app/code/community/Fianet/Sac/Model/Mysql4/Payment/Association/Collection.php +1 -1
- app/code/community/Fianet/Sac/Model/Observer.php +28 -1
- app/code/community/Fianet/Sac/Model/Payment/Association.php +1 -1
- app/code/community/Fianet/Sac/Model/Product.php +1 -1
- app/code/community/Fianet/Sac/Model/Source/Statut.php +2 -2
- app/code/community/Fianet/Sac/Model/Source/Type.php +5 -2
- app/code/community/Fianet/Sac/controllers/Adminhtml/PaymentController.php +1 -1
- app/code/community/Fianet/Sac/etc/adminhtml.xml +1 -1
- app/code/community/Fianet/Sac/etc/config.xml +12 -2
- app/code/community/Fianet/Sac/etc/system.xml +208 -189
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-install-0.0.1.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.1-0.0.2.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.10-0.0.11.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.11-0.0.12.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.12-0.0.13.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.13-1.0.0.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.2-0.0.3.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.3-0.0.4.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.4-0.0.5.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-1.0.0-1.0.1.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-1.0.3-1.0.4.php +1 -1
- app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-1.0.5-1.1.0.php +1 -1
- app/design/adminhtml/default/default/layout/sac.xml +1 -1
- app/etc/modules/Fianet_Sac.xml +2 -2
- app/locale/fr_FR/Fianet_Sac.csv +6 -3
- package.xml +5 -5
app/code/community/Fianet/Sac/Block/Adminhtml/Payment/Configuration.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Block_Adminhtml_Payment_Configuration extends Mage_Adminhtml_Block_Widget_Form_Container {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Block_Adminhtml_Payment_Configuration extends Mage_Adminhtml_Block_Widget_Form_Container {
|
app/code/community/Fianet/Sac/Block/Adminhtml/Payment/Edit/Form.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Block_Adminhtml_Payment_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
|
|
@@ -32,11 +32,12 @@ class Fianet_Sac_Block_Adminhtml_Payment_Edit_Form extends Mage_Adminhtml_Block_
|
|
| 32 |
|
| 33 |
$payments = Mage::getModel('fianet/mageConfiguration')->getPaymentMethods();
|
| 34 |
$values = Mage::getModel('sac/source_type')->toOptionArray();
|
| 35 |
-
|
| 36 |
-
foreach ($payments as $code => $name) {
|
|
|
|
| 37 |
if ((!preg_match('#receiveandpay#', $code))&&(!preg_match('/kwx/i', $code))) {
|
| 38 |
$current_payment_association = Mage::getModel('sac/payment_association')->load($code);
|
| 39 |
-
|
| 40 |
$fieldset->addField($code, 'select', array(
|
| 41 |
'label' => $name,
|
| 42 |
'class' => 'required-entry',
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Block_Adminhtml_Payment_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
|
| 32 |
|
| 33 |
$payments = Mage::getModel('fianet/mageConfiguration')->getPaymentMethods();
|
| 34 |
$values = Mage::getModel('sac/source_type')->toOptionArray();
|
| 35 |
+
|
| 36 |
+
foreach ($payments as $code => $name) {
|
| 37 |
+
if ($code == "paypal_group_all_in_one") $name = "PayPal All-in-One Payment Solutions";
|
| 38 |
if ((!preg_match('#receiveandpay#', $code))&&(!preg_match('/kwx/i', $code))) {
|
| 39 |
$current_payment_association = Mage::getModel('sac/payment_association')->load($code);
|
| 40 |
+
|
| 41 |
$fieldset->addField($code, 'select', array(
|
| 42 |
'label' => $name,
|
| 43 |
'class' => 'required-entry',
|
app/code/community/Fianet/Sac/Helper/Data.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Helper_Data extends Mage_Core_Helper_Abstract {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Helper_Data extends Mage_Core_Helper_Abstract {
|
app/code/community/Fianet/Sac/Helper/Order.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Helper_Order extends Mage_Core_Helper_Abstract {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Helper_Order extends Mage_Core_Helper_Abstract {
|
app/code/community/Fianet/Sac/Model/Action.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Action {
|
|
@@ -157,7 +157,7 @@ class Fianet_Sac_Model_Action {
|
|
| 157 |
}
|
| 158 |
|
| 159 |
//Si statutCoEx ou évaluation de l'appel est différent de celui en BDD
|
| 160 |
-
if(($statutCoEx != $evaluation['statutcoex']) || ($eval != $evaluationOrder)) {
|
| 161 |
$queryW = "UPDATE `{$table}`";
|
| 162 |
$queryW .= " SET `fianet_sac_evaluation` = '{$eval}', `fianet_sac_statutcoex` = '{$evaluation['statutcoex']}'";
|
| 163 |
|
|
@@ -203,64 +203,76 @@ class Fianet_Sac_Model_Action {
|
|
| 203 |
}
|
| 204 |
|
| 205 |
public static function getReevaluation() {
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
}
|
| 265 |
|
| 266 |
protected static function getUrlBO(Mage_Sales_Model_Order $order) {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Action {
|
| 157 |
}
|
| 158 |
|
| 159 |
//Si statutCoEx ou évaluation de l'appel est différent de celui en BDD
|
| 160 |
+
if (isset($evaluation['statutcoex']) && (($statutCoEx != $evaluation['statutcoex']) || ($eval != $evaluationOrder))) {
|
| 161 |
$queryW = "UPDATE `{$table}`";
|
| 162 |
$queryW .= " SET `fianet_sac_evaluation` = '{$eval}', `fianet_sac_statutcoex` = '{$evaluation['statutcoex']}'";
|
| 163 |
|
| 203 |
}
|
| 204 |
|
| 205 |
public static function getReevaluation() {
|
| 206 |
+
Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__('Certissim: attempt to retrieve reevaluation...'));
|
| 207 |
+
|
| 208 |
+
$nb = 0;
|
| 209 |
+
$websiteCollection = Mage::getModel('core/website')->getResourceCollection();
|
| 210 |
+
foreach ($websiteCollection as $website) {
|
| 211 |
+
$groupCollection = $website->getGroupCollection();
|
| 212 |
+
foreach ($groupCollection as $group) {
|
| 213 |
+
$storeCollection = $group->getStoreCollection();
|
| 214 |
+
foreach ($storeCollection as $store) {
|
| 215 |
+
$storeid = $store->getId();
|
| 216 |
+
$reevaluations = Mage::getModel('fianet/fianet_sender')->getReevaluation($storeid);
|
| 217 |
+
|
| 218 |
+
self::_initConnections();
|
| 219 |
+
|
| 220 |
+
foreach ($reevaluations as $reevaluation) {
|
| 221 |
+
if (isset($reevaluation['eval'])) {
|
| 222 |
+
// Mise à jour par SQL sinon boucle infinie
|
| 223 |
+
foreach (self::$_tables as $table) {
|
| 224 |
+
$queryW = "UPDATE `{$table}`";
|
| 225 |
+
$queryW .= " SET `fianet_sac_reevaluation` = '{$reevaluation['eval']}'";
|
| 226 |
+
$queryW .= " WHERE `increment_id` = '{$reevaluation['refid']}';";
|
| 227 |
+
self::$_writeConnection->query($queryW);
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
$order = Mage::getModel('sales/order')->loadByIncrementId($reevaluation['refid']);
|
| 231 |
+
|
| 232 |
+
Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__('Certissim: order %s updated to eval %s.', $reevaluation['refid'], $reevaluation['eval']));
|
| 233 |
+
|
| 234 |
+
try {
|
| 235 |
+
$notification = Mage::getModel('adminnotification/inbox');
|
| 236 |
+
$notification->setseverity(Mage_AdminNotification_Model_Inbox::SEVERITY_MINOR);
|
| 237 |
+
$notification->setTitle(Mage::helper('fianet')->__('Certissim: order %s has been reevaluated.', $reevaluation['refid']));
|
| 238 |
+
$notification->setDate_added(date('Y-m-d H:i:s'));
|
| 239 |
+
|
| 240 |
+
switch ($reevaluation['eval']) {
|
| 241 |
+
case ('error') :
|
| 242 |
+
$icon = 'attention.gif';
|
| 243 |
+
break;
|
| 244 |
+
case('100'):
|
| 245 |
+
$icon = 'rond_vert.gif';
|
| 246 |
+
break;
|
| 247 |
+
case('-1'):
|
| 248 |
+
$icon = 'rond_vertclair.gif';
|
| 249 |
+
break;
|
| 250 |
+
case('0'):
|
| 251 |
+
$icon = 'rond_rouge.gif';
|
| 252 |
+
break;
|
| 253 |
+
default:
|
| 254 |
+
$icon = 'fianet_SAC_icon.gif';
|
| 255 |
+
break;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
$img = '<a href="' . self::getUrlBO($order) . '" target="_BLANK"><img src="' . Mage::getDesign()->getSkinUrl('images/fianet/' . $icon) . '"><a>';
|
| 259 |
+
$message = Mage::helper('fianet')->__('Certissim: the order %s has now evaluation %s.', $reevaluation['refid'], $img);
|
| 260 |
+
|
| 261 |
+
$notification->setDescription($message);
|
| 262 |
+
$notification->save();
|
| 263 |
+
|
| 264 |
+
} catch (Exception $e) {
|
| 265 |
+
Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__('Certissim: %s.', $e->getMessage()));
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
$nb++;
|
| 269 |
+
}
|
| 270 |
+
}
|
| 271 |
+
}
|
| 272 |
+
}
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__('Certissim: retrieving reevaluation ended. %s reevaluation(s) found.', $nb));
|
| 276 |
}
|
| 277 |
|
| 278 |
protected static function getUrlBO(Mage_Sales_Model_Order $order) {
|
app/code/community/Fianet/Sac/Model/Fianet/Order/Info/Sac.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Fianet_Order_Info_Sac {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Fianet_Order_Info_Sac {
|
app/code/community/Fianet/Sac/Model/Fianet/Order/Sac.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
@@ -25,8 +25,10 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 25 |
public $delivery_address = null;
|
| 26 |
public $scope_field = null;
|
| 27 |
public $scope_id = null;
|
|
|
|
| 28 |
protected $version = null;
|
| 29 |
protected $encoding = null;
|
|
|
|
| 30 |
|
| 31 |
public function __construct() {
|
| 32 |
$this->billing_user = Mage::getModel('fianet/fianet_order_user_billing');
|
|
@@ -45,12 +47,15 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 45 |
$this->delivery_user = null;
|
| 46 |
$this->delivery_address = null;
|
| 47 |
}
|
| 48 |
-
|
| 49 |
public function getXml($display_signature = false) {
|
| 50 |
$xml = '';
|
| 51 |
if ($display_signature) {
|
| 52 |
$xml .= '<?xml version="1.0" encoding="' . $this->encoding . '"?>' . "\n";
|
| 53 |
}
|
|
|
|
|
|
|
|
|
|
| 54 |
$xml .= '<control fianetmodule="Magento_SAC" version="' . $this->version . '">' . "\n";
|
| 55 |
$xml .= $this->billing_user->getXml();
|
| 56 |
$xml .= $this->billing_address->getXml();
|
|
@@ -69,26 +74,36 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 69 |
}
|
| 70 |
}
|
| 71 |
$xml .= $this->info_commande->getXml();
|
| 72 |
-
|
|
|
|
|
|
|
| 73 |
$xml .= '</control>';
|
|
|
|
|
|
|
|
|
|
| 74 |
return ($xml);
|
| 75 |
}
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
$scope_field = "store_id";
|
| 79 |
$id = $order->getStore()->getId();
|
| 80 |
|
| 81 |
-
//On
|
| 82 |
-
$franfinancePayment = ($order->getPayment()->getMethod() == "atos3xweb_web" || $order->getPayment()->getMethod() == "atos3s_sprint") ? true : false;
|
| 83 |
|
| 84 |
$sacOrder = Mage::getModel('sac/fianet_order_sac');
|
| 85 |
-
|
| 86 |
$sacOrder->scope_field = $scope_field;
|
| 87 |
$sacOrder->scope_id = $id;
|
|
|
|
| 88 |
|
| 89 |
$billing_address = $order->getBillingAddress();
|
| 90 |
$shipping_address = ($order->getShippingAddress()) ? $order->getShippingAddress() : $order->getBillingAddress();
|
| 91 |
|
|
|
|
| 92 |
$sacOrder->billing_user->titre = $billing_address->getPrefix();
|
| 93 |
$sacOrder->billing_user->nom = $billing_address->getLastname();
|
| 94 |
$sacOrder->billing_user->prenom = $billing_address->getFirstname();
|
|
@@ -97,6 +112,29 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 97 |
$sacOrder->billing_user->email = $billing_address->getEmail() == '' ? $order->getCustomer_email() : $billing_address->getEmail();
|
| 98 |
$sacOrder->billing_user->societe = $billing_address->getCompany();
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
if (trim($billing_address->getCompany()) != '') {
|
| 101 |
$sacOrder->billing_user->setQualityProfessional();
|
| 102 |
}
|
|
@@ -115,36 +153,44 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 115 |
$sacOrder->delivery_user->prenom = $shipping_address->getFirstname();
|
| 116 |
$sacOrder->delivery_user->telhome = preg_replace("/[^0-9]/", "", $shipping_address->getTelephone());
|
| 117 |
$sacOrder->delivery_user->telfax = preg_replace("/[^0-9]/", "", $shipping_address->getFax());
|
| 118 |
-
$sacOrder->delivery_user->email = ($shipping_address->getEmail() != $billing_address->getEmail()) ? $shipping_address->getEmail() :
|
| 119 |
$sacOrder->delivery_user->societe = $shipping_address->getCompany();
|
| 120 |
|
| 121 |
-
|
|
|
|
| 122 |
$sacOrder->info_commande->devise = $order->getBaseCurrencyCode();
|
| 123 |
-
$sacOrder->info_commande->montant = $order->getBaseGrandTotal();
|
| 124 |
-
//Si l'IP de l'internaute n'est pas
|
| 125 |
$sacOrder->info_commande->ip = (!$order->getRemoteIp()) ? $_SERVER['REMOTE_ADDR'] : $order->getRemoteIp();
|
| 126 |
-
//La fonction $order->
|
| 127 |
-
$sacOrder->info_commande->timestamp = Mage::getModel('core/date')->date(null,strtotime($order->
|
| 128 |
-
//
|
| 129 |
$sacOrder->info_commande->siteid = ($franfinancePayment) ? Mage::getStoreConfig('sac/sacconfg/idfranfinance', $id) : Mage::getStoreConfig('sac/sacconfg/siteid', $id);
|
| 130 |
if ($sacOrder->info_commande->siteid == null && $id != 0)
|
| 131 |
$sacOrder->info_commande->siteid = ($franfinancePayment) ? Mage::getStoreConfig('sac/sacconfg/idfranfinance', '0') : Mage::getStoreConfig('sac/sacconfg/siteid', '0');
|
| 132 |
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
$shipping_code = $order->getShippingCarrier()->getCarrierCode();
|
|
|
|
|
|
|
|
|
|
| 135 |
$shipping = Mage::getModel('fianet/shipping_association')->load($shipping_code);
|
| 136 |
-
}
|
| 137 |
|
| 138 |
//initialisation du type de transport
|
| 139 |
$type_transporteur = '';
|
| 140 |
$nom_transporteur = '';
|
| 141 |
$rapidite_transporteur = '';
|
| 142 |
|
| 143 |
-
//Traitement particulier si la
|
| 144 |
if ($shipping_code == "socolissimo" || $shipping_code == "socolissimosimplicite") {
|
| 145 |
$nom_transporteur = 'So Colissimo';
|
| 146 |
$rapidite_transporteur = '2';
|
| 147 |
-
//
|
| 148 |
if ($order->getSocoPhoneNumber())
|
| 149 |
$sacOrder->delivery_user->telmobile = $order->getSocoPhoneNumber();
|
| 150 |
|
|
@@ -172,17 +218,17 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 172 |
$type_transporteur = '4';
|
| 173 |
break;
|
| 174 |
default:
|
| 175 |
-
$type_transporteur = '
|
| 176 |
//On log l'erreur "So Colissimo mode de livraison inconnu"
|
| 177 |
Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__("Certissim: order #%s. Error with SoColissimo's return. Product Code %s was not recognized.", $order->getRealOrderId(), $order->getSocoProductCode()));
|
| 178 |
break;
|
| 179 |
}
|
| 180 |
-
} elseif ($shipping_code == "relaypoint") {//Traitement particulier si la
|
| 181 |
$nom_transporteur = $shipping->getConveyorName();
|
| 182 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 183 |
$type_transporteur = '2';
|
| 184 |
|
| 185 |
-
if ($billing_address->getStreet(1) != $shipping_address->getStreet(1)) {//
|
| 186 |
$transport_adress = Mage::getModel('fianet/fianet_order_address_transport');
|
| 187 |
$transport_adress->rue1 = $shipping_address->getStreet(1);
|
| 188 |
$transport_adress->cpostal = $shipping_address->getPostcode();
|
|
@@ -190,7 +236,7 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 190 |
$transport_adress->pays = (preg_match('/^97/', $shipping_address->getPostcode()))? 'FR' : $shipping_address->getCountry();
|
| 191 |
$sacOrder->info_commande->transport->adresse = $transport_adress;
|
| 192 |
}
|
| 193 |
-
} elseif ($shipping_code == "envoimoinscher") {//Traitement particulier si la
|
| 194 |
$nom_transporteur = $shipping->getConveyorName();
|
| 195 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 196 |
|
|
@@ -216,7 +262,7 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 216 |
} else {
|
| 217 |
$type_transporteur = '4';
|
| 218 |
}
|
| 219 |
-
} elseif ($shipping_code == "gls") {//Traitement particulier si la
|
| 220 |
$nom_transporteur = $shipping->getConveyorName();
|
| 221 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 222 |
|
|
@@ -239,10 +285,10 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 239 |
$nom_transporteur = $shipping->getConveyorName();
|
| 240 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 241 |
|
| 242 |
-
if ($type_transporteur == "1") { //si
|
| 243 |
$sacOrder->info_commande->transport->enseigne = Mage::getStoreConfig('general/store_information/name');
|
| 244 |
|
| 245 |
-
//
|
| 246 |
$Collection = Mage::getModel('fianet/store_information')->getCollection()->load();
|
| 247 |
$storeInformation = true;
|
| 248 |
foreach ($Collection as $information) {
|
|
@@ -263,12 +309,13 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 263 |
if ($type_transporteur == "2") { //si transport en point relais
|
| 264 |
//si module de point relais particulier, l'inscrire ici...
|
| 265 |
}
|
| 266 |
-
} elseif (Mage::getStoreConfig('sac/sacconfg/downloadableproducts')) {//Produits
|
| 267 |
$type_transporteur = '5';
|
| 268 |
$nom_transporteur = 'Downloadable product or/and virtual product';
|
| 269 |
$rapidite_transporteur = '1';
|
| 270 |
}
|
| 271 |
}
|
|
|
|
| 272 |
$sacOrder->info_commande->transport->type = $type_transporteur;
|
| 273 |
$sacOrder->info_commande->transport->nom = Mage::helper('fianet')->__($nom_transporteur);
|
| 274 |
$sacOrder->info_commande->transport->rapidite = $rapidite_transporteur;
|
|
@@ -298,28 +345,32 @@ class Fianet_Sac_Model_Fianet_Order_Sac {
|
|
| 298 |
|
| 299 |
$product = Mage::getModel('fianet/fianet_order_info_productlist_product');
|
| 300 |
$product->type = Mage::getModel('sac/product')->load($item->getProductId())->getFianetProductType();
|
| 301 |
-
$product->prixunit = $pAmount;
|
| 302 |
$product->name = $pName;
|
| 303 |
-
$product->nb = (int)
|
| 304 |
$product->ref = $pSku;
|
| 305 |
$sacOrder->info_commande->list->addProduct($product);
|
| 306 |
}
|
| 307 |
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
$
|
| 312 |
-
$paymentType
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
if ($
|
| 321 |
-
$
|
| 322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
}
|
| 324 |
|
| 325 |
return ($sacOrder);
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Fianet_Order_Sac {
|
| 25 |
public $delivery_address = null;
|
| 26 |
public $scope_field = null;
|
| 27 |
public $scope_id = null;
|
| 28 |
+
public $paymentauthrequest_id = null;
|
| 29 |
protected $version = null;
|
| 30 |
protected $encoding = null;
|
| 31 |
+
protected $paymentauthrequest_version = '1.0';
|
| 32 |
|
| 33 |
public function __construct() {
|
| 34 |
$this->billing_user = Mage::getModel('fianet/fianet_order_user_billing');
|
| 47 |
$this->delivery_user = null;
|
| 48 |
$this->delivery_address = null;
|
| 49 |
}
|
| 50 |
+
|
| 51 |
public function getXml($display_signature = false) {
|
| 52 |
$xml = '';
|
| 53 |
if ($display_signature) {
|
| 54 |
$xml .= '<?xml version="1.0" encoding="' . $this->encoding . '"?>' . "\n";
|
| 55 |
}
|
| 56 |
+
if ($this->paymentauthrequest_id != null) {
|
| 57 |
+
$xml .= '<paymentAuthRequest id="' . $this->paymentauthrequest_id . '" version="' . $this->paymentauthrequest_version . '">' . "\n";
|
| 58 |
+
}
|
| 59 |
$xml .= '<control fianetmodule="Magento_SAC" version="' . $this->version . '">' . "\n";
|
| 60 |
$xml .= $this->billing_user->getXml();
|
| 61 |
$xml .= $this->billing_address->getXml();
|
| 74 |
}
|
| 75 |
}
|
| 76 |
$xml .= $this->info_commande->getXml();
|
| 77 |
+
if ($this->payment->type != null) {
|
| 78 |
+
$xml .= $this->payment->getXml();
|
| 79 |
+
}
|
| 80 |
$xml .= '</control>';
|
| 81 |
+
if ($this->paymentauthrequest_id != null) {
|
| 82 |
+
$xml .= "\n" . '</paymentAuthRequest>';
|
| 83 |
+
}
|
| 84 |
return ($xml);
|
| 85 |
}
|
| 86 |
+
|
| 87 |
+
/**
|
| 88 |
+
* @param $order Order Object
|
| 89 |
+
* @param $noPayment Boolean to check if XML is generated before or after Payment
|
| 90 |
+
*/
|
| 91 |
+
public static function generateSacOrder(Mage_Sales_Model_Order $order, $noPayment = false) {
|
| 92 |
$scope_field = "store_id";
|
| 93 |
$id = $order->getStore()->getId();
|
| 94 |
|
| 95 |
+
//On vérifie si le type de paiement est Franfinance
|
| 96 |
+
$franfinancePayment = ((!$noPayment) && ($order->getPayment()->getMethod() == "atos3xweb_web" || $order->getPayment()->getMethod() == "atos3s_sprint")) ? true : false;
|
| 97 |
|
| 98 |
$sacOrder = Mage::getModel('sac/fianet_order_sac');
|
|
|
|
| 99 |
$sacOrder->scope_field = $scope_field;
|
| 100 |
$sacOrder->scope_id = $id;
|
| 101 |
+
$sacOrder->paymentauthrequest_id = ($noPayment) ? $order->getId() : null;
|
| 102 |
|
| 103 |
$billing_address = $order->getBillingAddress();
|
| 104 |
$shipping_address = ($order->getShippingAddress()) ? $order->getShippingAddress() : $order->getBillingAddress();
|
| 105 |
|
| 106 |
+
//Utilisateur facturation
|
| 107 |
$sacOrder->billing_user->titre = $billing_address->getPrefix();
|
| 108 |
$sacOrder->billing_user->nom = $billing_address->getLastname();
|
| 109 |
$sacOrder->billing_user->prenom = $billing_address->getFirstname();
|
| 112 |
$sacOrder->billing_user->email = $billing_address->getEmail() == '' ? $order->getCustomer_email() : $billing_address->getEmail();
|
| 113 |
$sacOrder->billing_user->societe = $billing_address->getCompany();
|
| 114 |
|
| 115 |
+
//siteconso
|
| 116 |
+
$orders = Mage::getResourceModel('sales/order_collection')
|
| 117 |
+
->addAttributeToSelect('*')
|
| 118 |
+
->addAttributeToFilter('customer_id', $order->getCustomerId())
|
| 119 |
+
->addAttributeToFilter('state', array('nin' => array(Mage_Sales_Model_Order::STATE_CANCELED, Mage_Sales_Model_Order::STATE_NEW, Mage_Sales_Model_Order::STATE_PENDING_PAYMENT)))
|
| 120 |
+
->addAttributeToSort('created_at', 'desc');
|
| 121 |
+
|
| 122 |
+
$tab_orders = array();
|
| 123 |
+
$orders_total = 0;$i = 0;
|
| 124 |
+
foreach ($orders as $_order) {
|
| 125 |
+
$tab_orders[$i] = $_order;
|
| 126 |
+
$orders_total = $orders_total + floatval($_order->getTotalInvoiced());
|
| 127 |
+
$i++;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
$siteconso = Mage::getModel('fianet/fianet_order_user_siteconso');
|
| 131 |
+
$siteconso->nb = count($orders);
|
| 132 |
+
$siteconso->ca = number_format($orders_total, 2, '.', '');
|
| 133 |
+
$siteconso->datepremcmd = $tab_orders[$i-1]->getCreatedAt();
|
| 134 |
+
$siteconso->datederncmd = $tab_orders[0]->getCreatedAt();
|
| 135 |
+
$sacOrder->billing_user->siteconso = $siteconso;
|
| 136 |
+
|
| 137 |
+
//Utilisateur livraison
|
| 138 |
if (trim($billing_address->getCompany()) != '') {
|
| 139 |
$sacOrder->billing_user->setQualityProfessional();
|
| 140 |
}
|
| 153 |
$sacOrder->delivery_user->prenom = $shipping_address->getFirstname();
|
| 154 |
$sacOrder->delivery_user->telhome = preg_replace("/[^0-9]/", "", $shipping_address->getTelephone());
|
| 155 |
$sacOrder->delivery_user->telfax = preg_replace("/[^0-9]/", "", $shipping_address->getFax());
|
| 156 |
+
$sacOrder->delivery_user->email = ($shipping_address->getEmail() != $billing_address->getEmail()) ? $shipping_address->getEmail() : null;
|
| 157 |
$sacOrder->delivery_user->societe = $shipping_address->getCompany();
|
| 158 |
|
| 159 |
+
//Infocommande
|
| 160 |
+
$sacOrder->info_commande->refid = (!$noPayment) ? $order->getRealOrderId() : $order->getId();
|
| 161 |
$sacOrder->info_commande->devise = $order->getBaseCurrencyCode();
|
| 162 |
+
$sacOrder->info_commande->montant = number_format($order->getBaseGrandTotal(), 2, '.', '');
|
| 163 |
+
//Si l'IP de l'internaute n'est pas présente dans Magento (en cas de création de commande depuis le BO) alors on récupère l'IP de la boutique
|
| 164 |
$sacOrder->info_commande->ip = (!$order->getRemoteIp()) ? $_SERVER['REMOTE_ADDR'] : $order->getRemoteIp();
|
| 165 |
+
//La fonction $order->getCreatedAt() de Magento retourne l'heure UTC peu importe la config. Pour obtenir celle de la boutique, il est donc nécessaire d'appliquer la méthode ci-dessous
|
| 166 |
+
$sacOrder->info_commande->timestamp = Mage::getModel('core/date')->date(null,strtotime($order->getCreatedAt()));
|
| 167 |
+
//Récupèration du SiteID. Si le type de paiement est Franfinance, alors on récupère l'ID Franfinance
|
| 168 |
$sacOrder->info_commande->siteid = ($franfinancePayment) ? Mage::getStoreConfig('sac/sacconfg/idfranfinance', $id) : Mage::getStoreConfig('sac/sacconfg/siteid', $id);
|
| 169 |
if ($sacOrder->info_commande->siteid == null && $id != 0)
|
| 170 |
$sacOrder->info_commande->siteid = ($franfinancePayment) ? Mage::getStoreConfig('sac/sacconfg/idfranfinance', '0') : Mage::getStoreConfig('sac/sacconfg/siteid', '0');
|
| 171 |
|
| 172 |
+
//Récupération du code transporteur Magento
|
| 173 |
+
$shipping_code = null;
|
| 174 |
+
if ($noPayment) {
|
| 175 |
+
$data = explode('_', $order->getShippingAddress()->getShippingMethod());
|
| 176 |
+
$shipping_code = $data[0];
|
| 177 |
+
} elseif ($order->getShippingCarrier())
|
| 178 |
$shipping_code = $order->getShippingCarrier()->getCarrierCode();
|
| 179 |
+
|
| 180 |
+
$shipping = null;
|
| 181 |
+
if ($shipping_code)
|
| 182 |
$shipping = Mage::getModel('fianet/shipping_association')->load($shipping_code);
|
|
|
|
| 183 |
|
| 184 |
//initialisation du type de transport
|
| 185 |
$type_transporteur = '';
|
| 186 |
$nom_transporteur = '';
|
| 187 |
$rapidite_transporteur = '';
|
| 188 |
|
| 189 |
+
//Traitement particulier si la méthode de livraison est So Colissimo
|
| 190 |
if ($shipping_code == "socolissimo" || $shipping_code == "socolissimosimplicite") {
|
| 191 |
$nom_transporteur = 'So Colissimo';
|
| 192 |
$rapidite_transporteur = '2';
|
| 193 |
+
//Récupèration du num tel demandé par SoColissimo
|
| 194 |
if ($order->getSocoPhoneNumber())
|
| 195 |
$sacOrder->delivery_user->telmobile = $order->getSocoPhoneNumber();
|
| 196 |
|
| 218 |
$type_transporteur = '4';
|
| 219 |
break;
|
| 220 |
default:
|
| 221 |
+
$type_transporteur = 'NC';
|
| 222 |
//On log l'erreur "So Colissimo mode de livraison inconnu"
|
| 223 |
Mage::getModel('fianet/log')->Log(Mage::helper('fianet')->__("Certissim: order #%s. Error with SoColissimo's return. Product Code %s was not recognized.", $order->getRealOrderId(), $order->getSocoProductCode()));
|
| 224 |
break;
|
| 225 |
}
|
| 226 |
+
} elseif ($shipping_code == "relaypoint") {//Traitement particulier si la méthode de livraison est Icirelais
|
| 227 |
$nom_transporteur = $shipping->getConveyorName();
|
| 228 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 229 |
$type_transporteur = '2';
|
| 230 |
|
| 231 |
+
if ($billing_address->getStreet(1) != $shipping_address->getStreet(1)) {//vérification de sécurité
|
| 232 |
$transport_adress = Mage::getModel('fianet/fianet_order_address_transport');
|
| 233 |
$transport_adress->rue1 = $shipping_address->getStreet(1);
|
| 234 |
$transport_adress->cpostal = $shipping_address->getPostcode();
|
| 236 |
$transport_adress->pays = (preg_match('/^97/', $shipping_address->getPostcode()))? 'FR' : $shipping_address->getCountry();
|
| 237 |
$sacOrder->info_commande->transport->adresse = $transport_adress;
|
| 238 |
}
|
| 239 |
+
} elseif ($shipping_code == "envoimoinscher") {//Traitement particulier si la méthode de livraison est Envoimoinscher
|
| 240 |
$nom_transporteur = $shipping->getConveyorName();
|
| 241 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 242 |
|
| 262 |
} else {
|
| 263 |
$type_transporteur = '4';
|
| 264 |
}
|
| 265 |
+
} elseif ($shipping_code == "gls") {//Traitement particulier si la méthode de livraison est GLS
|
| 266 |
$nom_transporteur = $shipping->getConveyorName();
|
| 267 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 268 |
|
| 285 |
$nom_transporteur = $shipping->getConveyorName();
|
| 286 |
$rapidite_transporteur = $shipping->getDeliveryTimes();
|
| 287 |
|
| 288 |
+
if ($type_transporteur == "1") { //si récupération du colis chez le marchand
|
| 289 |
$sacOrder->info_commande->transport->enseigne = Mage::getStoreConfig('general/store_information/name');
|
| 290 |
|
| 291 |
+
//récupération des informations de la boutique
|
| 292 |
$Collection = Mage::getModel('fianet/store_information')->getCollection()->load();
|
| 293 |
$storeInformation = true;
|
| 294 |
foreach ($Collection as $information) {
|
| 309 |
if ($type_transporteur == "2") { //si transport en point relais
|
| 310 |
//si module de point relais particulier, l'inscrire ici...
|
| 311 |
}
|
| 312 |
+
} elseif (Mage::getStoreConfig('sac/sacconfg/downloadableproducts')) {//Produits téléchargeables ou produits virtuels
|
| 313 |
$type_transporteur = '5';
|
| 314 |
$nom_transporteur = 'Downloadable product or/and virtual product';
|
| 315 |
$rapidite_transporteur = '1';
|
| 316 |
}
|
| 317 |
}
|
| 318 |
+
|
| 319 |
$sacOrder->info_commande->transport->type = $type_transporteur;
|
| 320 |
$sacOrder->info_commande->transport->nom = Mage::helper('fianet')->__($nom_transporteur);
|
| 321 |
$sacOrder->info_commande->transport->rapidite = $rapidite_transporteur;
|
| 345 |
|
| 346 |
$product = Mage::getModel('fianet/fianet_order_info_productlist_product');
|
| 347 |
$product->type = Mage::getModel('sac/product')->load($item->getProductId())->getFianetProductType();
|
| 348 |
+
$product->prixunit = number_format($pAmount, 2, '.', '');
|
| 349 |
$product->name = $pName;
|
| 350 |
+
$product->nb = (!$noPayment) ? (int)$item->getQtyOrdered() : (int)$item->getQty();
|
| 351 |
$product->ref = $pSku;
|
| 352 |
$sacOrder->info_commande->list->addProduct($product);
|
| 353 |
}
|
| 354 |
|
| 355 |
+
if (!$noPayment) { // Si le flux n'est pas généré lors du pilotage d'authentification du paiement, la partie Paiement est ajoutée
|
| 356 |
+
$auth = "";
|
| 357 |
+
|
| 358 |
+
$paymentType = (Mage::getModel('sac/payment_association')->load($order->getPayment()->getMethod())->getValue())? Mage::getModel('sac/payment_association')->load($order->getPayment()->getMethod())->getValue() : "NC";
|
| 359 |
+
if ($paymentType == "carte + 3DS") {
|
| 360 |
+
$auth = "3DS";
|
| 361 |
+
$paymentType = "carte";
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
$sacOrder->payment->auth = $auth;
|
| 365 |
+
$sacOrder->payment->type = $paymentType;
|
| 366 |
+
|
| 367 |
+
if ($franfinancePayment) {
|
| 368 |
+
if ($order->getPayment()->getMethod() == "atos3s_sprint")
|
| 369 |
+
$sacOrder->payment->nom = "SPRINT SECURE";
|
| 370 |
+
if ($order->getPayment()->getMethod() == "atos3xweb_web")
|
| 371 |
+
$sacOrder->payment->nom = "3xWEB";
|
| 372 |
+
//$sacOrder->payment->fraction = "fraction";
|
| 373 |
+
}
|
| 374 |
}
|
| 375 |
|
| 376 |
return ($sacOrder);
|
app/code/community/Fianet/Sac/Model/Mysql4/Payment/Association.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Mysql4_Payment_Association extends Fianet_Core_Model_Mysql4_Abstract {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Mysql4_Payment_Association extends Fianet_Core_Model_Mysql4_Abstract {
|
app/code/community/Fianet/Sac/Model/Mysql4/Payment/Association/Collection.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Mysql4_Payment_Association_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Mysql4_Payment_Association_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
app/code/community/Fianet/Sac/Model/Observer.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Observer {
|
|
@@ -51,5 +51,32 @@ class Fianet_Sac_Model_Observer {
|
|
| 51 |
}
|
| 52 |
return $this;
|
| 53 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
}
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Observer {
|
| 51 |
}
|
| 52 |
return $this;
|
| 53 |
}
|
| 54 |
+
|
| 55 |
+
public function instancyAuthManager($observer) {
|
| 56 |
+
try {
|
| 57 |
+
// Vérification d'activation de la fonctionnalité
|
| 58 |
+
$isActive = (Mage::getStoreConfig('sac/sacconfg/activeauthmanager', $order->scope_id) === null) ? false : Mage::getStoreConfig('sac/sacconfg/activeauthmanager', $order->scope_id);
|
| 59 |
+
if ($isActive == true) {
|
| 60 |
+
// Récupération des informations de la commande attendues par Certissim
|
| 61 |
+
$cart = Mage::getModel('checkout/cart')->getQuote();
|
| 62 |
+
$SacOrder = Mage::getModel('sac/fianet_order_sac')->generateSacOrder($cart, true);
|
| 63 |
+
|
| 64 |
+
// Si le scoring Certissim n'a pas déjà été recupéré ou que les informations de la commande ont évolué
|
| 65 |
+
if (!Mage::getSingleton('core/session')->getStatusAuthManager() || ($SacOrder != Mage::getSingleton('core/session')->getFianetXML())) {
|
| 66 |
+
$sender = Mage::getModel('fianet/fianet_sender');
|
| 67 |
+
$response = $sender->sendToCopilot($SacOrder);
|
| 68 |
+
|
| 69 |
+
// Stockage du retour Certissim
|
| 70 |
+
Mage::getSingleton('core/session')->setStatusAuthManager($response);
|
| 71 |
+
// Stockage du flux XML en Session
|
| 72 |
+
Mage::getSingleton('core/session')->setFianetXML($SacOrder);
|
| 73 |
+
}
|
| 74 |
+
}
|
| 75 |
+
} catch(Exception $e) {
|
| 76 |
+
Mage::getModel('fianet/log')->log(Mage::helper('fianet')->__('Certissim: %s.', $e->getMessage()));
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
return $this;
|
| 80 |
+
}
|
| 81 |
|
| 82 |
}
|
app/code/community/Fianet/Sac/Model/Payment/Association.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Payment_Association extends Mage_Core_Model_Abstract {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Payment_Association extends Mage_Core_Model_Abstract {
|
app/code/community/Fianet/Sac/Model/Product.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Product extends Fianet_Core_Model_Product {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Product extends Fianet_Core_Model_Product {
|
app/code/community/Fianet/Sac/Model/Source/Statut.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Source_Statut {
|
|
@@ -42,7 +42,7 @@ class Fianet_Sac_Model_Source_Statut {
|
|
| 42 |
foreach ($statuses as $code => $label) {
|
| 43 |
$options[] = array(
|
| 44 |
'value' => $code,
|
| 45 |
-
'label' => $
|
| 46 |
);
|
| 47 |
}
|
| 48 |
return $options;
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Source_Statut {
|
| 42 |
foreach ($statuses as $code => $label) {
|
| 43 |
$options[] = array(
|
| 44 |
'value' => $code,
|
| 45 |
+
'label' => $label
|
| 46 |
);
|
| 47 |
}
|
| 48 |
return $options;
|
app/code/community/Fianet/Sac/Model/Source/Type.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Source_Type {
|
|
@@ -25,7 +25,10 @@ class Fianet_Sac_Model_Source_Type {
|
|
| 25 |
array('value' => 'contre-remboursement', 'label' => Mage::helper('fianet')->__('Against repayment')),
|
| 26 |
array('value' => 'virement', 'label' => Mage::helper('fianet')->__('Transfer')),
|
| 27 |
array('value' => 'cb en n fois', 'label' => Mage::helper('fianet')->__('Credit card in x times')),
|
| 28 |
-
array('value' => 'paypal', 'label' => Mage::helper('fianet')->__('Paypal'))
|
|
|
|
|
|
|
|
|
|
| 29 |
);
|
| 30 |
}
|
| 31 |
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Model_Source_Type {
|
| 25 |
array('value' => 'contre-remboursement', 'label' => Mage::helper('fianet')->__('Against repayment')),
|
| 26 |
array('value' => 'virement', 'label' => Mage::helper('fianet')->__('Transfer')),
|
| 27 |
array('value' => 'cb en n fois', 'label' => Mage::helper('fianet')->__('Credit card in x times')),
|
| 28 |
+
array('value' => 'paypal', 'label' => Mage::helper('fianet')->__('Paypal')),
|
| 29 |
+
array('value' => '1euro.com', 'label' => Mage::helper('fianet')->__('1euro.com')),
|
| 30 |
+
array('value' => 'buyster', 'label' => Mage::helper('fianet')->__('Buyster')),
|
| 31 |
+
array('value' => 'buybox', 'label' => Mage::helper('fianet')->__('Buybox'))
|
| 32 |
);
|
| 33 |
}
|
| 34 |
|
app/code/community/Fianet/Sac/controllers/Adminhtml/PaymentController.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Adminhtml_PaymentController extends Mage_Adminhtml_Controller_Action {
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
class Fianet_Sac_Adminhtml_PaymentController extends Mage_Adminhtml_Controller_Action {
|
app/code/community/Fianet/Sac/etc/adminhtml.xml
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
app/code/community/Fianet/Sac/etc/config.xml
CHANGED
|
@@ -12,14 +12,14 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<config>
|
| 20 |
<modules>
|
| 21 |
<Fianet_Sac>
|
| 22 |
-
<version>1.1.
|
| 23 |
</Fianet_Sac>
|
| 24 |
</modules>
|
| 25 |
<admin>
|
|
@@ -53,6 +53,15 @@
|
|
| 53 |
</adminhtml>
|
| 54 |
<global>
|
| 55 |
<events>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
<sales_order_save_after>
|
| 57 |
<observers>
|
| 58 |
<sac_auto_send_order>
|
|
@@ -120,6 +129,7 @@
|
|
| 120 |
<produrl><![CDATA[https://secure.fia-net.com/fscreener/]]></produrl>
|
| 121 |
<testurl><![CDATA[https://secure.fia-net.com/pprod/]]></testurl>
|
| 122 |
<stacking><![CDATA[engine/stacking.cgi]]></stacking>
|
|
|
|
| 123 |
<validstack><![CDATA[engine/get_validstack.cgi]]></validstack>
|
| 124 |
<alert><![CDATA[engine/get_alert.cgi]]></alert>
|
| 125 |
<interface><![CDATA[commun/visucheck_detail.php]]></interface>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<config>
|
| 20 |
<modules>
|
| 21 |
<Fianet_Sac>
|
| 22 |
+
<version>1.1.1</version>
|
| 23 |
</Fianet_Sac>
|
| 24 |
</modules>
|
| 25 |
<admin>
|
| 53 |
</adminhtml>
|
| 54 |
<global>
|
| 55 |
<events>
|
| 56 |
+
<checkout_controller_onepage_save_shipping_method>
|
| 57 |
+
<observers>
|
| 58 |
+
<sac_instancy_authmanager>
|
| 59 |
+
<type>singleton</type>
|
| 60 |
+
<class>sac/observer</class>
|
| 61 |
+
<method>instancyAuthManager</method>
|
| 62 |
+
</sac_instancy_authmanager>
|
| 63 |
+
</observers>
|
| 64 |
+
</checkout_controller_onepage_save_shipping_method>
|
| 65 |
<sales_order_save_after>
|
| 66 |
<observers>
|
| 67 |
<sac_auto_send_order>
|
| 129 |
<produrl><![CDATA[https://secure.fia-net.com/fscreener/]]></produrl>
|
| 130 |
<testurl><![CDATA[https://secure.fia-net.com/pprod/]]></testurl>
|
| 131 |
<stacking><![CDATA[engine/stacking.cgi]]></stacking>
|
| 132 |
+
<copilot><![CDATA[engine/copilot.cgi]]></copilot>
|
| 133 |
<validstack><![CDATA[engine/get_validstack.cgi]]></validstack>
|
| 134 |
<alert><![CDATA[engine/get_alert.cgi]]></alert>
|
| 135 |
<interface><![CDATA[commun/visucheck_detail.php]]></interface>
|
app/code/community/Fianet/Sac/etc/system.xml
CHANGED
|
@@ -12,217 +12,236 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<config>
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
<comment><![CDATA[Site ID, Login and Password are provided in your Certissim account]]></comment>
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
| 74 |
<activefranfinance translate="label">
|
| 75 |
<label>Activate Franfinance</label>
|
| 76 |
<frontend_type>select</frontend_type>
|
| 77 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 78 |
-
|
| 79 |
<show_in_default>1</show_in_default>
|
| 80 |
-
|
| 81 |
-
|
| 82 |
</activefranfinance>
|
| 83 |
<idfranfinance translate="label, comment">
|
| 84 |
<label>Certissim Franfinance ID</label>
|
| 85 |
<comment><![CDATA[Franfinance ID is provided in your Certissim account]]></comment>
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
|
|
|
|
|
|
|
|
|
| 91 |
</idfranfinance>
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
<encryptmode translate="label">
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
<timecontrol translate="label, comment">
|
| 129 |
<label>Maximum delay to sending commands (in day)</label>
|
| 130 |
<comment><![CDATA[Orders placed before this time will not be sent to CERTISSIM]]></comment>
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
</timecontrol>
|
| 137 |
-
|
| 138 |
-
|
| 139 |
<comment><![CDATA[Select the status for which the transaction will be sent to CERTISSIM system (multiple selections possible)]]></comment>
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
<downloadableproducts translate="label">
|
| 148 |
-
|
| 149 |
-
|
| 150 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
</downloadableproducts>
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
</config>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<config>
|
| 20 |
+
<sections>
|
| 21 |
+
<sac translate="label">
|
| 22 |
+
<label>Certissim</label>
|
| 23 |
+
<tab>fianet</tab>
|
| 24 |
+
<frontend_type>text</frontend_type>
|
| 25 |
+
<sort_order>1000</sort_order>
|
| 26 |
+
<show_in_default>1</show_in_default>
|
| 27 |
+
<show_in_website>1</show_in_website>
|
| 28 |
+
<show_in_store>1</show_in_store>
|
| 29 |
+
<groups>
|
| 30 |
+
<!-- New groups go here -->
|
| 31 |
+
<sacconfg translate="label">
|
| 32 |
+
<label>General configuration</label>
|
| 33 |
+
<frontend_type>text</frontend_type>
|
| 34 |
+
<sort_order>1</sort_order>
|
| 35 |
+
<show_in_default>1</show_in_default>
|
| 36 |
+
<show_in_website>1</show_in_website>
|
| 37 |
+
<show_in_store>1</show_in_store>
|
| 38 |
+
<fields>
|
| 39 |
+
<!-- New fields go here -->
|
| 40 |
+
<active translate="label">
|
| 41 |
+
<label>Activate Certissim</label>
|
| 42 |
+
<frontend_type>select</frontend_type>
|
| 43 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 44 |
+
<sort_order>1</sort_order>
|
| 45 |
+
<show_in_default>1</show_in_default>
|
| 46 |
+
<show_in_website>1</show_in_website>
|
| 47 |
+
<show_in_store>0</show_in_store>
|
| 48 |
+
</active>
|
| 49 |
+
<siteid translate="label, comment">
|
| 50 |
+
<label>Site ID</label>
|
| 51 |
+
<frontend_type>text</frontend_type>
|
| 52 |
+
<depends>
|
| 53 |
+
<active>1</active>
|
| 54 |
+
</depends>
|
| 55 |
+
<sort_order>2</sort_order>
|
| 56 |
+
<show_in_default>1</show_in_default>
|
| 57 |
+
<show_in_website>1</show_in_website>
|
| 58 |
+
<show_in_store>0</show_in_store>
|
| 59 |
+
</siteid>
|
| 60 |
+
<compte translate="label, comment">
|
| 61 |
+
<label>FIA-NET Login</label>
|
| 62 |
+
<frontend_type>text</frontend_type>
|
| 63 |
+
<depends>
|
| 64 |
+
<active>1</active>
|
| 65 |
+
</depends>
|
| 66 |
+
<sort_order>3</sort_order>
|
| 67 |
+
<show_in_default>1</show_in_default>
|
| 68 |
+
<show_in_website>1</show_in_website>
|
| 69 |
+
<show_in_store>0</show_in_store>
|
| 70 |
+
</compte>
|
| 71 |
+
<password translate="label, comment">
|
| 72 |
+
<label>Password</label>
|
| 73 |
<comment><![CDATA[Site ID, Login and Password are provided in your Certissim account]]></comment>
|
| 74 |
+
<frontend_type>text</frontend_type>
|
| 75 |
+
<depends>
|
| 76 |
+
<active>1</active>
|
| 77 |
+
</depends>
|
| 78 |
+
<sort_order>4</sort_order>
|
| 79 |
+
<show_in_default>1</show_in_default>
|
| 80 |
+
<show_in_website>1</show_in_website>
|
| 81 |
+
<show_in_store>0</show_in_store>
|
| 82 |
+
</password>
|
| 83 |
<activefranfinance translate="label">
|
| 84 |
<label>Activate Franfinance</label>
|
| 85 |
<frontend_type>select</frontend_type>
|
| 86 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 87 |
+
<sort_order>5</sort_order>
|
| 88 |
<show_in_default>1</show_in_default>
|
| 89 |
+
<show_in_website>1</show_in_website>
|
| 90 |
+
<show_in_store>0</show_in_store>
|
| 91 |
</activefranfinance>
|
| 92 |
<idfranfinance translate="label, comment">
|
| 93 |
<label>Certissim Franfinance ID</label>
|
| 94 |
<comment><![CDATA[Franfinance ID is provided in your Certissim account]]></comment>
|
| 95 |
+
<frontend_type>text</frontend_type>
|
| 96 |
+
<depends>
|
| 97 |
+
<activefranfinance>1</activefranfinance>
|
| 98 |
+
</depends>
|
| 99 |
+
<sort_order>6</sort_order>
|
| 100 |
+
<show_in_default>1</show_in_default>
|
| 101 |
+
<show_in_website>1</show_in_website>
|
| 102 |
+
<show_in_store>0</show_in_store>
|
| 103 |
</idfranfinance>
|
| 104 |
+
<mode translate="label">
|
| 105 |
+
<label>Test or production mode</label>
|
| 106 |
+
<frontend_type>select</frontend_type>
|
| 107 |
+
<source_model>fianet/source_mode</source_model>
|
| 108 |
+
<sort_order>9</sort_order>
|
| 109 |
+
<show_in_default>1</show_in_default>
|
| 110 |
+
<show_in_website>1</show_in_website>
|
| 111 |
+
<show_in_store>0</show_in_store>
|
| 112 |
+
</mode>
|
| 113 |
<encryptmode translate="label">
|
| 114 |
+
<label>Encryption mode</label>
|
| 115 |
+
<frontend_type>select</frontend_type>
|
| 116 |
+
<source_model>fianet/source_crypt</source_model>
|
| 117 |
+
<sort_order>10</sort_order>
|
| 118 |
+
<show_in_default>1</show_in_default>
|
| 119 |
+
<show_in_website>0</show_in_website>
|
| 120 |
+
<show_in_store>0</show_in_store>
|
| 121 |
+
</encryptmode>
|
| 122 |
+
<charset translate="label">
|
| 123 |
+
<label>Charset</label>
|
| 124 |
+
<frontend_type>select</frontend_type>
|
| 125 |
+
<source_model>fianet/source_charset</source_model>
|
| 126 |
+
<sort_order>11</sort_order>
|
| 127 |
+
<show_in_default>1</show_in_default>
|
| 128 |
+
<show_in_website>0</show_in_website>
|
| 129 |
+
<show_in_store>0</show_in_store>
|
| 130 |
+
</charset>
|
| 131 |
+
<defaultproducttype translate="label">
|
| 132 |
+
<label>Default product type</label>
|
| 133 |
+
<frontend_type>select</frontend_type>
|
| 134 |
+
<source_model>fianet/source_productType</source_model>
|
| 135 |
+
<sort_order>12</sort_order>
|
| 136 |
+
<show_in_default>1</show_in_default>
|
| 137 |
+
<show_in_website>1</show_in_website>
|
| 138 |
+
<show_in_store>0</show_in_store>
|
| 139 |
+
</defaultproducttype>
|
| 140 |
<timecontrol translate="label, comment">
|
| 141 |
<label>Maximum delay to sending commands (in day)</label>
|
| 142 |
<comment><![CDATA[Orders placed before this time will not be sent to CERTISSIM]]></comment>
|
| 143 |
+
<frontend_type>text</frontend_type>
|
| 144 |
+
<sort_order>13</sort_order>
|
| 145 |
+
<show_in_default>1</show_in_default>
|
| 146 |
+
<show_in_website>1</show_in_website>
|
| 147 |
+
<show_in_store>0</show_in_store>
|
| 148 |
</timecontrol>
|
| 149 |
+
<procasso translate="label, comment">
|
| 150 |
+
<label>List of Magento's Statuses</label>
|
| 151 |
<comment><![CDATA[Select the status for which the transaction will be sent to CERTISSIM system (multiple selections possible)]]></comment>
|
| 152 |
+
<frontend_type>multiselect</frontend_type>
|
| 153 |
+
<source_model>sac/source_statut</source_model>
|
| 154 |
+
<sort_order>14</sort_order>
|
| 155 |
+
<show_in_default>1</show_in_default>
|
| 156 |
+
<show_in_website>1</show_in_website>
|
| 157 |
+
<show_in_store>0</show_in_store>
|
| 158 |
+
</procasso>
|
| 159 |
<downloadableproducts translate="label">
|
| 160 |
+
<label>Activate management of downloadable/virtual products</label>
|
| 161 |
+
<frontend_type>select</frontend_type>
|
| 162 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 163 |
+
<sort_order>15</sort_order>
|
| 164 |
+
<show_in_default>1</show_in_default>
|
| 165 |
+
<show_in_website>1</show_in_website>
|
| 166 |
+
<show_in_store>0</show_in_store>
|
| 167 |
</downloadableproducts>
|
| 168 |
+
</fields>
|
| 169 |
+
</sacconfg>
|
| 170 |
+
<saclink translate="label">
|
| 171 |
+
<label>Links</label>
|
| 172 |
+
<frontend_type>text</frontend_type>
|
| 173 |
+
<sort_order>2</sort_order>
|
| 174 |
+
<show_in_default>1</show_in_default>
|
| 175 |
+
<show_in_website>1</show_in_website>
|
| 176 |
+
<show_in_store>1</show_in_store>
|
| 177 |
+
<fields>
|
| 178 |
+
<!-- New fields go here -->
|
| 179 |
+
<produrl translate="label">
|
| 180 |
+
<label>Production URL</label>
|
| 181 |
+
<frontend_type>text</frontend_type>
|
| 182 |
+
<sort_order>1</sort_order>
|
| 183 |
+
<show_in_default>1</show_in_default>
|
| 184 |
+
<show_in_website>0</show_in_website>
|
| 185 |
+
<show_in_store>0</show_in_store>
|
| 186 |
+
</produrl>
|
| 187 |
+
<testurl translate="label">
|
| 188 |
+
<label>Test URL</label>
|
| 189 |
+
<frontend_type>text</frontend_type>
|
| 190 |
+
<sort_order>2</sort_order>
|
| 191 |
+
<show_in_default>1</show_in_default>
|
| 192 |
+
<show_in_website>0</show_in_website>
|
| 193 |
+
<show_in_store>0</show_in_store>
|
| 194 |
+
</testurl>
|
| 195 |
+
<stacking translate="label">
|
| 196 |
+
<label>Script for sending orders</label>
|
| 197 |
+
<frontend_type>text</frontend_type>
|
| 198 |
+
<sort_order>3</sort_order>
|
| 199 |
+
<show_in_default>1</show_in_default>
|
| 200 |
+
<show_in_website>0</show_in_website>
|
| 201 |
+
<show_in_store>0</show_in_store>
|
| 202 |
+
</stacking>
|
| 203 |
+
<copilot translate="label">
|
| 204 |
+
<label>Script for sending payment authentication</label>
|
| 205 |
+
<sort_order>4</sort_order>
|
| 206 |
+
<show_in_default>1</show_in_default>
|
| 207 |
+
<show_in_website>0</show_in_website>
|
| 208 |
+
<show_in_store>0</show_in_store>
|
| 209 |
+
</copilot>
|
| 210 |
+
<validstack translate="label">
|
| 211 |
+
<label>Script for recovery evaluations</label>
|
| 212 |
+
<frontend_type>text</frontend_type>
|
| 213 |
+
<sort_order>5</sort_order>
|
| 214 |
+
<show_in_default>1</show_in_default>
|
| 215 |
+
<show_in_website>0</show_in_website>
|
| 216 |
+
<show_in_store>0</show_in_store>
|
| 217 |
+
</validstack>
|
| 218 |
+
<alert translate="label">
|
| 219 |
+
<label>Script for recovery reevaluations</label>
|
| 220 |
+
<frontend_type>text</frontend_type>
|
| 221 |
+
<sort_order>6</sort_order>
|
| 222 |
+
<show_in_default>1</show_in_default>
|
| 223 |
+
<show_in_website>0</show_in_website>
|
| 224 |
+
<show_in_store>0</show_in_store>
|
| 225 |
+
</alert>
|
| 226 |
+
<interface translate="label">
|
| 227 |
+
<label>CERTISSIM Interface</label>
|
| 228 |
+
<frontend_type>text</frontend_type>
|
| 229 |
+
<sort_order>7</sort_order>
|
| 230 |
+
<show_in_default>1</show_in_default>
|
| 231 |
+
<show_in_website>0</show_in_website>
|
| 232 |
+
<show_in_store>0</show_in_store>
|
| 233 |
+
</interface>
|
| 234 |
+
<checkxml translate="label">
|
| 235 |
+
<label>Check XML</label>
|
| 236 |
+
<frontend_type>text</frontend_type>
|
| 237 |
+
<sort_order>8</sort_order>
|
| 238 |
+
<show_in_default>1</show_in_default>
|
| 239 |
+
<show_in_website>0</show_in_website>
|
| 240 |
+
<show_in_store>0</show_in_store>
|
| 241 |
+
</checkxml>
|
| 242 |
+
</fields>
|
| 243 |
+
</saclink>
|
| 244 |
+
</groups>
|
| 245 |
+
</sac>
|
| 246 |
+
</sections>
|
| 247 |
</config>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-install-0.0.1.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.1-0.0.2.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.10-0.0.11.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.11-0.0.12.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.12-0.0.13.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.13-1.0.0.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.2-0.0.3.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.3-0.0.4.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-0.0.4-0.0.5.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-1.0.0-1.0.1.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-1.0.3-1.0.4.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/code/community/Fianet/Sac/sql/sac_setup/mysql4-upgrade-1.0.5-1.1.0.php
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
?>
|
app/design/adminhtml/default/default/layout/sac.xml
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
app/etc/modules/Fianet_Sac.xml
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
-
* @version Release: $Revision: 1.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
|
@@ -24,7 +24,7 @@
|
|
| 24 |
<depends>
|
| 25 |
<Fianet_Core />
|
| 26 |
</depends>
|
| 27 |
-
<version>1.1.
|
| 28 |
</Fianet_Sac>
|
| 29 |
</modules>
|
| 30 |
</config>
|
| 12 |
*
|
| 13 |
* @author FIA-NET <support-boutique@fia-net.com>
|
| 14 |
* @copyright 2000-2014 FIA-NET
|
| 15 |
+
* @version Release: $Revision: 1.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 24 |
<depends>
|
| 25 |
<Fianet_Core />
|
| 26 |
</depends>
|
| 27 |
+
<version>1.1.1</version>
|
| 28 |
</Fianet_Sac>
|
| 29 |
</modules>
|
| 30 |
</config>
|
app/locale/fr_FR/Fianet_Sac.csv
CHANGED
|
@@ -11,6 +11,8 @@
|
|
| 11 |
"Paypal","Paypal"
|
| 12 |
|
| 13 |
"Certissim Franfinance ID","ID Franfinance Certissim"
|
|
|
|
|
|
|
| 14 |
"Site ID, Login and Password are provided in your Certissim account","Le Site ID, Login et Mot de passe sont ceux fournis par Certissim"
|
| 15 |
"Franfinance ID is provided in your Certissim account","L'ID Franfinance est fourni par Certissim"
|
| 16 |
"Maximum delay to sending commands (in day)","Délai maximum d'envoi des commandes (en jours)"
|
|
@@ -19,9 +21,10 @@
|
|
| 19 |
"Select the status for which the transaction will be sent to CERTISSIM system (multiple selections possible)","Selectionnez le statut pour lequel la transaction sera soumise au système Certissim (multisélection possible)"
|
| 20 |
"Production URL","URL de Production"
|
| 21 |
"Test URL","URL de Test"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
|
|
|
| 25 |
"CERTISSIM Interface","URL de visualisation des évaluations"
|
| 26 |
"Check XML","Page de vérification du flux XML"
|
| 27 |
"Activate management of downloadable/virtual products","Activer la gestion des produits téléchargeables/virtuels"
|
| 11 |
"Paypal","Paypal"
|
| 12 |
|
| 13 |
"Certissim Franfinance ID","ID Franfinance Certissim"
|
| 14 |
+
"Authentication key", "Clef d'authentification"
|
| 15 |
+
"Activate authentication manager","Activer le pilotage d'authentification des paiements"
|
| 16 |
"Site ID, Login and Password are provided in your Certissim account","Le Site ID, Login et Mot de passe sont ceux fournis par Certissim"
|
| 17 |
"Franfinance ID is provided in your Certissim account","L'ID Franfinance est fourni par Certissim"
|
| 18 |
"Maximum delay to sending commands (in day)","Délai maximum d'envoi des commandes (en jours)"
|
| 21 |
"Select the status for which the transaction will be sent to CERTISSIM system (multiple selections possible)","Selectionnez le statut pour lequel la transaction sera soumise au système Certissim (multisélection possible)"
|
| 22 |
"Production URL","URL de Production"
|
| 23 |
"Test URL","URL de Test"
|
| 24 |
+
"Script for sending orders","Script d'envoi des commandes"
|
| 25 |
+
"Script for sending payment authentication","Script d'envoi de l'authentification de paiement"
|
| 26 |
+
"Script for recovery evaluations","Script de récupération des évaluations"
|
| 27 |
+
"Script for recovery reevaluations","Script de récupération des réévaluations"
|
| 28 |
"CERTISSIM Interface","URL de visualisation des évaluations"
|
| 29 |
"Check XML","Page de vérification du flux XML"
|
| 30 |
"Activate management of downloadable/virtual products","Activer la gestion des produits téléchargeables/virtuels"
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Fianet_Sac</name>
|
| 4 |
-
<version>1.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/OSL-3.0">Open Software License (OSL 3.0)</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>Anti-Fraud System</description>
|
| 11 |
<notes>Official commit</notes>
|
| 12 |
<authors><author><name>FIA-NET</name><user>auto-converted</user><email>support-boutique@fia-net.com</email></author></authors>
|
| 13 |
-
<date>2014-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Fianet"><dir name="Sac"><dir name="Block"><dir name="Adminhtml"><dir name="Payment"><dir name="Edit"><file name="Form.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
-
<dependencies><required><package><name>Fianet_Core</name><channel>community</channel><min
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Fianet_Sac</name>
|
| 4 |
+
<version>1.1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/OSL-3.0">Open Software License (OSL 3.0)</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>Anti-Fraud System</description>
|
| 11 |
<notes>Official commit</notes>
|
| 12 |
<authors><author><name>FIA-NET</name><user>auto-converted</user><email>support-boutique@fia-net.com</email></author></authors>
|
| 13 |
+
<date>2014-09-02</date>
|
| 14 |
+
<time>09:44:52</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Fianet"><dir name="Sac"><dir name="Block"><dir name="Adminhtml"><dir name="Payment"><dir name="Edit"><file name="Form.php" hash="c6989d43ab3c061f68c1b66b1858f8dd"/></dir><file name="Configuration.php" hash="1440eb6f7fa19ef5f1f571fb32d961f5"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="e01e927527e46a67a0745e3d4bb367d8"/><file name="Order.php" hash="5f95ef2b1833ea387db038f0953c08a8"/></dir><dir name="Model"><dir name="Fianet"><dir name="Order"><dir name="Info"><file name="Sac.php" hash="daa69a25e3ad6134cb84095b7a248a3d"/></dir><file name="Sac.php" hash="99946ab70dff5002670406e4222c25e4"/></dir></dir><dir name="Mysql4"><dir name="Payment"><dir name="Association"><file name="Collection.php" hash="2158884ae5bc8cad1b7ee92525019e80"/></dir><file name="Association.php" hash="fc552275b79b75643c8063bbd0b865a0"/></dir></dir><dir name="Payment"><file name="Association.php" hash="a9b7ea169cf294da95f196454083e8cc"/></dir><dir name="Source"><file name="Statut.php" hash="00cad7afe582cc2752e0e72f47699003"/><file name="Type.php" hash="095de98fd5d6b748a0e6717e4c10f162"/></dir><file name="Action.php" hash="8ff9c411687e60a6488391576fd0a81a"/><file name="Observer.php" hash="9888623502101ca5208af6bec736f9a5"/><file name="Product.php" hash="96832745fba6b92e34a2fe41be251a8f"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PaymentController.php" hash="c54fc1de116a36b9a45d7b89d7c57a5b"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="ec1257a2cb341c8cd86ad44e0090adbf"/><file name="config.xml" hash="aab018a5bcb65f1b52e5d3fcb1a76333"/><file name="system.xml" hash="5684f5ce644aa85f7c812c0e33124aab"/></dir><dir name="sql"><dir name="sac_setup"><file name="mysql4-install-0.0.1.php" hash="791ed88eb6c607313c94cef9bba25046"/><file name="mysql4-upgrade-0.0.1-0.0.2.php" hash="2f4f7dc6c0af279e88509bd55f6e2355"/><file name="mysql4-upgrade-0.0.10-0.0.11.php" hash="575dd4dc6845b485c402517c648600d8"/><file name="mysql4-upgrade-0.0.11-0.0.12.php" hash="1458a695ff932b03195f10dd1b06990d"/><file name="mysql4-upgrade-0.0.12-0.0.13.php" hash="f251cb227acbf7edfc9d7ea7a09b2839"/><file name="mysql4-upgrade-0.0.13-1.0.0.php" hash="f16da550247e70c0644a42370eae97e8"/><file name="mysql4-upgrade-0.0.2-0.0.3.php" hash="92b57316ccef1abcbba6176e93024ceb"/><file name="mysql4-upgrade-0.0.3-0.0.4.php" hash="59cf8aea0c95c9d3ba3926a6294c9b26"/><file name="mysql4-upgrade-0.0.4-0.0.5.php" hash="3ffd088ccb3cc99148079a23837811f1"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="424feb982b7c15e423d082c0a9c49c30"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="0dd5aa1e60658f3481b3f84ab471eb3f"/><file name="mysql4-upgrade-1.0.5-1.1.0.php" hash="07594f48839bf9108450409c040dfbb7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sac.xml" hash="6d2fa6e7d5948929cdff66daaffabb20"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fianet_Sac.xml" hash="a684abcd0d56fa6daaf996da993861ed"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Fianet_Sac.csv" hash="8ebf1f8269a1b76cafe842411cd0e795"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="fianet"><file name="attention.gif" hash="d85cab75ed2cba677829db26b1f0a6c2"/><file name="fianet_SAC_icon.gif" hash="be9ce72c9a2bd81611a9e82537a8e15a"/><file name="rond_rouge.gif" hash="c605401e88cd234a31691dc9e4a38b05"/><file name="rond_vert.gif" hash="ce704184ee159f7008f81af51a747e71"/><file name="rond_vertclair.gif" hash="b0310ca593cd539b88463d720df3cd60"/><file name="rond_orange.gif" hash="b97b309b0b0dc155ee07b0198209d21e"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
+
<dependencies><required><package><name>Fianet_Core</name><channel>community</channel><min>1.0.6</min><max></max></package></required></dependencies>
|
| 18 |
</package>
|
