Version Notes
Changelog:
2.1.1:
- Fix bug with api debug table
- Add table view in back-office
2.1.0:
- Bug fixed with Paybox Direct
- Bug fixed with multishipping
- Add Paybox System intermediate page configuration
2.0.2:
- Some fields in the configuration of the module are now configurable in store view
- The field "empty cart" was added
2.0.1:
- Stable version
2.0.0:
- Magento 1.5 compatibility
- Multishipping compatibility
- Bug fixed with magento 1.4
- Beta version
Download this release
Release Info
| Developer | Quadra Informatique |
| Extension | Quadra_Paybox |
| Version | 2.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1.0 to 2.1.1
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug.php +28 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Grid.php +109 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Request.php +28 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Request/Grid.php +89 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Response.php +28 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Response/Grid.php +89 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View.php +37 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Form.php +33 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tab/Request.php +75 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tab/Response.php +75 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tabs.php +41 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type.php +8 -9
- app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type/Select.php +10 -12
- app/code/community/Quadra/Paybox/Block/Adminhtml/Question/Number.php +28 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/Question/Number/Grid.php +77 -0
- app/code/community/Quadra/Paybox/Block/Adminhtml/System/Config/Form/Field/Backuppaymentserver.php +8 -8
- app/code/community/Quadra/Paybox/Block/Direct/Form.php +7 -8
- app/code/community/Quadra/Paybox/Block/Direct/Info.php +8 -10
- app/code/community/Quadra/Paybox/Block/System/Error.php +11 -14
- app/code/community/Quadra/Paybox/Block/System/Failure.php +10 -12
- app/code/community/Quadra/Paybox/Block/System/Form.php +8 -8
- app/code/community/Quadra/Paybox/Block/System/Redirect.php +8 -8
- app/code/community/Quadra/Paybox/Helper/Data.php +6 -6
- app/code/community/Quadra/Paybox/Model/Api/Debug.php +8 -8
- app/code/community/Quadra/Paybox/Model/Config/Data/Paybox.php +8 -7
- app/code/community/Quadra/Paybox/Model/Direct.php +40 -61
- app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug.php +8 -8
- app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug/Collection.php +8 -8
- app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number.php +7 -8
- app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number/Collection.php +24 -0
- app/code/community/Quadra/Paybox/Model/Mysql4/Setup.php +6 -6
- app/code/community/Quadra/Paybox/Model/Observer.php +10 -12
- app/code/community/Quadra/Paybox/Model/Question/Number.php +13 -18
- app/code/community/Quadra/Paybox/Model/Source/CartType.php +9 -10
- app/code/community/Quadra/Paybox/Model/Source/Cctype.php +8 -8
- app/code/community/Quadra/Paybox/Model/Source/Language.php +8 -9
- app/code/community/Quadra/Paybox/Model/Source/ManagementMode.php +9 -12
- app/code/community/Quadra/Paybox/Model/Source/MethodCall.php +8 -9
- app/code/community/Quadra/Paybox/Model/Source/PaymentAction.php +8 -8
- app/code/community/Quadra/Paybox/Model/Source/PaymentMode.php +9 -10
- app/code/community/Quadra/Paybox/Model/Source/PaymentType.php +9 -9
- app/code/community/Quadra/Paybox/Model/System.php +46 -80
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status.php +43 -0
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Accepted.php +27 -0
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Canceled.php +26 -0
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/New.php +26 -0
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Refused.php +27 -0
- app/code/community/Quadra/Paybox/controllers/Adminhtml/Api/DebugController.php +91 -0
- app/code/community/Quadra/Paybox/controllers/Adminhtml/Question/NumberController.php +71 -0
- app/code/community/Quadra/Paybox/controllers/SystemController.php +69 -131
- app/code/community/Quadra/Paybox/etc/config.xml +50 -15
- app/code/community/Quadra/Paybox/etc/currency.xml +4 -4
- app/code/community/Quadra/Paybox/etc/system.xml +8 -8
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-install-0.1.0.php +5 -6
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.0-0.1.1.php +5 -4
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.1-0.1.2.php +5 -6
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.2-0.1.3.php +5 -4
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-1.2.4-1.2.5.php +6 -5
- app/design/adminhtml/default/default/template/paybox/adminhtml/cart/type/select.phtml +4 -4
- app/design/adminhtml/default/default/template/paybox/direct/form.phtml +4 -4
- app/design/adminhtml/default/default/template/paybox/direct/info.phtml +4 -4
- app/design/adminhtml/default/default/template/paybox/direct/pdf/info.phtml +4 -4
- app/design/frontend/default/default/layout/paybox.xml +38 -38
- app/design/frontend/default/default/template/paybox/direct/form.phtml +5 -5
- app/design/frontend/default/default/template/paybox/direct/info.phtml +10 -12
- app/design/frontend/default/default/template/paybox/system/error.phtml +4 -4
- app/design/frontend/default/default/template/paybox/system/form.phtml +4 -4
- app/design/frontend/default/default/template/paybox/system/notify.phtml +4 -4
- app/etc/modules/Quadra_Paybox.xml +4 -4
- package.xml +10 -6
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug.php
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
$this->_blockGroup = 'paybox';
|
| 22 |
+
$this->_controller = 'adminhtml_api_debug';
|
| 23 |
+
$this->_headerText = Mage::helper('paybox')->__('Manage Paybox Api Debug');
|
| 24 |
+
parent::__construct();
|
| 25 |
+
$this->removeButton('add');
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Grid.php
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
| 19 |
+
|
| 20 |
+
protected $_collection;
|
| 21 |
+
|
| 22 |
+
public function __construct() {
|
| 23 |
+
parent::__construct();
|
| 24 |
+
$this->setId('paybox_api_debug_grid');
|
| 25 |
+
$this->setUseAjax(true);
|
| 26 |
+
$this->setDefaultSort('debug_at');
|
| 27 |
+
$this->setDefaultDir('DESC');
|
| 28 |
+
$this->setSaveParametersInSession(true);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
protected function _prepareCollection() {
|
| 32 |
+
$this->_collection = new Varien_Data_Collection();
|
| 33 |
+
$this->_loadCollection();
|
| 34 |
+
$this->setCollection($this->_collection);
|
| 35 |
+
return parent::_prepareCollection();
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
protected function _loadCollection() {
|
| 39 |
+
foreach (Mage::getResourceModel('paybox/api_debug_collection') as $item) {
|
| 40 |
+
$item->setData('has_request_body', (strlen($item['request_body']) > 0));
|
| 41 |
+
$item->setData('has_response_body', (strlen($item['response_body']) > 0));
|
| 42 |
+
$this->_collection->addItem($item);
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
protected function _prepareColumns() {
|
| 47 |
+
$this->addColumn('debug_at', array(
|
| 48 |
+
'header' => Mage::helper('paybox')->__('Debug at'),
|
| 49 |
+
'index' => 'debug_at',
|
| 50 |
+
'type' => 'date'
|
| 51 |
+
));
|
| 52 |
+
|
| 53 |
+
$this->addColumn('real_order_id', array(
|
| 54 |
+
'header' => Mage::helper('paybox')->__('Real Order ID'),
|
| 55 |
+
'index' => 'real_order_id',
|
| 56 |
+
'type' => 'number'
|
| 57 |
+
));
|
| 58 |
+
|
| 59 |
+
$sourceYesNo = Mage::getSingleton('adminhtml/system_config_source_yesno');
|
| 60 |
+
$this->addColumn('has_request_body', array(
|
| 61 |
+
'header' => Mage::helper('paybox')->__('Has Request'),
|
| 62 |
+
'width' => '10px',
|
| 63 |
+
'index' => 'has_request_body',
|
| 64 |
+
'type' => 'options',
|
| 65 |
+
'options' => $sourceYesNo->toArray()
|
| 66 |
+
));
|
| 67 |
+
|
| 68 |
+
$this->addColumn('has_response_body', array(
|
| 69 |
+
'header' => Mage::helper('paybox')->__('Has Response'),
|
| 70 |
+
'width' => '10px',
|
| 71 |
+
'index' => 'has_response_body',
|
| 72 |
+
'type' => 'options',
|
| 73 |
+
'options' => $sourceYesNo->toArray()
|
| 74 |
+
));
|
| 75 |
+
|
| 76 |
+
$this->addColumn('action', array(
|
| 77 |
+
'header' => Mage::helper('paybox')->__('Action'),
|
| 78 |
+
'width' => '100',
|
| 79 |
+
'type' => 'action',
|
| 80 |
+
'getter' => 'getId',
|
| 81 |
+
'actions' => array(
|
| 82 |
+
array(
|
| 83 |
+
'caption' => Mage::helper('paybox')->__('View'),
|
| 84 |
+
'url' => array('base' => '*/*/view'),
|
| 85 |
+
'field' => 'id'
|
| 86 |
+
)
|
| 87 |
+
),
|
| 88 |
+
'filter' => false,
|
| 89 |
+
'sortable' => false,
|
| 90 |
+
'index' => 'stores',
|
| 91 |
+
'is_system' => true,
|
| 92 |
+
));
|
| 93 |
+
|
| 94 |
+
return parent::_prepareColumns();
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
protected function _prepareMassaction() {
|
| 98 |
+
return $this;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
public function getGridUrl() {
|
| 102 |
+
return $this->getUrl('*/*/grid', array('_current' => true));
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
public function getRowUrl($row) {
|
| 106 |
+
return $this->getUrl('*/*/view', array('id' => $row->getId()));
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Request.php
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Request extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
$this->_blockGroup = 'paybox';
|
| 22 |
+
$this->_controller = 'adminhtml_api_debug';
|
| 23 |
+
$this->_headerText = Mage::helper('paybox')->__('Paybox Request');
|
| 24 |
+
parent::__construct();
|
| 25 |
+
$this->_removeButton('add');
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Request/Grid.php
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Request_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
parent::__construct();
|
| 22 |
+
$this->setId('paybox_api_debug_request_grid');
|
| 23 |
+
$this->_filterVisibility = false;
|
| 24 |
+
$this->_pagerVisibility = false;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
protected function _prepareGrid() {
|
| 28 |
+
$this->_prepareCollection();
|
| 29 |
+
$this->_prepareColumns();
|
| 30 |
+
$this->_prepareMassactionBlock();
|
| 31 |
+
return $this;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
protected function _prepareCollection() {
|
| 35 |
+
$this->_collection = new Varien_Data_Collection();
|
| 36 |
+
$this->_loadCollection();
|
| 37 |
+
$this->setCollection($this->_collection);
|
| 38 |
+
return parent::_prepareCollection();
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
protected function _loadCollection() {
|
| 42 |
+
$collection = Mage::getResourceModel('paybox/api_debug_collection')
|
| 43 |
+
->addFieldToFilter('debug_id', $this->getRequest()->getParam('id'));
|
| 44 |
+
$object = new Varien_Object();
|
| 45 |
+
foreach ($collection->getItems() as $item) {
|
| 46 |
+
$item = $item->getData();
|
| 47 |
+
if ($item['real_order_id'] > 0) {
|
| 48 |
+
// Paybox System
|
| 49 |
+
foreach (unserialize($item['request_body']) as $key => $value)
|
| 50 |
+
$object->setData($key, $value);
|
| 51 |
+
} else {
|
| 52 |
+
// Paybox Direct
|
| 53 |
+
$params = explode('&', $item['request_body']);
|
| 54 |
+
foreach ($params as $p) {
|
| 55 |
+
$tmp = explode('=', $p);
|
| 56 |
+
$object->setData($tmp[0], $tmp[1]);
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
$this->_collection->addItem($object);
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
protected function _prepareColumns() {
|
| 65 |
+
foreach ($this->getCollection()->getItems() as $item) {
|
| 66 |
+
foreach (array_keys($item->getData()) as $key) {
|
| 67 |
+
$this->addColumn($key, array(
|
| 68 |
+
'header' => Mage::helper('paybox')->__($key),
|
| 69 |
+
'index' => $key
|
| 70 |
+
));
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
return parent::_prepareColumns();
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
protected function _prepareMassaction() {
|
| 78 |
+
return $this;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
public function getGridUrl() {
|
| 82 |
+
return false;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
public function getRowUrl($row) {
|
| 86 |
+
return false;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Response.php
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Response extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
$this->_blockGroup = 'paybox';
|
| 22 |
+
$this->_controller = 'adminhtml_api_debug';
|
| 23 |
+
$this->_headerText = Mage::helper('paybox')->__('Paybox Response');
|
| 24 |
+
parent::__construct();
|
| 25 |
+
$this->_removeButton('add');
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Response/Grid.php
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Response_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
parent::__construct();
|
| 22 |
+
$this->setId('paybox_api_debug_response_grid');
|
| 23 |
+
$this->_filterVisibility = false;
|
| 24 |
+
$this->_pagerVisibility = false;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
protected function _prepareGrid() {
|
| 28 |
+
$this->_prepareCollection();
|
| 29 |
+
$this->_prepareColumns();
|
| 30 |
+
$this->_prepareMassactionBlock();
|
| 31 |
+
return $this;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
protected function _prepareCollection() {
|
| 35 |
+
$this->_collection = new Varien_Data_Collection();
|
| 36 |
+
$this->_loadCollection();
|
| 37 |
+
$this->setCollection($this->_collection);
|
| 38 |
+
return parent::_prepareCollection();
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
protected function _loadCollection() {
|
| 42 |
+
$collection = Mage::getResourceModel('paybox/api_debug_collection')
|
| 43 |
+
->addFieldToFilter('debug_id', $this->getRequest()->getParam('id'));
|
| 44 |
+
$object = new Varien_Object();
|
| 45 |
+
foreach ($collection->getItems() as $item) {
|
| 46 |
+
$item = $item->getData();
|
| 47 |
+
if ($item['real_order_id'] > 0) {
|
| 48 |
+
// Paybox System
|
| 49 |
+
foreach (unserialize($item['response_body']) as $key => $value)
|
| 50 |
+
$object->setData($key, $value);
|
| 51 |
+
} else {
|
| 52 |
+
// Paybox Direct
|
| 53 |
+
$params = explode('&', $item['response_body']);
|
| 54 |
+
foreach ($params as $p) {
|
| 55 |
+
$tmp = explode('=', $p);
|
| 56 |
+
$object->setData($tmp[0], $tmp[1]);
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
$this->_collection->addItem($object);
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
protected function _prepareColumns() {
|
| 65 |
+
foreach ($this->getCollection()->getItems() as $item) {
|
| 66 |
+
foreach (array_keys($item->getData()) as $key) {
|
| 67 |
+
$this->addColumn($key, array(
|
| 68 |
+
'header' => Mage::helper('paybox')->__($key),
|
| 69 |
+
'index' => $key
|
| 70 |
+
));
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
return parent::_prepareColumns();
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
protected function _prepareMassaction() {
|
| 78 |
+
return $this;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
public function getGridUrl() {
|
| 82 |
+
return false;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
public function getRowUrl($row) {
|
| 86 |
+
return false;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View.php
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View extends Mage_Adminhtml_Block_Widget_Form_Container {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
parent::__construct();
|
| 22 |
+
$this->_objectId = 'id';
|
| 23 |
+
$this->_blockGroup = 'paybox';
|
| 24 |
+
$this->_controller = 'adminhtml_api_debug';
|
| 25 |
+
$this->_mode = 'view';
|
| 26 |
+
|
| 27 |
+
$this->_removeButton('reset');
|
| 28 |
+
$this->_removeButton('save');
|
| 29 |
+
$this->_removeButton('edit');
|
| 30 |
+
$this->_removeButton('delete');
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
public function getHeaderText() {
|
| 34 |
+
return Mage::helper('paybox')->__('Paybox Api Debug View');
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Form.php
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Form extends Mage_Adminhtml_Block_Widget_Form {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
parent::__construct();
|
| 22 |
+
$this->setId('paybox_api_debug_view_form');
|
| 23 |
+
$this->setTitle($this->__('Product History Information'));
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
protected function _prepareForm() {
|
| 27 |
+
$form = new Varien_Data_Form(array('id' => 'edit_form'));
|
| 28 |
+
$form->setUseContainer(true);
|
| 29 |
+
$this->setForm($form);
|
| 30 |
+
return parent::_prepareForm();
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tab/Request.php
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Tab_Request extends Quadra_Paybox_Block_Adminhtml_Api_Debug_Request_Grid
|
| 19 |
+
implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* Retrieve grid url
|
| 23 |
+
*
|
| 24 |
+
* @return string
|
| 25 |
+
*/
|
| 26 |
+
public function getGridUrl() {
|
| 27 |
+
return false;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Retrieve grid row url
|
| 32 |
+
*
|
| 33 |
+
* @return string
|
| 34 |
+
*/
|
| 35 |
+
public function getRowUrl($item) {
|
| 36 |
+
return false;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* Retrieve tab label
|
| 41 |
+
*
|
| 42 |
+
* @return string
|
| 43 |
+
*/
|
| 44 |
+
public function getTabLabel() {
|
| 45 |
+
return Mage::helper('paybox')->__('Paybox Request');
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Retrieve tab title
|
| 50 |
+
*
|
| 51 |
+
* @return string
|
| 52 |
+
*/
|
| 53 |
+
public function getTabTitle() {
|
| 54 |
+
return Mage::helper('paybox')->__('Paybox Request');
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* Check whether can show tab
|
| 59 |
+
*
|
| 60 |
+
* @return bool
|
| 61 |
+
*/
|
| 62 |
+
public function canShowTab() {
|
| 63 |
+
return true;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
/**
|
| 67 |
+
* Check whether tab is hidden
|
| 68 |
+
*
|
| 69 |
+
* @return bool
|
| 70 |
+
*/
|
| 71 |
+
public function isHidden() {
|
| 72 |
+
return false;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tab/Response.php
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Tab_Response extends Quadra_Paybox_Block_Adminhtml_Api_Debug_Response_Grid
|
| 19 |
+
implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* Retrieve grid url
|
| 23 |
+
*
|
| 24 |
+
* @return string
|
| 25 |
+
*/
|
| 26 |
+
public function getGridUrl() {
|
| 27 |
+
return false;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Retrieve grid row url
|
| 32 |
+
*
|
| 33 |
+
* @return string
|
| 34 |
+
*/
|
| 35 |
+
public function getRowUrl($item) {
|
| 36 |
+
return false;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* Retrieve tab label
|
| 41 |
+
*
|
| 42 |
+
* @return string
|
| 43 |
+
*/
|
| 44 |
+
public function getTabLabel() {
|
| 45 |
+
return Mage::helper('paybox')->__('Paybox Response');
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Retrieve tab title
|
| 50 |
+
*
|
| 51 |
+
* @return string
|
| 52 |
+
*/
|
| 53 |
+
public function getTabTitle() {
|
| 54 |
+
return Mage::helper('paybox')->__('Paybox Response');
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* Check whether can show tab
|
| 59 |
+
*
|
| 60 |
+
* @return bool
|
| 61 |
+
*/
|
| 62 |
+
public function canShowTab() {
|
| 63 |
+
return true;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
/**
|
| 67 |
+
* Check whether tab is hidden
|
| 68 |
+
*
|
| 69 |
+
* @return bool
|
| 70 |
+
*/
|
| 71 |
+
public function isHidden() {
|
| 72 |
+
return false;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tabs.php
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Tabs extends Mage_Adminhtml_Block_Widget_Tabs {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
parent::__construct();
|
| 22 |
+
$this->setId('paybox_api_debug_view_tabs');
|
| 23 |
+
$this->setDestElementId('edit_form');
|
| 24 |
+
$this->setTitle($this->__('Paybox'));
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
protected function _beforeToHtml() {
|
| 28 |
+
$this->addTab('request_section', array(
|
| 29 |
+
'label' => $this->__('Request'),
|
| 30 |
+
'title' => $this->__('Request'),
|
| 31 |
+
'content' => $this->getLayout()->createBlock('paybox/adminhtml_api_debug_view_tab_request')->toHtml()
|
| 32 |
+
));
|
| 33 |
+
$this->addTab('response_section', array(
|
| 34 |
+
'label' => $this->__('Response'),
|
| 35 |
+
'title' => $this->__('Response'),
|
| 36 |
+
'content' => $this->getLayout()->createBlock('paybox/adminhtml_api_debug_view_tab_response')->toHtml()
|
| 37 |
+
));
|
| 38 |
+
return parent::_beforeToHtml();
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,21 +11,19 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
| 21 |
-
{
|
| 22 |
$additional = Mage::getSingleton('core/layout')->createBlock('paybox/adminhtml_cart_type_select')
|
| 23 |
->setTemplate('paybox/adminhtml/cart/type/select.phtml')
|
| 24 |
->setDependHtmlId($element->getHtmlId())
|
| 25 |
->toHtml();
|
| 26 |
|
| 27 |
-
return parent::_getElementHtml($element)
|
| 28 |
}
|
| 29 |
|
| 30 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Cart_Type extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
| 19 |
|
| 20 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
|
|
|
|
|
|
|
|
|
| 21 |
$additional = Mage::getSingleton('core/layout')->createBlock('paybox/adminhtml_cart_type_select')
|
| 22 |
->setTemplate('paybox/adminhtml/cart/type/select.phtml')
|
| 23 |
->setDependHtmlId($element->getHtmlId())
|
| 24 |
->toHtml();
|
| 25 |
|
| 26 |
+
return parent::_getElementHtml($element) . $additional;
|
| 27 |
}
|
| 28 |
|
| 29 |
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type/Select.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,30 +11,27 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_Block_Adminhtml_Cart_Type_Select extends Mage_Adminhtml_Block_Template
|
| 19 |
-
{
|
| 20 |
/**
|
| 21 |
* Enter description here...
|
| 22 |
*
|
| 23 |
* @return Quadra_Paybox_Model_System
|
| 24 |
*/
|
| 25 |
-
public function getModel()
|
| 26 |
-
{
|
| 27 |
return Mage::getModel('paybox/system');
|
| 28 |
}
|
| 29 |
|
| 30 |
-
public function getParentHtmlId()
|
| 31 |
-
{
|
| 32 |
return substr($this->getDependHtmlId(), 0, strrpos($this->getDependHtmlId(), 'typecarte')) . 'typepaiement';
|
| 33 |
}
|
| 34 |
|
| 35 |
-
public function getJsonCartTypes()
|
| 36 |
-
{
|
| 37 |
return $this->getModel()->getJsonCartTypes();
|
| 38 |
}
|
|
|
|
| 39 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Cart_Type_Select extends Mage_Adminhtml_Block_Template {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
/**
|
| 21 |
* Enter description here...
|
| 22 |
*
|
| 23 |
* @return Quadra_Paybox_Model_System
|
| 24 |
*/
|
| 25 |
+
public function getModel() {
|
|
|
|
| 26 |
return Mage::getModel('paybox/system');
|
| 27 |
}
|
| 28 |
|
| 29 |
+
public function getParentHtmlId() {
|
|
|
|
| 30 |
return substr($this->getDependHtmlId(), 0, strrpos($this->getDependHtmlId(), 'typecarte')) . 'typepaiement';
|
| 31 |
}
|
| 32 |
|
| 33 |
+
public function getJsonCartTypes() {
|
|
|
|
| 34 |
return $this->getModel()->getJsonCartTypes();
|
| 35 |
}
|
| 36 |
+
|
| 37 |
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Question/Number.php
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Question_Number extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
$this->_blockGroup = 'paybox';
|
| 22 |
+
$this->_controller = 'adminhtml_question_number';
|
| 23 |
+
$this->_headerText = Mage::helper('paybox')->__('Manage Paybox Question Number');
|
| 24 |
+
parent::__construct();
|
| 25 |
+
$this->removeButton('add');
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/Question/Number/Grid.php
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_Question_Number_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
| 19 |
+
|
| 20 |
+
public function __construct() {
|
| 21 |
+
parent::__construct();
|
| 22 |
+
$this->setId('paybox_question_number_grid');
|
| 23 |
+
$this->setUseAjax(true);
|
| 24 |
+
$this->setDefaultSort('account_id');
|
| 25 |
+
$this->setDefaultDir('DESC');
|
| 26 |
+
$this->setSaveParametersInSession(true);
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
protected function _prepareCollection() {
|
| 30 |
+
$collection = Mage::getResourceModel('paybox/question_number_collection');
|
| 31 |
+
$this->setCollection($collection);
|
| 32 |
+
return parent::_prepareCollection();
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
protected function _prepareColumns() {
|
| 36 |
+
$this->addColumn('account_id', array(
|
| 37 |
+
'header' => Mage::helper('paybox')->__('Account ID'),
|
| 38 |
+
'width' => '50px',
|
| 39 |
+
'index' => 'account_id',
|
| 40 |
+
'type' => 'number'
|
| 41 |
+
));
|
| 42 |
+
|
| 43 |
+
$this->addColumn('account_hash', array(
|
| 44 |
+
'header' => Mage::helper('paybox')->__('Account Hash'),
|
| 45 |
+
'index' => 'account_hash'
|
| 46 |
+
));
|
| 47 |
+
|
| 48 |
+
$this->addColumn('increment_value', array(
|
| 49 |
+
'header' => Mage::helper('paybox')->__('Increment Value'),
|
| 50 |
+
'width' => '50px',
|
| 51 |
+
'index' => 'increment_value',
|
| 52 |
+
'type' => 'number'
|
| 53 |
+
));
|
| 54 |
+
|
| 55 |
+
$this->addColumn('reset_date', array(
|
| 56 |
+
'header' => Mage::helper('paybox')->__('Reset Date'),
|
| 57 |
+
'width' => '50px',
|
| 58 |
+
'index' => 'reset_date',
|
| 59 |
+
'type' => 'date'
|
| 60 |
+
));
|
| 61 |
+
|
| 62 |
+
return parent::_prepareColumns();
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
protected function _prepareMassaction() {
|
| 66 |
+
return $this;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
public function getGridUrl() {
|
| 70 |
+
return $this->getUrl('*/*/grid', array('_current' => true));
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
public function getRowUrl($row) {
|
| 74 |
+
return false;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
}
|
app/code/community/Quadra/Paybox/Block/Adminhtml/System/Config/Form/Field/Backuppaymentserver.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,13 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function __construct()
|
| 21 |
-
{
|
| 22 |
$this->addColumn('bpserver', array(
|
| 23 |
'label' => Mage::helper('adminhtml')->__('Backup payment server'),
|
| 24 |
'style' => 'width:120px',
|
|
@@ -31,4 +30,5 @@ class Quadra_Paybox_Block_Adminhtml_System_Config_Form_Field_Backuppaymentserver
|
|
| 31 |
$this->_addButtonLabel = Mage::helper('adminhtml')->__('Add backup payment server');
|
| 32 |
parent::__construct();
|
| 33 |
}
|
|
|
|
| 34 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_Adminhtml_System_Config_Form_Field_Backuppaymentserver extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract {
|
| 19 |
|
| 20 |
+
public function __construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
$this->addColumn('bpserver', array(
|
| 22 |
'label' => Mage::helper('adminhtml')->__('Backup payment server'),
|
| 23 |
'style' => 'width:120px',
|
| 30 |
$this->_addButtonLabel = Mage::helper('adminhtml')->__('Add backup payment server');
|
| 31 |
parent::__construct();
|
| 32 |
}
|
| 33 |
+
|
| 34 |
}
|
app/code/community/Quadra/Paybox/Block/Direct/Form.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,13 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _construct()
|
| 21 |
-
{
|
| 22 |
parent::_construct();
|
| 23 |
$this->setTemplate('paybox/direct/form.phtml');
|
| 24 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_Direct_Form extends Mage_Payment_Block_Form_Cc {
|
| 19 |
|
| 20 |
+
protected function _construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
parent::_construct();
|
| 22 |
$this->setTemplate('paybox/direct/form.phtml');
|
| 23 |
}
|
app/code/community/Quadra/Paybox/Block/Direct/Info.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,21 +11,18 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _construct()
|
| 21 |
-
{
|
| 22 |
parent::_construct();
|
| 23 |
$this->setTemplate('paybox/direct/info.phtml');
|
| 24 |
}
|
| 25 |
|
| 26 |
-
public function toPdf()
|
| 27 |
-
{
|
| 28 |
$this->setTemplate('paybox/direct/pdf/info.phtml');
|
| 29 |
return $this->toHtml();
|
| 30 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_Direct_Info extends Mage_Payment_Block_Info_Cc {
|
| 19 |
|
| 20 |
+
protected function _construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
parent::_construct();
|
| 22 |
$this->setTemplate('paybox/direct/info.phtml');
|
| 23 |
}
|
| 24 |
|
| 25 |
+
public function toPdf() {
|
|
|
|
| 26 |
$this->setTemplate('paybox/direct/pdf/info.phtml');
|
| 27 |
return $this->toHtml();
|
| 28 |
}
|
app/code/community/Quadra/Paybox/Block/System/Error.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,17 +11,15 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template
|
| 19 |
-
{
|
| 20 |
protected $_pbxErrorsDesc = array();
|
| 21 |
|
| 22 |
-
public function __construct()
|
| 23 |
-
{
|
| 24 |
$this->_pbxErrorsDesc = array(
|
| 25 |
'-1' => Mage::helper('paybox')->__('Error in reading the parameters via stdin (POST method) (error in http reception)'),
|
| 26 |
'-2' => Mage::helper('paybox')->__('Error in memory allocation. Not enough memory available on the trader\'s server'),
|
|
@@ -47,13 +46,11 @@ class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template
|
|
| 47 |
*
|
| 48 |
* @return Mage_Checkout_Model_Session
|
| 49 |
*/
|
| 50 |
-
public function getCheckout()
|
| 51 |
-
{
|
| 52 |
return Mage::getSingleton('checkout/session');
|
| 53 |
}
|
| 54 |
|
| 55 |
-
public function getErrorMessage()
|
| 56 |
-
{
|
| 57 |
$msg = $this->_pbxErrorsDesc[$this->getCheckout()->getPayboxErrorNumber()];
|
| 58 |
$this->getCheckout()->unsPayboxErrorNumber();
|
| 59 |
return $msg;
|
|
@@ -62,8 +59,8 @@ class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template
|
|
| 62 |
/**
|
| 63 |
* Get continue shopping url
|
| 64 |
*/
|
| 65 |
-
public function getContinueShoppingUrl()
|
| 66 |
-
{
|
| 67 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 68 |
}
|
|
|
|
| 69 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
protected $_pbxErrorsDesc = array();
|
| 21 |
|
| 22 |
+
public function __construct() {
|
|
|
|
| 23 |
$this->_pbxErrorsDesc = array(
|
| 24 |
'-1' => Mage::helper('paybox')->__('Error in reading the parameters via stdin (POST method) (error in http reception)'),
|
| 25 |
'-2' => Mage::helper('paybox')->__('Error in memory allocation. Not enough memory available on the trader\'s server'),
|
| 46 |
*
|
| 47 |
* @return Mage_Checkout_Model_Session
|
| 48 |
*/
|
| 49 |
+
public function getCheckout() {
|
|
|
|
| 50 |
return Mage::getSingleton('checkout/session');
|
| 51 |
}
|
| 52 |
|
| 53 |
+
public function getErrorMessage() {
|
|
|
|
| 54 |
$msg = $this->_pbxErrorsDesc[$this->getCheckout()->getPayboxErrorNumber()];
|
| 55 |
$this->getCheckout()->unsPayboxErrorNumber();
|
| 56 |
return $msg;
|
| 59 |
/**
|
| 60 |
* Get continue shopping url
|
| 61 |
*/
|
| 62 |
+
public function getContinueShoppingUrl() {
|
|
|
|
| 63 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 64 |
}
|
| 65 |
+
|
| 66 |
}
|
app/code/community/Quadra/Paybox/Block/System/Failure.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,25 +11,22 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_Block_System_Failure extends Mage_Core_Block_Template
|
| 19 |
-
{
|
| 20 |
/**
|
| 21 |
* Enter description here...
|
| 22 |
*
|
| 23 |
* @return Mage_Checkout_Model_Session
|
| 24 |
*/
|
| 25 |
-
public function getCheckout()
|
| 26 |
-
{
|
| 27 |
return Mage::getSingleton('checkout/session');
|
| 28 |
}
|
| 29 |
|
| 30 |
-
public function getErrorMessage()
|
| 31 |
-
{
|
| 32 |
$msg = Mage::helper('paybox')->__($this->getCheckout()->getPayboxErrorMessage());
|
| 33 |
$this->getCheckout()->unsPayboxErrorMessage();
|
| 34 |
return $msg;
|
|
@@ -37,8 +35,8 @@ class Quadra_Paybox_Block_System_Failure extends Mage_Core_Block_Template
|
|
| 37 |
/**
|
| 38 |
* Get continue shopping url
|
| 39 |
*/
|
| 40 |
-
public function getContinueShoppingUrl()
|
| 41 |
-
{
|
| 42 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 43 |
}
|
|
|
|
| 44 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_System_Failure extends Mage_Core_Block_Template {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
/**
|
| 21 |
* Enter description here...
|
| 22 |
*
|
| 23 |
* @return Mage_Checkout_Model_Session
|
| 24 |
*/
|
| 25 |
+
public function getCheckout() {
|
|
|
|
| 26 |
return Mage::getSingleton('checkout/session');
|
| 27 |
}
|
| 28 |
|
| 29 |
+
public function getErrorMessage() {
|
|
|
|
| 30 |
$msg = Mage::helper('paybox')->__($this->getCheckout()->getPayboxErrorMessage());
|
| 31 |
$this->getCheckout()->unsPayboxErrorMessage();
|
| 32 |
return $msg;
|
| 35 |
/**
|
| 36 |
* Get continue shopping url
|
| 37 |
*/
|
| 38 |
+
public function getContinueShoppingUrl() {
|
|
|
|
| 39 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 40 |
}
|
| 41 |
+
|
| 42 |
}
|
app/code/community/Quadra/Paybox/Block/System/Form.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,16 +11,15 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _construct()
|
| 21 |
-
{
|
| 22 |
$this->setTemplate('paybox/system/form.phtml');
|
| 23 |
parent::_construct();
|
| 24 |
}
|
|
|
|
| 25 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_System_Form extends Mage_Payment_Block_Form {
|
| 19 |
|
| 20 |
+
protected function _construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
$this->setTemplate('paybox/system/form.phtml');
|
| 22 |
parent::_construct();
|
| 23 |
}
|
| 24 |
+
|
| 25 |
}
|
app/code/community/Quadra/Paybox/Block/System/Redirect.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,13 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _toHtml()
|
| 21 |
-
{
|
| 22 |
$system = $this->getOrder()->getPayment()->getMethodInstance();
|
| 23 |
|
| 24 |
$form = new Varien_Data_Form();
|
|
@@ -38,4 +37,5 @@ class Quadra_Paybox_Block_System_Redirect extends Mage_Core_Block_Abstract
|
|
| 38 |
|
| 39 |
return $html;
|
| 40 |
}
|
|
|
|
| 41 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Block_System_Redirect extends Mage_Core_Block_Abstract {
|
| 19 |
|
| 20 |
+
protected function _toHtml() {
|
|
|
|
|
|
|
|
|
|
| 21 |
$system = $this->getOrder()->getPayment()->getMethodInstance();
|
| 22 |
|
| 23 |
$form = new Varien_Data_Form();
|
| 37 |
|
| 38 |
return $html;
|
| 39 |
}
|
| 40 |
+
|
| 41 |
}
|
app/code/community/Quadra/Paybox/Helper/Data.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,11 +11,10 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_Helper_Data extends Mage_Core_Helper_Abstract
|
| 19 |
-
{
|
| 20 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Helper_Data extends Mage_Core_Helper_Abstract {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
}
|
app/code/community/Quadra/Paybox/Model/Api/Debug.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,14 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _construct()
|
| 21 |
-
{
|
| 22 |
$this->_init('paybox/api_debug');
|
| 23 |
}
|
|
|
|
| 24 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Api_Debug extends Mage_Core_Model_Abstract {
|
| 19 |
|
| 20 |
+
protected function _construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
$this->_init('paybox/api_debug');
|
| 22 |
}
|
| 23 |
+
|
| 24 |
}
|
app/code/community/Quadra/Paybox/Model/Config/Data/Paybox.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,14 +11,13 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function _beforeSave() {
|
| 21 |
$filename = BP . DS . 'app' . DS . 'code' . DS . 'core' . DS . 'Mage' . DS . 'Paybox' . DS . 'etc' . DS . 'config.xml';
|
| 22 |
|
| 23 |
if (file_exists($filename)) {
|
|
@@ -26,4 +26,5 @@ class Quadra_Paybox_Model_Config_Data_Paybox extends Mage_Core_Model_Config_Data
|
|
| 26 |
|
| 27 |
return $this;
|
| 28 |
}
|
|
|
|
| 29 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Config_Data_Paybox extends Mage_Core_Model_Config_Data {
|
| 19 |
|
| 20 |
+
public function _beforeSave() {
|
|
|
|
|
|
|
| 21 |
$filename = BP . DS . 'app' . DS . 'code' . DS . 'core' . DS . 'Mage' . DS . 'Paybox' . DS . 'etc' . DS . 'config.xml';
|
| 22 |
|
| 23 |
if (file_exists($filename)) {
|
| 26 |
|
| 27 |
return $this;
|
| 28 |
}
|
| 29 |
+
|
| 30 |
}
|
app/code/community/Quadra/Paybox/Model/Direct.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,13 +11,11 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
-
|
| 18 |
-
class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
| 19 |
-
{
|
| 20 |
/**
|
| 21 |
* Paybox direct payment actions
|
| 22 |
*/
|
|
@@ -62,8 +61,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 62 |
* @param integer $recallNumber
|
| 63 |
* @return string
|
| 64 |
*/
|
| 65 |
-
public function getPayboxUrl($recallNumber)
|
| 66 |
-
{
|
| 67 |
$path = 'pbx_url';
|
| 68 |
if ($recallNumber) {
|
| 69 |
$path = 'pbx_backupurl';
|
|
@@ -77,8 +75,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 77 |
*
|
| 78 |
* @return string
|
| 79 |
*/
|
| 80 |
-
public function getPaymentAction()
|
| 81 |
-
{
|
| 82 |
$paymentAction = $this->getConfigData('payment_action');
|
| 83 |
switch ($paymentAction) {
|
| 84 |
case self::ACTION_AUTHORIZE:
|
|
@@ -98,8 +95,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 98 |
*
|
| 99 |
* @return string
|
| 100 |
*/
|
| 101 |
-
public function getSiteNumber()
|
| 102 |
-
{
|
| 103 |
return $this->getConfigData('pbx_site');
|
| 104 |
}
|
| 105 |
|
|
@@ -108,8 +104,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 108 |
*
|
| 109 |
* @return string
|
| 110 |
*/
|
| 111 |
-
public function getRang()
|
| 112 |
-
{
|
| 113 |
return $this->getConfigData('pbx_rang');
|
| 114 |
}
|
| 115 |
|
|
@@ -118,8 +113,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 118 |
*
|
| 119 |
* @return string
|
| 120 |
*/
|
| 121 |
-
public function getCleNumber()
|
| 122 |
-
{
|
| 123 |
return $this->getConfigData('pbx_cle');
|
| 124 |
}
|
| 125 |
|
|
@@ -128,8 +122,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 128 |
*
|
| 129 |
* @return string
|
| 130 |
*/
|
| 131 |
-
public function getCurrencyNumb()
|
| 132 |
-
{
|
| 133 |
$currencyCode = $this->getPayment()->getOrder()->getBaseCurrencyCode();
|
| 134 |
if (!$this->_currenciesNumbers) {
|
| 135 |
$this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/community/Quadra/Paybox/etc/currency.xml');
|
|
@@ -144,8 +137,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 144 |
*
|
| 145 |
* @return Quadra_Paybox_Model_Question_Number
|
| 146 |
*/
|
| 147 |
-
public function getQuestionNumberModel()
|
| 148 |
-
{
|
| 149 |
if (!$this->_questionNumberModel) {
|
| 150 |
$accountHash = md5($this->getSiteNumber() . $this->getRang());
|
| 151 |
$this->_questionNumberModel = Mage::getModel('paybox/question_number')->load($accountHash, 'account_hash');
|
|
@@ -158,8 +150,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 158 |
*
|
| 159 |
* @return string
|
| 160 |
*/
|
| 161 |
-
public function getDebugFlag()
|
| 162 |
-
{
|
| 163 |
return $this->getConfigData('debug_flag');
|
| 164 |
}
|
| 165 |
|
|
@@ -168,23 +159,21 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 168 |
*
|
| 169 |
* @return double
|
| 170 |
*/
|
| 171 |
-
public function getMontant()
|
| 172 |
-
{
|
| 173 |
$session = Mage::getSingleton('checkout/session');
|
| 174 |
$quote = Mage::getModel('sales/quote')->load($session->getQuoteId());
|
| 175 |
if ($quote->getIsMultiShipping()) {
|
| 176 |
-
return (double)$quote->getBaseGrandTotal();
|
| 177 |
} else {
|
| 178 |
return $this->getAmount();
|
| 179 |
}
|
| 180 |
}
|
| 181 |
|
| 182 |
-
public function authorize(Varien_Object $payment, $amount)
|
| 183 |
-
{
|
| 184 |
parent::authorize($payment, $amount);
|
| 185 |
|
| 186 |
$this->setAmount($amount)
|
| 187 |
-
|
| 188 |
|
| 189 |
if ($this->callDoDirectPayment() !== false) {
|
| 190 |
$payment->setStatus(self::STATUS_APPROVED)
|
|
@@ -204,16 +193,17 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 204 |
return $this;
|
| 205 |
}
|
| 206 |
|
| 207 |
-
public function capture(Varien_Object $payment, $amount)
|
| 208 |
-
{
|
| 209 |
parent::capture($payment, $amount);
|
| 210 |
|
| 211 |
$this->setAmount($amount)
|
| 212 |
-
|
| 213 |
|
| 214 |
-
if ($payment->getLastTransId()) {
|
|
|
|
| 215 |
$result = $this->callDoDebitPayment() !== false;
|
| 216 |
-
} else {
|
|
|
|
| 217 |
$result = $this->callDoDirectPayment() !== false;
|
| 218 |
}
|
| 219 |
|
|
@@ -234,14 +224,12 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 234 |
return $this;
|
| 235 |
}
|
| 236 |
|
| 237 |
-
public function cancel(Varien_Object $payment)
|
| 238 |
-
{
|
| 239 |
$payment->setStatus(self::STATUS_DECLINED);
|
| 240 |
return $this;
|
| 241 |
}
|
| 242 |
|
| 243 |
-
public function refund(Varien_Object $payment, $amount)
|
| 244 |
-
{
|
| 245 |
parent::refund($payment, $amount);
|
| 246 |
|
| 247 |
$error = false;
|
|
@@ -266,6 +254,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 266 |
$payment->setStatus(self::STATUS_ERROR);
|
| 267 |
$error = Mage::helper('paybox')->__('Error in refunding the payment');
|
| 268 |
}
|
|
|
|
| 269 |
if ($error !== false) {
|
| 270 |
Mage::throwException($error);
|
| 271 |
}
|
|
@@ -278,8 +267,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 278 |
*
|
| 279 |
* @return bool | array
|
| 280 |
*/
|
| 281 |
-
public function callDoDirectPayment()
|
| 282 |
-
{
|
| 283 |
$payment = $this->getPayment();
|
| 284 |
$requestStr = '';
|
| 285 |
|
|
@@ -304,12 +292,12 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 304 |
foreach ($tmpArr as $param => $value) {
|
| 305 |
$requestStr .= $param . '=' . $value . '&';
|
| 306 |
}
|
| 307 |
-
$requestStr = substr($requestStr, 0, -1);
|
| 308 |
|
|
|
|
| 309 |
$resultArr = $this->call($requestStr);
|
| 310 |
|
| 311 |
$this->getQuestionNumberModel()
|
| 312 |
-
|
| 313 |
|
| 314 |
if ($resultArr === false) {
|
| 315 |
return false;
|
|
@@ -327,8 +315,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 327 |
*
|
| 328 |
* @return bool | array
|
| 329 |
*/
|
| 330 |
-
public function callDoDebitPayment()
|
| 331 |
-
{
|
| 332 |
|
| 333 |
$payment = $this->getPayment();
|
| 334 |
$requestStr = '';
|
|
@@ -351,8 +338,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 351 |
foreach ($tmpArr as $param => $value) {
|
| 352 |
$requestStr .= $param . '=' . $value . '&';
|
| 353 |
}
|
| 354 |
-
$requestStr = substr($requestStr, 0, -1);
|
| 355 |
|
|
|
|
| 356 |
$resultArr = $this->call($requestStr);
|
| 357 |
|
| 358 |
if ($resultArr === false) {
|
|
@@ -360,7 +347,6 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 360 |
}
|
| 361 |
|
| 362 |
$this->setTransactionId($resultArr['NUMTRANS']);
|
| 363 |
-
|
| 364 |
return $resultArr;
|
| 365 |
}
|
| 366 |
|
|
@@ -369,8 +355,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 369 |
*
|
| 370 |
* @return bool | array
|
| 371 |
*/
|
| 372 |
-
public function callDoRefund()
|
| 373 |
-
{
|
| 374 |
$payment = $this->getPayment();
|
| 375 |
$requestStr = '';
|
| 376 |
|
|
@@ -394,12 +379,12 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 394 |
foreach ($tmpArr as $param => $value) {
|
| 395 |
$requestStr .= $param . '=' . $value . '&';
|
| 396 |
}
|
| 397 |
-
$requestStr = substr($requestStr, 0, -1);
|
| 398 |
|
|
|
|
| 399 |
$resultArr = $this->call($requestStr);
|
| 400 |
|
| 401 |
$this->getQuestionNumberModel()
|
| 402 |
-
|
| 403 |
|
| 404 |
if ($resultArr === false) {
|
| 405 |
return false;
|
|
@@ -416,8 +401,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 416 |
* @param string $requestStr
|
| 417 |
* @return bool | array
|
| 418 |
*/
|
| 419 |
-
public function call($requestStr)
|
| 420 |
-
{
|
| 421 |
if ($this->getDebugFlag()) {
|
| 422 |
$debug = Mage::getModel('paybox/api_debug')
|
| 423 |
->setRequestBody($requestStr)
|
|
@@ -446,7 +430,6 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 446 |
$this->setError(array(
|
| 447 |
'message' => $http->getError()
|
| 448 |
));
|
| 449 |
-
|
| 450 |
return false;
|
| 451 |
}
|
| 452 |
$http->close();
|
|
@@ -455,8 +438,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 455 |
|
| 456 |
//primary gateway is down, need to recall to backup gateway
|
| 457 |
if ($parsedResArr['CODEREPONSE'] == '00001' ||
|
| 458 |
-
|
| 459 |
-
|
| 460 |
) {
|
| 461 |
$recallCounter++;
|
| 462 |
$recall = true;
|
|
@@ -472,12 +455,10 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 472 |
$this->setError(array(
|
| 473 |
'message' => Mage::helper('paybox')->__('Paybox payment gateway is not available right now')
|
| 474 |
));
|
| 475 |
-
|
| 476 |
return false;
|
| 477 |
}
|
| 478 |
|
| 479 |
if ($parsedResArr['CODEREPONSE'] == '00000') {
|
| 480 |
-
|
| 481 |
return $parsedResArr;
|
| 482 |
}
|
| 483 |
|
|
@@ -486,7 +467,6 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 486 |
'message' => $parsedResArr['CODEREPONSE'] . ':' . $parsedResArr['COMMENTAIRE']
|
| 487 |
));
|
| 488 |
}
|
| 489 |
-
|
| 490 |
return false;
|
| 491 |
}
|
| 492 |
|
|
@@ -496,15 +476,14 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
|
| 496 |
* @param string $str
|
| 497 |
* @return array
|
| 498 |
*/
|
| 499 |
-
public function parseResponseStr($str)
|
| 500 |
-
{
|
| 501 |
$tmpResponseArr = explode('&', $str);
|
| 502 |
$responseArr = array();
|
| 503 |
foreach ($tmpResponseArr as $response) {
|
| 504 |
$paramValue = explode('=', $response);
|
| 505 |
$responseArr[$paramValue[0]] = $paramValue[1];
|
| 506 |
}
|
| 507 |
-
|
| 508 |
return $responseArr;
|
| 509 |
}
|
|
|
|
| 510 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
|
|
|
|
|
| 19 |
/**
|
| 20 |
* Paybox direct payment actions
|
| 21 |
*/
|
| 61 |
* @param integer $recallNumber
|
| 62 |
* @return string
|
| 63 |
*/
|
| 64 |
+
public function getPayboxUrl($recallNumber) {
|
|
|
|
| 65 |
$path = 'pbx_url';
|
| 66 |
if ($recallNumber) {
|
| 67 |
$path = 'pbx_backupurl';
|
| 75 |
*
|
| 76 |
* @return string
|
| 77 |
*/
|
| 78 |
+
public function getPaymentAction() {
|
|
|
|
| 79 |
$paymentAction = $this->getConfigData('payment_action');
|
| 80 |
switch ($paymentAction) {
|
| 81 |
case self::ACTION_AUTHORIZE:
|
| 95 |
*
|
| 96 |
* @return string
|
| 97 |
*/
|
| 98 |
+
public function getSiteNumber() {
|
|
|
|
| 99 |
return $this->getConfigData('pbx_site');
|
| 100 |
}
|
| 101 |
|
| 104 |
*
|
| 105 |
* @return string
|
| 106 |
*/
|
| 107 |
+
public function getRang() {
|
|
|
|
| 108 |
return $this->getConfigData('pbx_rang');
|
| 109 |
}
|
| 110 |
|
| 113 |
*
|
| 114 |
* @return string
|
| 115 |
*/
|
| 116 |
+
public function getCleNumber() {
|
|
|
|
| 117 |
return $this->getConfigData('pbx_cle');
|
| 118 |
}
|
| 119 |
|
| 122 |
*
|
| 123 |
* @return string
|
| 124 |
*/
|
| 125 |
+
public function getCurrencyNumb() {
|
|
|
|
| 126 |
$currencyCode = $this->getPayment()->getOrder()->getBaseCurrencyCode();
|
| 127 |
if (!$this->_currenciesNumbers) {
|
| 128 |
$this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/community/Quadra/Paybox/etc/currency.xml');
|
| 137 |
*
|
| 138 |
* @return Quadra_Paybox_Model_Question_Number
|
| 139 |
*/
|
| 140 |
+
public function getQuestionNumberModel() {
|
|
|
|
| 141 |
if (!$this->_questionNumberModel) {
|
| 142 |
$accountHash = md5($this->getSiteNumber() . $this->getRang());
|
| 143 |
$this->_questionNumberModel = Mage::getModel('paybox/question_number')->load($accountHash, 'account_hash');
|
| 150 |
*
|
| 151 |
* @return string
|
| 152 |
*/
|
| 153 |
+
public function getDebugFlag() {
|
|
|
|
| 154 |
return $this->getConfigData('debug_flag');
|
| 155 |
}
|
| 156 |
|
| 159 |
*
|
| 160 |
* @return double
|
| 161 |
*/
|
| 162 |
+
public function getMontant() {
|
|
|
|
| 163 |
$session = Mage::getSingleton('checkout/session');
|
| 164 |
$quote = Mage::getModel('sales/quote')->load($session->getQuoteId());
|
| 165 |
if ($quote->getIsMultiShipping()) {
|
| 166 |
+
return (double) $quote->getBaseGrandTotal();
|
| 167 |
} else {
|
| 168 |
return $this->getAmount();
|
| 169 |
}
|
| 170 |
}
|
| 171 |
|
| 172 |
+
public function authorize(Varien_Object $payment, $amount) {
|
|
|
|
| 173 |
parent::authorize($payment, $amount);
|
| 174 |
|
| 175 |
$this->setAmount($amount)
|
| 176 |
+
->setPayment($payment);
|
| 177 |
|
| 178 |
if ($this->callDoDirectPayment() !== false) {
|
| 179 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 193 |
return $this;
|
| 194 |
}
|
| 195 |
|
| 196 |
+
public function capture(Varien_Object $payment, $amount) {
|
|
|
|
| 197 |
parent::capture($payment, $amount);
|
| 198 |
|
| 199 |
$this->setAmount($amount)
|
| 200 |
+
->setPayment($payment);
|
| 201 |
|
| 202 |
+
if ($payment->getLastTransId()) {
|
| 203 |
+
//if after authorize
|
| 204 |
$result = $this->callDoDebitPayment() !== false;
|
| 205 |
+
} else {
|
| 206 |
+
//authorize+capture (debit)
|
| 207 |
$result = $this->callDoDirectPayment() !== false;
|
| 208 |
}
|
| 209 |
|
| 224 |
return $this;
|
| 225 |
}
|
| 226 |
|
| 227 |
+
public function cancel(Varien_Object $payment) {
|
|
|
|
| 228 |
$payment->setStatus(self::STATUS_DECLINED);
|
| 229 |
return $this;
|
| 230 |
}
|
| 231 |
|
| 232 |
+
public function refund(Varien_Object $payment, $amount) {
|
|
|
|
| 233 |
parent::refund($payment, $amount);
|
| 234 |
|
| 235 |
$error = false;
|
| 254 |
$payment->setStatus(self::STATUS_ERROR);
|
| 255 |
$error = Mage::helper('paybox')->__('Error in refunding the payment');
|
| 256 |
}
|
| 257 |
+
|
| 258 |
if ($error !== false) {
|
| 259 |
Mage::throwException($error);
|
| 260 |
}
|
| 267 |
*
|
| 268 |
* @return bool | array
|
| 269 |
*/
|
| 270 |
+
public function callDoDirectPayment() {
|
|
|
|
| 271 |
$payment = $this->getPayment();
|
| 272 |
$requestStr = '';
|
| 273 |
|
| 292 |
foreach ($tmpArr as $param => $value) {
|
| 293 |
$requestStr .= $param . '=' . $value . '&';
|
| 294 |
}
|
|
|
|
| 295 |
|
| 296 |
+
$requestStr = substr($requestStr, 0, -1);
|
| 297 |
$resultArr = $this->call($requestStr);
|
| 298 |
|
| 299 |
$this->getQuestionNumberModel()
|
| 300 |
+
->increaseQuestionNumber();
|
| 301 |
|
| 302 |
if ($resultArr === false) {
|
| 303 |
return false;
|
| 315 |
*
|
| 316 |
* @return bool | array
|
| 317 |
*/
|
| 318 |
+
public function callDoDebitPayment() {
|
|
|
|
| 319 |
|
| 320 |
$payment = $this->getPayment();
|
| 321 |
$requestStr = '';
|
| 338 |
foreach ($tmpArr as $param => $value) {
|
| 339 |
$requestStr .= $param . '=' . $value . '&';
|
| 340 |
}
|
|
|
|
| 341 |
|
| 342 |
+
$requestStr = substr($requestStr, 0, -1);
|
| 343 |
$resultArr = $this->call($requestStr);
|
| 344 |
|
| 345 |
if ($resultArr === false) {
|
| 347 |
}
|
| 348 |
|
| 349 |
$this->setTransactionId($resultArr['NUMTRANS']);
|
|
|
|
| 350 |
return $resultArr;
|
| 351 |
}
|
| 352 |
|
| 355 |
*
|
| 356 |
* @return bool | array
|
| 357 |
*/
|
| 358 |
+
public function callDoRefund() {
|
|
|
|
| 359 |
$payment = $this->getPayment();
|
| 360 |
$requestStr = '';
|
| 361 |
|
| 379 |
foreach ($tmpArr as $param => $value) {
|
| 380 |
$requestStr .= $param . '=' . $value . '&';
|
| 381 |
}
|
|
|
|
| 382 |
|
| 383 |
+
$requestStr = substr($requestStr, 0, -1);
|
| 384 |
$resultArr = $this->call($requestStr);
|
| 385 |
|
| 386 |
$this->getQuestionNumberModel()
|
| 387 |
+
->increaseQuestionNumber();
|
| 388 |
|
| 389 |
if ($resultArr === false) {
|
| 390 |
return false;
|
| 401 |
* @param string $requestStr
|
| 402 |
* @return bool | array
|
| 403 |
*/
|
| 404 |
+
public function call($requestStr) {
|
|
|
|
| 405 |
if ($this->getDebugFlag()) {
|
| 406 |
$debug = Mage::getModel('paybox/api_debug')
|
| 407 |
->setRequestBody($requestStr)
|
| 430 |
$this->setError(array(
|
| 431 |
'message' => $http->getError()
|
| 432 |
));
|
|
|
|
| 433 |
return false;
|
| 434 |
}
|
| 435 |
$http->close();
|
| 438 |
|
| 439 |
//primary gateway is down, need to recall to backup gateway
|
| 440 |
if ($parsedResArr['CODEREPONSE'] == '00001' ||
|
| 441 |
+
$parsedResArr['CODEREPONSE'] == '00097' ||
|
| 442 |
+
$parsedResArr['CODEREPONSE'] == '00098'
|
| 443 |
) {
|
| 444 |
$recallCounter++;
|
| 445 |
$recall = true;
|
| 455 |
$this->setError(array(
|
| 456 |
'message' => Mage::helper('paybox')->__('Paybox payment gateway is not available right now')
|
| 457 |
));
|
|
|
|
| 458 |
return false;
|
| 459 |
}
|
| 460 |
|
| 461 |
if ($parsedResArr['CODEREPONSE'] == '00000') {
|
|
|
|
| 462 |
return $parsedResArr;
|
| 463 |
}
|
| 464 |
|
| 467 |
'message' => $parsedResArr['CODEREPONSE'] . ':' . $parsedResArr['COMMENTAIRE']
|
| 468 |
));
|
| 469 |
}
|
|
|
|
| 470 |
return false;
|
| 471 |
}
|
| 472 |
|
| 476 |
* @param string $str
|
| 477 |
* @return array
|
| 478 |
*/
|
| 479 |
+
public function parseResponseStr($str) {
|
|
|
|
| 480 |
$tmpResponseArr = explode('&', $str);
|
| 481 |
$responseArr = array();
|
| 482 |
foreach ($tmpResponseArr as $response) {
|
| 483 |
$paramValue = explode('=', $response);
|
| 484 |
$responseArr[$paramValue[0]] = $paramValue[1];
|
| 485 |
}
|
|
|
|
| 486 |
return $responseArr;
|
| 487 |
}
|
| 488 |
+
|
| 489 |
}
|
app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,14 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _construct()
|
| 21 |
-
{
|
| 22 |
$this->_init('paybox/api_debug', 'debug_id');
|
| 23 |
}
|
|
|
|
| 24 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Mysql4_Api_Debug extends Mage_Core_Model_Mysql4_Abstract {
|
| 19 |
|
| 20 |
+
protected function _construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
$this->_init('paybox/api_debug', 'debug_id');
|
| 22 |
}
|
| 23 |
+
|
| 24 |
}
|
app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug/Collection.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,14 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _construct()
|
| 21 |
-
{
|
| 22 |
$this->_init('paybox/api_debug');
|
| 23 |
}
|
|
|
|
| 24 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Mysql4_Api_Debug_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
| 19 |
|
| 20 |
+
protected function _construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
$this->_init('paybox/api_debug');
|
| 22 |
}
|
| 23 |
+
|
| 24 |
}
|
app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,13 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
protected function _construct()
|
| 21 |
-
{
|
| 22 |
$this->_init('paybox/question_number', 'account_id');
|
| 23 |
}
|
| 24 |
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Mysql4_Question_Number extends Mage_Core_Model_Mysql4_Abstract {
|
| 19 |
|
| 20 |
+
protected function _construct() {
|
|
|
|
|
|
|
|
|
|
| 21 |
$this->_init('paybox/question_number', 'account_id');
|
| 22 |
}
|
| 23 |
|
app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number/Collection.php
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Model_Mysql4_Question_Number_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
| 19 |
+
|
| 20 |
+
protected function _construct() {
|
| 21 |
+
$this->_init('paybox/question_number');
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
}
|
app/code/community/Quadra/Paybox/Model/Mysql4/Setup.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,11 +11,10 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup
|
| 19 |
-
{
|
| 20 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
}
|
app/code/community/Quadra/Paybox/Model/Observer.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,18 +11,16 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_Model_Observer
|
| 19 |
-
{
|
| 20 |
/**
|
| 21 |
* Can redirect to Paybox payment
|
| 22 |
*/
|
| 23 |
-
public function initRedirect(Varien_Event_Observer $observer)
|
| 24 |
-
{
|
| 25 |
Mage::getSingleton('checkout/session')->setCanRedirect(true);
|
| 26 |
}
|
| 27 |
|
|
@@ -30,8 +29,7 @@ class Quadra_Paybox_Model_Observer
|
|
| 30 |
*
|
| 31 |
* @return string Orders Redirect URL
|
| 32 |
*/
|
| 33 |
-
public function multishippingRedirectUrl(Varien_Event_Observer $observer)
|
| 34 |
-
{
|
| 35 |
if (Mage::getSingleton('checkout/session')->getCanRedirect()) {
|
| 36 |
$orderIds = Mage::getSingleton('core/session')->getOrderIds();
|
| 37 |
$orderIdsTmp = $orderIds;
|
|
@@ -54,8 +52,7 @@ class Quadra_Paybox_Model_Observer
|
|
| 54 |
*
|
| 55 |
* @return updated order
|
| 56 |
*/
|
| 57 |
-
public function disableEmailForMultishipping(Varien_Event_Observer $observer)
|
| 58 |
-
{
|
| 59 |
$order = $observer->getOrder();
|
| 60 |
|
| 61 |
if ($order->getPayment()->getMethod() == 'paybox_system') {
|
|
@@ -64,4 +61,5 @@ class Quadra_Paybox_Model_Observer
|
|
| 64 |
|
| 65 |
return $this;
|
| 66 |
}
|
|
|
|
| 67 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Observer {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
/**
|
| 21 |
* Can redirect to Paybox payment
|
| 22 |
*/
|
| 23 |
+
public function initRedirect(Varien_Event_Observer $observer) {
|
|
|
|
| 24 |
Mage::getSingleton('checkout/session')->setCanRedirect(true);
|
| 25 |
}
|
| 26 |
|
| 29 |
*
|
| 30 |
* @return string Orders Redirect URL
|
| 31 |
*/
|
| 32 |
+
public function multishippingRedirectUrl(Varien_Event_Observer $observer) {
|
|
|
|
| 33 |
if (Mage::getSingleton('checkout/session')->getCanRedirect()) {
|
| 34 |
$orderIds = Mage::getSingleton('core/session')->getOrderIds();
|
| 35 |
$orderIdsTmp = $orderIds;
|
| 52 |
*
|
| 53 |
* @return updated order
|
| 54 |
*/
|
| 55 |
+
public function disableEmailForMultishipping(Varien_Event_Observer $observer) {
|
|
|
|
| 56 |
$order = $observer->getOrder();
|
| 57 |
|
| 58 |
if ($order->getPayment()->getMethod() == 'paybox_system') {
|
| 61 |
|
| 62 |
return $this;
|
| 63 |
}
|
| 64 |
+
|
| 65 |
}
|
app/code/community/Quadra/Paybox/Model/Question/Number.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,13 +11,11 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
-
|
| 18 |
-
class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract
|
| 19 |
-
{
|
| 20 |
/**
|
| 21 |
* Max value of question number
|
| 22 |
*/
|
|
@@ -24,19 +23,16 @@ class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract
|
|
| 24 |
|
| 25 |
protected $_accountHash;
|
| 26 |
|
| 27 |
-
protected function _construct()
|
| 28 |
-
{
|
| 29 |
$this->_init('paybox/question_number');
|
| 30 |
}
|
| 31 |
|
| 32 |
-
public function load($id, $field=null)
|
| 33 |
-
{
|
| 34 |
$this->_accountHash = $id;
|
| 35 |
return parent::load($id, $field);
|
| 36 |
}
|
| 37 |
|
| 38 |
-
protected function _afterLoad()
|
| 39 |
-
{
|
| 40 |
//need to create new record (with default data) if it first time using of paybox direct
|
| 41 |
if (!$this->getAccountHash()) {
|
| 42 |
$this->setAccountHash($this->_accountHash);
|
|
@@ -59,9 +55,8 @@ class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract
|
|
| 59 |
*
|
| 60 |
* @return string
|
| 61 |
*/
|
| 62 |
-
public function getNextQuestionNumber()
|
| 63 |
-
|
| 64 |
-
$questionNumber = $this->getIncrementValue()+1;
|
| 65 |
return sprintf('%010d', $questionNumber);
|
| 66 |
}
|
| 67 |
|
|
@@ -70,10 +65,10 @@ class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract
|
|
| 70 |
*
|
| 71 |
* @return Quadra_Paybox_Model_Question_Number
|
| 72 |
*/
|
| 73 |
-
public function increaseQuestionNumber()
|
| 74 |
-
{
|
| 75 |
$this->setIncrementValue($this->getIncrementValue() + 1)
|
| 76 |
->save();
|
| 77 |
return $this;
|
| 78 |
}
|
|
|
|
| 79 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract {
|
|
|
|
|
|
|
| 19 |
/**
|
| 20 |
* Max value of question number
|
| 21 |
*/
|
| 23 |
|
| 24 |
protected $_accountHash;
|
| 25 |
|
| 26 |
+
protected function _construct() {
|
|
|
|
| 27 |
$this->_init('paybox/question_number');
|
| 28 |
}
|
| 29 |
|
| 30 |
+
public function load($id, $field = null) {
|
|
|
|
| 31 |
$this->_accountHash = $id;
|
| 32 |
return parent::load($id, $field);
|
| 33 |
}
|
| 34 |
|
| 35 |
+
protected function _afterLoad() {
|
|
|
|
| 36 |
//need to create new record (with default data) if it first time using of paybox direct
|
| 37 |
if (!$this->getAccountHash()) {
|
| 38 |
$this->setAccountHash($this->_accountHash);
|
| 55 |
*
|
| 56 |
* @return string
|
| 57 |
*/
|
| 58 |
+
public function getNextQuestionNumber() {
|
| 59 |
+
$questionNumber = $this->getIncrementValue() + 1;
|
|
|
|
| 60 |
return sprintf('%010d', $questionNumber);
|
| 61 |
}
|
| 62 |
|
| 65 |
*
|
| 66 |
* @return Quadra_Paybox_Model_Question_Number
|
| 67 |
*/
|
| 68 |
+
public function increaseQuestionNumber() {
|
|
|
|
| 69 |
$this->setIncrementValue($this->getIncrementValue() + 1)
|
| 70 |
->save();
|
| 71 |
return $this;
|
| 72 |
}
|
| 73 |
+
|
| 74 |
}
|
app/code/community/Quadra/Paybox/Model/Source/CartType.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,25 +11,22 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_Model_Source_CartType
|
| 19 |
-
{
|
| 20 |
/**
|
| 21 |
* Enter description here...
|
| 22 |
*
|
| 23 |
* @return Quadra_Paybox_Model_System
|
| 24 |
*/
|
| 25 |
-
public function getModel()
|
| 26 |
-
{
|
| 27 |
return Mage::getModel('paybox/system');
|
| 28 |
}
|
| 29 |
|
| 30 |
-
public function toOptionArray()
|
| 31 |
-
{
|
| 32 |
$cartTypesArr = array();
|
| 33 |
$tmpArr = $this->getModel()->getCartTypesByPayment($this->getModel()->getPaymentType());
|
| 34 |
|
|
@@ -41,4 +39,5 @@ class Quadra_Paybox_Model_Source_CartType
|
|
| 41 |
|
| 42 |
return $cartTypesArr;
|
| 43 |
}
|
|
|
|
| 44 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_CartType {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
/**
|
| 21 |
* Enter description here...
|
| 22 |
*
|
| 23 |
* @return Quadra_Paybox_Model_System
|
| 24 |
*/
|
| 25 |
+
public function getModel() {
|
|
|
|
| 26 |
return Mage::getModel('paybox/system');
|
| 27 |
}
|
| 28 |
|
| 29 |
+
public function toOptionArray() {
|
|
|
|
| 30 |
$cartTypesArr = array();
|
| 31 |
$tmpArr = $this->getModel()->getCartTypesByPayment($this->getModel()->getPaymentType());
|
| 32 |
|
| 39 |
|
| 40 |
return $cartTypesArr;
|
| 41 |
}
|
| 42 |
+
|
| 43 |
}
|
app/code/community/Quadra/Paybox/Model/Source/Cctype.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,15 +11,14 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function getAllowedTypes()
|
| 21 |
-
{
|
| 22 |
return array('VI', 'MC', 'AE', 'OT');
|
| 23 |
}
|
|
|
|
| 24 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_Cctype extends Mage_Payment_Model_Source_Cctype {
|
| 19 |
|
| 20 |
+
public function getAllowedTypes() {
|
|
|
|
|
|
|
|
|
|
| 21 |
return array('VI', 'MC', 'AE', 'OT');
|
| 22 |
}
|
| 23 |
+
|
| 24 |
}
|
app/code/community/Quadra/Paybox/Model/Source/Language.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,17 +11,14 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function toOptionArray()
|
| 21 |
-
{
|
| 22 |
return array(
|
| 23 |
-
// array('value' => Mage_Paypal_Model_Api_Abstract::PAYMENT_TYPE_AUTH, 'label' => Mage::helper('paypal')->__('Authorization')),
|
| 24 |
array('value' => 'FRA', 'label' => Mage::helper('paybox')->__('FRA (French)')),
|
| 25 |
array('value' => 'GBR', 'label' => Mage::helper('paybox')->__('GBR (English)')),
|
| 26 |
array('value' => 'ESP', 'label' => Mage::helper('paybox')->__('ESP (Spanish)')),
|
|
@@ -30,4 +28,5 @@ class Quadra_Paybox_Model_Source_Language
|
|
| 30 |
array('value' => 'SWE', 'label' => Mage::helper('paybox')->__('SWE (Swedish)')),
|
| 31 |
);
|
| 32 |
}
|
|
|
|
| 33 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_Language {
|
| 19 |
|
| 20 |
+
public function toOptionArray() {
|
|
|
|
|
|
|
|
|
|
| 21 |
return array(
|
|
|
|
| 22 |
array('value' => 'FRA', 'label' => Mage::helper('paybox')->__('FRA (French)')),
|
| 23 |
array('value' => 'GBR', 'label' => Mage::helper('paybox')->__('GBR (English)')),
|
| 24 |
array('value' => 'ESP', 'label' => Mage::helper('paybox')->__('ESP (Spanish)')),
|
| 28 |
array('value' => 'SWE', 'label' => Mage::helper('paybox')->__('SWE (Swedish)')),
|
| 29 |
);
|
| 30 |
}
|
| 31 |
+
|
| 32 |
}
|
app/code/community/Quadra/Paybox/Model/Source/ManagementMode.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,21 +11,17 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function toOptionArray()
|
| 21 |
-
{
|
| 22 |
return array(
|
| 23 |
array('value' => 'A', 'label' => Mage::helper('paybox')->__('Mode A')),
|
| 24 |
-
|
| 25 |
-
// array('value' => 'C', 'label' => Mage::helper('paybox')->__('Mode C')),
|
| 26 |
-
// array('value' => 'D', 'label' => Mage::helper('paybox')->__('Mode D')),
|
| 27 |
-
array('value' => 'E', 'label' => Mage::helper('paybox')->__('Mode E')),
|
| 28 |
);
|
| 29 |
}
|
|
|
|
| 30 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_ManagementMode {
|
| 19 |
|
| 20 |
+
public function toOptionArray() {
|
|
|
|
|
|
|
|
|
|
| 21 |
return array(
|
| 22 |
array('value' => 'A', 'label' => Mage::helper('paybox')->__('Mode A')),
|
| 23 |
+
array('value' => 'E', 'label' => Mage::helper('paybox')->__('Mode E'))
|
|
|
|
|
|
|
|
|
|
| 24 |
);
|
| 25 |
}
|
| 26 |
+
|
| 27 |
}
|
app/code/community/Quadra/Paybox/Model/Source/MethodCall.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,19 +11,17 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function toOptionArray()
|
| 21 |
-
{
|
| 22 |
return array(
|
| 23 |
-
// array('value' => Mage_Paypal_Model_Api_Abstract::PAYMENT_TYPE_AUTH, 'label' => Mage::helper('paypal')->__('Authorization')),
|
| 24 |
array('value' => 'GET', 'label' => Mage::helper('paybox')->__('GET')),
|
| 25 |
array('value' => 'POST', 'label' => Mage::helper('paybox')->__('POST')),
|
| 26 |
);
|
| 27 |
}
|
|
|
|
| 28 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_MethodCall {
|
| 19 |
|
| 20 |
+
public function toOptionArray() {
|
|
|
|
|
|
|
|
|
|
| 21 |
return array(
|
|
|
|
| 22 |
array('value' => 'GET', 'label' => Mage::helper('paybox')->__('GET')),
|
| 23 |
array('value' => 'POST', 'label' => Mage::helper('paybox')->__('POST')),
|
| 24 |
);
|
| 25 |
}
|
| 26 |
+
|
| 27 |
}
|
app/code/community/Quadra/Paybox/Model/Source/PaymentAction.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,18 +11,17 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function toOptionArray()
|
| 21 |
-
{
|
| 22 |
return array(
|
| 23 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE, 'label' => Mage::helper('paybox')->__('Authorization')),
|
| 24 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE, 'label' => Mage::helper('paybox')->__('Payment')),
|
| 25 |
);
|
| 26 |
}
|
|
|
|
| 27 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_PaymentAction {
|
| 19 |
|
| 20 |
+
public function toOptionArray() {
|
|
|
|
|
|
|
|
|
|
| 21 |
return array(
|
| 22 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE, 'label' => Mage::helper('paybox')->__('Authorization')),
|
| 23 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE, 'label' => Mage::helper('paybox')->__('Payment')),
|
| 24 |
);
|
| 25 |
}
|
| 26 |
+
|
| 27 |
}
|
app/code/community/Quadra/Paybox/Model/Source/PaymentMode.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,19 +11,17 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function toOptionArray()
|
| 21 |
-
{
|
| 22 |
return array(
|
| 23 |
-
// array('value' => Mage_Paypal_Model_Api_Abstract::PAYMENT_TYPE_AUTH, 'label' => Mage::helper('paypal')->__('Authorization')),
|
| 24 |
array('value' => 1, 'label' => Mage::helper('paybox')->__('HTML form')),
|
| 25 |
-
array('value' => 4, 'label' => Mage::helper('paybox')->__('Command Line Mode'))
|
| 26 |
);
|
| 27 |
}
|
|
|
|
| 28 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_PaymentMode {
|
| 19 |
|
| 20 |
+
public function toOptionArray() {
|
|
|
|
|
|
|
|
|
|
| 21 |
return array(
|
|
|
|
| 22 |
array('value' => 1, 'label' => Mage::helper('paybox')->__('HTML form')),
|
| 23 |
+
array('value' => 4, 'label' => Mage::helper('paybox')->__('Command Line Mode'))
|
| 24 |
);
|
| 25 |
}
|
| 26 |
+
|
| 27 |
}
|
app/code/community/Quadra/Paybox/Model/Source/PaymentType.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,22 +11,21 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
-
public function toOptionArray()
|
| 21 |
-
{
|
| 22 |
return array(
|
| 23 |
array('value' => '', 'label' => Mage::helper('paybox')->__('--Please Select--')),
|
| 24 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_CARTE, 'label' => Mage::helper('paybox')->__('CARTE')),
|
| 25 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_SYMPASS, 'label' => Mage::helper('paybox')->__('SYMPASS')),
|
| 26 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_PAYNOVA, 'label' => Mage::helper('paybox')->__('PAYNOVA')),
|
| 27 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_TERMINEO, 'label' => Mage::helper('paybox')->__('TERMINEO')),
|
| 28 |
-
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_PAYPAL, 'label' => Mage::helper('paybox')->__('PAYPAL'))
|
| 29 |
);
|
| 30 |
}
|
|
|
|
| 31 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_Source_PaymentType {
|
| 19 |
|
| 20 |
+
public function toOptionArray() {
|
|
|
|
|
|
|
|
|
|
| 21 |
return array(
|
| 22 |
array('value' => '', 'label' => Mage::helper('paybox')->__('--Please Select--')),
|
| 23 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_CARTE, 'label' => Mage::helper('paybox')->__('CARTE')),
|
| 24 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_SYMPASS, 'label' => Mage::helper('paybox')->__('SYMPASS')),
|
| 25 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_PAYNOVA, 'label' => Mage::helper('paybox')->__('PAYNOVA')),
|
| 26 |
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_TERMINEO, 'label' => Mage::helper('paybox')->__('TERMINEO')),
|
| 27 |
+
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_PAYPAL, 'label' => Mage::helper('paybox')->__('PAYPAL'))
|
| 28 |
);
|
| 29 |
}
|
| 30 |
+
|
| 31 |
}
|
app/code/community/Quadra/Paybox/Model/System.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,13 +11,11 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
-
|
| 18 |
-
class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
| 19 |
-
{
|
| 20 |
/**
|
| 21 |
* Paybox const variables
|
| 22 |
*/
|
|
@@ -88,12 +87,10 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 88 |
*
|
| 89 |
* @return Mage_Sales_Model_Order
|
| 90 |
*/
|
| 91 |
-
public function getOrder()
|
| 92 |
-
{
|
| 93 |
if (!$this->_order) {
|
| 94 |
$paymentInfo = $this->getInfoInstance();
|
| 95 |
-
$this->_order = Mage::getModel('sales/order')
|
| 96 |
-
->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId());
|
| 97 |
}
|
| 98 |
return $this->_order;
|
| 99 |
}
|
|
@@ -103,8 +100,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 103 |
*
|
| 104 |
* @return string
|
| 105 |
*/
|
| 106 |
-
public function getOrderList()
|
| 107 |
-
{
|
| 108 |
if ($this->getQuote()->getIsMultiShipping())
|
| 109 |
return Mage::getSingleton('checkout/session')->getRealOrderIds();
|
| 110 |
else
|
|
@@ -116,14 +112,12 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 116 |
*
|
| 117 |
* @param Mage_Sales_Model_Order $order
|
| 118 |
*/
|
| 119 |
-
public function setOrder(Mage_Sales_Model_Order $order)
|
| 120 |
-
{
|
| 121 |
$this->_order = $order;
|
| 122 |
return $this;
|
| 123 |
}
|
| 124 |
|
| 125 |
-
public function getAuthorizedIps()
|
| 126 |
-
{
|
| 127 |
return $this->_authorized_ips;
|
| 128 |
}
|
| 129 |
|
|
@@ -133,12 +127,11 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 133 |
* @param string $field
|
| 134 |
* @return mixed
|
| 135 |
*/
|
| 136 |
-
public function getDesignConfigData($field, $storeId = null)
|
| 137 |
-
{
|
| 138 |
if (null === $storeId) {
|
| 139 |
$storeId = $this->getStore();
|
| 140 |
}
|
| 141 |
-
$path = 'paybox_design/intermediate_page/'
|
| 142 |
return Mage::getStoreConfig($path, $storeId);
|
| 143 |
}
|
| 144 |
|
|
@@ -149,8 +142,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 149 |
* @param string $paymentType
|
| 150 |
* @return array
|
| 151 |
*/
|
| 152 |
-
protected function _getCartTypes($paymentType = null)
|
| 153 |
-
{
|
| 154 |
if (!$this->_cartTypes) {
|
| 155 |
$this->_cartTypes = array(
|
| 156 |
self::PBX_PAYMENT_TYPE_CARTE => array(
|
|
@@ -202,8 +194,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 202 |
* @param string $paymentType
|
| 203 |
* @return array
|
| 204 |
*/
|
| 205 |
-
public function getCartTypesByPayment($paymentType)
|
| 206 |
-
{
|
| 207 |
if ($paymentType == '') {
|
| 208 |
return array();
|
| 209 |
}
|
|
@@ -215,8 +206,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 215 |
*
|
| 216 |
* @return string
|
| 217 |
*/
|
| 218 |
-
public function getJsonCartTypes()
|
| 219 |
-
{
|
| 220 |
return Zend_Json::encode($this->_getCartTypes());
|
| 221 |
}
|
| 222 |
|
|
@@ -225,8 +215,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 225 |
*
|
| 226 |
* @return string
|
| 227 |
*/
|
| 228 |
-
public function getPaymentMethod()
|
| 229 |
-
{
|
| 230 |
return $this->getConfigData('pbx_mode');
|
| 231 |
}
|
| 232 |
|
|
@@ -235,8 +224,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 235 |
*
|
| 236 |
* @return string
|
| 237 |
*/
|
| 238 |
-
public function getPayboxFile()
|
| 239 |
-
{
|
| 240 |
return $this->getConfigData('pbx_file');
|
| 241 |
}
|
| 242 |
|
|
@@ -245,8 +233,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 245 |
*
|
| 246 |
* @return string
|
| 247 |
*/
|
| 248 |
-
public function getPaymentType()
|
| 249 |
-
{
|
| 250 |
return $this->getConfigData('pbx_typepaiement');
|
| 251 |
}
|
| 252 |
|
|
@@ -255,8 +242,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 255 |
*
|
| 256 |
* @return string
|
| 257 |
*/
|
| 258 |
-
public function getPaymentAction()
|
| 259 |
-
{
|
| 260 |
$paymentAction = $this->getConfigData('pbx_autoseule');
|
| 261 |
switch ($paymentAction) {
|
| 262 |
case self::ACTION_AUTHORIZE:
|
|
@@ -276,8 +262,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 276 |
*
|
| 277 |
* @return string
|
| 278 |
*/
|
| 279 |
-
public function getCartType()
|
| 280 |
-
{
|
| 281 |
return $this->getConfigData('pbx_typecarte');
|
| 282 |
}
|
| 283 |
|
|
@@ -286,8 +271,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 286 |
*
|
| 287 |
* @return string
|
| 288 |
*/
|
| 289 |
-
public function getSiteNumber()
|
| 290 |
-
{
|
| 291 |
return $this->getConfigData('pbx_site');
|
| 292 |
}
|
| 293 |
|
|
@@ -296,8 +280,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 296 |
*
|
| 297 |
* @return string
|
| 298 |
*/
|
| 299 |
-
public function getRang()
|
| 300 |
-
{
|
| 301 |
return $this->getConfigData('pbx_rang');
|
| 302 |
}
|
| 303 |
|
|
@@ -306,8 +289,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 306 |
*
|
| 307 |
* @return string
|
| 308 |
*/
|
| 309 |
-
public function getIdentifiant()
|
| 310 |
-
{
|
| 311 |
return $this->getConfigData('pbx_identifiant');
|
| 312 |
}
|
| 313 |
|
|
@@ -316,8 +298,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 316 |
*
|
| 317 |
* @return string
|
| 318 |
*/
|
| 319 |
-
public function getCurrencyNumber()
|
| 320 |
-
{
|
| 321 |
$currencyCode = $this->getOrder()->getBaseCurrencyCode();
|
| 322 |
if (!$this->_currenciesNumbers) {
|
| 323 |
$this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/community/Quadra/Paybox/etc/currency.xml');
|
|
@@ -332,18 +313,16 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 332 |
*
|
| 333 |
* @return string
|
| 334 |
*/
|
| 335 |
-
public function getLanguage()
|
| 336 |
-
{
|
| 337 |
return $this->getConfigData('pbx_langue');
|
| 338 |
}
|
| 339 |
|
| 340 |
-
|
| 341 |
* Get api urls and timeouts if they defined in config
|
| 342 |
*
|
| 343 |
* QI Marine
|
| 344 |
*/
|
| 345 |
-
public function getBackupServer()
|
| 346 |
-
{
|
| 347 |
$bpserversConfigPath = 'payment/paybox_system/pbx_bpserver';
|
| 348 |
$configValueSerialized = Mage::getStoreConfig($bpserversConfigPath, $this->getStore());
|
| 349 |
|
|
@@ -373,8 +352,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 373 |
*
|
| 374 |
* @return unknown
|
| 375 |
*/
|
| 376 |
-
public function getApiUrls()
|
| 377 |
-
{
|
| 378 |
$fielldsArr = array();
|
| 379 |
if (($primary = trim($this->getConfigData('pbx_paybox'))) != '') {
|
| 380 |
$fielldsArr['PBX_PAYBOX'] = $primary;
|
|
@@ -401,8 +379,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 401 |
*
|
| 402 |
* @return array
|
| 403 |
*/
|
| 404 |
-
public function getTimeouts()
|
| 405 |
-
{
|
| 406 |
$fielldsArr = array();
|
| 407 |
if (($timeout = trim($this->getConfigData('pbx_timeout'))) != '') {
|
| 408 |
$fielldsArr['PBX_TIMEOUT'] = $timeout;
|
|
@@ -427,8 +404,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 427 |
*
|
| 428 |
* @return array
|
| 429 |
*/
|
| 430 |
-
public function getManagementMode()
|
| 431 |
-
{
|
| 432 |
$fieldsArr = array();
|
| 433 |
if (($text = trim($this->getDesignConfigData('pbx_txt'))) != '') {
|
| 434 |
$fieldsArr['PBX_TXT'] = utf8_encode($text);
|
|
@@ -460,8 +436,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 460 |
*
|
| 461 |
* @return unknown
|
| 462 |
*/
|
| 463 |
-
public function getPingFlag()
|
| 464 |
-
{
|
| 465 |
return $this->getConfigData('pbx_ping');
|
| 466 |
}
|
| 467 |
|
|
@@ -470,8 +445,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 470 |
*
|
| 471 |
* @return string
|
| 472 |
*/
|
| 473 |
-
public function getPingPort()
|
| 474 |
-
{
|
| 475 |
return $this->getConfigData('pbx_port');
|
| 476 |
}
|
| 477 |
|
|
@@ -480,13 +454,11 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 480 |
*
|
| 481 |
* @return string
|
| 482 |
*/
|
| 483 |
-
public function getDebugFlag()
|
| 484 |
-
{
|
| 485 |
return $this->getConfigData('debug_flag');
|
| 486 |
}
|
| 487 |
|
| 488 |
-
public function getOrderPlaceRedirectUrl()
|
| 489 |
-
{
|
| 490 |
if ($this->getPaymentMethod() == self::PBX_FORM_HTML_METHOD) {
|
| 491 |
return Mage::getUrl('paybox/system/redirect', array('_secure' => true));
|
| 492 |
} else {
|
|
@@ -499,8 +471,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 499 |
*
|
| 500 |
* @return array
|
| 501 |
*/
|
| 502 |
-
public function getFormFields()
|
| 503 |
-
{
|
| 504 |
$fieldsArr = array();
|
| 505 |
|
| 506 |
$fieldsArr = array(
|
|
@@ -555,7 +526,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 555 |
if ($this->getDebugFlag()) {
|
| 556 |
$debug = Mage::getModel('paybox/api_debug')
|
| 557 |
->setRealOrderId($this->getOrder()->getRealOrderId())
|
| 558 |
-
->setRequestBody(
|
| 559 |
->save();
|
| 560 |
}
|
| 561 |
|
|
@@ -568,12 +539,11 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 568 |
* @param array $response
|
| 569 |
* @return bool
|
| 570 |
*/
|
| 571 |
-
public function checkResponse($response)
|
| 572 |
-
{
|
| 573 |
if ($this->getDebugFlag()) {
|
| 574 |
$debug = Mage::getModel('paybox/api_debug')
|
| 575 |
->load($response['ref'], 'real_order_id')
|
| 576 |
-
->setResponseBody(
|
| 577 |
->save();
|
| 578 |
}
|
| 579 |
|
|
@@ -584,8 +554,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 584 |
return false;
|
| 585 |
}
|
| 586 |
|
| 587 |
-
public function capture(Varien_Object $payment, $amount)
|
| 588 |
-
{
|
| 589 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 590 |
->setLastTransId($this->getTransactionId());
|
| 591 |
return $this;
|
|
@@ -597,23 +566,20 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 597 |
* @param Varien_Object $info
|
| 598 |
* @return Mage_Payment_Model_Abstract
|
| 599 |
*/
|
| 600 |
-
public function validate()
|
| 601 |
-
{
|
| 602 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
| 603 |
$quote->setCustomerNoteNotify(false);
|
| 604 |
parent::validate();
|
| 605 |
}
|
| 606 |
|
| 607 |
-
public function authorize(Varien_Object $payment, $amount)
|
| 608 |
-
{
|
| 609 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 610 |
-
|
| 611 |
|
| 612 |
return $this;
|
| 613 |
}
|
| 614 |
|
| 615 |
-
public function cancel(Varien_Object $payment)
|
| 616 |
-
{
|
| 617 |
$payment->setStatus(self::STATUS_DECLINED);
|
| 618 |
return $this;
|
| 619 |
}
|
|
@@ -624,8 +590,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 624 |
* @param none
|
| 625 |
* @return string Failure response string
|
| 626 |
*/
|
| 627 |
-
public function getErrorResponse()
|
| 628 |
-
{
|
| 629 |
$response = array(
|
| 630 |
'Pragma: no-cache',
|
| 631 |
'Content-type : text/plain',
|
|
@@ -634,4 +599,5 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
|
| 634 |
);
|
| 635 |
return implode("\n", $response) . "\n";
|
| 636 |
}
|
|
|
|
| 637 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
|
|
|
|
|
| 19 |
/**
|
| 20 |
* Paybox const variables
|
| 21 |
*/
|
| 87 |
*
|
| 88 |
* @return Mage_Sales_Model_Order
|
| 89 |
*/
|
| 90 |
+
public function getOrder() {
|
|
|
|
| 91 |
if (!$this->_order) {
|
| 92 |
$paymentInfo = $this->getInfoInstance();
|
| 93 |
+
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId());
|
|
|
|
| 94 |
}
|
| 95 |
return $this->_order;
|
| 96 |
}
|
| 100 |
*
|
| 101 |
* @return string
|
| 102 |
*/
|
| 103 |
+
public function getOrderList() {
|
|
|
|
| 104 |
if ($this->getQuote()->getIsMultiShipping())
|
| 105 |
return Mage::getSingleton('checkout/session')->getRealOrderIds();
|
| 106 |
else
|
| 112 |
*
|
| 113 |
* @param Mage_Sales_Model_Order $order
|
| 114 |
*/
|
| 115 |
+
public function setOrder(Mage_Sales_Model_Order $order) {
|
|
|
|
| 116 |
$this->_order = $order;
|
| 117 |
return $this;
|
| 118 |
}
|
| 119 |
|
| 120 |
+
public function getAuthorizedIps() {
|
|
|
|
| 121 |
return $this->_authorized_ips;
|
| 122 |
}
|
| 123 |
|
| 127 |
* @param string $field
|
| 128 |
* @return mixed
|
| 129 |
*/
|
| 130 |
+
public function getDesignConfigData($field, $storeId = null) {
|
|
|
|
| 131 |
if (null === $storeId) {
|
| 132 |
$storeId = $this->getStore();
|
| 133 |
}
|
| 134 |
+
$path = 'paybox_design/intermediate_page/' . $field;
|
| 135 |
return Mage::getStoreConfig($path, $storeId);
|
| 136 |
}
|
| 137 |
|
| 142 |
* @param string $paymentType
|
| 143 |
* @return array
|
| 144 |
*/
|
| 145 |
+
protected function _getCartTypes($paymentType = null) {
|
|
|
|
| 146 |
if (!$this->_cartTypes) {
|
| 147 |
$this->_cartTypes = array(
|
| 148 |
self::PBX_PAYMENT_TYPE_CARTE => array(
|
| 194 |
* @param string $paymentType
|
| 195 |
* @return array
|
| 196 |
*/
|
| 197 |
+
public function getCartTypesByPayment($paymentType) {
|
|
|
|
| 198 |
if ($paymentType == '') {
|
| 199 |
return array();
|
| 200 |
}
|
| 206 |
*
|
| 207 |
* @return string
|
| 208 |
*/
|
| 209 |
+
public function getJsonCartTypes() {
|
|
|
|
| 210 |
return Zend_Json::encode($this->_getCartTypes());
|
| 211 |
}
|
| 212 |
|
| 215 |
*
|
| 216 |
* @return string
|
| 217 |
*/
|
| 218 |
+
public function getPaymentMethod() {
|
|
|
|
| 219 |
return $this->getConfigData('pbx_mode');
|
| 220 |
}
|
| 221 |
|
| 224 |
*
|
| 225 |
* @return string
|
| 226 |
*/
|
| 227 |
+
public function getPayboxFile() {
|
|
|
|
| 228 |
return $this->getConfigData('pbx_file');
|
| 229 |
}
|
| 230 |
|
| 233 |
*
|
| 234 |
* @return string
|
| 235 |
*/
|
| 236 |
+
public function getPaymentType() {
|
|
|
|
| 237 |
return $this->getConfigData('pbx_typepaiement');
|
| 238 |
}
|
| 239 |
|
| 242 |
*
|
| 243 |
* @return string
|
| 244 |
*/
|
| 245 |
+
public function getPaymentAction() {
|
|
|
|
| 246 |
$paymentAction = $this->getConfigData('pbx_autoseule');
|
| 247 |
switch ($paymentAction) {
|
| 248 |
case self::ACTION_AUTHORIZE:
|
| 262 |
*
|
| 263 |
* @return string
|
| 264 |
*/
|
| 265 |
+
public function getCartType() {
|
|
|
|
| 266 |
return $this->getConfigData('pbx_typecarte');
|
| 267 |
}
|
| 268 |
|
| 271 |
*
|
| 272 |
* @return string
|
| 273 |
*/
|
| 274 |
+
public function getSiteNumber() {
|
|
|
|
| 275 |
return $this->getConfigData('pbx_site');
|
| 276 |
}
|
| 277 |
|
| 280 |
*
|
| 281 |
* @return string
|
| 282 |
*/
|
| 283 |
+
public function getRang() {
|
|
|
|
| 284 |
return $this->getConfigData('pbx_rang');
|
| 285 |
}
|
| 286 |
|
| 289 |
*
|
| 290 |
* @return string
|
| 291 |
*/
|
| 292 |
+
public function getIdentifiant() {
|
|
|
|
| 293 |
return $this->getConfigData('pbx_identifiant');
|
| 294 |
}
|
| 295 |
|
| 298 |
*
|
| 299 |
* @return string
|
| 300 |
*/
|
| 301 |
+
public function getCurrencyNumber() {
|
|
|
|
| 302 |
$currencyCode = $this->getOrder()->getBaseCurrencyCode();
|
| 303 |
if (!$this->_currenciesNumbers) {
|
| 304 |
$this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/community/Quadra/Paybox/etc/currency.xml');
|
| 313 |
*
|
| 314 |
* @return string
|
| 315 |
*/
|
| 316 |
+
public function getLanguage() {
|
|
|
|
| 317 |
return $this->getConfigData('pbx_langue');
|
| 318 |
}
|
| 319 |
|
| 320 |
+
/**
|
| 321 |
* Get api urls and timeouts if they defined in config
|
| 322 |
*
|
| 323 |
* QI Marine
|
| 324 |
*/
|
| 325 |
+
public function getBackupServer() {
|
|
|
|
| 326 |
$bpserversConfigPath = 'payment/paybox_system/pbx_bpserver';
|
| 327 |
$configValueSerialized = Mage::getStoreConfig($bpserversConfigPath, $this->getStore());
|
| 328 |
|
| 352 |
*
|
| 353 |
* @return unknown
|
| 354 |
*/
|
| 355 |
+
public function getApiUrls() {
|
|
|
|
| 356 |
$fielldsArr = array();
|
| 357 |
if (($primary = trim($this->getConfigData('pbx_paybox'))) != '') {
|
| 358 |
$fielldsArr['PBX_PAYBOX'] = $primary;
|
| 379 |
*
|
| 380 |
* @return array
|
| 381 |
*/
|
| 382 |
+
public function getTimeouts() {
|
|
|
|
| 383 |
$fielldsArr = array();
|
| 384 |
if (($timeout = trim($this->getConfigData('pbx_timeout'))) != '') {
|
| 385 |
$fielldsArr['PBX_TIMEOUT'] = $timeout;
|
| 404 |
*
|
| 405 |
* @return array
|
| 406 |
*/
|
| 407 |
+
public function getManagementMode() {
|
|
|
|
| 408 |
$fieldsArr = array();
|
| 409 |
if (($text = trim($this->getDesignConfigData('pbx_txt'))) != '') {
|
| 410 |
$fieldsArr['PBX_TXT'] = utf8_encode($text);
|
| 436 |
*
|
| 437 |
* @return unknown
|
| 438 |
*/
|
| 439 |
+
public function getPingFlag() {
|
|
|
|
| 440 |
return $this->getConfigData('pbx_ping');
|
| 441 |
}
|
| 442 |
|
| 445 |
*
|
| 446 |
* @return string
|
| 447 |
*/
|
| 448 |
+
public function getPingPort() {
|
|
|
|
| 449 |
return $this->getConfigData('pbx_port');
|
| 450 |
}
|
| 451 |
|
| 454 |
*
|
| 455 |
* @return string
|
| 456 |
*/
|
| 457 |
+
public function getDebugFlag() {
|
|
|
|
| 458 |
return $this->getConfigData('debug_flag');
|
| 459 |
}
|
| 460 |
|
| 461 |
+
public function getOrderPlaceRedirectUrl() {
|
|
|
|
| 462 |
if ($this->getPaymentMethod() == self::PBX_FORM_HTML_METHOD) {
|
| 463 |
return Mage::getUrl('paybox/system/redirect', array('_secure' => true));
|
| 464 |
} else {
|
| 471 |
*
|
| 472 |
* @return array
|
| 473 |
*/
|
| 474 |
+
public function getFormFields() {
|
|
|
|
| 475 |
$fieldsArr = array();
|
| 476 |
|
| 477 |
$fieldsArr = array(
|
| 526 |
if ($this->getDebugFlag()) {
|
| 527 |
$debug = Mage::getModel('paybox/api_debug')
|
| 528 |
->setRealOrderId($this->getOrder()->getRealOrderId())
|
| 529 |
+
->setRequestBody(serialize($fieldsArr))
|
| 530 |
->save();
|
| 531 |
}
|
| 532 |
|
| 539 |
* @param array $response
|
| 540 |
* @return bool
|
| 541 |
*/
|
| 542 |
+
public function checkResponse($response) {
|
|
|
|
| 543 |
if ($this->getDebugFlag()) {
|
| 544 |
$debug = Mage::getModel('paybox/api_debug')
|
| 545 |
->load($response['ref'], 'real_order_id')
|
| 546 |
+
->setResponseBody(serialize($response))
|
| 547 |
->save();
|
| 548 |
}
|
| 549 |
|
| 554 |
return false;
|
| 555 |
}
|
| 556 |
|
| 557 |
+
public function capture(Varien_Object $payment, $amount) {
|
|
|
|
| 558 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 559 |
->setLastTransId($this->getTransactionId());
|
| 560 |
return $this;
|
| 566 |
* @param Varien_Object $info
|
| 567 |
* @return Mage_Payment_Model_Abstract
|
| 568 |
*/
|
| 569 |
+
public function validate() {
|
|
|
|
| 570 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
| 571 |
$quote->setCustomerNoteNotify(false);
|
| 572 |
parent::validate();
|
| 573 |
}
|
| 574 |
|
| 575 |
+
public function authorize(Varien_Object $payment, $amount) {
|
|
|
|
| 576 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 577 |
+
->setLastTransId($this->getTransactionId());
|
| 578 |
|
| 579 |
return $this;
|
| 580 |
}
|
| 581 |
|
| 582 |
+
public function cancel(Varien_Object $payment) {
|
|
|
|
| 583 |
$payment->setStatus(self::STATUS_DECLINED);
|
| 584 |
return $this;
|
| 585 |
}
|
| 590 |
* @param none
|
| 591 |
* @return string Failure response string
|
| 592 |
*/
|
| 593 |
+
public function getErrorResponse() {
|
|
|
|
| 594 |
$response = array(
|
| 595 |
'Pragma: no-cache',
|
| 596 |
'Content-type : text/plain',
|
| 599 |
);
|
| 600 |
return implode("\n", $response) . "\n";
|
| 601 |
}
|
| 602 |
+
|
| 603 |
}
|
app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status.php
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status {
|
| 19 |
+
|
| 20 |
+
// set null to enable all possible
|
| 21 |
+
protected $_stateStatuses = array();
|
| 22 |
+
|
| 23 |
+
public function toOptionArray() {
|
| 24 |
+
if ($this->_stateStatuses) {
|
| 25 |
+
$statuses = Mage::getSingleton('sales/order_config')->getStateStatuses($this->_stateStatuses);
|
| 26 |
+
} else {
|
| 27 |
+
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
| 28 |
+
}
|
| 29 |
+
$options = array();
|
| 30 |
+
$options[] = array(
|
| 31 |
+
'value' => '',
|
| 32 |
+
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
| 33 |
+
);
|
| 34 |
+
foreach ($statuses as $code => $label) {
|
| 35 |
+
$options[] = array(
|
| 36 |
+
'value' => $code,
|
| 37 |
+
'label' => $label
|
| 38 |
+
);
|
| 39 |
+
}
|
| 40 |
+
return $options;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
}
|
app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Accepted.php
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_Accepted extends Quadra_Paybox_Model_System_Config_Source_Order_Status {
|
| 19 |
+
|
| 20 |
+
// set null to enable all possible
|
| 21 |
+
protected $_stateStatuses = array(
|
| 22 |
+
Mage_Sales_Model_Order::STATE_NEW,
|
| 23 |
+
Mage_Sales_Model_Order::STATE_PROCESSING,
|
| 24 |
+
Mage_Sales_Model_Order::STATE_COMPLETE
|
| 25 |
+
);
|
| 26 |
+
|
| 27 |
+
}
|
app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Canceled.php
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_Canceled extends Quadra_Paybox_Model_System_Config_Source_Order_Status {
|
| 19 |
+
|
| 20 |
+
// set null to enable all possible
|
| 21 |
+
protected $_stateStatuses = array(
|
| 22 |
+
Mage_Sales_Model_Order::STATE_HOLDED,
|
| 23 |
+
Mage_Sales_Model_Order::STATE_CANCELED
|
| 24 |
+
);
|
| 25 |
+
|
| 26 |
+
}
|
app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/New.php
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_New extends Quadra_Paybox_Model_System_Config_Source_Order_Status {
|
| 19 |
+
|
| 20 |
+
// set null to enable all possible
|
| 21 |
+
protected $_stateStatuses = array(
|
| 22 |
+
Mage_Sales_Model_Order::STATE_NEW,
|
| 23 |
+
Mage_Sales_Model_Order::STATE_PROCESSING
|
| 24 |
+
);
|
| 25 |
+
|
| 26 |
+
}
|
app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Refused.php
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_Refused extends Quadra_Paybox_Model_System_Config_Source_Order_Status {
|
| 19 |
+
|
| 20 |
+
// set null to enable all possible
|
| 21 |
+
protected $_stateStatuses = array(
|
| 22 |
+
Mage_Sales_Model_Order::STATE_HOLDED,
|
| 23 |
+
Mage_Sales_Model_Order::STATE_CANCELED,
|
| 24 |
+
Mage_Sales_Model_Order::STATE_CLOSED
|
| 25 |
+
);
|
| 26 |
+
|
| 27 |
+
}
|
app/code/community/Quadra/Paybox/controllers/Adminhtml/Api/DebugController.php
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Adminhtml_Api_DebugController extends Mage_Adminhtml_Controller_Action {
|
| 19 |
+
|
| 20 |
+
protected function _initPaybox($idFieldName = 'id') {
|
| 21 |
+
$this->_title($this->__('Paybox'))->_title($this->__('Api Debug'));
|
| 22 |
+
|
| 23 |
+
$debugId = (int) $this->getRequest()->getParam($idFieldName);
|
| 24 |
+
$debug = Mage::getModel('paybox/api_debug');
|
| 25 |
+
|
| 26 |
+
if ($debugId) {
|
| 27 |
+
$debug->load($debugId);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
Mage::register('current_debug', $debug);
|
| 31 |
+
return $this;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
public function indexAction() {
|
| 35 |
+
$this->_title($this->__('Paybox'))->_title($this->__('Api Debug'));
|
| 36 |
+
|
| 37 |
+
if ($this->getRequest()->getQuery('ajax')) {
|
| 38 |
+
$this->_forward('grid');
|
| 39 |
+
return;
|
| 40 |
+
}
|
| 41 |
+
$this->loadLayout();
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Set active menu item
|
| 45 |
+
*/
|
| 46 |
+
$this->_setActiveMenu('paybox/api_debug');
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Append debugs block to content
|
| 50 |
+
*/
|
| 51 |
+
$this->_addContent(
|
| 52 |
+
$this->getLayout()->createBlock('paybox/adminhtml_api_debug', 'paybox_api_debug')
|
| 53 |
+
);
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Add breadcrumb item
|
| 57 |
+
*/
|
| 58 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Paybox'), Mage::helper('adminhtml')->__('Paybox'));
|
| 59 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Api Debug'), Mage::helper('adminhtml')->__('Api Debug'));
|
| 60 |
+
|
| 61 |
+
$this->renderLayout();
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
public function gridAction() {
|
| 65 |
+
$this->loadLayout();
|
| 66 |
+
$this->getResponse()->setBody(
|
| 67 |
+
$this->getLayout()->createBlock('paybox/adminhtml_api_debug_grid')->toHtml()
|
| 68 |
+
);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/**
|
| 72 |
+
* Paybox api debug view action
|
| 73 |
+
*/
|
| 74 |
+
public function viewAction() {
|
| 75 |
+
$this->loadLayout();
|
| 76 |
+
$this->_initPaybox('id');
|
| 77 |
+
|
| 78 |
+
$this->_setActiveMenu('paybox/api_debug');
|
| 79 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Paybox'), Mage::helper('adminhtml')->__('Paybox'), $this->getUrl('*/*'));
|
| 80 |
+
|
| 81 |
+
if ($this->getRequest()->getParam('id')) {
|
| 82 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Edit Paybox'), Mage::helper('adminhtml')->__('Edit Paybox'));
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
$this->_addContent($this->getLayout()->createBlock('paybox/adminhtml_api_debug_view', 'paybox_api_debug_view'))
|
| 86 |
+
->_addLeft($this->getLayout()->createBlock('paybox/adminhtml_api_debug_view_tabs'));
|
| 87 |
+
|
| 88 |
+
$this->renderLayout();
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
}
|
app/code/community/Quadra/Paybox/controllers/Adminhtml/Question/NumberController.php
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 9 |
+
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 10 |
+
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 11 |
+
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
+
*
|
| 13 |
+
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
+
*/
|
| 18 |
+
class Quadra_Paybox_Adminhtml_Question_NumberController extends Mage_Adminhtml_Controller_Action {
|
| 19 |
+
|
| 20 |
+
protected function _initPaybox($idFieldName = 'id') {
|
| 21 |
+
$this->_title($this->__('Paybox'))->_title($this->__('Question Number'));
|
| 22 |
+
|
| 23 |
+
$numberId = (int) $this->getRequest()->getParam($idFieldName);
|
| 24 |
+
$number = Mage::getModel('paybox/question_number');
|
| 25 |
+
|
| 26 |
+
if ($numberId) {
|
| 27 |
+
$number->load($numberId);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
Mage::register('current_number', $number);
|
| 31 |
+
return $this;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
public function indexAction() {
|
| 35 |
+
$this->_title($this->__('Paybox'))->_title($this->__('Question Number'));
|
| 36 |
+
|
| 37 |
+
if ($this->getRequest()->getQuery('ajax')) {
|
| 38 |
+
$this->_forward('grid');
|
| 39 |
+
return;
|
| 40 |
+
}
|
| 41 |
+
$this->loadLayout();
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* Set active menu item
|
| 45 |
+
*/
|
| 46 |
+
$this->_setActiveMenu('paybox/question_number');
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* Append numbers block to content
|
| 50 |
+
*/
|
| 51 |
+
$this->_addContent(
|
| 52 |
+
$this->getLayout()->createBlock('paybox/adminhtml_question_number', 'paybox_question_number')
|
| 53 |
+
);
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Add breadcrumb item
|
| 57 |
+
*/
|
| 58 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Paybox'), Mage::helper('adminhtml')->__('Paybox'));
|
| 59 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Question Number'), Mage::helper('adminhtml')->__('Question Number'));
|
| 60 |
+
|
| 61 |
+
$this->renderLayout();
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
public function gridAction() {
|
| 65 |
+
$this->loadLayout();
|
| 66 |
+
$this->getResponse()->setBody(
|
| 67 |
+
$this->getLayout()->createBlock('paybox/adminhtml_question_number_grid')->toHtml()
|
| 68 |
+
);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
}
|
app/code/community/Quadra/Paybox/controllers/SystemController.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,26 +11,23 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
|
|
|
| 17 |
|
| 18 |
-
class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
| 19 |
-
{
|
| 20 |
protected $_payboxResponse = null;
|
| 21 |
protected $_responseStatus = false;
|
| 22 |
protected $_realOrderIds;
|
| 23 |
protected $_quote;
|
| 24 |
|
| 25 |
-
|
| 26 |
-
public function testAction()
|
| 27 |
-
{
|
| 28 |
$model = Mage::getModel('paybox/direct')->setRang(10)->setSiteNumber(999988);
|
| 29 |
echo "test " . $model->getQuestionNumberModel()->getNextQuestionNumber();
|
| 30 |
|
| 31 |
$model->getQuestionNumberModel()
|
| 32 |
-
|
| 33 |
}
|
| 34 |
|
| 35 |
/**
|
|
@@ -37,11 +35,9 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 37 |
*
|
| 38 |
* @return Mage_Sales_Model_Quote
|
| 39 |
*/
|
| 40 |
-
public function getQuote()
|
| 41 |
-
{
|
| 42 |
if (!$this->_quote) {
|
| 43 |
-
$
|
| 44 |
-
$this->_quote = Mage::getModel('sales/quote')->load($session->getPayboxQuoteId());
|
| 45 |
|
| 46 |
if (!$this->_quote->getId()) {
|
| 47 |
$realOrderIds = $this->getRealOrderIds();
|
|
@@ -59,8 +55,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 59 |
*
|
| 60 |
* @return array
|
| 61 |
*/
|
| 62 |
-
public function getRealOrderIds()
|
| 63 |
-
{
|
| 64 |
if (!$this->_realOrderIds) {
|
| 65 |
if ($this->_payboxResponse) {
|
| 66 |
$this->_realOrderIds = explode(',', $this->_payboxResponse['ref']);
|
|
@@ -71,8 +66,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 71 |
return $this->_realOrderIds;
|
| 72 |
}
|
| 73 |
|
| 74 |
-
public function getBaseGrandTotal()
|
| 75 |
-
{
|
| 76 |
if ($this->getQuote()->getIsMultiShipping())
|
| 77 |
return $this->getQuote()->getBaseGrandTotal();
|
| 78 |
else {
|
|
@@ -92,8 +86,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 92 |
* @param array $response
|
| 93 |
* @return object $this
|
| 94 |
*/
|
| 95 |
-
protected function setPayboxResponse($response)
|
| 96 |
-
{
|
| 97 |
if (count($response)) {
|
| 98 |
$this->_payboxResponse = $response;
|
| 99 |
}
|
|
@@ -105,8 +98,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 105 |
*
|
| 106 |
* @return Quadra_Paybox_Model_System
|
| 107 |
*/
|
| 108 |
-
public function getModel()
|
| 109 |
-
{
|
| 110 |
return Mage::getSingleton('paybox/system');
|
| 111 |
}
|
| 112 |
|
|
@@ -115,8 +107,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 115 |
*
|
| 116 |
* @return Mage_Checkout_Model_Session
|
| 117 |
*/
|
| 118 |
-
public function getCheckout()
|
| 119 |
-
{
|
| 120 |
return Mage::getSingleton('checkout/session');
|
| 121 |
}
|
| 122 |
|
|
@@ -124,8 +115,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 124 |
* Redirect action. Redirect customer to Paybox
|
| 125 |
*
|
| 126 |
*/
|
| 127 |
-
public function redirectAction()
|
| 128 |
-
{
|
| 129 |
$session = $this->getCheckout();
|
| 130 |
$session->setPayboxQuoteId($session->getLastQuoteId());
|
| 131 |
|
|
@@ -143,16 +133,16 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 143 |
|
| 144 |
$session->setPayboxOrderId(Mage::helper('core')->encrypt(implode(',', $realOrderIds)));
|
| 145 |
$session->setPayboxPaymentAction(
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
);
|
| 150 |
|
| 151 |
$this->getResponse()->setBody(
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
);
|
| 157 |
|
| 158 |
$session->unsQuoteId();
|
|
@@ -161,8 +151,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 161 |
/**
|
| 162 |
* Customer returning to this action if payment was successe
|
| 163 |
*/
|
| 164 |
-
public function successAction()
|
| 165 |
-
{
|
| 166 |
$model = $this->getModel();
|
| 167 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 168 |
|
|
@@ -174,7 +163,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 174 |
|
| 175 |
if ((int) ($this->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
|
| 176 |
$erreur = $this->__('Amount is not match.');
|
| 177 |
-
$erreur .= (int) ($
|
| 178 |
}
|
| 179 |
|
| 180 |
if ($this->getQuote()->getIsMultiShipping())
|
|
@@ -205,30 +194,14 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 205 |
|
| 206 |
if ($this->getQuote()->getIsMultiShipping()) {
|
| 207 |
Mage::getSingleton('checkout/type_multishipping')
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
|
| 212 |
Mage::getSingleton('core/session')->setOrderIds($orderIds);
|
| 213 |
Mage::getSingleton('checkout/session')->setIsMultishipping(true);
|
| 214 |
}
|
| 215 |
|
| 216 |
-
/* if ($this->getCheckout()->getPayboxPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
|
| 217 |
-
$this->getCheckout()->unsPayboxPaymentAction();
|
| 218 |
-
$order->getPayment()
|
| 219 |
-
->getMethodInstance()
|
| 220 |
-
->setTransactionId($this->_payboxResponse['trans']);
|
| 221 |
-
|
| 222 |
-
// Faut-il créer la facture
|
| 223 |
-
if ($model->getConfigData('invoice_create')) {
|
| 224 |
-
if ($this->_createInvoice($order)) {
|
| 225 |
-
$order->addStatusToHistory($order->getStatus(), $this->__('Invoice was create successfully'));
|
| 226 |
-
} else {
|
| 227 |
-
$order->addStatusToHistory($order->getStatus(), $this->__('Cann\'t create invoice'));
|
| 228 |
-
}
|
| 229 |
-
}
|
| 230 |
-
} */
|
| 231 |
-
|
| 232 |
$session = $this->getCheckout();
|
| 233 |
$session->setQuoteId($session->getPayboxQuoteId(true));
|
| 234 |
$session->getQuote()->setIsActive(false)->save();
|
|
@@ -245,8 +218,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 245 |
/**
|
| 246 |
* Action when payment was refused by Paybox
|
| 247 |
*/
|
| 248 |
-
public function refuseAction()
|
| 249 |
-
{
|
| 250 |
$model = $this->getModel();
|
| 251 |
|
| 252 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
|
@@ -254,25 +226,22 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 254 |
$this->getCheckout()->unsPayboxQuoteId();
|
| 255 |
$this->getCheckout()->setPayboxErrorMessage($this->__('Order was canceled by Paybox'));
|
| 256 |
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
}
|
| 261 |
-
|
| 262 |
-
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 263 |
-
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 264 |
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
|
|
|
|
|
|
|
|
|
| 273 |
}
|
| 274 |
-
|
| 275 |
-
$order->save();
|
| 276 |
}
|
| 277 |
|
| 278 |
if (!$model->getConfigData('empty_cart')) {
|
|
@@ -289,8 +258,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 289 |
/**
|
| 290 |
* Action when customer cancels payment or press button to back to shop
|
| 291 |
*/
|
| 292 |
-
public function declineAction()
|
| 293 |
-
{
|
| 294 |
$model = $this->getModel();
|
| 295 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 296 |
|
|
@@ -300,7 +268,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 300 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 301 |
|
| 302 |
$order->addStatusToHistory(
|
| 303 |
-
$model->getConfigData('order_status_payment_canceled'),
|
|
|
|
| 304 |
);
|
| 305 |
|
| 306 |
if ($model->getConfigData('order_status_payment_canceled') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
|
|
@@ -336,8 +305,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 336 |
* Redirect action. Redirect to Paybox using commandline mode
|
| 337 |
*
|
| 338 |
*/
|
| 339 |
-
public function commandlineAction()
|
| 340 |
-
{
|
| 341 |
$session = $this->getCheckout();
|
| 342 |
$session->setPayboxQuoteId($session->getQuoteId());
|
| 343 |
|
|
@@ -349,7 +317,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 349 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 350 |
$order->loadByIncrementId($realOrderId);
|
| 351 |
$order->addStatusToHistory(
|
| 352 |
-
|
| 353 |
);
|
| 354 |
$order->save();
|
| 355 |
|
|
@@ -360,7 +328,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 360 |
if ($this->getQuote()->getIsMultiShipping()) {
|
| 361 |
|
| 362 |
Mage::getSingleton('checkout/type_multishipping')
|
| 363 |
-
|
| 364 |
->setDisplaySuccess(true)
|
| 365 |
->setPayboxResponseCode('commandLine');
|
| 366 |
|
|
@@ -370,9 +338,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 370 |
|
| 371 |
|
| 372 |
$session->setPayboxOrderId(Mage::helper('core')->encrypt($session->getLastRealOrderId()));
|
| 373 |
-
$session->setPayboxPaymentAction(
|
| 374 |
-
$order->getPayment()->getMethodInstance()->getPaymentAction()
|
| 375 |
-
);
|
| 376 |
|
| 377 |
$session->unsQuoteId();
|
| 378 |
|
|
@@ -407,8 +373,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 407 |
* Error action. If request params to Paybox has mistakes
|
| 408 |
*
|
| 409 |
*/
|
| 410 |
-
public function errorAction()
|
| 411 |
-
{
|
| 412 |
if (!$this->getCheckout()->getPayboxQuoteId()) {
|
| 413 |
$this->norouteAction();
|
| 414 |
return;
|
|
@@ -430,9 +395,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 430 |
$this->loadLayout();
|
| 431 |
|
| 432 |
$this->getCheckout()
|
| 433 |
-
|
| 434 |
-
$this->getRequest()->getParam('NUMERR')
|
| 435 |
-
);
|
| 436 |
|
| 437 |
$this->renderLayout();
|
| 438 |
}
|
|
@@ -442,8 +405,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 442 |
* Displaying information if customer was redirecting to cancel or decline actions
|
| 443 |
*
|
| 444 |
*/
|
| 445 |
-
public function failureAction()
|
| 446 |
-
{
|
| 447 |
if (!$this->getCheckout()->getPayboxErrorMessage()) {
|
| 448 |
$this->norouteAction();
|
| 449 |
return;
|
|
@@ -458,8 +420,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 458 |
*
|
| 459 |
* @return unknown
|
| 460 |
*/
|
| 461 |
-
protected function _checkResponse()
|
| 462 |
-
{
|
| 463 |
if (!$this->getCheckout()->getPayboxQuoteId()) {
|
| 464 |
$this->norouteAction();
|
| 465 |
return;
|
|
@@ -493,8 +454,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 493 |
* @param Mage_Sales_Model_Order $order
|
| 494 |
* @return bool
|
| 495 |
*/
|
| 496 |
-
protected function _createInvoice(Mage_Sales_Model_Order $order)
|
| 497 |
-
{
|
| 498 |
if ($order->canInvoice()) {
|
| 499 |
$invoice = $order->prepareInvoice();
|
| 500 |
$invoice->register()->capture();
|
|
@@ -507,8 +467,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 507 |
return false;
|
| 508 |
}
|
| 509 |
|
| 510 |
-
protected function _getSuccessRedirect()
|
| 511 |
-
{
|
| 512 |
if ($this->getQuote()->getIsMultiShipping())
|
| 513 |
return 'checkout/multishipping/success';
|
| 514 |
else
|
|
@@ -521,16 +480,13 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 521 |
* @param none
|
| 522 |
* @return void
|
| 523 |
*/
|
| 524 |
-
public function notifyAction()
|
| 525 |
-
{
|
| 526 |
$model = $this->getModel();
|
| 527 |
-
|
| 528 |
$params = $this->getRequest()->getParams();
|
| 529 |
$this->setPayboxResponse($params);
|
| 530 |
|
| 531 |
// Vérification des adresses IP des serveurs Paybox
|
| 532 |
$unauthorized_server = false;
|
| 533 |
-
|
| 534 |
if ($model->getConfigData('pbx_check_ip')) {
|
| 535 |
$authorized_ips = $model->getAuthorizedIps();
|
| 536 |
$unauthorized_server = true;
|
|
@@ -548,7 +504,6 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 548 |
|
| 549 |
if (!$unauthorized_server) {
|
| 550 |
try {
|
| 551 |
-
|
| 552 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 553 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 554 |
|
|
@@ -585,20 +540,16 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 585 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 586 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 587 |
$order->addStatusToHistory($order->getStatus(), $this->__('Error in order validation %s', $e->getMessage()))
|
| 588 |
-
|
| 589 |
}
|
| 590 |
-
|
| 591 |
-
$this->loadLayout();
|
| 592 |
-
$this->renderLayout();
|
| 593 |
}
|
| 594 |
} else {
|
| 595 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 596 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 597 |
$order->addStatusToHistory($order->getStatus(), $this->__('Error bad IP : %s', $_SERVER['REMOTE_ADDR']))
|
| 598 |
-
|
| 599 |
}
|
| 600 |
}
|
| 601 |
-
|
| 602 |
$this->loadLayout();
|
| 603 |
$this->renderLayout();
|
| 604 |
}
|
|
@@ -614,14 +565,15 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 614 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'));
|
| 615 |
} else {
|
| 616 |
$order->addStatusToHistory(
|
| 617 |
-
$model->getConfigData('order_status_payment_accepted'),
|
|
|
|
| 618 |
);
|
| 619 |
}
|
| 620 |
|
| 621 |
if ($order->getPayment()->getMethodInstance()->getPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
|
| 622 |
$order->getPayment()
|
| 623 |
-
|
| 624 |
-
|
| 625 |
|
| 626 |
// Faut-il créer la facture
|
| 627 |
if ($model->getConfigData('invoice_create')) {
|
|
@@ -637,10 +589,9 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 637 |
$order->sendNewOrderEmail();
|
| 638 |
}
|
| 639 |
$order->save();
|
| 640 |
-
|
| 641 |
} else {
|
| 642 |
// Si le client a déjà payé on ne fait aucun traitement
|
| 643 |
-
if ($order->getStatus() == $model->getConfigData('order_status_payment_accepted') && $
|
| 644 |
$order->addStatusToHistory($order->getStatus(), $this->__('Attempt to return to Paybox, action ignored'));
|
| 645 |
exit();
|
| 646 |
}
|
|
@@ -651,24 +602,13 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 651 |
$messageError .= ' - Code Erreur : ' . $this->_payboxResponse['error'];
|
| 652 |
}
|
| 653 |
|
| 654 |
-
$order->
|
| 655 |
-
$model->getConfigData('order_status_payment_refused'), $messageError
|
| 656 |
-
);
|
| 657 |
-
|
| 658 |
-
if ($model->getConfigData('order_status_payment_refused') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
|
| 659 |
-
$order->cancel();
|
| 660 |
-
} else if ($model->getConfigData('order_status_payment_refused') == Mage_Sales_Model_Order::STATE_HOLDED && $order->canHold()) {
|
| 661 |
-
$order->hold();
|
| 662 |
-
}
|
| 663 |
-
|
| 664 |
$order->save();
|
| 665 |
}
|
| 666 |
}
|
| 667 |
|
| 668 |
-
protected function _reorder()
|
| 669 |
-
{
|
| 670 |
$cart = Mage::getSingleton('checkout/cart');
|
| 671 |
-
$cartTruncated = false;
|
| 672 |
/* @var $cart Mage_Checkout_Model_Cart */
|
| 673 |
|
| 674 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
|
@@ -679,17 +619,14 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 679 |
foreach ($items as $item) {
|
| 680 |
try {
|
| 681 |
$cart->addOrderItem($item);
|
| 682 |
-
} catch (Mage_Core_Exception $e){
|
| 683 |
if (Mage::getSingleton('checkout/session')->getUseNotice(true)) {
|
| 684 |
Mage::getSingleton('checkout/session')->addNotice($e->getMessage());
|
| 685 |
-
}
|
| 686 |
-
else {
|
| 687 |
Mage::getSingleton('checkout/session')->addError($e->getMessage());
|
| 688 |
}
|
| 689 |
} catch (Exception $e) {
|
| 690 |
-
Mage::getSingleton('checkout/session')->addException($e,
|
| 691 |
-
Mage::helper('checkout')->__('Cannot add the item to shopping cart.')
|
| 692 |
-
);
|
| 693 |
}
|
| 694 |
}
|
| 695 |
}
|
|
@@ -697,4 +634,5 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
|
| 697 |
|
| 698 |
$cart->save();
|
| 699 |
}
|
|
|
|
| 700 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
+
class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
| 19 |
|
|
|
|
|
|
|
| 20 |
protected $_payboxResponse = null;
|
| 21 |
protected $_responseStatus = false;
|
| 22 |
protected $_realOrderIds;
|
| 23 |
protected $_quote;
|
| 24 |
|
| 25 |
+
public function testAction() {
|
|
|
|
|
|
|
| 26 |
$model = Mage::getModel('paybox/direct')->setRang(10)->setSiteNumber(999988);
|
| 27 |
echo "test " . $model->getQuestionNumberModel()->getNextQuestionNumber();
|
| 28 |
|
| 29 |
$model->getQuestionNumberModel()
|
| 30 |
+
->increaseQuestionNumber();
|
| 31 |
}
|
| 32 |
|
| 33 |
/**
|
| 35 |
*
|
| 36 |
* @return Mage_Sales_Model_Quote
|
| 37 |
*/
|
| 38 |
+
public function getQuote() {
|
|
|
|
| 39 |
if (!$this->_quote) {
|
| 40 |
+
$this->_quote = Mage::getModel('sales/quote')->load($this->getCheckout()->getPayboxQuoteId());
|
|
|
|
| 41 |
|
| 42 |
if (!$this->_quote->getId()) {
|
| 43 |
$realOrderIds = $this->getRealOrderIds();
|
| 55 |
*
|
| 56 |
* @return array
|
| 57 |
*/
|
| 58 |
+
public function getRealOrderIds() {
|
|
|
|
| 59 |
if (!$this->_realOrderIds) {
|
| 60 |
if ($this->_payboxResponse) {
|
| 61 |
$this->_realOrderIds = explode(',', $this->_payboxResponse['ref']);
|
| 66 |
return $this->_realOrderIds;
|
| 67 |
}
|
| 68 |
|
| 69 |
+
public function getBaseGrandTotal() {
|
|
|
|
| 70 |
if ($this->getQuote()->getIsMultiShipping())
|
| 71 |
return $this->getQuote()->getBaseGrandTotal();
|
| 72 |
else {
|
| 86 |
* @param array $response
|
| 87 |
* @return object $this
|
| 88 |
*/
|
| 89 |
+
protected function setPayboxResponse($response) {
|
|
|
|
| 90 |
if (count($response)) {
|
| 91 |
$this->_payboxResponse = $response;
|
| 92 |
}
|
| 98 |
*
|
| 99 |
* @return Quadra_Paybox_Model_System
|
| 100 |
*/
|
| 101 |
+
public function getModel() {
|
|
|
|
| 102 |
return Mage::getSingleton('paybox/system');
|
| 103 |
}
|
| 104 |
|
| 107 |
*
|
| 108 |
* @return Mage_Checkout_Model_Session
|
| 109 |
*/
|
| 110 |
+
public function getCheckout() {
|
|
|
|
| 111 |
return Mage::getSingleton('checkout/session');
|
| 112 |
}
|
| 113 |
|
| 115 |
* Redirect action. Redirect customer to Paybox
|
| 116 |
*
|
| 117 |
*/
|
| 118 |
+
public function redirectAction() {
|
|
|
|
| 119 |
$session = $this->getCheckout();
|
| 120 |
$session->setPayboxQuoteId($session->getLastQuoteId());
|
| 121 |
|
| 133 |
|
| 134 |
$session->setPayboxOrderId(Mage::helper('core')->encrypt(implode(',', $realOrderIds)));
|
| 135 |
$session->setPayboxPaymentAction(
|
| 136 |
+
$order->getPayment()
|
| 137 |
+
->getMethodInstance()
|
| 138 |
+
->getPaymentAction()
|
| 139 |
);
|
| 140 |
|
| 141 |
$this->getResponse()->setBody(
|
| 142 |
+
$this->getLayout()
|
| 143 |
+
->createBlock('paybox/system_redirect')
|
| 144 |
+
->setOrder($order)
|
| 145 |
+
->toHtml()
|
| 146 |
);
|
| 147 |
|
| 148 |
$session->unsQuoteId();
|
| 151 |
/**
|
| 152 |
* Customer returning to this action if payment was successe
|
| 153 |
*/
|
| 154 |
+
public function successAction() {
|
|
|
|
| 155 |
$model = $this->getModel();
|
| 156 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 157 |
|
| 163 |
|
| 164 |
if ((int) ($this->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
|
| 165 |
$erreur = $this->__('Amount is not match.');
|
| 166 |
+
$erreur .= (int) ($model->getOrder()->getBaseGrandTotal() * 100) . ' != ' . $this->_payboxResponse['amount'];
|
| 167 |
}
|
| 168 |
|
| 169 |
if ($this->getQuote()->getIsMultiShipping())
|
| 194 |
|
| 195 |
if ($this->getQuote()->getIsMultiShipping()) {
|
| 196 |
Mage::getSingleton('checkout/type_multishipping')
|
| 197 |
+
->getCheckoutSession()
|
| 198 |
+
->setDisplaySuccess(true)
|
| 199 |
+
->setPayboxResponseCode('success');
|
| 200 |
|
| 201 |
Mage::getSingleton('core/session')->setOrderIds($orderIds);
|
| 202 |
Mage::getSingleton('checkout/session')->setIsMultishipping(true);
|
| 203 |
}
|
| 204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
$session = $this->getCheckout();
|
| 206 |
$session->setQuoteId($session->getPayboxQuoteId(true));
|
| 207 |
$session->getQuote()->setIsActive(false)->save();
|
| 218 |
/**
|
| 219 |
* Action when payment was refused by Paybox
|
| 220 |
*/
|
| 221 |
+
public function refuseAction() {
|
|
|
|
| 222 |
$model = $this->getModel();
|
| 223 |
|
| 224 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 226 |
$this->getCheckout()->unsPayboxQuoteId();
|
| 227 |
$this->getCheckout()->setPayboxErrorMessage($this->__('Order was canceled by Paybox'));
|
| 228 |
|
| 229 |
+
if ($model->getConfigData('order_status_payment_refused') == Mage_Sales_Model_Order::STATE_CANCELED) {
|
| 230 |
+
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 231 |
+
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
|
| 233 |
+
if ($order->canUnhold()) {
|
| 234 |
+
$order->unhold();
|
| 235 |
+
}
|
| 236 |
|
| 237 |
+
if ($order->canCancel()) {
|
| 238 |
+
$order->addStatusToHistory(
|
| 239 |
+
$model->getConfigData('order_status_payment_canceled'), $this->__('The order was canceled.')
|
| 240 |
+
);
|
| 241 |
+
$order->cancel();
|
| 242 |
+
$order->save();
|
| 243 |
+
}
|
| 244 |
}
|
|
|
|
|
|
|
| 245 |
}
|
| 246 |
|
| 247 |
if (!$model->getConfigData('empty_cart')) {
|
| 258 |
/**
|
| 259 |
* Action when customer cancels payment or press button to back to shop
|
| 260 |
*/
|
| 261 |
+
public function declineAction() {
|
|
|
|
| 262 |
$model = $this->getModel();
|
| 263 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 264 |
|
| 268 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 269 |
|
| 270 |
$order->addStatusToHistory(
|
| 271 |
+
$model->getConfigData('order_status_payment_canceled'),
|
| 272 |
+
$this->__('The order was canceled by the customer.')
|
| 273 |
);
|
| 274 |
|
| 275 |
if ($model->getConfigData('order_status_payment_canceled') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
|
| 305 |
* Redirect action. Redirect to Paybox using commandline mode
|
| 306 |
*
|
| 307 |
*/
|
| 308 |
+
public function commandlineAction() {
|
|
|
|
| 309 |
$session = $this->getCheckout();
|
| 310 |
$session->setPayboxQuoteId($session->getQuoteId());
|
| 311 |
|
| 317 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 318 |
$order->loadByIncrementId($realOrderId);
|
| 319 |
$order->addStatusToHistory(
|
| 320 |
+
$order->getStatus(), $this->__('The customer was redirected to Paybox using \'command line\' mode')
|
| 321 |
);
|
| 322 |
$order->save();
|
| 323 |
|
| 328 |
if ($this->getQuote()->getIsMultiShipping()) {
|
| 329 |
|
| 330 |
Mage::getSingleton('checkout/type_multishipping')
|
| 331 |
+
->getCheckoutSession()
|
| 332 |
->setDisplaySuccess(true)
|
| 333 |
->setPayboxResponseCode('commandLine');
|
| 334 |
|
| 338 |
|
| 339 |
|
| 340 |
$session->setPayboxOrderId(Mage::helper('core')->encrypt($session->getLastRealOrderId()));
|
| 341 |
+
$session->setPayboxPaymentAction($order->getPayment()->getMethodInstance()->getPaymentAction());
|
|
|
|
|
|
|
| 342 |
|
| 343 |
$session->unsQuoteId();
|
| 344 |
|
| 373 |
* Error action. If request params to Paybox has mistakes
|
| 374 |
*
|
| 375 |
*/
|
| 376 |
+
public function errorAction() {
|
|
|
|
| 377 |
if (!$this->getCheckout()->getPayboxQuoteId()) {
|
| 378 |
$this->norouteAction();
|
| 379 |
return;
|
| 395 |
$this->loadLayout();
|
| 396 |
|
| 397 |
$this->getCheckout()
|
| 398 |
+
->setPayboxErrorNumber($this->getRequest()->getParam('NUMERR'));
|
|
|
|
|
|
|
| 399 |
|
| 400 |
$this->renderLayout();
|
| 401 |
}
|
| 405 |
* Displaying information if customer was redirecting to cancel or decline actions
|
| 406 |
*
|
| 407 |
*/
|
| 408 |
+
public function failureAction() {
|
|
|
|
| 409 |
if (!$this->getCheckout()->getPayboxErrorMessage()) {
|
| 410 |
$this->norouteAction();
|
| 411 |
return;
|
| 420 |
*
|
| 421 |
* @return unknown
|
| 422 |
*/
|
| 423 |
+
protected function _checkResponse() {
|
|
|
|
| 424 |
if (!$this->getCheckout()->getPayboxQuoteId()) {
|
| 425 |
$this->norouteAction();
|
| 426 |
return;
|
| 454 |
* @param Mage_Sales_Model_Order $order
|
| 455 |
* @return bool
|
| 456 |
*/
|
| 457 |
+
protected function _createInvoice(Mage_Sales_Model_Order $order) {
|
|
|
|
| 458 |
if ($order->canInvoice()) {
|
| 459 |
$invoice = $order->prepareInvoice();
|
| 460 |
$invoice->register()->capture();
|
| 467 |
return false;
|
| 468 |
}
|
| 469 |
|
| 470 |
+
protected function _getSuccessRedirect() {
|
|
|
|
| 471 |
if ($this->getQuote()->getIsMultiShipping())
|
| 472 |
return 'checkout/multishipping/success';
|
| 473 |
else
|
| 480 |
* @param none
|
| 481 |
* @return void
|
| 482 |
*/
|
| 483 |
+
public function notifyAction() {
|
|
|
|
| 484 |
$model = $this->getModel();
|
|
|
|
| 485 |
$params = $this->getRequest()->getParams();
|
| 486 |
$this->setPayboxResponse($params);
|
| 487 |
|
| 488 |
// Vérification des adresses IP des serveurs Paybox
|
| 489 |
$unauthorized_server = false;
|
|
|
|
| 490 |
if ($model->getConfigData('pbx_check_ip')) {
|
| 491 |
$authorized_ips = $model->getAuthorizedIps();
|
| 492 |
$unauthorized_server = true;
|
| 504 |
|
| 505 |
if (!$unauthorized_server) {
|
| 506 |
try {
|
|
|
|
| 507 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 508 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 509 |
|
| 540 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 541 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 542 |
$order->addStatusToHistory($order->getStatus(), $this->__('Error in order validation %s', $e->getMessage()))
|
| 543 |
+
->save();
|
| 544 |
}
|
|
|
|
|
|
|
|
|
|
| 545 |
}
|
| 546 |
} else {
|
| 547 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 548 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 549 |
$order->addStatusToHistory($order->getStatus(), $this->__('Error bad IP : %s', $_SERVER['REMOTE_ADDR']))
|
| 550 |
+
->save();
|
| 551 |
}
|
| 552 |
}
|
|
|
|
| 553 |
$this->loadLayout();
|
| 554 |
$this->renderLayout();
|
| 555 |
}
|
| 565 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'));
|
| 566 |
} else {
|
| 567 |
$order->addStatusToHistory(
|
| 568 |
+
$model->getConfigData('order_status_payment_accepted'),
|
| 569 |
+
$this->__('Payment accepted by Paybox'), true
|
| 570 |
);
|
| 571 |
}
|
| 572 |
|
| 573 |
if ($order->getPayment()->getMethodInstance()->getPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
|
| 574 |
$order->getPayment()
|
| 575 |
+
->getMethodInstance()
|
| 576 |
+
->setTransactionId($this->_payboxResponse['trans']);
|
| 577 |
|
| 578 |
// Faut-il créer la facture
|
| 579 |
if ($model->getConfigData('invoice_create')) {
|
| 589 |
$order->sendNewOrderEmail();
|
| 590 |
}
|
| 591 |
$order->save();
|
|
|
|
| 592 |
} else {
|
| 593 |
// Si le client a déjà payé on ne fait aucun traitement
|
| 594 |
+
if ($order->getStatus() == $model->getConfigData('order_status_payment_accepted') && $this->getCheckout()->getQuote()->getIsActive() == false) {
|
| 595 |
$order->addStatusToHistory($order->getStatus(), $this->__('Attempt to return to Paybox, action ignored'));
|
| 596 |
exit();
|
| 597 |
}
|
| 602 |
$messageError .= ' - Code Erreur : ' . $this->_payboxResponse['error'];
|
| 603 |
}
|
| 604 |
|
| 605 |
+
$order->setState(Mage_Sales_Model_Order::STATE_HOLDED, Mage_Sales_Model_Order::STATE_HOLDED, $messageError);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 606 |
$order->save();
|
| 607 |
}
|
| 608 |
}
|
| 609 |
|
| 610 |
+
protected function _reorder() {
|
|
|
|
| 611 |
$cart = Mage::getSingleton('checkout/cart');
|
|
|
|
| 612 |
/* @var $cart Mage_Checkout_Model_Cart */
|
| 613 |
|
| 614 |
foreach ($this->getRealOrderIds() as $realOrderId) {
|
| 619 |
foreach ($items as $item) {
|
| 620 |
try {
|
| 621 |
$cart->addOrderItem($item);
|
| 622 |
+
} catch (Mage_Core_Exception $e) {
|
| 623 |
if (Mage::getSingleton('checkout/session')->getUseNotice(true)) {
|
| 624 |
Mage::getSingleton('checkout/session')->addNotice($e->getMessage());
|
| 625 |
+
} else {
|
|
|
|
| 626 |
Mage::getSingleton('checkout/session')->addError($e->getMessage());
|
| 627 |
}
|
| 628 |
} catch (Exception $e) {
|
| 629 |
+
Mage::getSingleton('checkout/session')->addException($e, Mage::helper('checkout')->__('Cannot add the item to shopping cart.'));
|
|
|
|
|
|
|
| 630 |
}
|
| 631 |
}
|
| 632 |
}
|
| 634 |
|
| 635 |
$cart->save();
|
| 636 |
}
|
| 637 |
+
|
| 638 |
}
|
app/code/community/Quadra/Paybox/etc/config.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
-
|
| 4 |
-
* 1997-
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
|
@@ -11,18 +11,28 @@
|
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
-
* @copyright 1997-
|
| 15 |
-
* @version Release: $Revision: 2.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<config>
|
| 20 |
<modules>
|
| 21 |
<Quadra_Paybox>
|
| 22 |
-
<version>2.1.
|
| 23 |
</Quadra_Paybox>
|
| 24 |
</modules>
|
| 25 |
<global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
<models>
|
| 27 |
<paybox>
|
| 28 |
<class>Quadra_Paybox_Model</class>
|
|
@@ -37,19 +47,15 @@
|
|
| 37 |
<question_number>
|
| 38 |
<table>paybox_question_number</table>
|
| 39 |
</question_number>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
</entities>
|
| 41 |
</paybox_mysql4>
|
| 42 |
</models>
|
| 43 |
-
<blocks>
|
| 44 |
-
<paybox>
|
| 45 |
-
<class>Quadra_Paybox_Block</class>
|
| 46 |
-
</paybox>
|
| 47 |
-
</blocks>
|
| 48 |
-
<helpers>
|
| 49 |
-
<paybox>
|
| 50 |
-
<class>Quadra_Paybox_Helper</class>
|
| 51 |
-
</paybox>
|
| 52 |
-
</helpers>
|
| 53 |
<resources>
|
| 54 |
<paybox_setup>
|
| 55 |
<setup>
|
|
@@ -72,6 +78,17 @@
|
|
| 72 |
</paybox_read>
|
| 73 |
</resources>
|
| 74 |
</global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
<frontend>
|
| 76 |
<layout>
|
| 77 |
<updates>
|
|
@@ -129,6 +146,24 @@
|
|
| 129 |
</events>
|
| 130 |
</frontend>
|
| 131 |
<adminhtml>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
<acl>
|
| 133 |
<resources>
|
| 134 |
<admin>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.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 |
<Quadra_Paybox>
|
| 22 |
+
<version>2.1.1</version>
|
| 23 |
</Quadra_Paybox>
|
| 24 |
</modules>
|
| 25 |
<global>
|
| 26 |
+
<blocks>
|
| 27 |
+
<paybox>
|
| 28 |
+
<class>Quadra_Paybox_Block</class>
|
| 29 |
+
</paybox>
|
| 30 |
+
</blocks>
|
| 31 |
+
<helpers>
|
| 32 |
+
<paybox>
|
| 33 |
+
<class>Quadra_Paybox_Helper</class>
|
| 34 |
+
</paybox>
|
| 35 |
+
</helpers>
|
| 36 |
<models>
|
| 37 |
<paybox>
|
| 38 |
<class>Quadra_Paybox_Model</class>
|
| 47 |
<question_number>
|
| 48 |
<table>paybox_question_number</table>
|
| 49 |
</question_number>
|
| 50 |
+
<log_request>
|
| 51 |
+
<table>paybox_system_log_request</table>
|
| 52 |
+
</log_request>
|
| 53 |
+
<log_response>
|
| 54 |
+
<table>payblox_system_log_response</table>
|
| 55 |
+
</log_response>
|
| 56 |
</entities>
|
| 57 |
</paybox_mysql4>
|
| 58 |
</models>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
<resources>
|
| 60 |
<paybox_setup>
|
| 61 |
<setup>
|
| 78 |
</paybox_read>
|
| 79 |
</resources>
|
| 80 |
</global>
|
| 81 |
+
<admin>
|
| 82 |
+
<routers>
|
| 83 |
+
<adminhtml>
|
| 84 |
+
<args>
|
| 85 |
+
<modules>
|
| 86 |
+
<Quadra_Paybox before="Mage_Adminhtml">Quadra_Paybox_Adminhtml</Quadra_Paybox>
|
| 87 |
+
</modules>
|
| 88 |
+
</args>
|
| 89 |
+
</adminhtml>
|
| 90 |
+
</routers>
|
| 91 |
+
</admin>
|
| 92 |
<frontend>
|
| 93 |
<layout>
|
| 94 |
<updates>
|
| 146 |
</events>
|
| 147 |
</frontend>
|
| 148 |
<adminhtml>
|
| 149 |
+
<menu>
|
| 150 |
+
<paybox translate="title">
|
| 151 |
+
<title>Paybox</title>
|
| 152 |
+
<sort_order>300</sort_order>
|
| 153 |
+
<children>
|
| 154 |
+
<api_debug translate="title">
|
| 155 |
+
<title>Api Debug</title>
|
| 156 |
+
<sort_order>10</sort_order>
|
| 157 |
+
<action>adminhtml/api_debug</action>
|
| 158 |
+
</api_debug>
|
| 159 |
+
<question_number translate="title">
|
| 160 |
+
<title>Question Number</title>
|
| 161 |
+
<sort_order>20</sort_order>
|
| 162 |
+
<action>adminhtml/question_number</action>
|
| 163 |
+
</question_number>
|
| 164 |
+
</children>
|
| 165 |
+
</paybox>
|
| 166 |
+
</menu>
|
| 167 |
<acl>
|
| 168 |
<resources>
|
| 169 |
<admin>
|
app/code/community/Quadra/Paybox/etc/currency.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
-
|
| 4 |
-
* 1997-
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
|
@@ -11,8 +11,8 @@
|
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
-
* @copyright 1997-
|
| 15 |
-
* @version Release: $Revision: 2.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
app/code/community/Quadra/Paybox/etc/system.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
-
|
| 4 |
-
* 1997-
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
|
@@ -11,8 +11,8 @@
|
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
-
* @copyright 1997-
|
| 15 |
-
* @version Release: $Revision: 2.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
|
@@ -195,7 +195,7 @@
|
|
| 195 |
<order_status translate="label">
|
| 196 |
<label>New order status</label>
|
| 197 |
<frontend_type>select</frontend_type>
|
| 198 |
-
<source_model>
|
| 199 |
<sort_order>320</sort_order>
|
| 200 |
<show_in_default>1</show_in_default>
|
| 201 |
<show_in_website>1</show_in_website>
|
|
@@ -204,7 +204,7 @@
|
|
| 204 |
<order_status_payment_accepted translate="label">
|
| 205 |
<label>Order status when payment accepted by Paybox</label>
|
| 206 |
<frontend_type>select</frontend_type>
|
| 207 |
-
<source_model>
|
| 208 |
<sort_order>321</sort_order>
|
| 209 |
<show_in_default>1</show_in_default>
|
| 210 |
<show_in_website>1</show_in_website>
|
|
@@ -213,7 +213,7 @@
|
|
| 213 |
<order_status_payment_refused translate="label">
|
| 214 |
<label>Order status when payment refused by Paybox</label>
|
| 215 |
<frontend_type>select</frontend_type>
|
| 216 |
-
<source_model>paybox/
|
| 217 |
<sort_order>322</sort_order>
|
| 218 |
<show_in_default>1</show_in_default>
|
| 219 |
<show_in_website>1</show_in_website>
|
|
@@ -222,7 +222,7 @@
|
|
| 222 |
<order_status_payment_canceled translate="label">
|
| 223 |
<label>Order status when payment canceled by customer</label>
|
| 224 |
<frontend_type>select</frontend_type>
|
| 225 |
-
<source_model>
|
| 226 |
<sort_order>323</sort_order>
|
| 227 |
<show_in_default>1</show_in_default>
|
| 228 |
<show_in_website>1</show_in_website>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 195 |
<order_status translate="label">
|
| 196 |
<label>New order status</label>
|
| 197 |
<frontend_type>select</frontend_type>
|
| 198 |
+
<source_model>paybox/system_config_source_order_status_new</source_model>
|
| 199 |
<sort_order>320</sort_order>
|
| 200 |
<show_in_default>1</show_in_default>
|
| 201 |
<show_in_website>1</show_in_website>
|
| 204 |
<order_status_payment_accepted translate="label">
|
| 205 |
<label>Order status when payment accepted by Paybox</label>
|
| 206 |
<frontend_type>select</frontend_type>
|
| 207 |
+
<source_model>paybox/system_config_source_order_status_accepted</source_model>
|
| 208 |
<sort_order>321</sort_order>
|
| 209 |
<show_in_default>1</show_in_default>
|
| 210 |
<show_in_website>1</show_in_website>
|
| 213 |
<order_status_payment_refused translate="label">
|
| 214 |
<label>Order status when payment refused by Paybox</label>
|
| 215 |
<frontend_type>select</frontend_type>
|
| 216 |
+
<source_model>paybox/system_config_source_order_status_refused</source_model>
|
| 217 |
<sort_order>322</sort_order>
|
| 218 |
<show_in_default>1</show_in_default>
|
| 219 |
<show_in_website>1</show_in_website>
|
| 222 |
<order_status_payment_canceled translate="label">
|
| 223 |
<label>Order status when payment canceled by customer</label>
|
| 224 |
<frontend_type>select</frontend_type>
|
| 225 |
+
<source_model>paybox/system_config_source_order_status_canceled</source_model>
|
| 226 |
<sort_order>323</sort_order>
|
| 227 |
<show_in_default>1</show_in_default>
|
| 228 |
<show_in_website>1</show_in_website>
|
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-install-0.1.0.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +11,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
|
|
@@ -20,7 +21,6 @@ $installer = $this;
|
|
| 20 |
$installer->startSetup();
|
| 21 |
|
| 22 |
$installer->run("
|
| 23 |
-
|
| 24 |
DROP TABLE IF EXISTS `{$this->getTable('paybox/api_debug')}`;
|
| 25 |
CREATE TABLE `{$this->getTable('paybox/api_debug')}` (
|
| 26 |
`debug_id` int(10) unsigned NOT NULL auto_increment,
|
|
@@ -31,7 +31,6 @@ CREATE TABLE `{$this->getTable('paybox/api_debug')}` (
|
|
| 31 |
PRIMARY KEY (`debug_id`),
|
| 32 |
KEY `debug_at` (`debug_at`)
|
| 33 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
| 34 |
-
|
| 35 |
");
|
| 36 |
|
| 37 |
$installer->endSetup();
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
|
| 21 |
$installer->startSetup();
|
| 22 |
|
| 23 |
$installer->run("
|
|
|
|
| 24 |
DROP TABLE IF EXISTS `{$this->getTable('paybox/api_debug')}`;
|
| 25 |
CREATE TABLE `{$this->getTable('paybox/api_debug')}` (
|
| 26 |
`debug_id` int(10) unsigned NOT NULL auto_increment,
|
| 31 |
PRIMARY KEY (`debug_id`),
|
| 32 |
KEY `debug_at` (`debug_at`)
|
| 33 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
| 34 |
");
|
| 35 |
|
| 36 |
$installer->endSetup();
|
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.0-0.1.1.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +11,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
|
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.1-0.1.2.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +11,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
|
|
@@ -21,7 +22,6 @@ $installer = $this;
|
|
| 21 |
$installer->startSetup();
|
| 22 |
|
| 23 |
$installer->run("
|
| 24 |
-
|
| 25 |
DROP TABLE IF EXISTS `{$this->getTable('paybox/question_number')}`;
|
| 26 |
CREATE TABLE `{$this->getTable('paybox/question_number')}` (
|
| 27 |
`account_id` int(10) unsigned NOT NULL auto_increment,
|
|
@@ -30,7 +30,6 @@ CREATE TABLE `{$this->getTable('paybox/question_number')}` (
|
|
| 30 |
`reset_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
| 31 |
PRIMARY KEY (`account_id`)
|
| 32 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
| 33 |
-
|
| 34 |
");
|
| 35 |
|
| 36 |
$installer->endSetup();
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
|
| 22 |
$installer->startSetup();
|
| 23 |
|
| 24 |
$installer->run("
|
|
|
|
| 25 |
DROP TABLE IF EXISTS `{$this->getTable('paybox/question_number')}`;
|
| 26 |
CREATE TABLE `{$this->getTable('paybox/question_number')}` (
|
| 27 |
`account_id` int(10) unsigned NOT NULL auto_increment,
|
| 30 |
`reset_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
| 31 |
PRIMARY KEY (`account_id`)
|
| 32 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
| 33 |
");
|
| 34 |
|
| 35 |
$installer->endSetup();
|
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.2-0.1.3.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +11,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
|
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-1.2.4-1.2.5.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +11,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
|
|
@@ -20,7 +21,7 @@ $installer = $this;
|
|
| 20 |
$installer->startSetup();
|
| 21 |
|
| 22 |
$installer->run("
|
| 23 |
-
ALTER TABLE `{$this->getTable('paybox/question_number')}` ENGINE=MYISAM;
|
| 24 |
");
|
| 25 |
|
| 26 |
$installer->endSetup();
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
|
| 21 |
$installer->startSetup();
|
| 22 |
|
| 23 |
$installer->run("
|
| 24 |
+
ALTER TABLE `{$this->getTable('paybox/question_number')}` ENGINE=MYISAM;
|
| 25 |
");
|
| 26 |
|
| 27 |
$installer->endSetup();
|
app/design/adminhtml/default/default/template/paybox/adminhtml/cart/type/select.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
app/design/adminhtml/default/default/template/paybox/direct/form.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
app/design/adminhtml/default/default/template/paybox/direct/info.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
app/design/adminhtml/default/default/template/paybox/direct/pdf/info.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
app/design/frontend/default/default/layout/paybox.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
-
|
| 4 |
-
* 1997-
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
|
@@ -11,46 +11,46 @@
|
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
-
* @copyright 1997-
|
| 15 |
-
* @version Release: $Revision: 2.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
-
<layout version="0.1.0">
|
| 20 |
-
<!--
|
| 21 |
-
Paybox Failure Response Review
|
| 22 |
-
-->
|
| 23 |
-
<paybox_system_failure>
|
| 24 |
-
<reference name="root">
|
| 25 |
-
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
| 26 |
-
</reference>
|
| 27 |
-
<reference name="content">
|
| 28 |
-
<block type="paybox/system_failure" name="paybox_system_failure" template="paybox/system/error.phtml">
|
| 29 |
-
</block>
|
| 30 |
-
</reference>
|
| 31 |
-
</paybox_system_failure>
|
| 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 |
</layout>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
<layout version="0.1.0">
|
| 21 |
+
<!--
|
| 22 |
+
Paybox Failure Response Review
|
| 23 |
+
-->
|
| 24 |
+
<paybox_system_failure>
|
| 25 |
+
<reference name="root">
|
| 26 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
| 27 |
+
</reference>
|
| 28 |
+
<reference name="content">
|
| 29 |
+
<block type="paybox/system_failure" name="paybox_system_failure" template="paybox/system/error.phtml">
|
| 30 |
+
</block>
|
| 31 |
+
</reference>
|
| 32 |
+
</paybox_system_failure>
|
| 33 |
|
| 34 |
+
<!--
|
| 35 |
+
Paybox errro page
|
| 36 |
+
-->
|
| 37 |
+
<paybox_system_error>
|
| 38 |
+
<reference name="root">
|
| 39 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
| 40 |
+
</reference>
|
| 41 |
+
<reference name="content">
|
| 42 |
+
<block type="paybox/system_error" name="paybox_system_error" template="paybox/system/error.phtml">
|
| 43 |
+
</block>
|
| 44 |
+
</reference>
|
| 45 |
+
</paybox_system_error>
|
| 46 |
|
| 47 |
+
<paybox_system_notify>
|
| 48 |
+
<reference name="root">
|
| 49 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
| 50 |
+
</reference>
|
| 51 |
+
<reference name="content">
|
| 52 |
+
<block type="paybox/system_failure" name="paybox_system_notify" template="paybox/system/notify.phtml">
|
| 53 |
+
</block>
|
| 54 |
+
</reference>
|
| 55 |
+
</paybox_system_notify>
|
| 56 |
</layout>
|
app/design/frontend/default/default/template/paybox/direct/form.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
|
@@ -20,7 +20,7 @@ Validation.creditCartTypes.JCB = [new RegExp('^(35[0-9]{14}|(2131|1800)[0-9]{11}
|
|
| 20 |
Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|55[0-9]{14})$'), new RegExp('^([0-9]{3})?$'), false];
|
| 21 |
</script>
|
| 22 |
<fieldset class="form-list">
|
| 23 |
-
<?php $_code
|
| 24 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 25 |
<li>
|
| 26 |
<div class="input-box">
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 20 |
Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|55[0-9]{14})$'), new RegExp('^([0-9]{3})?$'), false];
|
| 21 |
</script>
|
| 22 |
<fieldset class="form-list">
|
| 23 |
+
<?php $_code = $this->getMethodCode() ?>
|
| 24 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 25 |
<li>
|
| 26 |
<div class="input-box">
|
app/design/frontend/default/default/template/paybox/direct/info.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,17 +10,15 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
-
<?php if($
|
| 19 |
-
<?php echo $this->getMethod()->getTitle() ?><br />
|
| 20 |
-
<?php echo $this->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br />
|
| 21 |
-
<?php echo $this->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?><br />
|
| 22 |
-
<?php echo $this->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br />
|
| 23 |
-
<?php echo $this->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
|
| 24 |
-
<?php else: ?>
|
| 25 |
-
|
| 26 |
<?php endif; ?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
+
<?php if($this->getInfo()): ?>
|
| 19 |
+
<?php echo $this->getMethod()->getTitle() ?><br />
|
| 20 |
+
<?php echo $this->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br />
|
| 21 |
+
<?php echo $this->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?><br />
|
| 22 |
+
<?php echo $this->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br />
|
| 23 |
+
<?php echo $this->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
|
|
|
|
|
|
|
| 24 |
<?php endif; ?>
|
app/design/frontend/default/default/template/paybox/system/error.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
app/design/frontend/default/default/template/paybox/system/form.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
app/design/frontend/default/default/template/paybox/system/notify.phtml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
-
* 1997-
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -10,8 +10,8 @@
|
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
-
* @copyright 1997-
|
| 14 |
-
* @version Release: $Revision: 2.1.
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 1 |
<?php
|
| 2 |
+
/**
|
| 3 |
+
* 1997-2013 Quadra Informatique
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 10 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @version Release: $Revision: 2.1.1 $
|
| 15 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
app/etc/modules/Quadra_Paybox.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
-
|
| 4 |
-
* 1997-
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
|
@@ -11,8 +11,8 @@
|
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
-
* @copyright 1997-
|
| 15 |
-
* @version Release: $Revision: 2.1.
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
+
/**
|
| 4 |
+
* 1997-2013 Quadra Informatique
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 11 |
* to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
* @author Quadra Informatique <ecommerce@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @version Release: $Revision: 2.1.1 $
|
| 16 |
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Quadra_Paybox</name>
|
| 4 |
-
<version>2.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,6 +10,10 @@
|
|
| 10 |
<description>The extension provides Paybox payment integration. Allows make payments through Paybox methods.</description>
|
| 11 |
<notes>Changelog:
|
| 12 |

|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
2.1.0:
|
| 14 |
- Bug fixed with Paybox Direct
|
| 15 |
- Bug fixed with multishipping
|
|
@@ -27,10 +31,10 @@
|
|
| 27 |
- Multishipping compatibility
|
| 28 |
- Bug fixed with magento 1.4
|
| 29 |
- Beta version</notes>
|
| 30 |
-
<authors><author><name>Quadra Informatique</name><user>
|
| 31 |
-
<date>
|
| 32 |
-
<time>
|
| 33 |
-
<contents><target name="magecommunity"><dir name="Quadra"><dir name="Paybox"><dir name="Block"><dir name="Adminhtml"><dir name="Cart"><dir name="Type"><file name="Select.php" hash="
|
| 34 |
<compatible/>
|
| 35 |
-
<dependencies><required><package><name>Quadra_Extensions</name><channel>community</channel><min>1.0.0</min><max
|
| 36 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Quadra_Paybox</name>
|
| 4 |
+
<version>2.1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>The extension provides Paybox payment integration. Allows make payments through Paybox methods.</description>
|
| 11 |
<notes>Changelog:
|
| 12 |

|
| 13 |
+
2.1.1:
|
| 14 |
+
- Fix bug with api debug table
|
| 15 |
+
- Add table view in back-office
|
| 16 |
+

|
| 17 |
2.1.0:
|
| 18 |
- Bug fixed with Paybox Direct
|
| 19 |
- Bug fixed with multishipping
|
| 31 |
- Multishipping compatibility
|
| 32 |
- Bug fixed with magento 1.4
|
| 33 |
- Beta version</notes>
|
| 34 |
+
<authors><author><name>Quadra Informatique</name><user>quadrainfo</user><email>ecommerce@quadra-informatique.fr</email></author></authors>
|
| 35 |
+
<date>2013-02-25</date>
|
| 36 |
+
<time>12:48:25</time>
|
| 37 |
+
<contents><target name="magecommunity"><dir name="Quadra"><dir name="Paybox"><dir name="Block"><dir name="Adminhtml"><dir name="Api"><dir name="Debug"><file name="Grid.php" hash="7f3846940aede7309abf7692f3fbe3ea"/><dir name="Request"><file name="Grid.php" hash="70928a4e8366dcf33e92e2e867b90434"/></dir><file name="Request.php" hash="c7353dc8287911bc8adb222e8cc098d7"/><dir name="Response"><file name="Grid.php" hash="9ec0dc50579b437329a2377eb3a42707"/></dir><file name="Response.php" hash="b22c82f7066d4c07518f8687a4085ab0"/><dir name="View"><file name="Form.php" hash="9234e7da06735abc6d83683608ec9cca"/><dir name="Tab"><file name="Request.php" hash="51147d075c8a837648bdf834d7052247"/><file name="Response.php" hash="14fc052a17a19a29bb903e2db22b24f5"/></dir><file name="Tabs.php" hash="2fdc2c449e98b3365abc4ffe55914def"/></dir><file name="View.php" hash="2b408c6c8597e7246ba235bd37d261ae"/></dir><file name="Debug.php" hash="f95a843f462bb941c632b9507206bf7b"/></dir><dir name="Cart"><dir name="Type"><file name="Select.php" hash="982c487501f72231630a3bc7fed2d22c"/></dir><file name="Type.php" hash="60020f8fffd0d7dbb8a9df9d5c453d4f"/></dir><dir name="Question"><dir name="Number"><file name="Grid.php" hash="918721b84be281e2060f2de1d45789d0"/></dir><file name="Number.php" hash="5478731b2ad226e3ec1351193d524632"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Backuppaymentserver.php" hash="38faf8a15e0596e590d80e562bb3c3a4"/></dir></dir></dir></dir></dir><dir name="Direct"><file name="Form.php" hash="7a068563ba8d0132e4c747ac608256e8"/><file name="Info.php" hash="1218a22ca7ddf5f3d3dc245a4c2c0dcf"/></dir><dir name="System"><file name="Error.php" hash="2f354e31b9363be5cccbe3ed954489e1"/><file name="Failure.php" hash="566c8ff8ca4c4405a57f4cb0118f577a"/><file name="Form.php" hash="4a8ad78cd841107378cea38e173aa3d4"/><file name="Redirect.php" hash="b5f46f8fa84803410a07fac06e37a9b3"/></dir></dir><dir name="Helper"><file name="Data.php" hash="66640e72c55594fbdbb765b231acbad0"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="cc4ea15317e83695b07de9945c47a6d3"/></dir><dir name="Config"><dir name="Data"><file name="Paybox.php" hash="f790284c79c292286524af02c3afcaa7"/></dir></dir><file name="Direct.php" hash="df479476bbb2dc94c191223ac4236c49"/><dir name="Mysql4"><dir name="Api"><dir name="Debug"><file name="Collection.php" hash="1a1b12246329f7a14b593556e31a6dfc"/></dir><file name="Debug.php" hash="e559431b4082706fd995463050ec3ab4"/></dir><dir name="Question"><dir name="Number"><file name="Collection.php" hash="ffdb72d97390ccbeae765b7293fa7f48"/></dir><file name="Number.php" hash="77333bfbb5b1375d8efe532793a326dc"/></dir><file name="Setup.php" hash="359bf4f61992197cabd2ad0de2313f75"/></dir><file name="Observer.php" hash="bb22467cd2c9dfe3058c1514110facc5"/><dir name="Question"><file name="Number.php" hash="70bb03f97bd422555d550f2ac6c8d789"/></dir><dir name="Source"><file name="CartType.php" hash="d9cbea5b565692fc6dd6dd0c65ab3f13"/><file name="Cctype.php" hash="7b7493effb9275b549d24d5954083c08"/><file name="Language.php" hash="26667fdc2fe2ae3cbf60415bf131fb80"/><file name="ManagementMode.php" hash="6e6a56921ecd6c53ce4ce1e99d161ba0"/><file name="MethodCall.php" hash="5afdeeb856a4ffc6758eedbb40ff5e2e"/><file name="PaymentAction.php" hash="f570524e22a3d751f5fc35da66cffc51"/><file name="PaymentMode.php" hash="f5686d04c1c0c4044e58940dc9ee0077"/><file name="PaymentType.php" hash="778b346d2894974282884a4069bbdea7"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Order"><dir name="Status"><file name="Accepted.php" hash="31118f3ce9e997901696ffd95a575037"/><file name="Canceled.php" hash="b0fd0cbd38f5cae0ed44b309e9a24df9"/><file name="New.php" hash="51167ceee472be62689f4b93ac6ecf8f"/><file name="Refused.php" hash="e0d580c51dc4d76b91a972ea8fb6e2f4"/></dir><file name="Status.php" hash="560264574b9b244999206b14d5b16b0a"/><file name="Statuswithoutcanceled.php" hash="56d8c2b6f84e2829a099c034847cd170"/></dir></dir></dir></dir><file name="System.php" hash="f77642ba174249dced2b33edbd5b74fb"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Api"><file name="DebugController.php" hash="8170c74641065499d4dfbb5f2edfd6a4"/></dir><dir name="Question"><file name="NumberController.php" hash="6876f05d48c7f50825d0ff04a5ec8556"/></dir></dir><file name="SystemController.php" hash="22993a86ce71e72d90a2efbf04aba183"/></dir><dir name="etc"><file name="config.xml" hash="a07eb31782435b7593ff51714b5596f5"/><file name="currency.xml" hash="9831ba08f8909a7d17bcd00d8fb2c4be"/><file name="pubkey.pem" hash="9bf5be38bde5f19c40acf3d8e4e7806b"/><file name="system.xml" hash="bf1e4f8461d417ab3968cf36270f7899"/></dir><dir name="sql"><dir name="paybox_setup"><file name="mysql4-install-0.1.0.php" hash="e8023d20b8c97bd5b2713c2bea728e91"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="63e57165f23ca8da21f1f70fbcd24441"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="89b5170465b028440c10978d72eb667b"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="36f0e228e22e9031f553757c62dc4465"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="04c32b92a0d56d606ab3ddac110671e3"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Quadra_Paybox.xml" hash="7636fe98b396cd68d58473bb97990a54"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="paybox"><dir name="adminhtml"><dir name="cart"><dir name="type"><file name="select.phtml" hash="0c4dd2fa7efd5c590c5b4401a8c52a13"/></dir></dir></dir><dir name="direct"><file name="form.phtml" hash="475916adc85f6321e616230ae576b8c8"/><file name="info.phtml" hash="f3e347daa4895b31fa33d0b2d23be353"/><dir name="pdf"><file name="info.phtml" hash="fa8596480027881194bbdeb6bae6b040"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="paybox"><dir name="direct"><file name="form.phtml" hash="608b5c215577b4df1a68a9daf2a65c15"/><file name="info.phtml" hash="7b2302502dfb5ab7fcb0fc43c7aa850f"/></dir><dir name="system"><file name="error.phtml" hash="fb80f3c05c6362c28e985094fe52f478"/><file name="form.phtml" hash="42f12365c18b5532e3ef580e168a2d5a"/><file name="notify.phtml" hash="9fdbd2fcc6da5641295e84f697d5b220"/></dir></dir></dir><dir name="layout"><file name="paybox.xml" hash="a5567dfecc71895349fb1222e9becd99"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Quadra_Paybox.csv" hash="3e93b483137b0f2770f656bd02e48336"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="media"><dir name="paybox"><file name="PayboxPaiementSecurise.png" hash="de66247ae1debc79a0f3cd015247307e"/><file name="paybox.png" hash="87f2b567282864162b5af79d7ab7d44b"/></dir></dir></dir></dir></dir></dir></target></contents>
|
| 38 |
<compatible/>
|
| 39 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Quadra_Extensions</name><channel>community</channel><min>1.0.0</min><max></max></package></required></dependencies>
|
| 40 |
</package>
|
