Version Notes
Changelog:
2.1.6:
- Add MaxiCheque payment method.
2.1.5:
- Add minimal order total to activate 3D Secure.
2.1.4:
- Add paybox payment server response debug.
2.1.3:
- Add new Paybox server address IP used in IP check
2.1.2:
- Fix bug with api debug multishipping informaion
- Fix bug with api debug view in back-office
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
Release Info
| Developer | Magento Core Team |
| Extension | Quadra_Paybox |
| Version | 2.1.6 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1.5 to 2.1.6
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug.php +8 -7
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Grid.php +18 -12
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Request.php +8 -7
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Request/Grid.php +22 -14
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Response.php +8 -7
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/Response/Grid.php +22 -14
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/ResponseServer/Grid.php +22 -14
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View.php +10 -8
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Form.php +10 -8
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tab/Request.php +18 -13
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tab/Response.php +18 -13
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tab/ResponseServer.php +18 -13
- app/code/community/Quadra/Paybox/Block/Adminhtml/Api/Debug/View/Tabs.php +10 -8
- app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type.php +8 -7
- app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type/Select.php +12 -9
- app/code/community/Quadra/Paybox/Block/Adminhtml/Question/Number.php +8 -7
- app/code/community/Quadra/Paybox/Block/Adminhtml/Question/Number/Grid.php +18 -12
- app/code/community/Quadra/Paybox/Block/Adminhtml/System/Config/Form/Field/Backuppaymentserver.php +8 -7
- app/code/community/Quadra/Paybox/Block/Direct/Form.php +8 -7
- app/code/community/Quadra/Paybox/Block/Direct/Info.php +10 -8
- app/code/community/Quadra/Paybox/Block/System/Error.php +14 -10
- app/code/community/Quadra/Paybox/Block/System/Failure.php +12 -9
- app/code/community/Quadra/Paybox/Block/System/Form.php +8 -7
- app/code/community/Quadra/Paybox/Block/System/Redirect.php +8 -7
- app/code/community/Quadra/Paybox/Helper/Data.php +6 -6
- app/code/community/Quadra/Paybox/Model/Api/Debug.php +8 -7
- app/code/community/Quadra/Paybox/Model/Config/Data/Paybox.php +8 -7
- app/code/community/Quadra/Paybox/Model/Direct.php +60 -45
- app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug.php +8 -7
- app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug/Collection.php +8 -7
- app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number.php +8 -7
- app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number/Collection.php +8 -7
- app/code/community/Quadra/Paybox/Model/Mysql4/Setup.php +6 -6
- app/code/community/Quadra/Paybox/Model/Observer.php +12 -9
- app/code/community/Quadra/Paybox/Model/Question/Number.php +17 -11
- app/code/community/Quadra/Paybox/Model/Source/CartType.php +10 -8
- app/code/community/Quadra/Paybox/Model/Source/Cctype.php +8 -7
- app/code/community/Quadra/Paybox/Model/Source/Language.php +8 -7
- app/code/community/Quadra/Paybox/Model/Source/ManagementMode.php +8 -7
- app/code/community/Quadra/Paybox/Model/Source/MethodCall.php +8 -7
- app/code/community/Quadra/Paybox/Model/Source/PaymentAction.php +8 -7
- app/code/community/Quadra/Paybox/Model/Source/PaymentMode.php +8 -7
- app/code/community/Quadra/Paybox/Model/Source/PaymentType.php +10 -8
- app/code/community/Quadra/Paybox/Model/System.php +109 -78
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status.php +8 -7
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Accepted.php +6 -6
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Canceled.php +6 -6
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/New.php +6 -6
- app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Status/Refused.php +6 -6
- app/code/community/Quadra/Paybox/controllers/Adminhtml/Api/DebugController.php +15 -11
- app/code/community/Quadra/Paybox/controllers/Adminhtml/Question/NumberController.php +14 -11
- app/code/community/Quadra/Paybox/controllers/SystemController.php +56 -38
- app/code/community/Quadra/Paybox/etc/config.xml +5 -6
- app/code/community/Quadra/Paybox/etc/currency.xml +4 -5
- app/code/community/Quadra/Paybox/etc/system.xml +4 -5
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-install-0.1.0.php +4 -6
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.0-0.1.1.php +4 -6
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.1-0.1.2.php +4 -6
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.2-0.1.3.php +4 -6
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-1.2.4-1.2.5.php +4 -6
- app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-2.1.3-2.1.4.php +4 -6
- app/design/adminhtml/default/default/template/paybox/adminhtml/cart/type/select.phtml +8 -9
- app/design/adminhtml/default/default/template/paybox/direct/form.phtml +26 -27
- app/design/adminhtml/default/default/template/paybox/direct/info.phtml +4 -5
- app/design/adminhtml/default/default/template/paybox/direct/pdf/info.phtml +8 -9
- app/design/frontend/default/default/layout/paybox.xml +4 -5
- app/design/frontend/default/default/template/paybox/direct/form.phtml +31 -32
- app/design/frontend/default/default/template/paybox/direct/info.phtml +5 -6
- app/design/frontend/default/default/template/paybox/system/error.phtml +4 -5
- app/design/frontend/default/default/template/paybox/system/form.phtml +5 -6
- app/design/frontend/default/default/template/paybox/system/notify.phtml +5 -8
- app/etc/modules/Quadra_Paybox.xml +4 -5
- package.xml +8 -5
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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');
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug extends Mage_Adminhtml_Block_Widget_Grid_Container
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
$this->_blockGroup = 'paybox';
|
| 23 |
$this->_controller = 'adminhtml_api_debug';
|
| 24 |
$this->_headerText = Mage::helper('paybox')->__('Manage Paybox Api Debug');
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
-
public function __construct()
|
|
|
|
| 21 |
parent::__construct();
|
| 22 |
$this->setId('paybox_api_debug_grid');
|
| 23 |
$this->setUseAjax(true);
|
|
@@ -26,13 +27,15 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_Grid extends Mage_Adminhtml_Block_
|
|
| 26 |
$this->setSaveParametersInSession(true);
|
| 27 |
}
|
| 28 |
|
| 29 |
-
protected function _prepareCollection()
|
|
|
|
| 30 |
$collection = Mage::getResourceModel('paybox/api_debug_collection');
|
| 31 |
$this->setCollection($collection);
|
| 32 |
return parent::_prepareCollection();
|
| 33 |
}
|
| 34 |
|
| 35 |
-
protected function _prepareColumns()
|
|
|
|
| 36 |
$this->addColumn('debug_at', array(
|
| 37 |
'header' => Mage::helper('paybox')->__('Debug at'),
|
| 38 |
'width' => '50px',
|
|
@@ -81,15 +84,18 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_Grid extends Mage_Adminhtml_Block_
|
|
| 81 |
return parent::_prepareColumns();
|
| 82 |
}
|
| 83 |
|
| 84 |
-
protected function _prepareMassaction()
|
|
|
|
| 85 |
return $this;
|
| 86 |
}
|
| 87 |
|
| 88 |
-
public function getGridUrl()
|
|
|
|
| 89 |
return $this->getUrl('*/*/grid', array('_current' => true));
|
| 90 |
}
|
| 91 |
|
| 92 |
-
public function getRowUrl($row)
|
|
|
|
| 93 |
return $this->getUrl('*/*/view', array('id' => $row->getId()));
|
| 94 |
}
|
| 95 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->setId('paybox_api_debug_grid');
|
| 24 |
$this->setUseAjax(true);
|
| 27 |
$this->setSaveParametersInSession(true);
|
| 28 |
}
|
| 29 |
|
| 30 |
+
protected function _prepareCollection()
|
| 31 |
+
{
|
| 32 |
$collection = Mage::getResourceModel('paybox/api_debug_collection');
|
| 33 |
$this->setCollection($collection);
|
| 34 |
return parent::_prepareCollection();
|
| 35 |
}
|
| 36 |
|
| 37 |
+
protected function _prepareColumns()
|
| 38 |
+
{
|
| 39 |
$this->addColumn('debug_at', array(
|
| 40 |
'header' => Mage::helper('paybox')->__('Debug at'),
|
| 41 |
'width' => '50px',
|
| 84 |
return parent::_prepareColumns();
|
| 85 |
}
|
| 86 |
|
| 87 |
+
protected function _prepareMassaction()
|
| 88 |
+
{
|
| 89 |
return $this;
|
| 90 |
}
|
| 91 |
|
| 92 |
+
public function getGridUrl()
|
| 93 |
+
{
|
| 94 |
return $this->getUrl('*/*/grid', array('_current' => true));
|
| 95 |
}
|
| 96 |
|
| 97 |
+
public function getRowUrl($row)
|
| 98 |
+
{
|
| 99 |
return $this->getUrl('*/*/view', array('id' => $row->getId()));
|
| 100 |
}
|
| 101 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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');
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Request extends Mage_Adminhtml_Block_Widget_Grid_Container
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
$this->_blockGroup = 'paybox';
|
| 23 |
$this->_controller = 'adminhtml_api_debug';
|
| 24 |
$this->_headerText = Mage::helper('paybox')->__('Paybox Request');
|
|
@@ -8,37 +8,41 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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();
|
|
@@ -61,7 +65,8 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_Request_Grid extends Mage_Adminhtm
|
|
| 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(
|
|
@@ -74,15 +79,18 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_Request_Grid extends Mage_Adminhtm
|
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Request_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->setId('paybox_api_debug_request_grid');
|
| 24 |
$this->_filterVisibility = false;
|
| 25 |
$this->_pagerVisibility = false;
|
| 26 |
}
|
| 27 |
|
| 28 |
+
protected function _prepareGrid()
|
| 29 |
+
{
|
| 30 |
$this->_prepareCollection();
|
| 31 |
$this->_prepareColumns();
|
| 32 |
$this->_prepareMassactionBlock();
|
| 33 |
return $this;
|
| 34 |
}
|
| 35 |
|
| 36 |
+
protected function _prepareCollection()
|
| 37 |
+
{
|
| 38 |
$this->_collection = new Varien_Data_Collection();
|
| 39 |
$this->_loadCollection();
|
| 40 |
$this->setCollection($this->_collection);
|
| 41 |
return parent::_prepareCollection();
|
| 42 |
}
|
| 43 |
|
| 44 |
+
protected function _loadCollection()
|
| 45 |
+
{
|
| 46 |
$collection = Mage::getResourceModel('paybox/api_debug_collection')
|
| 47 |
->addFieldToFilter('debug_id', $this->getRequest()->getParam('id'));
|
| 48 |
$object = new Varien_Object();
|
| 65 |
}
|
| 66 |
}
|
| 67 |
|
| 68 |
+
protected function _prepareColumns()
|
| 69 |
+
{
|
| 70 |
foreach ($this->getCollection()->getItems() as $item) {
|
| 71 |
foreach (array_keys($item->getData()) as $key) {
|
| 72 |
$this->addColumn($key, array(
|
| 79 |
return parent::_prepareColumns();
|
| 80 |
}
|
| 81 |
|
| 82 |
+
protected function _prepareMassaction()
|
| 83 |
+
{
|
| 84 |
return $this;
|
| 85 |
}
|
| 86 |
|
| 87 |
+
public function getGridUrl()
|
| 88 |
+
{
|
| 89 |
return false;
|
| 90 |
}
|
| 91 |
|
| 92 |
+
public function getRowUrl($row)
|
| 93 |
+
{
|
| 94 |
return false;
|
| 95 |
}
|
| 96 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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');
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Response extends Mage_Adminhtml_Block_Widget_Grid_Container
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
$this->_blockGroup = 'paybox';
|
| 23 |
$this->_controller = 'adminhtml_api_debug';
|
| 24 |
$this->_headerText = Mage::helper('paybox')->__('Paybox Response');
|
|
@@ -8,37 +8,41 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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();
|
|
@@ -61,7 +65,8 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_Response_Grid extends Mage_Adminht
|
|
| 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(
|
|
@@ -74,15 +79,18 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_Response_Grid extends Mage_Adminht
|
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_Response_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->setId('paybox_api_debug_response_grid');
|
| 24 |
$this->_filterVisibility = false;
|
| 25 |
$this->_pagerVisibility = false;
|
| 26 |
}
|
| 27 |
|
| 28 |
+
protected function _prepareGrid()
|
| 29 |
+
{
|
| 30 |
$this->_prepareCollection();
|
| 31 |
$this->_prepareColumns();
|
| 32 |
$this->_prepareMassactionBlock();
|
| 33 |
return $this;
|
| 34 |
}
|
| 35 |
|
| 36 |
+
protected function _prepareCollection()
|
| 37 |
+
{
|
| 38 |
$this->_collection = new Varien_Data_Collection();
|
| 39 |
$this->_loadCollection();
|
| 40 |
$this->setCollection($this->_collection);
|
| 41 |
return parent::_prepareCollection();
|
| 42 |
}
|
| 43 |
|
| 44 |
+
protected function _loadCollection()
|
| 45 |
+
{
|
| 46 |
$collection = Mage::getResourceModel('paybox/api_debug_collection')
|
| 47 |
->addFieldToFilter('debug_id', $this->getRequest()->getParam('id'));
|
| 48 |
$object = new Varien_Object();
|
| 65 |
}
|
| 66 |
}
|
| 67 |
|
| 68 |
+
protected function _prepareColumns()
|
| 69 |
+
{
|
| 70 |
foreach ($this->getCollection()->getItems() as $item) {
|
| 71 |
foreach (array_keys($item->getData()) as $key) {
|
| 72 |
$this->addColumn($key, array(
|
| 79 |
return parent::_prepareColumns();
|
| 80 |
}
|
| 81 |
|
| 82 |
+
protected function _prepareMassaction()
|
| 83 |
+
{
|
| 84 |
return $this;
|
| 85 |
}
|
| 86 |
|
| 87 |
+
public function getGridUrl()
|
| 88 |
+
{
|
| 89 |
return false;
|
| 90 |
}
|
| 91 |
|
| 92 |
+
public function getRowUrl($row)
|
| 93 |
+
{
|
| 94 |
return false;
|
| 95 |
}
|
| 96 |
|
|
@@ -8,37 +8,41 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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_ResponseServer_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
|
|
|
| 19 |
|
| 20 |
-
public function __construct()
|
|
|
|
| 21 |
parent::__construct();
|
| 22 |
$this->setId('paybox_api_debug_responseserver_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();
|
|
@@ -57,7 +61,8 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_ResponseServer_Grid extends Mage_A
|
|
| 57 |
}
|
| 58 |
}
|
| 59 |
|
| 60 |
-
protected function _prepareColumns()
|
|
|
|
| 61 |
foreach ($this->getCollection()->getItems() as $item) {
|
| 62 |
foreach (array_keys($item->getData()) as $key) {
|
| 63 |
$this->addColumn($key, array(
|
|
@@ -70,15 +75,18 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_ResponseServer_Grid extends Mage_A
|
|
| 70 |
return parent::_prepareColumns();
|
| 71 |
}
|
| 72 |
|
| 73 |
-
protected function _prepareMassaction()
|
|
|
|
| 74 |
return $this;
|
| 75 |
}
|
| 76 |
|
| 77 |
-
public function getGridUrl()
|
|
|
|
| 78 |
return false;
|
| 79 |
}
|
| 80 |
|
| 81 |
-
public function getRowUrl($row)
|
|
|
|
| 82 |
return false;
|
| 83 |
}
|
| 84 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_ResponseServer_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->setId('paybox_api_debug_responseserver_grid');
|
| 24 |
$this->_filterVisibility = false;
|
| 25 |
$this->_pagerVisibility = false;
|
| 26 |
}
|
| 27 |
|
| 28 |
+
protected function _prepareGrid()
|
| 29 |
+
{
|
| 30 |
$this->_prepareCollection();
|
| 31 |
$this->_prepareColumns();
|
| 32 |
$this->_prepareMassactionBlock();
|
| 33 |
return $this;
|
| 34 |
}
|
| 35 |
|
| 36 |
+
protected function _prepareCollection()
|
| 37 |
+
{
|
| 38 |
$this->_collection = new Varien_Data_Collection();
|
| 39 |
$this->_loadCollection();
|
| 40 |
$this->setCollection($this->_collection);
|
| 41 |
return parent::_prepareCollection();
|
| 42 |
}
|
| 43 |
|
| 44 |
+
protected function _loadCollection()
|
| 45 |
+
{
|
| 46 |
$collection = Mage::getResourceModel('paybox/api_debug_collection')
|
| 47 |
->addFieldToFilter('debug_id', $this->getRequest()->getParam('id'));
|
| 48 |
$object = new Varien_Object();
|
| 61 |
}
|
| 62 |
}
|
| 63 |
|
| 64 |
+
protected function _prepareColumns()
|
| 65 |
+
{
|
| 66 |
foreach ($this->getCollection()->getItems() as $item) {
|
| 67 |
foreach (array_keys($item->getData()) as $key) {
|
| 68 |
$this->addColumn($key, array(
|
| 75 |
return parent::_prepareColumns();
|
| 76 |
}
|
| 77 |
|
| 78 |
+
protected function _prepareMassaction()
|
| 79 |
+
{
|
| 80 |
return $this;
|
| 81 |
}
|
| 82 |
|
| 83 |
+
public function getGridUrl()
|
| 84 |
+
{
|
| 85 |
return false;
|
| 86 |
}
|
| 87 |
|
| 88 |
+
public function getRowUrl($row)
|
| 89 |
+
{
|
| 90 |
return false;
|
| 91 |
}
|
| 92 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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';
|
|
@@ -30,7 +31,8 @@ class Quadra_Paybox_Block_Adminhtml_Api_Debug_View extends Mage_Adminhtml_Block_
|
|
| 30 |
$this->_removeButton('delete');
|
| 31 |
}
|
| 32 |
|
| 33 |
-
public function getHeaderText()
|
|
|
|
| 34 |
return Mage::helper('paybox')->__('Paybox Api Debug View');
|
| 35 |
}
|
| 36 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View extends Mage_Adminhtml_Block_Widget_Form_Container
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->_objectId = 'id';
|
| 24 |
$this->_blockGroup = 'paybox';
|
| 31 |
$this->_removeButton('delete');
|
| 32 |
}
|
| 33 |
|
| 34 |
+
public function getHeaderText()
|
| 35 |
+
{
|
| 36 |
return Mage::helper('paybox')->__('Paybox Api Debug View');
|
| 37 |
}
|
| 38 |
|
|
@@ -8,22 +8,24 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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);
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Form extends Mage_Adminhtml_Block_Widget_Form
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->setId('paybox_api_debug_view_form');
|
| 24 |
$this->setTitle($this->__('Product History Information'));
|
| 25 |
}
|
| 26 |
|
| 27 |
+
protected function _prepareForm()
|
| 28 |
+
{
|
| 29 |
$form = new Varien_Data_Form(array('id' => 'edit_form'));
|
| 30 |
$form->setUseContainer(true);
|
| 31 |
$this->setForm($form);
|
|
@@ -8,22 +8,22 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
-
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Retrieve grid url
|
| 23 |
*
|
| 24 |
* @return string
|
| 25 |
*/
|
| 26 |
-
public function getGridUrl()
|
|
|
|
| 27 |
return false;
|
| 28 |
}
|
| 29 |
|
|
@@ -32,7 +32,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 32 |
*
|
| 33 |
* @return string
|
| 34 |
*/
|
| 35 |
-
public function getRowUrl($item)
|
|
|
|
| 36 |
return false;
|
| 37 |
}
|
| 38 |
|
|
@@ -41,7 +42,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 41 |
*
|
| 42 |
* @return string
|
| 43 |
*/
|
| 44 |
-
public function getTabLabel()
|
|
|
|
| 45 |
return Mage::helper('paybox')->__('Paybox Request');
|
| 46 |
}
|
| 47 |
|
|
@@ -50,7 +52,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 50 |
*
|
| 51 |
* @return string
|
| 52 |
*/
|
| 53 |
-
public function getTabTitle()
|
|
|
|
| 54 |
return Mage::helper('paybox')->__('Paybox Request');
|
| 55 |
}
|
| 56 |
|
|
@@ -59,7 +62,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 59 |
*
|
| 60 |
* @return bool
|
| 61 |
*/
|
| 62 |
-
public function canShowTab()
|
|
|
|
| 63 |
return true;
|
| 64 |
}
|
| 65 |
|
|
@@ -68,7 +72,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 68 |
*
|
| 69 |
* @return bool
|
| 70 |
*/
|
| 71 |
-
public function isHidden()
|
|
|
|
| 72 |
return false;
|
| 73 |
}
|
| 74 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Tab_Request extends Quadra_Paybox_Block_Adminhtml_Api_Debug_Request_Grid implements Mage_Adminhtml_Block_Widget_Tab_Interface
|
| 18 |
+
{
|
| 19 |
|
| 20 |
/**
|
| 21 |
* Retrieve grid url
|
| 22 |
*
|
| 23 |
* @return string
|
| 24 |
*/
|
| 25 |
+
public function getGridUrl()
|
| 26 |
+
{
|
| 27 |
return false;
|
| 28 |
}
|
| 29 |
|
| 32 |
*
|
| 33 |
* @return string
|
| 34 |
*/
|
| 35 |
+
public function getRowUrl($item)
|
| 36 |
+
{
|
| 37 |
return false;
|
| 38 |
}
|
| 39 |
|
| 42 |
*
|
| 43 |
* @return string
|
| 44 |
*/
|
| 45 |
+
public function getTabLabel()
|
| 46 |
+
{
|
| 47 |
return Mage::helper('paybox')->__('Paybox Request');
|
| 48 |
}
|
| 49 |
|
| 52 |
*
|
| 53 |
* @return string
|
| 54 |
*/
|
| 55 |
+
public function getTabTitle()
|
| 56 |
+
{
|
| 57 |
return Mage::helper('paybox')->__('Paybox Request');
|
| 58 |
}
|
| 59 |
|
| 62 |
*
|
| 63 |
* @return bool
|
| 64 |
*/
|
| 65 |
+
public function canShowTab()
|
| 66 |
+
{
|
| 67 |
return true;
|
| 68 |
}
|
| 69 |
|
| 72 |
*
|
| 73 |
* @return bool
|
| 74 |
*/
|
| 75 |
+
public function isHidden()
|
| 76 |
+
{
|
| 77 |
return false;
|
| 78 |
}
|
| 79 |
|
|
@@ -8,22 +8,22 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
-
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Retrieve grid url
|
| 23 |
*
|
| 24 |
* @return string
|
| 25 |
*/
|
| 26 |
-
public function getGridUrl()
|
|
|
|
| 27 |
return false;
|
| 28 |
}
|
| 29 |
|
|
@@ -32,7 +32,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 32 |
*
|
| 33 |
* @return string
|
| 34 |
*/
|
| 35 |
-
public function getRowUrl($item)
|
|
|
|
| 36 |
return false;
|
| 37 |
}
|
| 38 |
|
|
@@ -41,7 +42,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 41 |
*
|
| 42 |
* @return string
|
| 43 |
*/
|
| 44 |
-
public function getTabLabel()
|
|
|
|
| 45 |
return Mage::helper('paybox')->__('Paybox Response');
|
| 46 |
}
|
| 47 |
|
|
@@ -50,7 +52,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 50 |
*
|
| 51 |
* @return string
|
| 52 |
*/
|
| 53 |
-
public function getTabTitle()
|
|
|
|
| 54 |
return Mage::helper('paybox')->__('Paybox Response');
|
| 55 |
}
|
| 56 |
|
|
@@ -59,7 +62,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 59 |
*
|
| 60 |
* @return bool
|
| 61 |
*/
|
| 62 |
-
public function canShowTab()
|
|
|
|
| 63 |
return true;
|
| 64 |
}
|
| 65 |
|
|
@@ -68,7 +72,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 68 |
*
|
| 69 |
* @return bool
|
| 70 |
*/
|
| 71 |
-
public function isHidden()
|
|
|
|
| 72 |
return false;
|
| 73 |
}
|
| 74 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Tab_Response extends Quadra_Paybox_Block_Adminhtml_Api_Debug_Response_Grid implements Mage_Adminhtml_Block_Widget_Tab_Interface
|
| 18 |
+
{
|
| 19 |
|
| 20 |
/**
|
| 21 |
* Retrieve grid url
|
| 22 |
*
|
| 23 |
* @return string
|
| 24 |
*/
|
| 25 |
+
public function getGridUrl()
|
| 26 |
+
{
|
| 27 |
return false;
|
| 28 |
}
|
| 29 |
|
| 32 |
*
|
| 33 |
* @return string
|
| 34 |
*/
|
| 35 |
+
public function getRowUrl($item)
|
| 36 |
+
{
|
| 37 |
return false;
|
| 38 |
}
|
| 39 |
|
| 42 |
*
|
| 43 |
* @return string
|
| 44 |
*/
|
| 45 |
+
public function getTabLabel()
|
| 46 |
+
{
|
| 47 |
return Mage::helper('paybox')->__('Paybox Response');
|
| 48 |
}
|
| 49 |
|
| 52 |
*
|
| 53 |
* @return string
|
| 54 |
*/
|
| 55 |
+
public function getTabTitle()
|
| 56 |
+
{
|
| 57 |
return Mage::helper('paybox')->__('Paybox Response');
|
| 58 |
}
|
| 59 |
|
| 62 |
*
|
| 63 |
* @return bool
|
| 64 |
*/
|
| 65 |
+
public function canShowTab()
|
| 66 |
+
{
|
| 67 |
return true;
|
| 68 |
}
|
| 69 |
|
| 72 |
*
|
| 73 |
* @return bool
|
| 74 |
*/
|
| 75 |
+
public function isHidden()
|
| 76 |
+
{
|
| 77 |
return false;
|
| 78 |
}
|
| 79 |
|
|
@@ -8,22 +8,22 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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_ResponseServer extends Quadra_Paybox_Block_Adminhtml_Api_Debug_ResponseServer_Grid
|
| 19 |
-
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Retrieve grid url
|
| 23 |
*
|
| 24 |
* @return string
|
| 25 |
*/
|
| 26 |
-
public function getGridUrl()
|
|
|
|
| 27 |
return false;
|
| 28 |
}
|
| 29 |
|
|
@@ -32,7 +32,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 32 |
*
|
| 33 |
* @return string
|
| 34 |
*/
|
| 35 |
-
public function getRowUrl($item)
|
|
|
|
| 36 |
return false;
|
| 37 |
}
|
| 38 |
|
|
@@ -41,7 +42,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 41 |
*
|
| 42 |
* @return string
|
| 43 |
*/
|
| 44 |
-
public function getTabLabel()
|
|
|
|
| 45 |
return Mage::helper('paybox')->__('Paybox Payment Server Response');
|
| 46 |
}
|
| 47 |
|
|
@@ -50,7 +52,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 50 |
*
|
| 51 |
* @return string
|
| 52 |
*/
|
| 53 |
-
public function getTabTitle()
|
|
|
|
| 54 |
return Mage::helper('paybox')->__('Paybox Payment Server Response');
|
| 55 |
}
|
| 56 |
|
|
@@ -59,7 +62,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 59 |
*
|
| 60 |
* @return bool
|
| 61 |
*/
|
| 62 |
-
public function canShowTab()
|
|
|
|
| 63 |
return true;
|
| 64 |
}
|
| 65 |
|
|
@@ -68,7 +72,8 @@ implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
|
| 68 |
*
|
| 69 |
* @return bool
|
| 70 |
*/
|
| 71 |
-
public function isHidden()
|
|
|
|
| 72 |
return false;
|
| 73 |
}
|
| 74 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Tab_ResponseServer extends Quadra_Paybox_Block_Adminhtml_Api_Debug_ResponseServer_Grid implements Mage_Adminhtml_Block_Widget_Tab_Interface
|
| 18 |
+
{
|
| 19 |
|
| 20 |
/**
|
| 21 |
* Retrieve grid url
|
| 22 |
*
|
| 23 |
* @return string
|
| 24 |
*/
|
| 25 |
+
public function getGridUrl()
|
| 26 |
+
{
|
| 27 |
return false;
|
| 28 |
}
|
| 29 |
|
| 32 |
*
|
| 33 |
* @return string
|
| 34 |
*/
|
| 35 |
+
public function getRowUrl($item)
|
| 36 |
+
{
|
| 37 |
return false;
|
| 38 |
}
|
| 39 |
|
| 42 |
*
|
| 43 |
* @return string
|
| 44 |
*/
|
| 45 |
+
public function getTabLabel()
|
| 46 |
+
{
|
| 47 |
return Mage::helper('paybox')->__('Paybox Payment Server Response');
|
| 48 |
}
|
| 49 |
|
| 52 |
*
|
| 53 |
* @return string
|
| 54 |
*/
|
| 55 |
+
public function getTabTitle()
|
| 56 |
+
{
|
| 57 |
return Mage::helper('paybox')->__('Paybox Payment Server Response');
|
| 58 |
}
|
| 59 |
|
| 62 |
*
|
| 63 |
* @return bool
|
| 64 |
*/
|
| 65 |
+
public function canShowTab()
|
| 66 |
+
{
|
| 67 |
return true;
|
| 68 |
}
|
| 69 |
|
| 72 |
*
|
| 73 |
* @return bool
|
| 74 |
*/
|
| 75 |
+
public function isHidden()
|
| 76 |
+
{
|
| 77 |
return false;
|
| 78 |
}
|
| 79 |
|
|
@@ -8,23 +8,25 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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'),
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Api_Debug_View_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->setId('paybox_api_debug_view_tabs');
|
| 24 |
$this->setDestElementId('edit_form');
|
| 25 |
$this->setTitle($this->__('Paybox'));
|
| 26 |
}
|
| 27 |
|
| 28 |
+
protected function _beforeToHtml()
|
| 29 |
+
{
|
| 30 |
$this->addTab('request_section', array(
|
| 31 |
'label' => $this->__('Request'),
|
| 32 |
'title' => $this->__('Request'),
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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())
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Cart_Type extends Mage_Adminhtml_Block_System_Config_Form_Field
|
| 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())
|
|
@@ -8,29 +8,32 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Cart_Type_Select extends Mage_Adminhtml_Block_Template
|
| 18 |
+
{
|
| 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 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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');
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Question_Number extends Mage_Adminhtml_Block_Widget_Grid_Container
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
$this->_blockGroup = 'paybox';
|
| 23 |
$this->_controller = 'adminhtml_question_number';
|
| 24 |
$this->_headerText = Mage::helper('paybox')->__('Manage Paybox Question Number');
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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);
|
|
@@ -26,13 +27,15 @@ class Quadra_Paybox_Block_Adminhtml_Question_Number_Grid extends Mage_Adminhtml_
|
|
| 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',
|
|
@@ -60,15 +63,18 @@ class Quadra_Paybox_Block_Adminhtml_Question_Number_Grid extends Mage_Adminhtml_
|
|
| 60 |
return parent::_prepareColumns();
|
| 61 |
}
|
| 62 |
|
| 63 |
-
protected function _prepareMassaction()
|
|
|
|
| 64 |
return $this;
|
| 65 |
}
|
| 66 |
|
| 67 |
-
public function getGridUrl()
|
|
|
|
| 68 |
return $this->getUrl('*/*/grid', array('_current' => true));
|
| 69 |
}
|
| 70 |
|
| 71 |
-
public function getRowUrl($row)
|
|
|
|
| 72 |
return false;
|
| 73 |
}
|
| 74 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_Question_Number_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
parent::__construct();
|
| 23 |
$this->setId('paybox_question_number_grid');
|
| 24 |
$this->setUseAjax(true);
|
| 27 |
$this->setSaveParametersInSession(true);
|
| 28 |
}
|
| 29 |
|
| 30 |
+
protected function _prepareCollection()
|
| 31 |
+
{
|
| 32 |
$collection = Mage::getResourceModel('paybox/question_number_collection');
|
| 33 |
$this->setCollection($collection);
|
| 34 |
return parent::_prepareCollection();
|
| 35 |
}
|
| 36 |
|
| 37 |
+
protected function _prepareColumns()
|
| 38 |
+
{
|
| 39 |
$this->addColumn('account_id', array(
|
| 40 |
'header' => Mage::helper('paybox')->__('Account ID'),
|
| 41 |
'width' => '50px',
|
| 63 |
return parent::_prepareColumns();
|
| 64 |
}
|
| 65 |
|
| 66 |
+
protected function _prepareMassaction()
|
| 67 |
+
{
|
| 68 |
return $this;
|
| 69 |
}
|
| 70 |
|
| 71 |
+
public function getGridUrl()
|
| 72 |
+
{
|
| 73 |
return $this->getUrl('*/*/grid', array('_current' => true));
|
| 74 |
}
|
| 75 |
|
| 76 |
+
public function getRowUrl($row)
|
| 77 |
+
{
|
| 78 |
return false;
|
| 79 |
}
|
| 80 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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',
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Adminhtml_System_Config_Form_Field_Backuppaymentserver extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function __construct()
|
| 21 |
+
{
|
| 22 |
$this->addColumn('bpserver', array(
|
| 23 |
'label' => Mage::helper('adminhtml')->__('Backup payment server'),
|
| 24 |
'style' => 'width:120px',
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
}
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Direct_Form extends Mage_Payment_Block_Form_Cc
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _construct()
|
| 21 |
+
{
|
| 22 |
parent::_construct();
|
| 23 |
$this->setTemplate('paybox/direct/form.phtml');
|
| 24 |
}
|
|
@@ -8,21 +8,23 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
}
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_Direct_Info extends Mage_Payment_Block_Info_Cc
|
| 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 |
}
|
|
@@ -8,18 +8,19 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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,11 +47,13 @@ class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template {
|
|
| 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,7 +62,8 @@ class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template {
|
|
| 59 |
/**
|
| 60 |
* Get continue shopping url
|
| 61 |
*/
|
| 62 |
-
public function getContinueShoppingUrl()
|
|
|
|
| 63 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 64 |
}
|
| 65 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template
|
| 18 |
+
{
|
| 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 |
*
|
| 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 |
/**
|
| 63 |
* Get continue shopping url
|
| 64 |
*/
|
| 65 |
+
public function getContinueShoppingUrl()
|
| 66 |
+
{
|
| 67 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 68 |
}
|
| 69 |
|
|
@@ -8,25 +8,27 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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,7 +37,8 @@ class Quadra_Paybox_Block_System_Failure extends Mage_Core_Block_Template {
|
|
| 35 |
/**
|
| 36 |
* Get continue shopping url
|
| 37 |
*/
|
| 38 |
-
public function getContinueShoppingUrl()
|
|
|
|
| 39 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 40 |
}
|
| 41 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_System_Failure extends Mage_Core_Block_Template
|
| 18 |
+
{
|
| 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 |
/**
|
| 38 |
* Get continue shopping url
|
| 39 |
*/
|
| 40 |
+
public function getContinueShoppingUrl()
|
| 41 |
+
{
|
| 42 |
return Mage::getUrl('checkout/cart', array('_secure' => true));
|
| 43 |
}
|
| 44 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
}
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_System_Form extends Mage_Payment_Block_Form
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _construct()
|
| 21 |
+
{
|
| 22 |
$this->setTemplate('paybox/system/form.phtml');
|
| 23 |
parent::_construct();
|
| 24 |
}
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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();
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Block_System_Redirect extends Mage_Core_Block_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _toHtml()
|
| 21 |
+
{
|
| 22 |
$system = $this->getOrder()->getPayment()->getMethodInstance();
|
| 23 |
|
| 24 |
$form = new Varien_Data_Form();
|
|
@@ -8,13 +8,13 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
}
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Helper_Data extends Mage_Core_Helper_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
}
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Api_Debug extends Mage_Core_Model_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _construct()
|
| 21 |
+
{
|
| 22 |
$this->_init('paybox/api_debug');
|
| 23 |
}
|
| 24 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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)) {
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Config_Data_Paybox extends Mage_Core_Model_Config_Data
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function _beforeSave()
|
| 21 |
+
{
|
| 22 |
$filename = BP . DS . 'app' . DS . 'code' . DS . 'core' . DS . 'Mage' . DS . 'Paybox' . DS . 'etc' . DS . 'config.xml';
|
| 23 |
|
| 24 |
if (file_exists($filename)) {
|
|
@@ -8,23 +8,23 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
*/
|
|
|
|
| 22 |
const PBX_PAYMENT_ACTION_ATHORIZE = '00001';
|
| 23 |
const PBX_PAYMENT_ACTION_DEBIT = '00002';
|
| 24 |
const PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE = '00003';
|
| 25 |
const PBX_PAYMENT_ACTION_CANCELLATION = '00005';
|
| 26 |
const PBX_PAYMENT_ACTION_REFUND = '00004';
|
| 27 |
-
|
| 28 |
const PBX_VERSION = '00103';
|
| 29 |
|
| 30 |
/**
|
|
@@ -34,22 +34,19 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 34 |
*/
|
| 35 |
const PBX_ACTIVITE_VALUE = '024';
|
| 36 |
|
| 37 |
-
protected $_code
|
| 38 |
-
|
| 39 |
-
protected $
|
| 40 |
-
protected $
|
| 41 |
-
protected $
|
| 42 |
-
protected $
|
| 43 |
-
protected $
|
| 44 |
-
protected $
|
| 45 |
-
protected $
|
| 46 |
-
protected $
|
| 47 |
-
protected $
|
| 48 |
-
protected $_canSaveCc = true;
|
| 49 |
-
|
| 50 |
protected $_formBlockType = 'paybox/direct_form';
|
| 51 |
protected $_infoBlockType = 'paybox/direct_info';
|
| 52 |
-
|
| 53 |
protected $_order;
|
| 54 |
protected $_currenciesNumbers;
|
| 55 |
protected $_questionNumberModel;
|
|
@@ -61,7 +58,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 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,7 +73,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 75 |
*
|
| 76 |
* @return string
|
| 77 |
*/
|
| 78 |
-
public function getPaymentAction()
|
|
|
|
| 79 |
$paymentAction = $this->getConfigData('payment_action');
|
| 80 |
switch ($paymentAction) {
|
| 81 |
case self::ACTION_AUTHORIZE:
|
|
@@ -95,7 +94,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 95 |
*
|
| 96 |
* @return string
|
| 97 |
*/
|
| 98 |
-
public function getSiteNumber()
|
|
|
|
| 99 |
return $this->getConfigData('pbx_site');
|
| 100 |
}
|
| 101 |
|
|
@@ -104,7 +104,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 104 |
*
|
| 105 |
* @return string
|
| 106 |
*/
|
| 107 |
-
public function getRang()
|
|
|
|
| 108 |
return $this->getConfigData('pbx_rang');
|
| 109 |
}
|
| 110 |
|
|
@@ -113,7 +114,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 113 |
*
|
| 114 |
* @return string
|
| 115 |
*/
|
| 116 |
-
public function getCleNumber()
|
|
|
|
| 117 |
return $this->getConfigData('pbx_cle');
|
| 118 |
}
|
| 119 |
|
|
@@ -122,7 +124,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 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,7 +140,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 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,7 +154,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 150 |
*
|
| 151 |
* @return string
|
| 152 |
*/
|
| 153 |
-
public function getDebugFlag()
|
|
|
|
| 154 |
return $this->getConfigData('debug_flag');
|
| 155 |
}
|
| 156 |
|
|
@@ -159,7 +164,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 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()) {
|
|
@@ -169,11 +175,12 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 169 |
}
|
| 170 |
}
|
| 171 |
|
| 172 |
-
public function authorize(Varien_Object $payment, $amount)
|
|
|
|
| 173 |
parent::authorize($payment, $amount);
|
| 174 |
|
| 175 |
$this->setAmount($amount)
|
| 176 |
-
|
| 177 |
|
| 178 |
if ($this->callDoDirectPayment() !== false) {
|
| 179 |
$payment->setStatus(self::STATUS_APPROVED)
|
|
@@ -193,11 +200,12 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 193 |
return $this;
|
| 194 |
}
|
| 195 |
|
| 196 |
-
public function capture(Varien_Object $payment, $amount)
|
|
|
|
| 197 |
parent::capture($payment, $amount);
|
| 198 |
|
| 199 |
$this->setAmount($amount)
|
| 200 |
-
|
| 201 |
|
| 202 |
if ($payment->getLastTransId()) {
|
| 203 |
//if after authorize
|
|
@@ -224,12 +232,14 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 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;
|
|
@@ -267,7 +277,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 267 |
*
|
| 268 |
* @return bool | array
|
| 269 |
*/
|
| 270 |
-
public function callDoDirectPayment()
|
|
|
|
| 271 |
$payment = $this->getPayment();
|
| 272 |
$requestStr = '';
|
| 273 |
|
|
@@ -297,7 +308,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 297 |
$resultArr = $this->call($requestStr);
|
| 298 |
|
| 299 |
$this->getQuestionNumberModel()
|
| 300 |
-
|
| 301 |
|
| 302 |
if ($resultArr === false) {
|
| 303 |
return false;
|
|
@@ -315,7 +326,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 315 |
*
|
| 316 |
* @return bool | array
|
| 317 |
*/
|
| 318 |
-
public function callDoDebitPayment()
|
|
|
|
| 319 |
|
| 320 |
$payment = $this->getPayment();
|
| 321 |
$requestStr = '';
|
|
@@ -355,7 +367,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 355 |
*
|
| 356 |
* @return bool | array
|
| 357 |
*/
|
| 358 |
-
public function callDoRefund()
|
|
|
|
| 359 |
$payment = $this->getPayment();
|
| 360 |
$requestStr = '';
|
| 361 |
|
|
@@ -384,7 +397,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 384 |
$resultArr = $this->call($requestStr);
|
| 385 |
|
| 386 |
$this->getQuestionNumberModel()
|
| 387 |
-
|
| 388 |
|
| 389 |
if ($resultArr === false) {
|
| 390 |
return false;
|
|
@@ -401,7 +414,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 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)
|
|
@@ -438,8 +452,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 438 |
|
| 439 |
//primary gateway is down, need to recall to backup gateway
|
| 440 |
if ($parsedResArr['CODEREPONSE'] == '00001' ||
|
| 441 |
-
|
| 442 |
-
|
| 443 |
) {
|
| 444 |
$recallCounter++;
|
| 445 |
$recall = true;
|
|
@@ -476,7 +490,8 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc {
|
|
| 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) {
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
|
| 18 |
+
{
|
| 19 |
/**
|
| 20 |
* Paybox direct payment actions
|
| 21 |
*/
|
| 22 |
+
|
| 23 |
const PBX_PAYMENT_ACTION_ATHORIZE = '00001';
|
| 24 |
const PBX_PAYMENT_ACTION_DEBIT = '00002';
|
| 25 |
const PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE = '00003';
|
| 26 |
const PBX_PAYMENT_ACTION_CANCELLATION = '00005';
|
| 27 |
const PBX_PAYMENT_ACTION_REFUND = '00004';
|
|
|
|
| 28 |
const PBX_VERSION = '00103';
|
| 29 |
|
| 30 |
/**
|
| 34 |
*/
|
| 35 |
const PBX_ACTIVITE_VALUE = '024';
|
| 36 |
|
| 37 |
+
protected $_code = 'paybox_direct';
|
| 38 |
+
protected $_isGateway = true;
|
| 39 |
+
protected $_canAuthorize = true;
|
| 40 |
+
protected $_canCapture = true;
|
| 41 |
+
protected $_canCapturePartial = false;
|
| 42 |
+
protected $_canRefund = true;
|
| 43 |
+
protected $_canVoid = false;
|
| 44 |
+
protected $_canUseInternal = true;
|
| 45 |
+
protected $_canUseCheckout = true;
|
| 46 |
+
protected $_canUseForMultishipping = true;
|
| 47 |
+
protected $_canSaveCc = true;
|
|
|
|
|
|
|
| 48 |
protected $_formBlockType = 'paybox/direct_form';
|
| 49 |
protected $_infoBlockType = 'paybox/direct_info';
|
|
|
|
| 50 |
protected $_order;
|
| 51 |
protected $_currenciesNumbers;
|
| 52 |
protected $_questionNumberModel;
|
| 58 |
* @param integer $recallNumber
|
| 59 |
* @return string
|
| 60 |
*/
|
| 61 |
+
public function getPayboxUrl($recallNumber)
|
| 62 |
+
{
|
| 63 |
$path = 'pbx_url';
|
| 64 |
if ($recallNumber) {
|
| 65 |
$path = 'pbx_backupurl';
|
| 73 |
*
|
| 74 |
* @return string
|
| 75 |
*/
|
| 76 |
+
public function getPaymentAction()
|
| 77 |
+
{
|
| 78 |
$paymentAction = $this->getConfigData('payment_action');
|
| 79 |
switch ($paymentAction) {
|
| 80 |
case self::ACTION_AUTHORIZE:
|
| 94 |
*
|
| 95 |
* @return string
|
| 96 |
*/
|
| 97 |
+
public function getSiteNumber()
|
| 98 |
+
{
|
| 99 |
return $this->getConfigData('pbx_site');
|
| 100 |
}
|
| 101 |
|
| 104 |
*
|
| 105 |
* @return string
|
| 106 |
*/
|
| 107 |
+
public function getRang()
|
| 108 |
+
{
|
| 109 |
return $this->getConfigData('pbx_rang');
|
| 110 |
}
|
| 111 |
|
| 114 |
*
|
| 115 |
* @return string
|
| 116 |
*/
|
| 117 |
+
public function getCleNumber()
|
| 118 |
+
{
|
| 119 |
return $this->getConfigData('pbx_cle');
|
| 120 |
}
|
| 121 |
|
| 124 |
*
|
| 125 |
* @return string
|
| 126 |
*/
|
| 127 |
+
public function getCurrencyNumb()
|
| 128 |
+
{
|
| 129 |
$currencyCode = $this->getPayment()->getOrder()->getBaseCurrencyCode();
|
| 130 |
if (!$this->_currenciesNumbers) {
|
| 131 |
$this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/community/Quadra/Paybox/etc/currency.xml');
|
| 140 |
*
|
| 141 |
* @return Quadra_Paybox_Model_Question_Number
|
| 142 |
*/
|
| 143 |
+
public function getQuestionNumberModel()
|
| 144 |
+
{
|
| 145 |
if (!$this->_questionNumberModel) {
|
| 146 |
$accountHash = md5($this->getSiteNumber() . $this->getRang());
|
| 147 |
$this->_questionNumberModel = Mage::getModel('paybox/question_number')->load($accountHash, 'account_hash');
|
| 154 |
*
|
| 155 |
* @return string
|
| 156 |
*/
|
| 157 |
+
public function getDebugFlag()
|
| 158 |
+
{
|
| 159 |
return $this->getConfigData('debug_flag');
|
| 160 |
}
|
| 161 |
|
| 164 |
*
|
| 165 |
* @return double
|
| 166 |
*/
|
| 167 |
+
public function getMontant()
|
| 168 |
+
{
|
| 169 |
$session = Mage::getSingleton('checkout/session');
|
| 170 |
$quote = Mage::getModel('sales/quote')->load($session->getQuoteId());
|
| 171 |
if ($quote->getIsMultiShipping()) {
|
| 175 |
}
|
| 176 |
}
|
| 177 |
|
| 178 |
+
public function authorize(Varien_Object $payment, $amount)
|
| 179 |
+
{
|
| 180 |
parent::authorize($payment, $amount);
|
| 181 |
|
| 182 |
$this->setAmount($amount)
|
| 183 |
+
->setPayment($payment);
|
| 184 |
|
| 185 |
if ($this->callDoDirectPayment() !== false) {
|
| 186 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 200 |
return $this;
|
| 201 |
}
|
| 202 |
|
| 203 |
+
public function capture(Varien_Object $payment, $amount)
|
| 204 |
+
{
|
| 205 |
parent::capture($payment, $amount);
|
| 206 |
|
| 207 |
$this->setAmount($amount)
|
| 208 |
+
->setPayment($payment);
|
| 209 |
|
| 210 |
if ($payment->getLastTransId()) {
|
| 211 |
//if after authorize
|
| 232 |
return $this;
|
| 233 |
}
|
| 234 |
|
| 235 |
+
public function cancel(Varien_Object $payment)
|
| 236 |
+
{
|
| 237 |
$payment->setStatus(self::STATUS_DECLINED);
|
| 238 |
return $this;
|
| 239 |
}
|
| 240 |
|
| 241 |
+
public function refund(Varien_Object $payment, $amount)
|
| 242 |
+
{
|
| 243 |
parent::refund($payment, $amount);
|
| 244 |
|
| 245 |
$error = false;
|
| 277 |
*
|
| 278 |
* @return bool | array
|
| 279 |
*/
|
| 280 |
+
public function callDoDirectPayment()
|
| 281 |
+
{
|
| 282 |
$payment = $this->getPayment();
|
| 283 |
$requestStr = '';
|
| 284 |
|
| 308 |
$resultArr = $this->call($requestStr);
|
| 309 |
|
| 310 |
$this->getQuestionNumberModel()
|
| 311 |
+
->increaseQuestionNumber();
|
| 312 |
|
| 313 |
if ($resultArr === false) {
|
| 314 |
return false;
|
| 326 |
*
|
| 327 |
* @return bool | array
|
| 328 |
*/
|
| 329 |
+
public function callDoDebitPayment()
|
| 330 |
+
{
|
| 331 |
|
| 332 |
$payment = $this->getPayment();
|
| 333 |
$requestStr = '';
|
| 367 |
*
|
| 368 |
* @return bool | array
|
| 369 |
*/
|
| 370 |
+
public function callDoRefund()
|
| 371 |
+
{
|
| 372 |
$payment = $this->getPayment();
|
| 373 |
$requestStr = '';
|
| 374 |
|
| 397 |
$resultArr = $this->call($requestStr);
|
| 398 |
|
| 399 |
$this->getQuestionNumberModel()
|
| 400 |
+
->increaseQuestionNumber();
|
| 401 |
|
| 402 |
if ($resultArr === false) {
|
| 403 |
return false;
|
| 414 |
* @param string $requestStr
|
| 415 |
* @return bool | array
|
| 416 |
*/
|
| 417 |
+
public function call($requestStr)
|
| 418 |
+
{
|
| 419 |
if ($this->getDebugFlag()) {
|
| 420 |
$debug = Mage::getModel('paybox/api_debug')
|
| 421 |
->setRequestBody($requestStr)
|
| 452 |
|
| 453 |
//primary gateway is down, need to recall to backup gateway
|
| 454 |
if ($parsedResArr['CODEREPONSE'] == '00001' ||
|
| 455 |
+
$parsedResArr['CODEREPONSE'] == '00097' ||
|
| 456 |
+
$parsedResArr['CODEREPONSE'] == '00098'
|
| 457 |
) {
|
| 458 |
$recallCounter++;
|
| 459 |
$recall = true;
|
| 490 |
* @param string $str
|
| 491 |
* @return array
|
| 492 |
*/
|
| 493 |
+
public function parseResponseStr($str)
|
| 494 |
+
{
|
| 495 |
$tmpResponseArr = explode('&', $str);
|
| 496 |
$responseArr = array();
|
| 497 |
foreach ($tmpResponseArr as $response) {
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Mysql4_Api_Debug extends Mage_Core_Model_Mysql4_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _construct()
|
| 21 |
+
{
|
| 22 |
$this->_init('paybox/api_debug', 'debug_id');
|
| 23 |
}
|
| 24 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Mysql4_Api_Debug_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _construct()
|
| 21 |
+
{
|
| 22 |
$this->_init('paybox/api_debug');
|
| 23 |
}
|
| 24 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Mysql4_Question_Number extends Mage_Core_Model_Mysql4_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _construct()
|
| 21 |
+
{
|
| 22 |
$this->_init('paybox/question_number', 'account_id');
|
| 23 |
}
|
| 24 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Mysql4_Question_Number_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _construct()
|
| 21 |
+
{
|
| 22 |
$this->_init('paybox/question_number');
|
| 23 |
}
|
| 24 |
|
|
@@ -8,13 +8,13 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
}
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup
|
| 18 |
+
{
|
| 19 |
|
| 20 |
}
|
|
@@ -8,19 +8,20 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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,7 +30,8 @@ class Quadra_Paybox_Model_Observer {
|
|
| 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,7 +54,8 @@ class Quadra_Paybox_Model_Observer {
|
|
| 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') {
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Observer
|
| 18 |
+
{
|
| 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 |
*
|
| 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 |
*
|
| 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') {
|
|
@@ -8,31 +8,35 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
*/
|
|
|
|
| 22 |
const MAX_QUESTION_NUMBER_VALUE = 2147483647;
|
| 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,7 +59,8 @@ class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract {
|
|
| 55 |
*
|
| 56 |
* @return string
|
| 57 |
*/
|
| 58 |
-
public function getNextQuestionNumber()
|
|
|
|
| 59 |
$questionNumber = $this->getIncrementValue() + 1;
|
| 60 |
return sprintf('%010d', $questionNumber);
|
| 61 |
}
|
|
@@ -65,7 +70,8 @@ class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract {
|
|
| 65 |
*
|
| 66 |
* @return Quadra_Paybox_Model_Question_Number
|
| 67 |
*/
|
| 68 |
-
public function increaseQuestionNumber()
|
|
|
|
| 69 |
$this->setIncrementValue($this->getIncrementValue() + 1)
|
| 70 |
->save();
|
| 71 |
return $this;
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract
|
| 18 |
+
{
|
| 19 |
/**
|
| 20 |
* Max value of question number
|
| 21 |
*/
|
| 22 |
+
|
| 23 |
const MAX_QUESTION_NUMBER_VALUE = 2147483647;
|
| 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 |
*
|
| 60 |
* @return string
|
| 61 |
*/
|
| 62 |
+
public function getNextQuestionNumber()
|
| 63 |
+
{
|
| 64 |
$questionNumber = $this->getIncrementValue() + 1;
|
| 65 |
return sprintf('%010d', $questionNumber);
|
| 66 |
}
|
| 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;
|
|
@@ -8,25 +8,27 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_CartType
|
| 18 |
+
{
|
| 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 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_Cctype extends Mage_Payment_Model_Source_Cctype
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function getAllowedTypes()
|
| 21 |
+
{
|
| 22 |
return array('VI', 'MC', 'AE', 'OT');
|
| 23 |
}
|
| 24 |
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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)')),
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_Language
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function toOptionArray()
|
| 21 |
+
{
|
| 22 |
return array(
|
| 23 |
array('value' => 'FRA', 'label' => Mage::helper('paybox')->__('FRA (French)')),
|
| 24 |
array('value' => 'GBR', 'label' => Mage::helper('paybox')->__('GBR (English)')),
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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'))
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_ManagementMode
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function toOptionArray()
|
| 21 |
+
{
|
| 22 |
return array(
|
| 23 |
array('value' => 'A', 'label' => Mage::helper('paybox')->__('Mode A')),
|
| 24 |
array('value' => 'E', 'label' => Mage::helper('paybox')->__('Mode E'))
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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')),
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_MethodCall
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function toOptionArray()
|
| 21 |
+
{
|
| 22 |
return array(
|
| 23 |
array('value' => 'GET', 'label' => Mage::helper('paybox')->__('GET')),
|
| 24 |
array('value' => 'POST', 'label' => Mage::helper('paybox')->__('POST')),
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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')),
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_PaymentAction
|
| 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')),
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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'))
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_PaymentMode
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
public function toOptionArray()
|
| 21 |
+
{
|
| 22 |
return array(
|
| 23 |
array('value' => 1, 'label' => Mage::helper('paybox')->__('HTML form')),
|
| 24 |
array('value' => 4, 'label' => Mage::helper('paybox')->__('Command Line Mode'))
|
|
@@ -8,23 +8,25 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_Source_PaymentType
|
| 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 |
+
array('value' => Quadra_Paybox_Model_System::PBX_PAYMENT_TYPE_PREPAYEE, 'label' => Mage::helper('paybox')->__('PREPAYEE'))
|
| 30 |
);
|
| 31 |
}
|
| 32 |
|
|
@@ -8,73 +8,68 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
*/
|
| 22 |
-
const PBX_FORM_HTML_METHOD = 1;
|
| 23 |
-
const PBX_COMMAND_LINE_METHOD = 4;
|
| 24 |
|
|
|
|
|
|
|
| 25 |
const PBX_METHOD_CALL = 'POST';
|
| 26 |
-
|
| 27 |
const PBX_PAYMENT_ACTION_ATHORIZE = 'O';
|
| 28 |
const PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE = 'N';
|
| 29 |
-
|
| 30 |
-
const
|
| 31 |
-
const
|
| 32 |
-
const PBX_PAYMENT_TYPE_PAYNOVA = 'PAYNOVA';
|
| 33 |
const PBX_PAYMENT_TYPE_TERMINEO = 'TERMINEO';
|
| 34 |
-
const PBX_PAYMENT_TYPE_PAYPAL
|
| 35 |
-
|
| 36 |
-
const PBX_CARTE_TYPE_CB
|
| 37 |
-
const PBX_CARTE_TYPE_VISA
|
| 38 |
const PBX_CARTE_TYPE_EUROCARDMASTERCARD = 'EUROCARD_MASTERCARD';
|
| 39 |
-
const PBX_CARTE_TYPE_ECARD
|
| 40 |
-
const PBX_CARTE_TYPE_AMEX
|
| 41 |
-
const PBX_CARTE_TYPE_DINERS
|
| 42 |
-
const PBX_CARTE_TYPE_JCB
|
| 43 |
-
const PBX_CARTE_TYPE_AURORE
|
| 44 |
-
const PBX_CARTE_TYPE_PAYNOVA
|
| 45 |
-
const PBX_CARTE_TYPE_TERMINEO
|
| 46 |
-
const PBX_CARTE_TYPE_PAYPAL
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
protected $_authorized_ips = array('194.2.122.158', '195.101.99.76','195.25.7.166');
|
| 51 |
-
|
| 52 |
-
protected $
|
| 53 |
-
protected $
|
| 54 |
-
protected $
|
| 55 |
-
protected $
|
| 56 |
-
protected $
|
| 57 |
-
protected $
|
| 58 |
-
protected $
|
| 59 |
-
protected $
|
| 60 |
-
protected $_canUseForMultishipping = true;
|
| 61 |
-
|
| 62 |
protected $_formBlockType = 'paybox/system_form';
|
| 63 |
-
|
| 64 |
protected $_quote;
|
| 65 |
protected $_order;
|
| 66 |
protected $_cartTypes;
|
| 67 |
protected $_currenciesNumbers;
|
| 68 |
-
|
| 69 |
-
protected $
|
| 70 |
-
protected $_backuptimeouts = array();
|
| 71 |
|
| 72 |
/**
|
| 73 |
* Get quote model
|
| 74 |
*
|
| 75 |
* @return Mage_Sales_Model_Quote
|
| 76 |
*/
|
| 77 |
-
public function getQuote()
|
|
|
|
| 78 |
if (!$this->_quote) {
|
| 79 |
$quoteId = Mage::getSingleton('checkout/session')->getLastQuoteId();
|
| 80 |
$this->_quote = Mage::getModel('sales/quote')->load($quoteId);
|
|
@@ -87,7 +82,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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());
|
|
@@ -100,7 +96,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 100 |
*
|
| 101 |
* @return string
|
| 102 |
*/
|
| 103 |
-
public function getOrderList()
|
|
|
|
| 104 |
if ($this->getQuote()->getIsMultiShipping())
|
| 105 |
return Mage::getSingleton('checkout/session')->getRealOrderIds();
|
| 106 |
else
|
|
@@ -112,12 +109,14 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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,7 +126,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 127 |
* @param string $field
|
| 128 |
* @return mixed
|
| 129 |
*/
|
| 130 |
-
public function getDesignConfigData($field, $storeId = null)
|
|
|
|
| 131 |
if (null === $storeId) {
|
| 132 |
$storeId = $this->getStore();
|
| 133 |
}
|
|
@@ -142,7 +142,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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(
|
|
@@ -175,6 +176,9 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 175 |
),
|
| 176 |
self::PBX_PAYMENT_TYPE_PAYPAL => array(
|
| 177 |
self::PBX_CARTE_TYPE_PAYPAL => Mage::helper('paybox')->__('PAYPAL'),
|
|
|
|
|
|
|
|
|
|
| 178 |
)
|
| 179 |
);
|
| 180 |
}
|
|
@@ -194,7 +198,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 194 |
* @param string $paymentType
|
| 195 |
* @return array
|
| 196 |
*/
|
| 197 |
-
public function getCartTypesByPayment($paymentType)
|
|
|
|
| 198 |
if ($paymentType == '') {
|
| 199 |
return array();
|
| 200 |
}
|
|
@@ -206,7 +211,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 206 |
*
|
| 207 |
* @return string
|
| 208 |
*/
|
| 209 |
-
public function getJsonCartTypes()
|
|
|
|
| 210 |
return Zend_Json::encode($this->_getCartTypes());
|
| 211 |
}
|
| 212 |
|
|
@@ -215,7 +221,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 215 |
*
|
| 216 |
* @return string
|
| 217 |
*/
|
| 218 |
-
public function getPaymentMethod()
|
|
|
|
| 219 |
return $this->getConfigData('pbx_mode');
|
| 220 |
}
|
| 221 |
|
|
@@ -224,7 +231,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 224 |
*
|
| 225 |
* @return string
|
| 226 |
*/
|
| 227 |
-
public function getPayboxFile()
|
|
|
|
| 228 |
return $this->getConfigData('pbx_file');
|
| 229 |
}
|
| 230 |
|
|
@@ -233,7 +241,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 233 |
*
|
| 234 |
* @return string
|
| 235 |
*/
|
| 236 |
-
public function getPaymentType()
|
|
|
|
| 237 |
return $this->getConfigData('pbx_typepaiement');
|
| 238 |
}
|
| 239 |
|
|
@@ -242,7 +251,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 242 |
*
|
| 243 |
* @return string
|
| 244 |
*/
|
| 245 |
-
public function getPaymentAction()
|
|
|
|
| 246 |
$paymentAction = $this->getConfigData('pbx_autoseule');
|
| 247 |
switch ($paymentAction) {
|
| 248 |
case self::ACTION_AUTHORIZE:
|
|
@@ -262,7 +272,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 262 |
*
|
| 263 |
* @return string
|
| 264 |
*/
|
| 265 |
-
public function getCartType()
|
|
|
|
| 266 |
return $this->getConfigData('pbx_typecarte');
|
| 267 |
}
|
| 268 |
|
|
@@ -271,7 +282,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 271 |
*
|
| 272 |
* @return string
|
| 273 |
*/
|
| 274 |
-
public function getSiteNumber()
|
|
|
|
| 275 |
return $this->getConfigData('pbx_site');
|
| 276 |
}
|
| 277 |
|
|
@@ -280,7 +292,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 280 |
*
|
| 281 |
* @return string
|
| 282 |
*/
|
| 283 |
-
public function getRang()
|
|
|
|
| 284 |
return $this->getConfigData('pbx_rang');
|
| 285 |
}
|
| 286 |
|
|
@@ -289,7 +302,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 289 |
*
|
| 290 |
* @return string
|
| 291 |
*/
|
| 292 |
-
public function getIdentifiant()
|
|
|
|
| 293 |
return $this->getConfigData('pbx_identifiant');
|
| 294 |
}
|
| 295 |
|
|
@@ -298,7 +312,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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,7 +328,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 313 |
*
|
| 314 |
* @return string
|
| 315 |
*/
|
| 316 |
-
public function getLanguage()
|
|
|
|
| 317 |
return $this->getConfigData('pbx_langue');
|
| 318 |
}
|
| 319 |
|
|
@@ -322,7 +338,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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,7 +369,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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,7 +397,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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,7 +423,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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,7 +456,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 436 |
*
|
| 437 |
* @return unknown
|
| 438 |
*/
|
| 439 |
-
public function getPingFlag()
|
|
|
|
| 440 |
return $this->getConfigData('pbx_ping');
|
| 441 |
}
|
| 442 |
|
|
@@ -445,7 +466,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 445 |
*
|
| 446 |
* @return string
|
| 447 |
*/
|
| 448 |
-
public function getPingPort()
|
|
|
|
| 449 |
return $this->getConfigData('pbx_port');
|
| 450 |
}
|
| 451 |
|
|
@@ -454,11 +476,13 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 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,7 +495,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 471 |
*
|
| 472 |
* @return array
|
| 473 |
*/
|
| 474 |
-
public function getFormFields()
|
|
|
|
| 475 |
$fieldsArr = array();
|
| 476 |
|
| 477 |
$fieldsArr = array(
|
|
@@ -542,7 +567,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 542 |
* @param array $response
|
| 543 |
* @return bool
|
| 544 |
*/
|
| 545 |
-
public function checkResponse($response)
|
|
|
|
| 546 |
if ($this->getDebugFlag()) {
|
| 547 |
$debug = Mage::getSingleton('paybox/api_debug')
|
| 548 |
->load($response['ref'], 'real_order_id')
|
|
@@ -557,7 +583,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 557 |
return false;
|
| 558 |
}
|
| 559 |
|
| 560 |
-
public function capture(Varien_Object $payment, $amount)
|
|
|
|
| 561 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 562 |
->setLastTransId($this->getTransactionId());
|
| 563 |
return $this;
|
|
@@ -569,20 +596,23 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 569 |
* @param Varien_Object $info
|
| 570 |
* @return Mage_Payment_Model_Abstract
|
| 571 |
*/
|
| 572 |
-
public function validate()
|
|
|
|
| 573 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
| 574 |
$quote->setCustomerNoteNotify(false);
|
| 575 |
parent::validate();
|
| 576 |
}
|
| 577 |
|
| 578 |
-
public function authorize(Varien_Object $payment, $amount)
|
|
|
|
| 579 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 580 |
->setLastTransId($this->getTransactionId());
|
| 581 |
|
| 582 |
return $this;
|
| 583 |
}
|
| 584 |
|
| 585 |
-
public function cancel(Varien_Object $payment)
|
|
|
|
| 586 |
$payment->setStatus(self::STATUS_DECLINED);
|
| 587 |
return $this;
|
| 588 |
}
|
|
@@ -593,7 +623,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract {
|
|
| 593 |
* @param none
|
| 594 |
* @return string Failure response string
|
| 595 |
*/
|
| 596 |
-
public function getErrorResponse()
|
|
|
|
| 597 |
$response = array(
|
| 598 |
'Pragma: no-cache',
|
| 599 |
'Content-type : text/plain',
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
|
| 18 |
+
{
|
| 19 |
/**
|
| 20 |
* Paybox const variables
|
| 21 |
*/
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
const PBX_FORM_HTML_METHOD = 1;
|
| 24 |
+
const PBX_COMMAND_LINE_METHOD = 4;
|
| 25 |
const PBX_METHOD_CALL = 'POST';
|
|
|
|
| 26 |
const PBX_PAYMENT_ACTION_ATHORIZE = 'O';
|
| 27 |
const PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE = 'N';
|
| 28 |
+
const PBX_PAYMENT_TYPE_CARTE = 'CARTE';
|
| 29 |
+
const PBX_PAYMENT_TYPE_SYMPASS = 'SYMPASS';
|
| 30 |
+
const PBX_PAYMENT_TYPE_PAYNOVA = 'PAYNOVA';
|
|
|
|
| 31 |
const PBX_PAYMENT_TYPE_TERMINEO = 'TERMINEO';
|
| 32 |
+
const PBX_PAYMENT_TYPE_PAYPAL = 'PAYPAL';
|
| 33 |
+
const PBX_PAYMENT_TYPE_PREPAYEE = 'PREPAYEE';
|
| 34 |
+
const PBX_CARTE_TYPE_CB = 'CB';
|
| 35 |
+
const PBX_CARTE_TYPE_VISA = 'VISA';
|
| 36 |
const PBX_CARTE_TYPE_EUROCARDMASTERCARD = 'EUROCARD_MASTERCARD';
|
| 37 |
+
const PBX_CARTE_TYPE_ECARD = 'E_CARD';
|
| 38 |
+
const PBX_CARTE_TYPE_AMEX = 'AMEX';
|
| 39 |
+
const PBX_CARTE_TYPE_DINERS = 'DINERS';
|
| 40 |
+
const PBX_CARTE_TYPE_JCB = 'JCB';
|
| 41 |
+
const PBX_CARTE_TYPE_AURORE = 'AURORE';
|
| 42 |
+
const PBX_CARTE_TYPE_PAYNOVA = 'PAYNOVA';
|
| 43 |
+
const PBX_CARTE_TYPE_TERMINEO = 'TERMINEO';
|
| 44 |
+
const PBX_CARTE_TYPE_PAYPAL = 'PAYPAL';
|
| 45 |
+
const PBX_CARTE_TYPE_MAXICHEQUE = 'MAXICHEQUE';
|
| 46 |
+
|
| 47 |
+
protected $_code = 'paybox_system';
|
| 48 |
+
protected $_authorized_ips = array('194.2.122.158', '195.101.99.76', '195.25.7.166');
|
| 49 |
+
protected $_isGateway = false;
|
| 50 |
+
protected $_canAuthorize = true;
|
| 51 |
+
protected $_canCapture = true;
|
| 52 |
+
protected $_canCapturePartial = false;
|
| 53 |
+
protected $_canRefund = false;
|
| 54 |
+
protected $_canVoid = false;
|
| 55 |
+
protected $_canUseInternal = false;
|
| 56 |
+
protected $_canUseCheckout = true;
|
| 57 |
+
protected $_canUseForMultishipping = true;
|
|
|
|
|
|
|
| 58 |
protected $_formBlockType = 'paybox/system_form';
|
|
|
|
| 59 |
protected $_quote;
|
| 60 |
protected $_order;
|
| 61 |
protected $_cartTypes;
|
| 62 |
protected $_currenciesNumbers;
|
| 63 |
+
protected $_backupservers = array();
|
| 64 |
+
protected $_backuptimeouts = array();
|
|
|
|
| 65 |
|
| 66 |
/**
|
| 67 |
* Get quote model
|
| 68 |
*
|
| 69 |
* @return Mage_Sales_Model_Quote
|
| 70 |
*/
|
| 71 |
+
public function getQuote()
|
| 72 |
+
{
|
| 73 |
if (!$this->_quote) {
|
| 74 |
$quoteId = Mage::getSingleton('checkout/session')->getLastQuoteId();
|
| 75 |
$this->_quote = Mage::getModel('sales/quote')->load($quoteId);
|
| 82 |
*
|
| 83 |
* @return Mage_Sales_Model_Order
|
| 84 |
*/
|
| 85 |
+
public function getOrder()
|
| 86 |
+
{
|
| 87 |
if (!$this->_order) {
|
| 88 |
$paymentInfo = $this->getInfoInstance();
|
| 89 |
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId());
|
| 96 |
*
|
| 97 |
* @return string
|
| 98 |
*/
|
| 99 |
+
public function getOrderList()
|
| 100 |
+
{
|
| 101 |
if ($this->getQuote()->getIsMultiShipping())
|
| 102 |
return Mage::getSingleton('checkout/session')->getRealOrderIds();
|
| 103 |
else
|
| 109 |
*
|
| 110 |
* @param Mage_Sales_Model_Order $order
|
| 111 |
*/
|
| 112 |
+
public function setOrder(Mage_Sales_Model_Order $order)
|
| 113 |
+
{
|
| 114 |
$this->_order = $order;
|
| 115 |
return $this;
|
| 116 |
}
|
| 117 |
|
| 118 |
+
public function getAuthorizedIps()
|
| 119 |
+
{
|
| 120 |
return $this->_authorized_ips;
|
| 121 |
}
|
| 122 |
|
| 126 |
* @param string $field
|
| 127 |
* @return mixed
|
| 128 |
*/
|
| 129 |
+
public function getDesignConfigData($field, $storeId = null)
|
| 130 |
+
{
|
| 131 |
if (null === $storeId) {
|
| 132 |
$storeId = $this->getStore();
|
| 133 |
}
|
| 142 |
* @param string $paymentType
|
| 143 |
* @return array
|
| 144 |
*/
|
| 145 |
+
protected function _getCartTypes($paymentType = null)
|
| 146 |
+
{
|
| 147 |
if (!$this->_cartTypes) {
|
| 148 |
$this->_cartTypes = array(
|
| 149 |
self::PBX_PAYMENT_TYPE_CARTE => array(
|
| 176 |
),
|
| 177 |
self::PBX_PAYMENT_TYPE_PAYPAL => array(
|
| 178 |
self::PBX_CARTE_TYPE_PAYPAL => Mage::helper('paybox')->__('PAYPAL'),
|
| 179 |
+
),
|
| 180 |
+
self::PBX_PAYMENT_TYPE_PREPAYEE => array(
|
| 181 |
+
self::PBX_CARTE_TYPE_MAXICHEQUE => Mage::helper('paybox')->__('MAXICHEQUE'),
|
| 182 |
)
|
| 183 |
);
|
| 184 |
}
|
| 198 |
* @param string $paymentType
|
| 199 |
* @return array
|
| 200 |
*/
|
| 201 |
+
public function getCartTypesByPayment($paymentType)
|
| 202 |
+
{
|
| 203 |
if ($paymentType == '') {
|
| 204 |
return array();
|
| 205 |
}
|
| 211 |
*
|
| 212 |
* @return string
|
| 213 |
*/
|
| 214 |
+
public function getJsonCartTypes()
|
| 215 |
+
{
|
| 216 |
return Zend_Json::encode($this->_getCartTypes());
|
| 217 |
}
|
| 218 |
|
| 221 |
*
|
| 222 |
* @return string
|
| 223 |
*/
|
| 224 |
+
public function getPaymentMethod()
|
| 225 |
+
{
|
| 226 |
return $this->getConfigData('pbx_mode');
|
| 227 |
}
|
| 228 |
|
| 231 |
*
|
| 232 |
* @return string
|
| 233 |
*/
|
| 234 |
+
public function getPayboxFile()
|
| 235 |
+
{
|
| 236 |
return $this->getConfigData('pbx_file');
|
| 237 |
}
|
| 238 |
|
| 241 |
*
|
| 242 |
* @return string
|
| 243 |
*/
|
| 244 |
+
public function getPaymentType()
|
| 245 |
+
{
|
| 246 |
return $this->getConfigData('pbx_typepaiement');
|
| 247 |
}
|
| 248 |
|
| 251 |
*
|
| 252 |
* @return string
|
| 253 |
*/
|
| 254 |
+
public function getPaymentAction()
|
| 255 |
+
{
|
| 256 |
$paymentAction = $this->getConfigData('pbx_autoseule');
|
| 257 |
switch ($paymentAction) {
|
| 258 |
case self::ACTION_AUTHORIZE:
|
| 272 |
*
|
| 273 |
* @return string
|
| 274 |
*/
|
| 275 |
+
public function getCartType()
|
| 276 |
+
{
|
| 277 |
return $this->getConfigData('pbx_typecarte');
|
| 278 |
}
|
| 279 |
|
| 282 |
*
|
| 283 |
* @return string
|
| 284 |
*/
|
| 285 |
+
public function getSiteNumber()
|
| 286 |
+
{
|
| 287 |
return $this->getConfigData('pbx_site');
|
| 288 |
}
|
| 289 |
|
| 292 |
*
|
| 293 |
* @return string
|
| 294 |
*/
|
| 295 |
+
public function getRang()
|
| 296 |
+
{
|
| 297 |
return $this->getConfigData('pbx_rang');
|
| 298 |
}
|
| 299 |
|
| 302 |
*
|
| 303 |
* @return string
|
| 304 |
*/
|
| 305 |
+
public function getIdentifiant()
|
| 306 |
+
{
|
| 307 |
return $this->getConfigData('pbx_identifiant');
|
| 308 |
}
|
| 309 |
|
| 312 |
*
|
| 313 |
* @return string
|
| 314 |
*/
|
| 315 |
+
public function getCurrencyNumber()
|
| 316 |
+
{
|
| 317 |
$currencyCode = $this->getOrder()->getBaseCurrencyCode();
|
| 318 |
if (!$this->_currenciesNumbers) {
|
| 319 |
$this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/community/Quadra/Paybox/etc/currency.xml');
|
| 328 |
*
|
| 329 |
* @return string
|
| 330 |
*/
|
| 331 |
+
public function getLanguage()
|
| 332 |
+
{
|
| 333 |
return $this->getConfigData('pbx_langue');
|
| 334 |
}
|
| 335 |
|
| 338 |
*
|
| 339 |
* QI Marine
|
| 340 |
*/
|
| 341 |
+
public function getBackupServer()
|
| 342 |
+
{
|
| 343 |
$bpserversConfigPath = 'payment/paybox_system/pbx_bpserver';
|
| 344 |
$configValueSerialized = Mage::getStoreConfig($bpserversConfigPath, $this->getStore());
|
| 345 |
|
| 369 |
*
|
| 370 |
* @return unknown
|
| 371 |
*/
|
| 372 |
+
public function getApiUrls()
|
| 373 |
+
{
|
| 374 |
$fielldsArr = array();
|
| 375 |
if (($primary = trim($this->getConfigData('pbx_paybox'))) != '') {
|
| 376 |
$fielldsArr['PBX_PAYBOX'] = $primary;
|
| 397 |
*
|
| 398 |
* @return array
|
| 399 |
*/
|
| 400 |
+
public function getTimeouts()
|
| 401 |
+
{
|
| 402 |
$fielldsArr = array();
|
| 403 |
if (($timeout = trim($this->getConfigData('pbx_timeout'))) != '') {
|
| 404 |
$fielldsArr['PBX_TIMEOUT'] = $timeout;
|
| 423 |
*
|
| 424 |
* @return array
|
| 425 |
*/
|
| 426 |
+
public function getManagementMode()
|
| 427 |
+
{
|
| 428 |
$fieldsArr = array();
|
| 429 |
if (($text = trim($this->getDesignConfigData('pbx_txt'))) != '') {
|
| 430 |
$fieldsArr['PBX_TXT'] = utf8_encode($text);
|
| 456 |
*
|
| 457 |
* @return unknown
|
| 458 |
*/
|
| 459 |
+
public function getPingFlag()
|
| 460 |
+
{
|
| 461 |
return $this->getConfigData('pbx_ping');
|
| 462 |
}
|
| 463 |
|
| 466 |
*
|
| 467 |
* @return string
|
| 468 |
*/
|
| 469 |
+
public function getPingPort()
|
| 470 |
+
{
|
| 471 |
return $this->getConfigData('pbx_port');
|
| 472 |
}
|
| 473 |
|
| 476 |
*
|
| 477 |
* @return string
|
| 478 |
*/
|
| 479 |
+
public function getDebugFlag()
|
| 480 |
+
{
|
| 481 |
return $this->getConfigData('debug_flag');
|
| 482 |
}
|
| 483 |
|
| 484 |
+
public function getOrderPlaceRedirectUrl()
|
| 485 |
+
{
|
| 486 |
if ($this->getPaymentMethod() == self::PBX_FORM_HTML_METHOD) {
|
| 487 |
return Mage::getUrl('paybox/system/redirect', array('_secure' => true));
|
| 488 |
} else {
|
| 495 |
*
|
| 496 |
* @return array
|
| 497 |
*/
|
| 498 |
+
public function getFormFields()
|
| 499 |
+
{
|
| 500 |
$fieldsArr = array();
|
| 501 |
|
| 502 |
$fieldsArr = array(
|
| 567 |
* @param array $response
|
| 568 |
* @return bool
|
| 569 |
*/
|
| 570 |
+
public function checkResponse($response)
|
| 571 |
+
{
|
| 572 |
if ($this->getDebugFlag()) {
|
| 573 |
$debug = Mage::getSingleton('paybox/api_debug')
|
| 574 |
->load($response['ref'], 'real_order_id')
|
| 583 |
return false;
|
| 584 |
}
|
| 585 |
|
| 586 |
+
public function capture(Varien_Object $payment, $amount)
|
| 587 |
+
{
|
| 588 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 589 |
->setLastTransId($this->getTransactionId());
|
| 590 |
return $this;
|
| 596 |
* @param Varien_Object $info
|
| 597 |
* @return Mage_Payment_Model_Abstract
|
| 598 |
*/
|
| 599 |
+
public function validate()
|
| 600 |
+
{
|
| 601 |
$quote = Mage::getSingleton('checkout/session')->getQuote();
|
| 602 |
$quote->setCustomerNoteNotify(false);
|
| 603 |
parent::validate();
|
| 604 |
}
|
| 605 |
|
| 606 |
+
public function authorize(Varien_Object $payment, $amount)
|
| 607 |
+
{
|
| 608 |
$payment->setStatus(self::STATUS_APPROVED)
|
| 609 |
->setLastTransId($this->getTransactionId());
|
| 610 |
|
| 611 |
return $this;
|
| 612 |
}
|
| 613 |
|
| 614 |
+
public function cancel(Varien_Object $payment)
|
| 615 |
+
{
|
| 616 |
$payment->setStatus(self::STATUS_DECLINED);
|
| 617 |
return $this;
|
| 618 |
}
|
| 623 |
* @param none
|
| 624 |
* @return string Failure response string
|
| 625 |
*/
|
| 626 |
+
public function getErrorResponse()
|
| 627 |
+
{
|
| 628 |
$response = array(
|
| 629 |
'Pragma: no-cache',
|
| 630 |
'Content-type : text/plain',
|
|
@@ -8,19 +8,20 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 {
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status
|
| 18 |
+
{
|
| 19 |
|
| 20 |
// set null to enable all possible
|
| 21 |
protected $_stateStatuses = array();
|
| 22 |
|
| 23 |
+
public function toOptionArray()
|
| 24 |
+
{
|
| 25 |
if ($this->_stateStatuses) {
|
| 26 |
$statuses = Mage::getSingleton('sales/order_config')->getStateStatuses($this->_stateStatuses);
|
| 27 |
} else {
|
|
@@ -8,14 +8,14 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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(
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_Accepted extends Quadra_Paybox_Model_System_Config_Source_Order_Status
|
| 18 |
+
{
|
| 19 |
|
| 20 |
// set null to enable all possible
|
| 21 |
protected $_stateStatuses = array(
|
|
@@ -8,14 +8,14 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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(
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_Canceled extends Quadra_Paybox_Model_System_Config_Source_Order_Status
|
| 18 |
+
{
|
| 19 |
|
| 20 |
// set null to enable all possible
|
| 21 |
protected $_stateStatuses = array(
|
|
@@ -8,14 +8,14 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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(
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_New extends Quadra_Paybox_Model_System_Config_Source_Order_Status
|
| 18 |
+
{
|
| 19 |
|
| 20 |
// set null to enable all possible
|
| 21 |
protected $_stateStatuses = array(
|
|
@@ -8,14 +8,14 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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(
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Model_System_Config_Source_Order_Status_Refused extends Quadra_Paybox_Model_System_Config_Source_Order_Status
|
| 18 |
+
{
|
| 19 |
|
| 20 |
// set null to enable all possible
|
| 21 |
protected $_stateStatuses = array(
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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);
|
|
@@ -31,7 +32,8 @@ class Quadra_Paybox_Adminhtml_Api_DebugController extends Mage_Adminhtml_Control
|
|
| 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')) {
|
|
@@ -61,7 +63,8 @@ class Quadra_Paybox_Adminhtml_Api_DebugController extends Mage_Adminhtml_Control
|
|
| 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()
|
|
@@ -71,7 +74,8 @@ class Quadra_Paybox_Adminhtml_Api_DebugController extends Mage_Adminhtml_Control
|
|
| 71 |
/**
|
| 72 |
* Paybox api debug view action
|
| 73 |
*/
|
| 74 |
-
public function viewAction()
|
|
|
|
| 75 |
$this->loadLayout();
|
| 76 |
$this->_initPaybox('id');
|
| 77 |
|
|
@@ -83,7 +87,7 @@ class Quadra_Paybox_Adminhtml_Api_DebugController extends Mage_Adminhtml_Control
|
|
| 83 |
}
|
| 84 |
|
| 85 |
$this->_addContent($this->getLayout()->createBlock('paybox/adminhtml_api_debug_view', 'paybox_api_debug_view'))
|
| 86 |
-
|
| 87 |
|
| 88 |
$this->renderLayout();
|
| 89 |
}
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Adminhtml_Api_DebugController extends Mage_Adminhtml_Controller_Action
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _initPaybox($idFieldName = 'id')
|
| 21 |
+
{
|
| 22 |
$this->_title($this->__('Paybox'))->_title($this->__('Api Debug'));
|
| 23 |
|
| 24 |
$debugId = (int) $this->getRequest()->getParam($idFieldName);
|
| 32 |
return $this;
|
| 33 |
}
|
| 34 |
|
| 35 |
+
public function indexAction()
|
| 36 |
+
{
|
| 37 |
$this->_title($this->__('Paybox'))->_title($this->__('Api Debug'));
|
| 38 |
|
| 39 |
if ($this->getRequest()->getQuery('ajax')) {
|
| 63 |
$this->renderLayout();
|
| 64 |
}
|
| 65 |
|
| 66 |
+
public function gridAction()
|
| 67 |
+
{
|
| 68 |
$this->loadLayout();
|
| 69 |
$this->getResponse()->setBody(
|
| 70 |
$this->getLayout()->createBlock('paybox/adminhtml_api_debug_grid')->toHtml()
|
| 74 |
/**
|
| 75 |
* Paybox api debug view action
|
| 76 |
*/
|
| 77 |
+
public function viewAction()
|
| 78 |
+
{
|
| 79 |
$this->loadLayout();
|
| 80 |
$this->_initPaybox('id');
|
| 81 |
|
| 87 |
}
|
| 88 |
|
| 89 |
$this->_addContent($this->getLayout()->createBlock('paybox/adminhtml_api_debug_view', 'paybox_api_debug_view'))
|
| 90 |
+
->_addLeft($this->getLayout()->createBlock('paybox/adminhtml_api_debug_view_tabs'));
|
| 91 |
|
| 92 |
$this->renderLayout();
|
| 93 |
}
|
|
@@ -8,16 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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);
|
|
@@ -31,7 +32,8 @@ class Quadra_Paybox_Adminhtml_Question_NumberController extends Mage_Adminhtml_C
|
|
| 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')) {
|
|
@@ -49,7 +51,7 @@ class Quadra_Paybox_Adminhtml_Question_NumberController extends Mage_Adminhtml_C
|
|
| 49 |
* Append numbers block to content
|
| 50 |
*/
|
| 51 |
$this->_addContent(
|
| 52 |
-
|
| 53 |
);
|
| 54 |
|
| 55 |
/**
|
|
@@ -61,10 +63,11 @@ class Quadra_Paybox_Adminhtml_Question_NumberController extends Mage_Adminhtml_C
|
|
| 61 |
$this->renderLayout();
|
| 62 |
}
|
| 63 |
|
| 64 |
-
public function gridAction()
|
|
|
|
| 65 |
$this->loadLayout();
|
| 66 |
$this->getResponse()->setBody(
|
| 67 |
-
|
| 68 |
);
|
| 69 |
}
|
| 70 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_Adminhtml_Question_NumberController extends Mage_Adminhtml_Controller_Action
|
| 18 |
+
{
|
| 19 |
|
| 20 |
+
protected function _initPaybox($idFieldName = 'id')
|
| 21 |
+
{
|
| 22 |
$this->_title($this->__('Paybox'))->_title($this->__('Question Number'));
|
| 23 |
|
| 24 |
$numberId = (int) $this->getRequest()->getParam($idFieldName);
|
| 32 |
return $this;
|
| 33 |
}
|
| 34 |
|
| 35 |
+
public function indexAction()
|
| 36 |
+
{
|
| 37 |
$this->_title($this->__('Paybox'))->_title($this->__('Question Number'));
|
| 38 |
|
| 39 |
if ($this->getRequest()->getQuery('ajax')) {
|
| 51 |
* Append numbers block to content
|
| 52 |
*/
|
| 53 |
$this->_addContent(
|
| 54 |
+
$this->getLayout()->createBlock('paybox/adminhtml_question_number', 'paybox_question_number')
|
| 55 |
);
|
| 56 |
|
| 57 |
/**
|
| 63 |
$this->renderLayout();
|
| 64 |
}
|
| 65 |
|
| 66 |
+
public function gridAction()
|
| 67 |
+
{
|
| 68 |
$this->loadLayout();
|
| 69 |
$this->getResponse()->setBody(
|
| 70 |
+
$this->getLayout()->createBlock('paybox/adminhtml_question_number_grid')->toHtml()
|
| 71 |
);
|
| 72 |
}
|
| 73 |
|
|
@@ -8,21 +8,22 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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 |
|
|
@@ -35,7 +36,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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 |
|
|
@@ -55,7 +57,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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,7 +69,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 66 |
return $this->_realOrderIds;
|
| 67 |
}
|
| 68 |
|
| 69 |
-
public function getBaseGrandTotal()
|
|
|
|
| 70 |
if ($this->getQuote()->getIsMultiShipping())
|
| 71 |
return $this->getQuote()->getBaseGrandTotal();
|
| 72 |
else {
|
|
@@ -86,7 +90,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 86 |
* @param array $response
|
| 87 |
* @return object $this
|
| 88 |
*/
|
| 89 |
-
protected function setPayboxResponse($response)
|
|
|
|
| 90 |
if (count($response)) {
|
| 91 |
$this->_payboxResponse = $response;
|
| 92 |
}
|
|
@@ -98,7 +103,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 98 |
*
|
| 99 |
* @return Quadra_Paybox_Model_System
|
| 100 |
*/
|
| 101 |
-
public function getModel()
|
|
|
|
| 102 |
return Mage::getSingleton('paybox/system');
|
| 103 |
}
|
| 104 |
|
|
@@ -107,7 +113,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 107 |
*
|
| 108 |
* @return Mage_Checkout_Model_Session
|
| 109 |
*/
|
| 110 |
-
public function getCheckout()
|
|
|
|
| 111 |
return Mage::getSingleton('checkout/session');
|
| 112 |
}
|
| 113 |
|
|
@@ -115,7 +122,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 115 |
* Redirect action. Redirect customer to Paybox
|
| 116 |
*
|
| 117 |
*/
|
| 118 |
-
public function redirectAction()
|
|
|
|
| 119 |
$session = $this->getCheckout();
|
| 120 |
$session->setPayboxQuoteId($session->getLastQuoteId());
|
| 121 |
|
|
@@ -134,15 +142,15 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 134 |
$session->setPayboxOrderId(Mage::helper('core')->encrypt(implode(',', $realOrderIds)));
|
| 135 |
$session->setPayboxPaymentAction(
|
| 136 |
$order->getPayment()
|
| 137 |
-
|
| 138 |
-
|
| 139 |
);
|
| 140 |
|
| 141 |
$this->getResponse()->setBody(
|
| 142 |
$this->getLayout()
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
);
|
| 147 |
|
| 148 |
$session->unsQuoteId();
|
|
@@ -151,7 +159,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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 |
|
|
@@ -218,7 +227,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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());
|
|
@@ -258,7 +268,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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,8 +279,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 268 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 269 |
|
| 270 |
$order->addStatusToHistory(
|
| 271 |
-
|
| 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,7 +315,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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 |
|
|
@@ -373,7 +384,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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,7 +407,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 395 |
$this->loadLayout();
|
| 396 |
|
| 397 |
$this->getCheckout()
|
| 398 |
-
|
| 399 |
|
| 400 |
$this->renderLayout();
|
| 401 |
}
|
|
@@ -405,7 +417,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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,7 +433,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 420 |
*
|
| 421 |
* @return unknown
|
| 422 |
*/
|
| 423 |
-
protected function _checkResponse()
|
|
|
|
| 424 |
if (!$this->getCheckout()->getPayboxQuoteId()) {
|
| 425 |
$this->norouteAction();
|
| 426 |
return;
|
|
@@ -454,7 +468,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 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,7 +482,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 467 |
return false;
|
| 468 |
}
|
| 469 |
|
| 470 |
-
protected function _getSuccessRedirect()
|
|
|
|
| 471 |
if ($this->getQuote()->getIsMultiShipping())
|
| 472 |
return 'checkout/multishipping/success';
|
| 473 |
else
|
|
@@ -480,7 +496,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 480 |
* @param none
|
| 481 |
* @return void
|
| 482 |
*/
|
| 483 |
-
public function notifyAction()
|
|
|
|
| 484 |
$model = $this->getModel();
|
| 485 |
$params = $this->getRequest()->getParams();
|
| 486 |
$this->setPayboxResponse($params);
|
|
@@ -561,7 +578,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 561 |
$this->renderLayout();
|
| 562 |
}
|
| 563 |
|
| 564 |
-
protected function _updateOrderState($order, $model)
|
|
|
|
| 565 |
if ($this->_payboxResponse['error'] == '00000') {
|
| 566 |
// Aucune erreur = paiement paybox accepté
|
| 567 |
if ($order->getState() == Mage_Sales_Model_Order::STATE_HOLDED) {
|
|
@@ -572,15 +590,14 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 572 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'));
|
| 573 |
} else {
|
| 574 |
$order->addStatusToHistory(
|
| 575 |
-
|
| 576 |
-
$this->__('Payment accepted by Paybox'), true
|
| 577 |
);
|
| 578 |
}
|
| 579 |
|
| 580 |
if ($order->getPayment()->getMethodInstance()->getPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
|
| 581 |
$order->getPayment()
|
| 582 |
-
|
| 583 |
-
|
| 584 |
|
| 585 |
// Faut-il créer la facture
|
| 586 |
if ($model->getConfigData('invoice_create')) {
|
|
@@ -614,7 +631,8 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action {
|
|
| 614 |
}
|
| 615 |
}
|
| 616 |
|
| 617 |
-
protected function _reorder()
|
|
|
|
| 618 |
$cart = Mage::getSingleton('checkout/cart');
|
| 619 |
/* @var $cart Mage_Checkout_Model_Cart */
|
| 620 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
+
class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
|
| 18 |
+
{
|
| 19 |
|
| 20 |
protected $_payboxResponse = null;
|
| 21 |
protected $_responseStatus = false;
|
| 22 |
protected $_realOrderIds;
|
| 23 |
protected $_quote;
|
| 24 |
|
| 25 |
+
public function testAction()
|
| 26 |
+
{
|
| 27 |
$model = Mage::getModel('paybox/direct')->setRang(10)->setSiteNumber(999988);
|
| 28 |
echo "test " . $model->getQuestionNumberModel()->getNextQuestionNumber();
|
| 29 |
|
| 36 |
*
|
| 37 |
* @return Mage_Sales_Model_Quote
|
| 38 |
*/
|
| 39 |
+
public function getQuote()
|
| 40 |
+
{
|
| 41 |
if (!$this->_quote) {
|
| 42 |
$this->_quote = Mage::getModel('sales/quote')->load($this->getCheckout()->getPayboxQuoteId());
|
| 43 |
|
| 57 |
*
|
| 58 |
* @return array
|
| 59 |
*/
|
| 60 |
+
public function getRealOrderIds()
|
| 61 |
+
{
|
| 62 |
if (!$this->_realOrderIds) {
|
| 63 |
if ($this->_payboxResponse) {
|
| 64 |
$this->_realOrderIds = explode(',', $this->_payboxResponse['ref']);
|
| 69 |
return $this->_realOrderIds;
|
| 70 |
}
|
| 71 |
|
| 72 |
+
public function getBaseGrandTotal()
|
| 73 |
+
{
|
| 74 |
if ($this->getQuote()->getIsMultiShipping())
|
| 75 |
return $this->getQuote()->getBaseGrandTotal();
|
| 76 |
else {
|
| 90 |
* @param array $response
|
| 91 |
* @return object $this
|
| 92 |
*/
|
| 93 |
+
protected function setPayboxResponse($response)
|
| 94 |
+
{
|
| 95 |
if (count($response)) {
|
| 96 |
$this->_payboxResponse = $response;
|
| 97 |
}
|
| 103 |
*
|
| 104 |
* @return Quadra_Paybox_Model_System
|
| 105 |
*/
|
| 106 |
+
public function getModel()
|
| 107 |
+
{
|
| 108 |
return Mage::getSingleton('paybox/system');
|
| 109 |
}
|
| 110 |
|
| 113 |
*
|
| 114 |
* @return Mage_Checkout_Model_Session
|
| 115 |
*/
|
| 116 |
+
public function getCheckout()
|
| 117 |
+
{
|
| 118 |
return Mage::getSingleton('checkout/session');
|
| 119 |
}
|
| 120 |
|
| 122 |
* Redirect action. Redirect customer to Paybox
|
| 123 |
*
|
| 124 |
*/
|
| 125 |
+
public function redirectAction()
|
| 126 |
+
{
|
| 127 |
$session = $this->getCheckout();
|
| 128 |
$session->setPayboxQuoteId($session->getLastQuoteId());
|
| 129 |
|
| 142 |
$session->setPayboxOrderId(Mage::helper('core')->encrypt(implode(',', $realOrderIds)));
|
| 143 |
$session->setPayboxPaymentAction(
|
| 144 |
$order->getPayment()
|
| 145 |
+
->getMethodInstance()
|
| 146 |
+
->getPaymentAction()
|
| 147 |
);
|
| 148 |
|
| 149 |
$this->getResponse()->setBody(
|
| 150 |
$this->getLayout()
|
| 151 |
+
->createBlock('paybox/system_redirect')
|
| 152 |
+
->setOrder($order)
|
| 153 |
+
->toHtml()
|
| 154 |
);
|
| 155 |
|
| 156 |
$session->unsQuoteId();
|
| 159 |
/**
|
| 160 |
* Customer returning to this action if payment was successe
|
| 161 |
*/
|
| 162 |
+
public function successAction()
|
| 163 |
+
{
|
| 164 |
$model = $this->getModel();
|
| 165 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 166 |
|
| 227 |
/**
|
| 228 |
* Action when payment was refused by Paybox
|
| 229 |
*/
|
| 230 |
+
public function refuseAction()
|
| 231 |
+
{
|
| 232 |
$model = $this->getModel();
|
| 233 |
|
| 234 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 268 |
/**
|
| 269 |
* Action when customer cancels payment or press button to back to shop
|
| 270 |
*/
|
| 271 |
+
public function declineAction()
|
| 272 |
+
{
|
| 273 |
$model = $this->getModel();
|
| 274 |
$this->setPayboxResponse($this->getRequest()->getParams());
|
| 275 |
|
| 279 |
$order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
|
| 280 |
|
| 281 |
$order->addStatusToHistory(
|
| 282 |
+
$model->getConfigData('order_status_payment_canceled'), $this->__('The order was canceled by the customer.')
|
|
|
|
| 283 |
);
|
| 284 |
|
| 285 |
if ($model->getConfigData('order_status_payment_canceled') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
|
| 315 |
* Redirect action. Redirect to Paybox using commandline mode
|
| 316 |
*
|
| 317 |
*/
|
| 318 |
+
public function commandlineAction()
|
| 319 |
+
{
|
| 320 |
$session = $this->getCheckout();
|
| 321 |
$session->setPayboxQuoteId($session->getQuoteId());
|
| 322 |
|
| 384 |
* Error action. If request params to Paybox has mistakes
|
| 385 |
*
|
| 386 |
*/
|
| 387 |
+
public function errorAction()
|
| 388 |
+
{
|
| 389 |
if (!$this->getCheckout()->getPayboxQuoteId()) {
|
| 390 |
$this->norouteAction();
|
| 391 |
return;
|
| 407 |
$this->loadLayout();
|
| 408 |
|
| 409 |
$this->getCheckout()
|
| 410 |
+
->setPayboxErrorNumber($this->getRequest()->getParam('NUMERR'));
|
| 411 |
|
| 412 |
$this->renderLayout();
|
| 413 |
}
|
| 417 |
* Displaying information if customer was redirecting to cancel or decline actions
|
| 418 |
*
|
| 419 |
*/
|
| 420 |
+
public function failureAction()
|
| 421 |
+
{
|
| 422 |
if (!$this->getCheckout()->getPayboxErrorMessage()) {
|
| 423 |
$this->norouteAction();
|
| 424 |
return;
|
| 433 |
*
|
| 434 |
* @return unknown
|
| 435 |
*/
|
| 436 |
+
protected function _checkResponse()
|
| 437 |
+
{
|
| 438 |
if (!$this->getCheckout()->getPayboxQuoteId()) {
|
| 439 |
$this->norouteAction();
|
| 440 |
return;
|
| 468 |
* @param Mage_Sales_Model_Order $order
|
| 469 |
* @return bool
|
| 470 |
*/
|
| 471 |
+
protected function _createInvoice(Mage_Sales_Model_Order $order)
|
| 472 |
+
{
|
| 473 |
if ($order->canInvoice()) {
|
| 474 |
$invoice = $order->prepareInvoice();
|
| 475 |
$invoice->register()->capture();
|
| 482 |
return false;
|
| 483 |
}
|
| 484 |
|
| 485 |
+
protected function _getSuccessRedirect()
|
| 486 |
+
{
|
| 487 |
if ($this->getQuote()->getIsMultiShipping())
|
| 488 |
return 'checkout/multishipping/success';
|
| 489 |
else
|
| 496 |
* @param none
|
| 497 |
* @return void
|
| 498 |
*/
|
| 499 |
+
public function notifyAction()
|
| 500 |
+
{
|
| 501 |
$model = $this->getModel();
|
| 502 |
$params = $this->getRequest()->getParams();
|
| 503 |
$this->setPayboxResponse($params);
|
| 578 |
$this->renderLayout();
|
| 579 |
}
|
| 580 |
|
| 581 |
+
protected function _updateOrderState($order, $model)
|
| 582 |
+
{
|
| 583 |
if ($this->_payboxResponse['error'] == '00000') {
|
| 584 |
// Aucune erreur = paiement paybox accepté
|
| 585 |
if ($order->getState() == Mage_Sales_Model_Order::STATE_HOLDED) {
|
| 590 |
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'));
|
| 591 |
} else {
|
| 592 |
$order->addStatusToHistory(
|
| 593 |
+
$model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'), true
|
|
|
|
| 594 |
);
|
| 595 |
}
|
| 596 |
|
| 597 |
if ($order->getPayment()->getMethodInstance()->getPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
|
| 598 |
$order->getPayment()
|
| 599 |
+
->getMethodInstance()
|
| 600 |
+
->setTransactionId($this->_payboxResponse['trans']);
|
| 601 |
|
| 602 |
// Faut-il créer la facture
|
| 603 |
if ($model->getConfigData('invoice_create')) {
|
| 631 |
}
|
| 632 |
}
|
| 633 |
|
| 634 |
+
protected function _reorder()
|
| 635 |
+
{
|
| 636 |
$cart = Mage::getSingleton('checkout/cart');
|
| 637 |
/* @var $cart Mage_Checkout_Model_Cart */
|
| 638 |
|
|
@@ -8,18 +8,17 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 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>
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
-->
|
| 18 |
<config>
|
| 19 |
<modules>
|
| 20 |
<Quadra_Paybox>
|
| 21 |
+
<version>2.1.6</version>
|
| 22 |
</Quadra_Paybox>
|
| 23 |
</modules>
|
| 24 |
<global>
|
|
@@ -8,12 +8,11 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<!-- ISO 4217 -->
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
-->
|
| 18 |
<!-- ISO 4217 -->
|
|
@@ -8,12 +8,11 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<config>
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
-->
|
| 18 |
<config>
|
|
@@ -8,14 +8,12 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-
|
| 19 |
$installer = $this;
|
| 20 |
|
| 21 |
$installer->startSetup();
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
|
|
|
| 17 |
$installer = $this;
|
| 18 |
|
| 19 |
$installer->startSetup();
|
|
@@ -8,14 +8,12 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-
|
| 19 |
$installer = $this;
|
| 20 |
|
| 21 |
/* @var $installer Mage_Sales_Model_Entity_Setup */
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
|
|
|
| 17 |
$installer = $this;
|
| 18 |
|
| 19 |
/* @var $installer Mage_Sales_Model_Entity_Setup */
|
|
@@ -8,14 +8,12 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-
|
| 19 |
$installer = $this;
|
| 20 |
|
| 21 |
/* @var $installer Mage_Sales_Model_Entity_Setup */
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
|
|
|
| 17 |
$installer = $this;
|
| 18 |
|
| 19 |
/* @var $installer Mage_Sales_Model_Entity_Setup */
|
|
@@ -8,14 +8,12 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-
|
| 19 |
$installer = $this;
|
| 20 |
|
| 21 |
/* @var $installer Mage_Sales_Model_Entity_Setup */
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
|
|
|
| 17 |
$installer = $this;
|
| 18 |
|
| 19 |
/* @var $installer Mage_Sales_Model_Entity_Setup */
|
|
@@ -8,14 +8,12 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-
|
| 19 |
$installer = $this;
|
| 20 |
|
| 21 |
$installer->startSetup();
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
|
|
|
| 17 |
$installer = $this;
|
| 18 |
|
| 19 |
$installer->startSetup();
|
|
@@ -8,14 +8,12 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-
|
| 19 |
$installer = $this;
|
| 20 |
|
| 21 |
$installer->startSetup();
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
|
|
|
| 17 |
$installer = $this;
|
| 18 |
|
| 19 |
$installer->startSetup();
|
|
@@ -7,25 +7,24 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
<script type="text/javascript">
|
| 19 |
-
Event.observe('payment_paybox_system_pbx_typepaiement', 'change', function(){
|
| 20 |
paymentType = $('<?php echo $this->getParentHtmlId() ?>').value;
|
| 21 |
-
jsonObj = eval('('+'<?php echo $this->getJsonCartTypes() ?>'+')');
|
| 22 |
option = '';
|
| 23 |
if (cartTypes = jsonObj[paymentType]) {
|
| 24 |
for (var i in cartTypes) {
|
| 25 |
if (i == 'none') {
|
| 26 |
-
option = option+'<option value="">'+cartTypes[i]+'</option>';
|
| 27 |
} else {
|
| 28 |
-
option = option+'<option value="'+i+'">'+cartTypes[i]+'</option>';
|
| 29 |
}
|
| 30 |
}
|
| 31 |
} else {
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
<script type="text/javascript">
|
| 18 |
+
Event.observe('payment_paybox_system_pbx_typepaiement', 'change', function() {
|
| 19 |
paymentType = $('<?php echo $this->getParentHtmlId() ?>').value;
|
| 20 |
+
jsonObj = eval('(' + '<?php echo $this->getJsonCartTypes() ?>' + ')');
|
| 21 |
option = '';
|
| 22 |
if (cartTypes = jsonObj[paymentType]) {
|
| 23 |
for (var i in cartTypes) {
|
| 24 |
if (i == 'none') {
|
| 25 |
+
option = option + '<option value="">' + cartTypes[i] + '</option>';
|
| 26 |
} else {
|
| 27 |
+
option = option + '<option value="' + i + '">' + cartTypes[i] + '</option>';
|
| 28 |
}
|
| 29 |
}
|
| 30 |
} else {
|
|
@@ -7,18 +7,17 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
-
<?php $_code
|
| 19 |
<script type="text/javascript">
|
| 20 |
-
Validation.creditCartTypes.JCB = [new RegExp('^(35[0-9]{14}|(2131|1800)[0-9]{11})$'), new RegExp('^([0-9]{3})?$'), true];
|
| 21 |
-
Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|55[0-9]{14})$'), new RegExp('^([0-9]{3})?$'), false];
|
| 22 |
</script>
|
| 23 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 24 |
<li>
|
|
@@ -31,43 +30,43 @@ Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|
|
|
| 31 |
<div class="input-box">
|
| 32 |
<label for="<?php echo $_code ?>_cc_type"><?php echo Mage::helper('payment')->__('Credit Card Type') ?> <span class="required">*</span></label><br/>
|
| 33 |
<select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
|
| 34 |
-
|
| 35 |
<option value=""></option>
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
</select>
|
| 40 |
</div>
|
| 41 |
</li>
|
| 42 |
<li>
|
| 43 |
<div class="input-box">
|
| 44 |
<label for="<?php echo $_code ?>_cc_number"><?php echo Mage::helper('payment')->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
|
| 45 |
-
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo Mage::helper('payment')->__('Credit Card Number') ?>" class="input-text validate-cc-number" value="<?php echo $this->getInfoData('cc_number')?>"/>
|
| 46 |
</div>
|
| 47 |
</li>
|
| 48 |
<li>
|
| 49 |
<div class="input-box">
|
| 50 |
<label for="<?php echo $_code ?>_expiration"><?php echo Mage::helper('payment')->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
| 51 |
<select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="required-entry">
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
</select>
|
| 57 |
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
| 58 |
<select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
</select>
|
| 63 |
</div>
|
| 64 |
</li>
|
| 65 |
-
<?php if($this->hasVerification()): ?>
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
<?php endif; ?>
|
| 73 |
</ul>
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
+
<?php $_code = $this->getMethodCode() ?>
|
| 18 |
<script type="text/javascript">
|
| 19 |
+
Validation.creditCartTypes.JCB = [new RegExp('^(35[0-9]{14}|(2131|1800)[0-9]{11})$'), new RegExp('^([0-9]{3})?$'), true];
|
| 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 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 23 |
<li>
|
| 30 |
<div class="input-box">
|
| 31 |
<label for="<?php echo $_code ?>_cc_type"><?php echo Mage::helper('payment')->__('Credit Card Type') ?> <span class="required">*</span></label><br/>
|
| 32 |
<select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
|
| 33 |
+
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
| 34 |
<option value=""></option>
|
| 35 |
+
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
| 36 |
+
<option value="<?php echo $_typeCode ?>" <?php if ($_typeCode == $_ccType): ?>selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
|
| 37 |
+
<?php endforeach ?>
|
| 38 |
</select>
|
| 39 |
</div>
|
| 40 |
</li>
|
| 41 |
<li>
|
| 42 |
<div class="input-box">
|
| 43 |
<label for="<?php echo $_code ?>_cc_number"><?php echo Mage::helper('payment')->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
|
| 44 |
+
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo Mage::helper('payment')->__('Credit Card Number') ?>" class="input-text validate-cc-number" value="<?php echo $this->getInfoData('cc_number') ?>"/>
|
| 45 |
</div>
|
| 46 |
</li>
|
| 47 |
<li>
|
| 48 |
<div class="input-box">
|
| 49 |
<label for="<?php echo $_code ?>_expiration"><?php echo Mage::helper('payment')->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
| 50 |
<select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="required-entry">
|
| 51 |
+
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
| 52 |
+
<?php foreach ($this->getCcMonths() as $k => $v): ?>
|
| 53 |
+
<option value="<?php echo $k ?>" <?php if ($k == $_ccExpMonth): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 54 |
+
<?php endforeach ?>
|
| 55 |
</select>
|
| 56 |
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
| 57 |
<select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
|
| 58 |
+
<?php foreach ($this->getCcYears() as $k => $v): ?>
|
| 59 |
+
<option value="<?php echo $k ? $k : '' ?>" <?php if ($k == $_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 60 |
+
<?php endforeach ?>
|
| 61 |
</select>
|
| 62 |
</div>
|
| 63 |
</li>
|
| 64 |
+
<?php if ($this->hasVerification()): ?>
|
| 65 |
+
<li>
|
| 66 |
+
<div class="input-box">
|
| 67 |
+
<label for="<?php echo $_code ?>_cc_cid"><?php echo Mage::helper('payment')->__('Card Verification Number') ?> <span class="required">*</span></label><br/>
|
| 68 |
+
<input type="text" title="<?php echo Mage::helper('payment')->__('Card Verification Number') ?>" class="required-entry input-text validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" style="width:3em;" value="<?php echo $this->getInfoData('cc_cid') ?>"/>
|
| 69 |
+
</div>
|
| 70 |
+
</li>
|
| 71 |
<?php endif; ?>
|
| 72 |
</ul>
|
|
@@ -7,12 +7,11 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
<?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?><br/>
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
<?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?><br/>
|
|
@@ -7,20 +7,19 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
<?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
|
| 19 |
-
|
| 20 |
<?php echo Mage::helper('payment')->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?>
|
| 21 |
-
|
| 22 |
<?php echo Mage::helper('payment')->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?>
|
| 23 |
-
|
| 24 |
<?php echo Mage::helper('payment')->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?>
|
| 25 |
-
|
| 26 |
<?php echo Mage::helper('payment')->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
<?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
|
| 18 |
+
{{pdf_row_separator}}
|
| 19 |
<?php echo Mage::helper('payment')->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?>
|
| 20 |
+
{{pdf_row_separator}}
|
| 21 |
<?php echo Mage::helper('payment')->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?>
|
| 22 |
+
{{pdf_row_separator}}
|
| 23 |
<?php echo Mage::helper('payment')->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?>
|
| 24 |
+
{{pdf_row_separator}}
|
| 25 |
<?php echo Mage::helper('payment')->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
|
|
@@ -8,12 +8,11 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
-->
|
| 18 |
|
|
@@ -7,17 +7,16 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
<script type="text/javascript">
|
| 19 |
-
Validation.creditCartTypes.JCB = [new RegExp('^(35[0-9]{14}|(2131|1800)[0-9]{11})$'), new RegExp('^([0-9]{3})?$'), true];
|
| 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() ?>
|
|
@@ -33,10 +32,10 @@ Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|
|
|
| 33 |
<label for="<?php echo $_code ?>_cc_type"><?php echo $this->__('Credit Card Type') ?> <span class="required">*</span></label><br />
|
| 34 |
<select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
|
| 35 |
<option value="">--<?php echo $this->__('Please Select') ?>--</option>
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
</select>
|
| 41 |
</div>
|
| 42 |
</li>
|
|
@@ -50,32 +49,32 @@ Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|
|
|
| 50 |
<div class="input-box">
|
| 51 |
<label for="<?php echo $_code ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br />
|
| 52 |
<div class="v-fix">
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
</div>
|
| 60 |
<div class="v-fix" style="padding-left:5px;">
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
</div>
|
| 68 |
</div>
|
| 69 |
</li>
|
| 70 |
-
<?php if($this->hasVerification()): ?>
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
<?php endif; ?>
|
| 80 |
</ul>
|
| 81 |
</fieldset>
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
<script type="text/javascript">
|
| 18 |
+
Validation.creditCartTypes.JCB = [new RegExp('^(35[0-9]{14}|(2131|1800)[0-9]{11})$'), new RegExp('^([0-9]{3})?$'), true];
|
| 19 |
+
Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|55[0-9]{14})$'), new RegExp('^([0-9]{3})?$'), false];
|
| 20 |
</script>
|
| 21 |
<fieldset class="form-list">
|
| 22 |
<?php $_code = $this->getMethodCode() ?>
|
| 32 |
<label for="<?php echo $_code ?>_cc_type"><?php echo $this->__('Credit Card Type') ?> <span class="required">*</span></label><br />
|
| 33 |
<select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
|
| 34 |
<option value="">--<?php echo $this->__('Please Select') ?>--</option>
|
| 35 |
+
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
| 36 |
+
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
| 37 |
+
<option value="<?php echo $_typeCode ?>" <?php if ($_typeCode == $_ccType): ?>selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
|
| 38 |
+
<?php endforeach ?>
|
| 39 |
</select>
|
| 40 |
</div>
|
| 41 |
</li>
|
| 49 |
<div class="input-box">
|
| 50 |
<label for="<?php echo $_code ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br />
|
| 51 |
<div class="v-fix">
|
| 52 |
+
<select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="required-entry">
|
| 53 |
+
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
| 54 |
+
<?php foreach ($this->getCcMonths() as $k => $v): ?>
|
| 55 |
+
<option value="<?php echo $k ? $k : '' ?>" <?php if ($k == $_ccExpMonth): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 56 |
+
<?php endforeach ?>
|
| 57 |
+
</select>
|
| 58 |
</div>
|
| 59 |
<div class="v-fix" style="padding-left:5px;">
|
| 60 |
+
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
| 61 |
+
<select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
|
| 62 |
+
<?php foreach ($this->getCcYears() as $k => $v): ?>
|
| 63 |
+
<option value="<?php echo $k ? $k : '' ?>" <?php if ($k == $_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 64 |
+
<?php endforeach ?>
|
| 65 |
+
</select>
|
| 66 |
</div>
|
| 67 |
</div>
|
| 68 |
</li>
|
| 69 |
+
<?php if ($this->hasVerification()): ?>
|
| 70 |
+
<li>
|
| 71 |
+
<div class="input-box">
|
| 72 |
+
<label for="<?php echo $_code ?>_cc_cid"><?php echo $this->__('Card Verification Number') ?> <span class="required">*</span></label><br />
|
| 73 |
+
<div class="v-fix"><input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="required-entry input-text validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" style="width:3em;" value="" /></div>
|
| 74 |
+
|
| 75 |
+
<a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
|
| 76 |
+
</div>
|
| 77 |
+
</li>
|
| 78 |
<?php endif; ?>
|
| 79 |
</ul>
|
| 80 |
</fieldset>
|
|
@@ -7,15 +7,14 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 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 />
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
+
<?php if ($this->getInfo()): ?>
|
| 18 |
<?php echo $this->getMethod()->getTitle() ?><br />
|
| 19 |
<?php echo $this->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br />
|
| 20 |
<?php echo $this->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?><br />
|
|
@@ -7,12 +7,11 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
<div class="page-head">
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
<div class="page-head">
|
|
@@ -7,12 +7,11 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
|
|
@@ -20,7 +19,7 @@
|
|
| 20 |
<br />
|
| 21 |
|
| 22 |
<fieldset class="form-list">
|
| 23 |
-
<?php $_code
|
| 24 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 25 |
<li>
|
| 26 |
<?php echo $this->__('You will be redirected to Paybox website when you place an order.') ?>
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
|
| 19 |
<br />
|
| 20 |
|
| 21 |
<fieldset class="form-list">
|
| 22 |
+
<?php $_code = $this->getMethodCode() ?>
|
| 23 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 24 |
<li>
|
| 25 |
<?php echo $this->__('You will be redirected to Paybox website when you place an order.') ?>
|
|
@@ -7,14 +7,11 @@
|
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
-
* to
|
| 11 |
*
|
| 12 |
-
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
-
<p>
|
| 19 |
-
DOCUMENT FALSIFIE
|
| 20 |
-
</p>
|
| 7 |
* This source file is subject to the Open Software License (OSL 3.0) that is available
|
| 8 |
* through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
|
| 9 |
* If you are unable to obtain it through the world-wide-web, please send an email
|
| 10 |
+
* to modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 11 |
*
|
| 12 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 13 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 14 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 15 |
*/
|
| 16 |
?>
|
| 17 |
+
<p>DOCUMENT FALSIFIE</p>
|
|
|
|
|
|
|
@@ -8,12 +8,11 @@
|
|
| 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
|
| 12 |
*
|
| 13 |
-
*
|
| 14 |
-
*
|
| 15 |
-
*
|
| 16 |
-
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
| 17 |
*/
|
| 18 |
-->
|
| 19 |
<config>
|
| 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 modules@quadra-informatique.fr so we can send you a copy immediately.
|
| 12 |
*
|
| 13 |
+
* @author Quadra Informatique <modules@quadra-informatique.fr>
|
| 14 |
+
* @copyright 1997-2013 Quadra Informatique
|
| 15 |
+
* @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
|
|
| 16 |
*/
|
| 17 |
-->
|
| 18 |
<config>
|
|
@@ -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,8 +10,11 @@
|
|
| 10 |
<description>The extension provides Paybox payment integration. Allows make payments through Paybox methods.</description>
|
| 11 |
<notes>Changelog:
|
| 12 |

|
|
|
|
|
|
|
|
|
|
| 13 |
2.1.5:
|
| 14 |
-
- Add
|
| 15 |

|
| 16 |
2.1.4:
|
| 17 |
- Add paybox payment server response debug.
|
|
@@ -45,9 +48,9 @@
|
|
| 45 |
- Bug fixed with magento 1.4
|
| 46 |
- Beta version</notes>
|
| 47 |
<authors><author><name>Quadra Informatique</name><user>auto-converted</user><email>ecommerce@quadra-informatique.fr</email></author></authors>
|
| 48 |
-
<date>2013-
|
| 49 |
-
<time>
|
| 50 |
-
<contents><target name="magecommunity"><dir name="Quadra"><dir name="Paybox"><dir name="Block"><dir name="Adminhtml"><dir name="Api"><dir name="Debug"><dir name="Request"><file name="Grid.php" hash="
|
| 51 |
<compatible/>
|
| 52 |
<dependencies><required><package><name>Quadra_Extensions</name><channel>community</channel><min>1.0.0</min><max></max></package></required></dependencies>
|
| 53 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Quadra_Paybox</name>
|
| 4 |
+
<version>2.1.6</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.6:
|
| 14 |
+
- Add MaxiCheque payment method.
|
| 15 |
+

|
| 16 |
2.1.5:
|
| 17 |
+
- Add minimal order total to activate 3D Secure.
|
| 18 |

|
| 19 |
2.1.4:
|
| 20 |
- Add paybox payment server response debug.
|
| 48 |
- Bug fixed with magento 1.4
|
| 49 |
- Beta version</notes>
|
| 50 |
<authors><author><name>Quadra Informatique</name><user>auto-converted</user><email>ecommerce@quadra-informatique.fr</email></author></authors>
|
| 51 |
+
<date>2013-12-02</date>
|
| 52 |
+
<time>13:18:00</time>
|
| 53 |
+
<contents><target name="magecommunity"><dir name="Quadra"><dir name="Paybox"><dir name="Block"><dir name="Adminhtml"><dir name="Api"><dir name="Debug"><dir name="Request"><file name="Grid.php" hash="9f4d158bea77b8a5860ae1d1e61659cb"/></dir><dir name="Response"><file name="Grid.php" hash="780b37bdda5951fbd39ba04eda669c3c"/></dir><dir name="ResponseServer"><file name="Grid.php" hash="8dd0c7643224a70f6497d872e4b92f3e"/></dir><dir name="View"><dir name="Tab"><file name="Request.php" hash="5d4363fcec333e7b55be7f301f2d1628"/><file name="Response.php" hash="4171190e35ad3c445712dcbdc3cd4f95"/><file name="ResponseServer.php" hash="5a519217944b50443748d4767263090b"/></dir><file name="Form.php" hash="142e39990c33a06fb740d97c7ea653f3"/><file name="Tabs.php" hash="86568c1c5edff59754f82379fbf7c2b5"/></dir><file name="Grid.php" hash="be0c87e8c3227fe38400f1069a1589a8"/><file name="Request.php" hash="5f809c1de78622bc6c6cbe070dfe903f"/><file name="Response.php" hash="76b1d6a9484a999c0b3e0d716399b3f1"/><file name="View.php" hash="4596bd0543ba885b732e9b75f6d672e7"/></dir><file name="Debug.php" hash="e1f1fcfe3c0752159c8887a4b4989268"/></dir><dir name="Cart"><dir name="Type"><file name="Select.php" hash="dcf49b2baebaf8ff30a2205ab9c33531"/></dir><file name="Type.php" hash="8879858eb764abd835e3872673a522a0"/></dir><dir name="Question"><dir name="Number"><file name="Grid.php" hash="f25822dae9bba2a2dfca4b7e7876a99e"/></dir><file name="Number.php" hash="e3b25fe7a2371bfe9eadcfccaf384d32"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Backuppaymentserver.php" hash="0da5fc058d6309ae1b43687e38a2bcd2"/></dir></dir></dir></dir></dir><dir name="Direct"><file name="Form.php" hash="918a33583e4284a17e2a3fee1d244d52"/><file name="Info.php" hash="525a56aa60b1a06581c0e800a2bf89f6"/></dir><dir name="System"><file name="Error.php" hash="df7368cb97f72a47e78b657236cab4a0"/><file name="Failure.php" hash="cd2d3b7ad3748bb4c2adf3c3df385f7a"/><file name="Form.php" hash="5cfd083627c4130025367c295ecce00f"/><file name="Redirect.php" hash="ba239e139033bf844c1b11db66f3e7b0"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dca06735f3902b1b98a9d31cfae7c768"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="3843b8355eebcc8ae950d33ce2f4aafb"/></dir><dir name="Config"><dir name="Data"><file name="Paybox.php" hash="b5e501abc9e0086514238c3cf529c436"/></dir></dir><dir name="Mysql4"><dir name="Api"><dir name="Debug"><file name="Collection.php" hash="af9c272f1fb30d4655f266896967475c"/></dir><file name="Debug.php" hash="c0f72a0bebefa8574c07b573c329ebb9"/></dir><dir name="Question"><dir name="Number"><file name="Collection.php" hash="91a58c241ae393fe99708e8d323c0db9"/></dir><file name="Number.php" hash="474b42085eeac7def87f5815a3fe47fc"/></dir><file name="Setup.php" hash="c376bcf890386365c3861f18a78d3e85"/></dir><dir name="Question"><file name="Number.php" hash="c204fc4c757d625f3e059d5b0b437209"/></dir><dir name="Source"><file name="CartType.php" hash="7d0b4c61fe8d35fa375e327061fcfb66"/><file name="Cctype.php" hash="2f1b38687bd266d147bac13b47866a50"/><file name="Language.php" hash="1cd9495d471926957dac812c49deba9f"/><file name="ManagementMode.php" hash="2fd2347b966fcf159e9178a585f8f814"/><file name="MethodCall.php" hash="1cc3876e3bc26de5701891d1ba678e97"/><file name="PaymentAction.php" hash="2b10e4d9811ff9d6edab1bafc1fbbb45"/><file name="PaymentMode.php" hash="54b6ef03a4d7ad704c156418717be5b6"/><file name="PaymentType.php" hash="2958c8916f3a0e15b335e6f11181d7e5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Order"><dir name="Status"><file name="Accepted.php" hash="2d480f56cdab48c436f1cedc84ada761"/><file name="Canceled.php" hash="2a32d0659fac7b17de7c831d547db1ff"/><file name="New.php" hash="c42d0b28bd86640a0f20e6194587a943"/><file name="Refused.php" hash="d49776117c433f396c0a2fe5e8d932df"/></dir><file name="Status.php" hash="d0e9bc0000ff520566d6f254abc10a41"/><file name="Statuswithoutcanceled.php" hash="56d8c2b6f84e2829a099c034847cd170"/></dir></dir></dir></dir><file name="Direct.php" hash="4522027d5022117f633840a5ef583142"/><file name="Observer.php" hash="1efa288823c2bf89ed07262a653260eb"/><file name="System.php" hash="478741acc17f234bf99659d616010bbe"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Api"><file name="DebugController.php" hash="fe2b9210e8ac75798dd0b31e431a5b52"/></dir><dir name="Question"><file name="NumberController.php" hash="af0a7b4af637cdefd2a79e739fdf1c88"/></dir></dir><file name="SystemController.php" hash="c8623eac325b0863fda04024fdaa1563"/></dir><dir name="etc"><file name="config.xml" hash="c915c9cb67bc5416d8fd20172300335b"/><file name="currency.xml" hash="15434ff71dbb63165ec60955fc7271cb"/><file name="pubkey.pem" hash="9bf5be38bde5f19c40acf3d8e4e7806b"/><file name="system.xml" hash="b497efca984b6686777b1ce7cc04844b"/></dir><dir name="sql"><dir name="paybox_setup"><file name="mysql4-install-0.1.0.php" hash="01edc6948bdb46aee2ec0f6d26231a45"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="8fb182fe9849fcada4cb0b04d6d607fd"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="a3eee7ccc578ac219aa235393aae878b"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="501253ca86ebf0da9ef253e789b3bd88"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="93ce43830cafdbf790663e19acb0eb6e"/><file name="mysql4-upgrade-2.1.3-2.1.4.php" hash="47d4172c1b72999a82501bdb7f882f8d"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Quadra_Paybox.xml" hash="0cdd5d83c8101446565340e3fdf29743"/></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="6b353cb881c1346a57a5eb36e2c06603"/></dir></dir></dir><dir name="direct"><dir name="pdf"><file name="info.phtml" hash="2faaa75bbba258863fa3c9d0084fab5e"/></dir><file name="form.phtml" hash="0421d1999511df7807314a989d62082a"/><file name="info.phtml" hash="899c11e537ec52a2f459045c478eb1a6"/></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="18955b6b1def46d4a5f920414f5a6ae0"/><file name="info.phtml" hash="c27ff6eefeef96596af44f3046f2d4bf"/></dir><dir name="system"><file name="error.phtml" hash="65b1ff95cd16b4f146d1e33bb32111aa"/><file name="form.phtml" hash="83d7d8709a3b017c18fdb8b17b7a6b83"/><file name="notify.phtml" hash="a3862bda483eac514f8a074de5732de8"/></dir></dir></dir><dir name="layout"><file name="paybox.xml" hash="cff935edde932fe6abf3cf3b20f07e4c"/></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>
|
| 54 |
<compatible/>
|
| 55 |
<dependencies><required><package><name>Quadra_Extensions</name><channel>community</channel><min>1.0.0</min><max></max></package></required></dependencies>
|
| 56 |
</package>
|
