Quadra_Paybox - Version 2.1.0

Version Notes

Changelog:

2.1.0:
- Bug fixed with Paybox Direct
- Bug fixed with multishipping
- Add Paybox System intermediate page configuration

2.0.2:
- Some fields in the configuration of the module are now configurable in store view
- The field "empty cart" was added

2.0.1:
- Stable version

2.0.0:
- Magento 1.5 compatibility
- Multishipping compatibility
- Bug fixed with magento 1.4
- Beta version

Download this release

Release Info

Developer Magento Core Team
Extension Quadra_Paybox
Version 2.1.0
Comparing to
See all releases


Code changes from version 2.0.2 to 2.1.0

Files changed (52) hide show
  1. app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type.php +10 -13
  2. app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type/Select.php +10 -13
  3. app/code/community/Quadra/Paybox/Block/Adminhtml/System/Config/Form/Field/Backuppaymentserver.php +10 -13
  4. app/code/community/Quadra/Paybox/Block/Direct/Form.php +10 -13
  5. app/code/community/Quadra/Paybox/Block/Direct/Info.php +10 -13
  6. app/code/community/Quadra/Paybox/Block/System/Error.php +10 -13
  7. app/code/community/Quadra/Paybox/Block/System/Failure.php +10 -13
  8. app/code/community/Quadra/Paybox/Block/System/Form.php +10 -13
  9. app/code/community/Quadra/Paybox/Block/System/Redirect.php +10 -13
  10. app/code/community/Quadra/Paybox/Helper/Data.php +10 -13
  11. app/code/community/Quadra/Paybox/Model/Api/Debug.php +10 -13
  12. app/code/community/Quadra/Paybox/Model/Config/Data/Paybox.php +11 -14
  13. app/code/community/Quadra/Paybox/Model/Direct.php +34 -17
  14. app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug.php +10 -13
  15. app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug/Collection.php +10 -13
  16. app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number.php +10 -13
  17. app/code/community/Quadra/Paybox/Model/Mysql4/Setup.php +10 -13
  18. app/code/community/Quadra/Paybox/Model/Observer.php +18 -30
  19. app/code/community/Quadra/Paybox/Model/Question/Number.php +10 -13
  20. app/code/community/Quadra/Paybox/Model/Source/CartType.php +10 -13
  21. app/code/community/Quadra/Paybox/Model/Source/Cctype.php +10 -13
  22. app/code/community/Quadra/Paybox/Model/Source/Language.php +10 -13
  23. app/code/community/Quadra/Paybox/Model/Source/ManagementMode.php +13 -17
  24. app/code/community/Quadra/Paybox/Model/Source/MethodCall.php +10 -13
  25. app/code/community/Quadra/Paybox/Model/Source/PaymentAction.php +10 -13
  26. app/code/community/Quadra/Paybox/Model/Source/PaymentMode.php +10 -13
  27. app/code/community/Quadra/Paybox/Model/Source/PaymentType.php +10 -13
  28. app/code/community/Quadra/Paybox/Model/System.php +72 -60
  29. app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Statuswithoutcanceled.php +10 -13
  30. app/code/community/Quadra/Paybox/controllers/SystemController.php +203 -227
  31. app/code/community/Quadra/Paybox/controllers/SystemController.php.old +0 -548
  32. app/code/community/Quadra/Paybox/etc/config.xml +40 -18
  33. app/code/community/Quadra/Paybox/etc/currency.xml +10 -12
  34. app/code/community/Quadra/Paybox/etc/system.xml +86 -62
  35. app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-install-0.1.0.php +10 -12
  36. app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.0-0.1.1.php +10 -12
  37. app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.1-0.1.2.php +10 -12
  38. app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.2-0.1.3.php +10 -12
  39. app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-1.2.4-1.2.5.php +10 -12
  40. app/design/adminhtml/default/default/template/paybox/adminhtml/cart/type/select.phtml +10 -13
  41. app/design/adminhtml/default/default/template/paybox/direct/form.phtml +10 -13
  42. app/design/adminhtml/default/default/template/paybox/direct/info.phtml +10 -13
  43. app/design/adminhtml/default/default/template/paybox/direct/pdf/info.phtml +10 -13
  44. app/design/frontend/default/default/layout/paybox.xml +20 -24
  45. app/design/frontend/default/default/template/paybox/direct/form.phtml +10 -13
  46. app/design/frontend/default/default/template/paybox/direct/info.phtml +10 -13
  47. app/design/frontend/default/default/template/paybox/system/error.phtml +10 -13
  48. app/design/frontend/default/default/template/paybox/system/form.phtml +10 -13
  49. app/design/frontend/default/default/template/paybox/system/notify.phtml +17 -0
  50. app/etc/modules/Quadra_Paybox.xml +10 -13
  51. app/locale/fr_FR/Quadra_Paybox.csv +14 -1
  52. package.xml +24 -83
app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_Adminhtml_Cart_Type
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_Adminhtml_Cart_Type extends Mage_Adminhtml_Block_System_Config_Form_Field
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_Adminhtml_Cart_Type extends Mage_Adminhtml_Block_System_Config_Form_Field
app/code/community/Quadra/Paybox/Block/Adminhtml/Cart/Type/Select.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_Adminhtml_Cart_Type_Select
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_Adminhtml_Cart_Type_Select extends Mage_Adminhtml_Block_Template
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_Adminhtml_Cart_Type_Select extends Mage_Adminhtml_Block_Template
app/code/community/Quadra/Paybox/Block/Adminhtml/System/Config/Form/Field/Backuppaymentserver.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_Adminhtml_System_Config_Form_Field_Backuppaymentserver
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_Adminhtml_System_Config_Form_Field_Backuppaymentserver extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_Adminhtml_System_Config_Form_Field_Backuppaymentserver extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
app/code/community/Quadra/Paybox/Block/Direct/Form.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_Direct_Form
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_Direct_Form extends Mage_Payment_Block_Form_Cc
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_Direct_Form extends Mage_Payment_Block_Form_Cc
app/code/community/Quadra/Paybox/Block/Direct/Info.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_Direct_Info
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_Direct_Info extends Mage_Payment_Block_Info_Cc
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_Direct_Info extends Mage_Payment_Block_Info_Cc
app/code/community/Quadra/Paybox/Block/System/Error.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_System_Error
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_System_Error extends Mage_Core_Block_Template
app/code/community/Quadra/Paybox/Block/System/Failure.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_System_Failure
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_System_Failure extends Mage_Core_Block_Template
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_System_Failure extends Mage_Core_Block_Template
app/code/community/Quadra/Paybox/Block/System/Form.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_System_Form
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_System_Form extends Mage_Payment_Block_Form
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_System_Form extends Mage_Payment_Block_Form
app/code/community/Quadra/Paybox/Block/System/Redirect.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Block_System_Redirect
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Block_System_Redirect extends Mage_Core_Block_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Block_System_Redirect extends Mage_Core_Block_Abstract
app/code/community/Quadra/Paybox/Helper/Data.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Helper_Data
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Helper_Data extends Mage_Core_Helper_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Helper_Data extends Mage_Core_Helper_Abstract
app/code/community/Quadra/Paybox/Model/Api/Debug.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Api_Debug
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Api_Debug extends Mage_Core_Model_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Api_Debug extends Mage_Core_Model_Abstract
app/code/community/Quadra/Paybox/Model/Config/Data/Paybox.php CHANGED
@@ -1,25 +1,22 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Config_Data_Paybox
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Config_Data_Paybox extends Mage_Core_Model_Config_Data
22
- {
23
  public function _beforeSave() {
24
  $filename = BP . DS . 'app' . DS . 'code' . DS . 'core' . DS . 'Mage' . DS . 'Paybox' . DS . 'etc' . DS . 'config.xml';
25
 
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
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
 
app/code/community/Quadra/Paybox/Model/Direct.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Direct
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
@@ -135,7 +132,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
135
  {
136
  $currencyCode = $this->getPayment()->getOrder()->getBaseCurrencyCode();
137
  if (!$this->_currenciesNumbers) {
138
- $this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/core/Mage/Paybox/etc/currency.xml');
139
  }
140
  if ($this->_currenciesNumbers->$currencyCode) {
141
  return (string) $this->_currenciesNumbers->$currencyCode;
@@ -166,6 +163,22 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
166
  return $this->getConfigData('debug_flag');
167
  }
168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  public function authorize(Varien_Object $payment, $amount)
170
  {
171
  parent::authorize($payment, $amount);
@@ -279,7 +292,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
279
  'RANG' => $this->getRang(),
280
  'CLE' => $this->getCleNumber(),
281
  'IDENTIFIANT' => '',
282
- 'MONTANT' => ($this->getAmount() * 100),
283
  'DEVISE' => $this->getCurrencyNumb(),
284
  'REFERENCE' => base64_encode($payment->getOrder()->getRealOrderId()),
285
  'PORTEUR' => $payment->getCcNumber(),
@@ -316,6 +329,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
316
  */
317
  public function callDoDebitPayment()
318
  {
 
319
  $payment = $this->getPayment();
320
  $requestStr = '';
321
 
@@ -327,7 +341,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
327
  'SITE' => $this->getSiteNumber(),
328
  'RANG' => $this->getRang(),
329
  'CLE' => $this->getCleNumber(),
330
- 'MONTANT' => ($this->getAmount() * 100),
331
  'DEVISE' => (string) $this->getCurrencyNumb(),
332
  'REFERENCE' => base64_encode($payment->getOrder()->getRealOrderId()),
333
  'NUMAPPEL' => $payment->getPayboxRequestNumber(),
@@ -368,7 +382,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
368
  'SITE' => $this->getSiteNumber(),
369
  'RANG' => $this->getRang(),
370
  'CLE' => $this->getCleNumber(),
371
- 'MONTANT' => ($this->getAmount() * 100),
372
  'DEVISE' => (string) $this->getCurrencyNumb(),
373
  'REFERENCE' => base64_encode($payment->getOrder()->getRealOrderId()),
374
  'PORTEUR' => $payment->getCcNumber(),
@@ -432,6 +446,7 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
432
  $this->setError(array(
433
  'message' => $http->getError()
434
  ));
 
435
  return false;
436
  }
437
  $http->close();
@@ -457,10 +472,12 @@ class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
457
  $this->setError(array(
458
  'message' => Mage::helper('paybox')->__('Paybox payment gateway is not available right now')
459
  ));
 
460
  return false;
461
  }
462
 
463
  if ($parsedResArr['CODEREPONSE'] == '00000') {
 
464
  return $parsedResArr;
465
  }
466
 
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Direct extends Mage_Payment_Model_Method_Cc
132
  {
133
  $currencyCode = $this->getPayment()->getOrder()->getBaseCurrencyCode();
134
  if (!$this->_currenciesNumbers) {
135
+ $this->_currenciesNumbers = simplexml_load_file(Mage::getBaseDir() . '/app/code/community/Quadra/Paybox/etc/currency.xml');
136
  }
137
  if ($this->_currenciesNumbers->$currencyCode) {
138
  return (string) $this->_currenciesNumbers->$currencyCode;
163
  return $this->getConfigData('debug_flag');
164
  }
165
 
166
+ /**
167
+ * Return Amount
168
+ *
169
+ * @return double
170
+ */
171
+ public function getMontant()
172
+ {
173
+ $session = Mage::getSingleton('checkout/session');
174
+ $quote = Mage::getModel('sales/quote')->load($session->getQuoteId());
175
+ if ($quote->getIsMultiShipping()) {
176
+ return (double)$quote->getBaseGrandTotal();
177
+ } else {
178
+ return $this->getAmount();
179
+ }
180
+ }
181
+
182
  public function authorize(Varien_Object $payment, $amount)
183
  {
184
  parent::authorize($payment, $amount);
292
  'RANG' => $this->getRang(),
293
  'CLE' => $this->getCleNumber(),
294
  'IDENTIFIANT' => '',
295
+ 'MONTANT' => str_pad($this->getMontant() * 100, 10, '0', STR_PAD_LEFT),
296
  'DEVISE' => $this->getCurrencyNumb(),
297
  'REFERENCE' => base64_encode($payment->getOrder()->getRealOrderId()),
298
  'PORTEUR' => $payment->getCcNumber(),
329
  */
330
  public function callDoDebitPayment()
331
  {
332
+
333
  $payment = $this->getPayment();
334
  $requestStr = '';
335
 
341
  'SITE' => $this->getSiteNumber(),
342
  'RANG' => $this->getRang(),
343
  'CLE' => $this->getCleNumber(),
344
+ 'MONTANT' => str_pad($this->getMontant() * 100, 10, '0', STR_PAD_LEFT),
345
  'DEVISE' => (string) $this->getCurrencyNumb(),
346
  'REFERENCE' => base64_encode($payment->getOrder()->getRealOrderId()),
347
  'NUMAPPEL' => $payment->getPayboxRequestNumber(),
382
  'SITE' => $this->getSiteNumber(),
383
  'RANG' => $this->getRang(),
384
  'CLE' => $this->getCleNumber(),
385
+ 'MONTANT' => str_pad($this->getMontant() * 100, 10, '0', STR_PAD_LEFT),
386
  'DEVISE' => (string) $this->getCurrencyNumb(),
387
  'REFERENCE' => base64_encode($payment->getOrder()->getRealOrderId()),
388
  'PORTEUR' => $payment->getCcNumber(),
446
  $this->setError(array(
447
  'message' => $http->getError()
448
  ));
449
+
450
  return false;
451
  }
452
  $http->close();
472
  $this->setError(array(
473
  'message' => Mage::helper('paybox')->__('Paybox payment gateway is not available right now')
474
  ));
475
+
476
  return false;
477
  }
478
 
479
  if ($parsedResArr['CODEREPONSE'] == '00000') {
480
+
481
  return $parsedResArr;
482
  }
483
 
app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Mysql4_Api_Debug
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Mysql4_Api_Debug extends Mage_Core_Model_Mysql4_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Mysql4_Api_Debug extends Mage_Core_Model_Mysql4_Abstract
app/code/community/Quadra/Paybox/Model/Mysql4/Api/Debug/Collection.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Mysql4_Api_Debug_Collection
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Mysql4_Api_Debug_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Mysql4_Api_Debug_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
app/code/community/Quadra/Paybox/Model/Mysql4/Question/Number.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Mysql4_Question_Number
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Mysql4_Question_Number extends Mage_Core_Model_Mysql4_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Mysql4_Question_Number extends Mage_Core_Model_Mysql4_Abstract
app/code/community/Quadra/Paybox/Model/Mysql4/Setup.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Mysql4_Setup
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Mysql4_Setup extends Mage_Sales_Model_Mysql4_Setup
app/code/community/Quadra/Paybox/Model/Observer.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Observer
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Observer
@@ -27,7 +24,7 @@ class Quadra_Paybox_Model_Observer
27
  {
28
  Mage::getSingleton('checkout/session')->setCanRedirect(true);
29
  }
30
-
31
  /**
32
  * Return Orders Redirect URL
33
  *
@@ -41,26 +38,17 @@ class Quadra_Paybox_Model_Observer
41
  $key = array_pop($orderIdsTmp);
42
  $order = Mage::getModel('sales/order')->loadByIncrementId($key);
43
 
44
- if (!(strpos($order->getPayment()->getMethod(), 'paybox') === false)) {
45
- Mage::getSingleton('checkout/session')
46
- ->setLastOrderId($order->getId())
47
- ->setRedirectUrl(Mage::getUrl('checkout/multishipping/success'))
48
- ->setLastRealOrderId($order->getIncrementId())
49
- ->setIsMultishipping(true)
50
- ->setMultishippingOrderIds(implode(',', $orderIds))
51
- ->setQuoteId($order->getQuoteId());
52
-
53
  Mage::app()->getResponse()->setRedirect(Mage::getUrl('paybox/system/redirect'));
54
  }
55
  } else {
56
- Mage::getSingleton('checkout/session')
57
- ->unsetData('is_multishipping')
58
- ->unsetData('multishipping_order_ids');
59
  }
60
 
61
  return $this;
62
  }
63
-
64
  /**
65
  * Disables sending email after the order creation
66
  *
@@ -69,11 +57,11 @@ class Quadra_Paybox_Model_Observer
69
  public function disableEmailForMultishipping(Varien_Event_Observer $observer)
70
  {
71
  $order = $observer->getOrder();
72
-
73
- if (!(strpos($order->getPayment()->getMethod(), 'paybox') === false)) {
74
  $order->setCanSendNewEmailFlag(false)->save();
75
  }
76
-
77
  return $this;
78
  }
79
  }
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Observer
24
  {
25
  Mage::getSingleton('checkout/session')->setCanRedirect(true);
26
  }
27
+
28
  /**
29
  * Return Orders Redirect URL
30
  *
38
  $key = array_pop($orderIdsTmp);
39
  $order = Mage::getModel('sales/order')->loadByIncrementId($key);
40
 
41
+ if ($order->getPayment()->getMethod() == 'paybox_system') {
42
+ Mage::getSingleton('checkout/session')->setRealOrderIds(implode(',', $orderIds));
 
 
 
 
 
 
 
43
  Mage::app()->getResponse()->setRedirect(Mage::getUrl('paybox/system/redirect'));
44
  }
45
  } else {
46
+ Mage::getSingleton('checkout/session')->unsRealOrderIds();
 
 
47
  }
48
 
49
  return $this;
50
  }
51
+
52
  /**
53
  * Disables sending email after the order creation
54
  *
57
  public function disableEmailForMultishipping(Varien_Event_Observer $observer)
58
  {
59
  $order = $observer->getOrder();
60
+
61
+ if ($order->getPayment()->getMethod() == 'paybox_system') {
62
  $order->setCanSendNewEmailFlag(false)->save();
63
  }
64
+
65
  return $this;
66
  }
67
  }
app/code/community/Quadra/Paybox/Model/Question/Number.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Question_Number
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Question_Number extends Mage_Core_Model_Abstract
app/code/community/Quadra/Paybox/Model/Source/CartType.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_CartType
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_CartType
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_CartType
app/code/community/Quadra/Paybox/Model/Source/Cctype.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_Cctype
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_Cctype extends Mage_Payment_Model_Source_Cctype
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_Cctype extends Mage_Payment_Model_Source_Cctype
app/code/community/Quadra/Paybox/Model/Source/Language.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_Language
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_Language
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_Language
app/code/community/Quadra/Paybox/Model/Source/ManagementMode.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_ManagementMode
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_ManagementMode
@@ -23,11 +20,10 @@ class Quadra_Paybox_Model_Source_ManagementMode
23
  public function toOptionArray()
24
  {
25
  return array(
26
- // array('value' => Mage_Paypal_Model_Api_Abstract::PAYMENT_TYPE_AUTH, 'label' => Mage::helper('paypal')->__('Authorization')),
27
  array('value' => 'A', 'label' => Mage::helper('paybox')->__('Mode A')),
28
- array('value' => 'B', 'label' => Mage::helper('paybox')->__('Mode B')),
29
- array('value' => 'C', 'label' => Mage::helper('paybox')->__('Mode C')),
30
- array('value' => 'D', 'label' => Mage::helper('paybox')->__('Mode D')),
31
  array('value' => 'E', 'label' => Mage::helper('paybox')->__('Mode E')),
32
  );
33
  }
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_ManagementMode
20
  public function toOptionArray()
21
  {
22
  return array(
 
23
  array('value' => 'A', 'label' => Mage::helper('paybox')->__('Mode A')),
24
+ // array('value' => 'B', 'label' => Mage::helper('paybox')->__('Mode B')),
25
+ // array('value' => 'C', 'label' => Mage::helper('paybox')->__('Mode C')),
26
+ // array('value' => 'D', 'label' => Mage::helper('paybox')->__('Mode D')),
27
  array('value' => 'E', 'label' => Mage::helper('paybox')->__('Mode E')),
28
  );
29
  }
app/code/community/Quadra/Paybox/Model/Source/MethodCall.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_MethodCall
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_MethodCall
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_MethodCall
app/code/community/Quadra/Paybox/Model/Source/PaymentAction.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_PaymentAction
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_PaymentAction
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_PaymentAction
app/code/community/Quadra/Paybox/Model/Source/PaymentMode.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_PaymentMode
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_PaymentMode
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_PaymentMode
app/code/community/Quadra/Paybox/Model/Source/PaymentType.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_Source_PaymentType
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_Source_PaymentType
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_Source_PaymentType
app/code/community/Quadra/Paybox/Model/System.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_System
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
@@ -50,7 +47,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
50
  const PBX_CARTE_TYPE_PAYPAL = 'PAYPAL';
51
 
52
  protected $_code = 'paybox_system';
53
-
54
  protected $_authorized_ips = array('194.2.122.158', '195.101.99.76');
55
 
56
  protected $_isGateway = false;
@@ -65,13 +62,27 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
65
 
66
  protected $_formBlockType = 'paybox/system_form';
67
 
 
68
  protected $_order;
69
  protected $_cartTypes;
70
  protected $_currenciesNumbers;
71
 
72
- protected $_backupservers = array();
73
  protected $_backuptimeouts = array();
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  /**
76
  * Get order model
77
  *
@@ -87,6 +98,19 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
87
  return $this->_order;
88
  }
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  /**
91
  * Set order
92
  *
@@ -97,12 +121,27 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
97
  $this->_order = $order;
98
  return $this;
99
  }
100
-
101
  public function getAuthorizedIps()
102
  {
103
  return $this->_authorized_ips;
104
  }
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  /**
107
  * Get cart types for all payment types
108
  * or for given payment type
@@ -341,33 +380,19 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
341
  $fielldsArr['PBX_PAYBOX'] = $primary;
342
  }
343
 
344
- // BOF QI - Marine
345
-
346
- /* if (($backup1 = trim($this->getConfigData('pbx_backup1'))) != '') {
347
- $fielldsArr['PBX_BACKUP1'] = $backup1;
348
- }
349
-
350
- if (($backup2 = trim($this->getConfigData('pbx_backup2'))) != '') {
351
- $fielldsArr['PBX_BACKUP2'] = $backup2;
352
- }
353
-
354
- if (($backup3 = trim($this->getConfigData('pbx_backup3'))) != '') {
355
- $fielldsArr['PBX_BACKUP3'] = $backup3;
356
- } */
357
-
358
  if (count($this->_backupservers) == 0)
359
  $this->getBackupServer();
360
 
361
  if (count($this->_backupservers) > 0) {
362
  foreach ($this->_backupservers as $key => $server) {
363
  $nServer = $key + 1;
 
 
364
  $fielldsArrKey = 'PBX_BACKUP' . $nServer;
365
  $fielldsArr[$fielldsArrKey] = $server;
366
  }
367
  }
368
 
369
- // EOF QI - Marine
370
-
371
  return $fielldsArr;
372
  }
373
 
@@ -383,20 +408,6 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
383
  $fielldsArr['PBX_TIMEOUT'] = $timeout;
384
  }
385
 
386
- // BOF QI - Marine
387
-
388
- /* if (($timeout1 = trim($this->getConfigData('pbx_timeout1'))) != '') {
389
- $fielldsArr['PBX_TIMEOUT1'] = $timeout1;
390
- }
391
-
392
- if (($timeout2 = trim($this->getConfigData('pbx_timeout2'))) != '') {
393
- $fielldsArr['PBX_TIMEOUT2'] = $timeout2;
394
- }
395
-
396
- if (($timeout3 = trim($this->getConfigData('pbx_timeout3'))) != '') {
397
- $fielldsArr['PBX_TIMEOUT3'] = $timeout3;
398
- } */
399
-
400
  if (count($this->_backuptimeouts) == 0)
401
  $this->getBackupServer();
402
 
@@ -408,8 +419,6 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
408
  }
409
  }
410
 
411
- // EOF QI - Marine
412
-
413
  return $fielldsArr;
414
  }
415
 
@@ -421,23 +430,27 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
421
  public function getManagementMode()
422
  {
423
  $fieldsArr = array();
424
- if (($text = trim($this->getConfigData('pbx_txt'))) != '') {
425
- $fieldsArr['PBX_TXT'] = $text;
426
  }
427
 
428
- if (($wait = trim($this->getConfigData('pbx_wait'))) != '') {
429
  $fieldsArr['PBX_WAIT'] = $wait;
430
  }
431
 
432
- if (($boutpi = trim($this->getConfigData('pbx_boutpi')))) {
433
  $fieldsArr['PBX_BOUTPI'] = $boutpi;
434
  }
435
 
436
- if (($bkgd = trim($this->getConfigData('pbx_bkgd'))) != '') {
437
  $fieldsArr['PBX_BKGD'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'payment/paybox/bkgd/' . $bkgd;
 
 
 
 
438
  }
439
 
440
- $fieldsArr['PBX_OUTPUT'] = $this->getConfigData('pbx_output');
441
 
442
  return $fieldsArr;
443
  }
@@ -497,7 +510,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
497
  'PBX_IDENTIFIANT' => $this->getIdentifiant(), //'2',
498
  'PBX_TOTAL' => (int) ($this->getOrder()->getBaseGrandTotal() * 100),
499
  'PBX_DEVISE' => $this->getCurrencyNumber(),
500
- 'PBX_CMD' => $this->getOrder()->getRealOrderId(),
501
  'PBX_PORTEUR' => $this->getOrder()->getCustomerEmail(),
502
  'PBX_RETOUR' => 'amount:M;ref:R;auto:A;trans:T;error:E;sign:K',
503
  'PBX_EFFECTUE' => Mage::getUrl('paybox/system/success', array('_secure' => true)),
@@ -510,9 +523,8 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
510
  'PBX_RUF1' => self::PBX_METHOD_CALL,
511
  );
512
 
513
- if (Mage::getSingleton('checkout/session')->getIsMultishipping()) {
514
- $quote = Mage::getModel('sales/quote')->load($this->getOrder()->getQuoteId());
515
- $fieldsArr['PBX_TOTAL'] = (int) ($quote->getBaseGrandTotal() * 100);
516
  }
517
 
518
  if ($this->getCartType() != 'none') {
@@ -578,7 +590,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
578
  ->setLastTransId($this->getTransactionId());
579
  return $this;
580
  }
581
-
582
  /**
583
  * Validate payment method information object
584
  *
@@ -605,7 +617,7 @@ class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
605
  $payment->setStatus(self::STATUS_DECLINED);
606
  return $this;
607
  }
608
-
609
  /**
610
  * Return response for Paybox bas response
611
  *
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_System extends Mage_Payment_Model_Method_Abstract
47
  const PBX_CARTE_TYPE_PAYPAL = 'PAYPAL';
48
 
49
  protected $_code = 'paybox_system';
50
+
51
  protected $_authorized_ips = array('194.2.122.158', '195.101.99.76');
52
 
53
  protected $_isGateway = false;
62
 
63
  protected $_formBlockType = 'paybox/system_form';
64
 
65
+ protected $_quote;
66
  protected $_order;
67
  protected $_cartTypes;
68
  protected $_currenciesNumbers;
69
 
70
+ protected $_backupservers = array();
71
  protected $_backuptimeouts = array();
72
 
73
+ /**
74
+ * Get quote model
75
+ *
76
+ * @return Mage_Sales_Model_Quote
77
+ */
78
+ public function getQuote() {
79
+ if (!$this->_quote) {
80
+ $quoteId = Mage::getSingleton('checkout/session')->getLastQuoteId();
81
+ $this->_quote = Mage::getModel('sales/quote')->load($quoteId);
82
+ }
83
+ return $this->_quote;
84
+ }
85
+
86
  /**
87
  * Get order model
88
  *
98
  return $this->_order;
99
  }
100
 
101
+ /**
102
+ * Get real order ids
103
+ *
104
+ * @return string
105
+ */
106
+ public function getOrderList()
107
+ {
108
+ if ($this->getQuote()->getIsMultiShipping())
109
+ return Mage::getSingleton('checkout/session')->getRealOrderIds();
110
+ else
111
+ return $this->getOrder()->getRealOrderId();
112
+ }
113
+
114
  /**
115
  * Set order
116
  *
121
  $this->_order = $order;
122
  return $this;
123
  }
124
+
125
  public function getAuthorizedIps()
126
  {
127
  return $this->_authorized_ips;
128
  }
129
 
130
+ /**
131
+ * Retrieve information from paybox design configuration
132
+ *
133
+ * @param string $field
134
+ * @return mixed
135
+ */
136
+ public function getDesignConfigData($field, $storeId = null)
137
+ {
138
+ if (null === $storeId) {
139
+ $storeId = $this->getStore();
140
+ }
141
+ $path = 'paybox_design/intermediate_page/'.$field;
142
+ return Mage::getStoreConfig($path, $storeId);
143
+ }
144
+
145
  /**
146
  * Get cart types for all payment types
147
  * or for given payment type
380
  $fielldsArr['PBX_PAYBOX'] = $primary;
381
  }
382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  if (count($this->_backupservers) == 0)
384
  $this->getBackupServer();
385
 
386
  if (count($this->_backupservers) > 0) {
387
  foreach ($this->_backupservers as $key => $server) {
388
  $nServer = $key + 1;
389
+ if ($nServer > 4)
390
+ break;
391
  $fielldsArrKey = 'PBX_BACKUP' . $nServer;
392
  $fielldsArr[$fielldsArrKey] = $server;
393
  }
394
  }
395
 
 
 
396
  return $fielldsArr;
397
  }
398
 
408
  $fielldsArr['PBX_TIMEOUT'] = $timeout;
409
  }
410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
  if (count($this->_backuptimeouts) == 0)
412
  $this->getBackupServer();
413
 
419
  }
420
  }
421
 
 
 
422
  return $fielldsArr;
423
  }
424
 
430
  public function getManagementMode()
431
  {
432
  $fieldsArr = array();
433
+ if (($text = trim($this->getDesignConfigData('pbx_txt'))) != '') {
434
+ $fieldsArr['PBX_TXT'] = utf8_encode($text);
435
  }
436
 
437
+ if (($wait = trim($this->getDesignConfigData('pbx_wait'))) != '') {
438
  $fieldsArr['PBX_WAIT'] = $wait;
439
  }
440
 
441
+ if (($boutpi = trim($this->getDesignConfigData('pbx_boutpi')))) {
442
  $fieldsArr['PBX_BOUTPI'] = $boutpi;
443
  }
444
 
445
+ if (($bkgd = trim($this->getDesignConfigData('pbx_bkgd'))) != '') {
446
  $fieldsArr['PBX_BKGD'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'payment/paybox/bkgd/' . $bkgd;
447
+ } else {
448
+ if (($color = trim($this->getDesignConfigData('pbx_bkgd_color'))) != '') {
449
+ $fieldsArr['PBX_BKGD'] = $color;
450
+ }
451
  }
452
 
453
+ $fieldsArr['PBX_OUTPUT'] = $this->getDesignConfigData('pbx_output');
454
 
455
  return $fieldsArr;
456
  }
510
  'PBX_IDENTIFIANT' => $this->getIdentifiant(), //'2',
511
  'PBX_TOTAL' => (int) ($this->getOrder()->getBaseGrandTotal() * 100),
512
  'PBX_DEVISE' => $this->getCurrencyNumber(),
513
+ 'PBX_CMD' => $this->getOrderList(),
514
  'PBX_PORTEUR' => $this->getOrder()->getCustomerEmail(),
515
  'PBX_RETOUR' => 'amount:M;ref:R;auto:A;trans:T;error:E;sign:K',
516
  'PBX_EFFECTUE' => Mage::getUrl('paybox/system/success', array('_secure' => true)),
523
  'PBX_RUF1' => self::PBX_METHOD_CALL,
524
  );
525
 
526
+ if ($this->getQuote()->getIsMultiShipping()) {
527
+ $fieldsArr['PBX_TOTAL'] = (int) ($this->getQuote()->getBaseGrandTotal() * 100);
 
528
  }
529
 
530
  if ($this->getCartType() != 'none') {
590
  ->setLastTransId($this->getTransactionId());
591
  return $this;
592
  }
593
+
594
  /**
595
  * Validate payment method information object
596
  *
617
  $payment->setStatus(self::STATUS_DECLINED);
618
  return $this;
619
  }
620
+
621
  /**
622
  * Return response for Paybox bas response
623
  *
app/code/community/Quadra/Paybox/Model/System/Config/Source/Order/Statuswithoutcanceled.php CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_Model_System_Config_Source_Order_Statuswithoutcanceled
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_Model_System_Config_Source_Order_Statuswithoutcanceled
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_Model_System_Config_Source_Order_Statuswithoutcanceled
app/code/community/Quadra/Paybox/controllers/SystemController.php CHANGED
@@ -1,36 +1,89 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_SystemController
18
- * @author Quadra Team
19
  */
20
 
21
  class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
22
  {
23
  protected $_payboxResponse = null;
24
  protected $_responseStatus = false;
25
- protected $_orderIds;
 
 
26
 
27
  public function testAction()
28
  {
29
  $model = Mage::getModel('paybox/direct')->setRang(10)->setSiteNumber(999988);
30
- echo "nico " . $model->getQuestionNumberModel()->getNextQuestionNumber();
31
 
32
  $model->getQuestionNumberModel()
33
- ->increaseQuestionNumber();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
 
36
  /**
@@ -72,25 +125,34 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
72
  *
73
  */
74
  public function redirectAction()
75
- {
76
  $session = $this->getCheckout();
77
- $session->setPayboxQuoteId($session->getQuoteId());
78
 
79
- $order = Mage::getModel('sales/order');
80
- $order->loadByIncrementId($session->getLastRealOrderId());
81
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer was redirected to Paybox'));
82
- $order->save();
83
 
84
- $session->setPayboxOrderId(Mage::helper('core')->encrypt($session->getLastRealOrderId()));
 
 
 
 
 
 
 
85
  $session->setPayboxPaymentAction(
86
- $order->getPayment()->getMethodInstance()->getPaymentAction()
 
 
87
  );
88
 
89
  $this->getResponse()->setBody(
90
  $this->getLayout()
91
- ->createBlock('paybox/system_redirect')
92
- ->setOrder($order)
93
- ->toHtml()
94
  );
95
 
96
  $session->unsQuoteId();
@@ -105,81 +167,52 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
105
  $this->setPayboxResponse($this->getRequest()->getParams());
106
 
107
  if ($this->_checkResponse()) {
108
-
109
- $order = Mage::getModel('sales/order');
110
- $order->loadByIncrementId($this->_payboxResponse['ref']);
111
-
112
- if (!$order->getId()) {
113
- Mage::throwException($this->__('There are no order.'));
114
- }
115
-
116
  if (Mage::helper('core')->decrypt($this->getCheckout()->getPayboxOrderId()) != $this->_payboxResponse['ref']) {
117
  Mage::throwException($this->__('Order is not match.'));
118
  }
119
  $this->getCheckout()->unsPayboxOrderId();
120
 
121
- $orderIds = $this->_getMultishippingOrderIds($order->getQuoteId());
122
- $isMultishipping = (count($orderIds) > 1)? true : false;
123
-
124
- if ($isMultishipping) {
125
- foreach ($orderIds as $orderId) {
126
- $incrementId = Mage::getResourceModel('sales/order')->getIncrementId($orderId);
127
- $lastOrderIds[$orderId] = $incrementId;
128
- }
129
-
130
- Mage::getSingleton('checkout/type_multishipping')
131
- ->getCheckoutSession()
132
- ->setDisplaySuccess(true)
133
- ->setPayboxResponseCode('success');
134
-
135
- Mage::getSingleton('core/session')->setOrderIds($lastOrderIds);
136
-
137
- Mage::getSingleton('checkout/session')->setIsMultishipping(true);
138
-
139
- $quote = Mage::getModel('sales/quote')->load($order->getQuoteId());
140
-
141
- if ((int) ($quote->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
142
- $erreur = $this->__('Amount is not match.');
143
- $erreur .= (int) ($quote->getBaseGrandTotal() * 100) . ' != ' . $this->_payboxResponse['amount'];
144
-
145
- /*$order->addStatusToHistory($order->getStatus(), $erreur);
146
- $order->save();
147
- Mage::throwException($this->__('Amount is not match.'));*/
148
- }
149
 
150
- foreach ($orderIds as $orderId) {
151
- $order = Mage::getModel('sales/order')->load($orderId);
152
 
153
- if (isset($erreur)) {
154
- $order->addStatusToHistory($order->getStatus(), $erreur);
155
- } else {
156
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer successfully returned from Paybox'));
157
- }
158
 
159
- $order->save();
 
160
  }
161
 
162
  if (isset($erreur)) {
163
- Mage::throwException($this->__('Amount is not match.'));
164
- }
165
-
166
- $redirectTo = 'checkout/multishipping/success';
167
- } else {
168
-
169
- if ((int) ($order->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
170
- $erreur = $this->__('Amount is not match.');
171
- $erreur .= (int) ($order->getBaseGrandTotal() * 100) . ' != ' . $this->_payboxResponse['amount'];
172
-
173
  $order->addStatusToHistory($order->getStatus(), $erreur);
174
  $order->save();
175
- Mage::throwException($this->__('Amount is not match.'));
 
 
176
  }
177
 
178
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer successfully returned from Paybox'));
179
- $order->save();
 
180
 
181
- $redirectTo = 'checkout/onepage/success';
 
182
  }
 
 
 
 
 
 
 
 
 
 
 
183
  /* if ($this->getCheckout()->getPayboxPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
184
  $this->getCheckout()->unsPayboxPaymentAction();
185
  $order->getPayment()
@@ -202,7 +235,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
202
  $session->unsPayboxQuoteId();
203
  $session->setCanRedirect(false);
204
 
205
- $this->_redirect($redirectTo);
206
  } else {
207
  $this->norouteAction();
208
  return;
@@ -221,21 +254,16 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
221
  $this->getCheckout()->unsPayboxQuoteId();
222
  $this->getCheckout()->setPayboxErrorMessage($this->__('Order was canceled by Paybox'));
223
 
224
- $order = Mage::getModel('sales/order')
225
- ->loadByIncrementId($this->_payboxResponse['ref']);
226
-
227
  $messageError = $this->__('Customer was refuse by Paybox');
228
  if (array_key_exists('error', $this->_payboxResponse)) {
229
  $messageError .= ' - Code Erreur : ' . $this->_payboxResponse['error'];
230
  }
231
-
232
- $orderIds = $this->_getMultishippingOrderIds($order->getQuoteId());
233
-
234
- foreach ($orderIds as $orderId) {
235
- $order = Mage::getModel('sales/order')->load($orderId);
236
 
237
  $order->addStatusToHistory(
238
- $model->getConfigData('order_status_payment_refused'), $messageError
239
  );
240
 
241
  if ($model->getConfigData('order_status_payment_refused') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
@@ -246,9 +274,9 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
246
 
247
  $order->save();
248
  }
249
-
250
  if (!$model->getConfigData('empty_cart')) {
251
- $this->_reorder($orderIds);
252
  }
253
 
254
  $this->_redirect('*/*/failure');
@@ -265,19 +293,14 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
265
  {
266
  $model = $this->getModel();
267
  $this->setPayboxResponse($this->getRequest()->getParams());
268
- if ($this->_checkResponse()) {
269
- $order = Mage::getModel('sales/order')
270
- ->loadByIncrementId($this->_payboxResponse['ref']);
271
- /* $order->cancel();
272
- $order->addStatusToHistory($order->getStatus(), $this->__('Order was canceled by customer')); */
273
 
274
- $orderIds = $this->_getMultishippingOrderIds($order->getQuoteId());
275
-
276
- foreach ($orderIds as $orderId) {
277
- $order = Mage::getModel('sales/order')->load($orderId);
278
 
279
  $order->addStatusToHistory(
280
- $model->getConfigData('order_status_payment_canceled'), $this->__('Order was canceled by customer')
281
  );
282
 
283
  if ($model->getConfigData('order_status_payment_canceled') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
@@ -286,22 +309,22 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
286
  $order->hold();
287
  }
288
 
289
- $order->save();
290
  }
291
-
292
  if (!$model->getConfigData('empty_cart')) {
293
- $this->_reorder($orderIds);
294
  }
295
 
296
- $session = $this->getCheckout();
297
  $session->addNotice($this->__('The payment was canceled.'));
298
-
299
  if ($model->getConfigData('empty_cart')) {
300
  $session->setQuoteId($session->getPayboxQuoteId(true));
301
  $session->getQuote()->setIsActive(false)->save();
302
  $session->unsPayboxQuoteId();
303
  }
304
-
305
  $this->_redirect('checkout/cart');
306
  } else {
307
  $this->norouteAction();
@@ -318,43 +341,37 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
318
  $session = $this->getCheckout();
319
  $session->setPayboxQuoteId($session->getQuoteId());
320
 
321
- $order = Mage::getModel('sales/order')
322
- ->loadByIncrementId($this->getCheckout()->getLastRealOrderId());
 
 
323
 
324
- $orderIds = $this->_getMultishippingOrderIds($order->getQuoteId());
325
- $isMultishipping = (count($orderIds) > 1)? true : false;
 
 
 
 
326
 
327
- if ($isMultishipping) {
328
- foreach ($orderIds as $orderId) {
329
- $order = Mage::getModel('sales/order')->load($orderId);
330
- $incrementId = $order->getIncrementId();
331
- $lastOrderIds[$orderId] = $incrementId;
332
 
333
- $order->addStatusToHistory(
334
- $order->getStatus(), $this->__('Customer was redirected to Paybox using \'command line\' mode')
335
- );
336
- $order->save();
337
- }
338
 
339
  Mage::getSingleton('checkout/type_multishipping')
340
  ->getCheckoutSession()
341
  ->setDisplaySuccess(true)
342
  ->setPayboxResponseCode('commandLine');
343
 
344
- Mage::getSingleton('core/session')->setOrderIds($lastOrderIds);
345
-
346
  Mage::getSingleton('checkout/session')->setIsMultishipping(true);
347
- } else {
348
- $order->addStatusToHistory(
349
- $order->getStatus(), $this->__('Customer was redirected to Paybox using \'command line\' mode')
350
- );
351
- $order->save();
352
  }
353
 
354
 
355
  $session->setPayboxOrderId(Mage::helper('core')->encrypt($session->getLastRealOrderId()));
356
  $session->setPayboxPaymentAction(
357
- $order->getPayment()->getMethodInstance()->getPaymentAction()
358
  );
359
 
360
  $session->unsQuoteId();
@@ -426,7 +443,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
426
  *
427
  */
428
  public function failureAction()
429
- {
430
  if (!$this->getCheckout()->getPayboxErrorMessage()) {
431
  $this->norouteAction();
432
  return;
@@ -443,7 +460,6 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
443
  */
444
  protected function _checkResponse()
445
  {
446
-
447
  if (!$this->getCheckout()->getPayboxQuoteId()) {
448
  $this->norouteAction();
449
  return;
@@ -491,6 +507,14 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
491
  return false;
492
  }
493
 
 
 
 
 
 
 
 
 
494
  /**
495
  * Paybox response router
496
  *
@@ -524,36 +548,23 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
524
 
525
  if (!$unauthorized_server) {
526
  try {
527
- $order = Mage::getModel('sales/order');
528
- $order->loadByIncrementId($this->_payboxResponse['ref']);
529
 
530
- if (!$order->getId()) {
531
- Mage::throwException($this->__('There are no order.'));
532
- }
533
 
534
- $orderIds = $this->_getMultishippingOrderIds($order->getQuoteId());
535
- $isMultishipping = (count($orderIds) > 1)? true : false;
536
-
537
- if ($isMultishipping) {
538
- $quote = Mage::getModel('sales/quote')->load($order->getQuoteId());
539
-
540
- if ((int) ($quote->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
541
- Mage::throwException($this->__('Amount is not match.'));
542
  }
543
- } else {
544
- if ((int) ($order->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
545
  Mage::throwException($this->__('Amount is not match.'));
546
  }
547
  }
548
 
549
  if ($this->_payboxResponse['error'] == '00000') {
550
  // Aucune erreur = paiement paybox accepté
551
- if ($isMultishipping) {
552
- foreach ($orderIds as $orderId) {
553
- $order = Mage::getModel('sales/order')->load($orderId);
554
- $this->_updateOrderState($order, $model);
555
- }
556
- } else {
557
  $this->_updateOrderState($order, $model);
558
  }
559
 
@@ -565,45 +576,26 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
565
  // On exit car en cas de réponse valide une page blanche doit être retournée
566
  exit();
567
  } else {
568
- if ($isMultishipping) {
569
- foreach ($orderIds as $orderId) {
570
- $order = Mage::getModel('sales/order')->load($orderId);
571
- $this->_updateOrderState($order, $model);
572
- }
573
- } else {
574
  $this->_updateOrderState($order, $model);
575
  }
576
  }
577
  } catch (Exception $e) {
578
- if ($isMultishipping) {
579
- foreach ($orderIds as $orderId) {
580
- $order = Mage::getModel('sales/order')->load($orderId);
581
- $order->addStatusToHistory($order->getStatus(), $this->__('Error in order validation %s', $e->getMessage()))
582
- ->save();
583
- }
584
- } else {
585
  $order->addStatusToHistory($order->getStatus(), $this->__('Error in order validation %s', $e->getMessage()))
586
- ->save();
587
  }
588
 
589
  $this->loadLayout();
590
  $this->renderLayout();
591
  }
592
  } else {
593
- $order = Mage::getModel('sales/order')->loadByIncrementId($this->_payboxResponse['ref']);
594
-
595
- $orderIds = $this->_getMultishippingOrderIds($order->getQuoteId());
596
- $isMultishipping = (count($orderIds) > 1)? true : false;
597
-
598
- if ($isMultishipping) {
599
- foreach ($orderIds as $orderId) {
600
- $order = Mage::getModel('sales/order')->load($orderId);
601
- $order->addStatusToHistory($order->getStatus(), $this->__('Error bad IP : %s', $_SERVER['REMOTE_ADDR']))
602
- ->save();
603
- }
604
- } else {
605
  $order->addStatusToHistory($order->getStatus(), $this->__('Error bad IP : %s', $_SERVER['REMOTE_ADDR']))
606
- ->save();
607
  }
608
  }
609
 
@@ -622,7 +614,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
622
  $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'));
623
  } else {
624
  $order->addStatusToHistory(
625
- $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'), true
626
  );
627
  }
628
 
@@ -645,7 +637,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
645
  $order->sendNewOrderEmail();
646
  }
647
  $order->save();
648
-
649
  } else {
650
  // Si le client a déjà payé on ne fait aucun traitement
651
  if ($order->getStatus() == $model->getConfigData('order_status_payment_accepted') && $session->getQuote()->getIsActive() == false) {
@@ -660,7 +652,7 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
660
  }
661
 
662
  $order->addStatusToHistory(
663
- $model->getConfigData('order_status_payment_refused'), $messageError
664
  );
665
 
666
  if ($model->getConfigData('order_status_payment_refused') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
@@ -669,56 +661,40 @@ class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
669
  $order->hold();
670
  }
671
 
672
- $order->save();
673
  }
674
  }
675
 
676
- protected function _getMultishippingOrderIds($quoteId) {
677
- if ($this->_orderIds == null) {
678
- $orders = Mage::getResourceModel('sales/order_collection')
679
- ->addAttributeToSelect('entity_id')
680
- ->addFieldToFilter('quote_id', array('eq' => $quoteId));
681
-
682
- $orderIds = array();
683
-
684
- foreach ($orders as $order) {
685
- $orderIds[] = $order->getId();
686
- }
687
-
688
- $this->_orderIds = $orderIds;
689
- }
690
-
691
- return $this->_orderIds;
692
- }
693
-
694
- protected function _reorder($orderIds)
695
  {
696
  $cart = Mage::getSingleton('checkout/cart');
697
  $cartTruncated = false;
698
  /* @var $cart Mage_Checkout_Model_Cart */
699
-
700
- foreach ($orderIds as $orderId) {
701
- $order = Mage::getModel('sales/order')->load($orderId);
702
-
703
- $items = $order->getItemsCollection();
704
- foreach ($items as $item) {
705
- try {
706
- $cart->addOrderItem($item);
707
- } catch (Mage_Core_Exception $e){
708
- if (Mage::getSingleton('checkout/session')->getUseNotice(true)) {
709
- Mage::getSingleton('checkout/session')->addNotice($e->getMessage());
710
- }
711
- else {
712
- Mage::getSingleton('checkout/session')->addError($e->getMessage());
 
 
 
 
 
 
713
  }
714
- } catch (Exception $e) {
715
- Mage::getSingleton('checkout/session')->addException($e,
716
- Mage::helper('checkout')->__('Cannot add the item to shopping cart.')
717
- );
718
  }
719
  }
720
  }
721
 
722
- $cart->save();
723
  }
724
  }
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
19
  {
20
  protected $_payboxResponse = null;
21
  protected $_responseStatus = false;
22
+ protected $_realOrderIds;
23
+ protected $_quote;
24
+
25
 
26
  public function testAction()
27
  {
28
  $model = Mage::getModel('paybox/direct')->setRang(10)->setSiteNumber(999988);
29
+ echo "test " . $model->getQuestionNumberModel()->getNextQuestionNumber();
30
 
31
  $model->getQuestionNumberModel()
32
+ ->increaseQuestionNumber();
33
+ }
34
+
35
+ /**
36
+ * Get quote model
37
+ *
38
+ * @return Mage_Sales_Model_Quote
39
+ */
40
+ public function getQuote()
41
+ {
42
+ if (!$this->_quote) {
43
+ $session = $this->getCheckout();
44
+ $this->_quote = Mage::getModel('sales/quote')->load($session->getPayboxQuoteId());
45
+
46
+ if (!$this->_quote->getId()) {
47
+ $realOrderIds = $this->getRealOrderIds();
48
+ if (count($realOrderIds)) {
49
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderIds[0]);
50
+ $this->_quote = Mage::getModel('sales/quote')->load($order->getQuoteId());
51
+ }
52
+ }
53
+ }
54
+ return $this->_quote;
55
+ }
56
+
57
+ /**
58
+ * Get real order ids
59
+ *
60
+ * @return array
61
+ */
62
+ public function getRealOrderIds()
63
+ {
64
+ if (!$this->_realOrderIds) {
65
+ if ($this->_payboxResponse) {
66
+ $this->_realOrderIds = explode(',', $this->_payboxResponse['ref']);
67
+ } else {
68
+ return array();
69
+ }
70
+ }
71
+ return $this->_realOrderIds;
72
+ }
73
+
74
+ public function getBaseGrandTotal()
75
+ {
76
+ if ($this->getQuote()->getIsMultiShipping())
77
+ return $this->getQuote()->getBaseGrandTotal();
78
+ else {
79
+ $realOrderIds = $this->getRealOrderIds();
80
+ if (count($realOrderIds)) {
81
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderIds[0]);
82
+ return $order->getBaseGrandTotal();
83
+ } else {
84
+ return 0;
85
+ }
86
+ }
87
  }
88
 
89
  /**
125
  *
126
  */
127
  public function redirectAction()
128
+ {
129
  $session = $this->getCheckout();
130
+ $session->setPayboxQuoteId($session->getLastQuoteId());
131
 
132
+ if ($this->getQuote()->getIsMultiShipping())
133
+ $realOrderIds = explode(',', $session->getRealOrderIds());
134
+ else
135
+ $realOrderIds = array($session->getLastRealOrderId());
136
 
137
+ foreach ($realOrderIds as $realOrderId) {
138
+ $order = Mage::getModel('sales/order');
139
+ $order->loadByIncrementId($realOrderId);
140
+ $order->addStatusToHistory($order->getStatus(), $this->__('The customer was redirected to Paybox'));
141
+ $order->save();
142
+ }
143
+
144
+ $session->setPayboxOrderId(Mage::helper('core')->encrypt(implode(',', $realOrderIds)));
145
  $session->setPayboxPaymentAction(
146
+ $order->getPayment()
147
+ ->getMethodInstance()
148
+ ->getPaymentAction()
149
  );
150
 
151
  $this->getResponse()->setBody(
152
  $this->getLayout()
153
+ ->createBlock('paybox/system_redirect')
154
+ ->setOrder($order)
155
+ ->toHtml()
156
  );
157
 
158
  $session->unsQuoteId();
167
  $this->setPayboxResponse($this->getRequest()->getParams());
168
 
169
  if ($this->_checkResponse()) {
 
 
 
 
 
 
 
 
170
  if (Mage::helper('core')->decrypt($this->getCheckout()->getPayboxOrderId()) != $this->_payboxResponse['ref']) {
171
  Mage::throwException($this->__('Order is not match.'));
172
  }
173
  $this->getCheckout()->unsPayboxOrderId();
174
 
175
+ if ((int) ($this->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
176
+ $erreur = $this->__('Amount is not match.');
177
+ $erreur .= (int) ($order->getBaseGrandTotal() * 100) . ' != ' . $this->_payboxResponse['amount'];
178
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
+ if ($this->getQuote()->getIsMultiShipping())
181
+ $orderIds = array();
182
 
183
+ foreach ($this->getRealOrderIds() as $realOrderId) {
184
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
 
 
 
185
 
186
+ if (!$order->getId()) {
187
+ Mage::throwException($this->__('There are no order.'));
188
  }
189
 
190
  if (isset($erreur)) {
 
 
 
 
 
 
 
 
 
 
191
  $order->addStatusToHistory($order->getStatus(), $erreur);
192
  $order->save();
193
+ } else {
194
+ $order->addStatusToHistory($order->getStatus(), $this->__('Customer successfully returned from Paybox'));
195
+ $order->save();
196
  }
197
 
198
+ if ($this->getQuote()->getIsMultiShipping())
199
+ $orderIds[$order->getId()] = $realOrderId;
200
+ }
201
 
202
+ if (isset($erreur)) {
203
+ Mage::throwException($this->__('Amount is not match.'));
204
  }
205
+
206
+ if ($this->getQuote()->getIsMultiShipping()) {
207
+ Mage::getSingleton('checkout/type_multishipping')
208
+ ->getCheckoutSession()
209
+ ->setDisplaySuccess(true)
210
+ ->setPayboxResponseCode('success');
211
+
212
+ Mage::getSingleton('core/session')->setOrderIds($orderIds);
213
+ Mage::getSingleton('checkout/session')->setIsMultishipping(true);
214
+ }
215
+
216
  /* if ($this->getCheckout()->getPayboxPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
217
  $this->getCheckout()->unsPayboxPaymentAction();
218
  $order->getPayment()
235
  $session->unsPayboxQuoteId();
236
  $session->setCanRedirect(false);
237
 
238
+ $this->_redirect($this->_getSuccessRedirect());
239
  } else {
240
  $this->norouteAction();
241
  return;
254
  $this->getCheckout()->unsPayboxQuoteId();
255
  $this->getCheckout()->setPayboxErrorMessage($this->__('Order was canceled by Paybox'));
256
 
 
 
 
257
  $messageError = $this->__('Customer was refuse by Paybox');
258
  if (array_key_exists('error', $this->_payboxResponse)) {
259
  $messageError .= ' - Code Erreur : ' . $this->_payboxResponse['error'];
260
  }
261
+
262
+ foreach ($this->getRealOrderIds() as $realOrderId) {
263
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
 
 
264
 
265
  $order->addStatusToHistory(
266
+ $model->getConfigData('order_status_payment_refused'), $messageError
267
  );
268
 
269
  if ($model->getConfigData('order_status_payment_refused') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
274
 
275
  $order->save();
276
  }
277
+
278
  if (!$model->getConfigData('empty_cart')) {
279
+ $this->_reorder();
280
  }
281
 
282
  $this->_redirect('*/*/failure');
293
  {
294
  $model = $this->getModel();
295
  $this->setPayboxResponse($this->getRequest()->getParams());
 
 
 
 
 
296
 
297
+ if ($this->_checkResponse()) {
298
+
299
+ foreach ($this->getRealOrderIds() as $realOrderId) {
300
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
301
 
302
  $order->addStatusToHistory(
303
+ $model->getConfigData('order_status_payment_canceled'), $this->__('The order was canceled by the customer.')
304
  );
305
 
306
  if ($model->getConfigData('order_status_payment_canceled') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
309
  $order->hold();
310
  }
311
 
312
+ $order->save();
313
  }
314
+
315
  if (!$model->getConfigData('empty_cart')) {
316
+ $this->_reorder();
317
  }
318
 
319
+ $session = $this->getCheckout();
320
  $session->addNotice($this->__('The payment was canceled.'));
321
+
322
  if ($model->getConfigData('empty_cart')) {
323
  $session->setQuoteId($session->getPayboxQuoteId(true));
324
  $session->getQuote()->setIsActive(false)->save();
325
  $session->unsPayboxQuoteId();
326
  }
327
+
328
  $this->_redirect('checkout/cart');
329
  } else {
330
  $this->norouteAction();
341
  $session = $this->getCheckout();
342
  $session->setPayboxQuoteId($session->getQuoteId());
343
 
344
+ $order = Mage::getModel('sales/order');
345
+
346
+ if ($this->getQuote()->getIsMultiShipping())
347
+ $orderIds = array();
348
 
349
+ foreach ($this->getRealOrderIds() as $realOrderId) {
350
+ $order->loadByIncrementId($realOrderId);
351
+ $order->addStatusToHistory(
352
+ $order->getStatus(), $this->__('The customer was redirected to Paybox using \'command line\' mode')
353
+ );
354
+ $order->save();
355
 
356
+ if ($this->getQuote()->getIsMultiShipping())
357
+ $orderIds[$order->getId()] = $realOrderId;
358
+ }
 
 
359
 
360
+ if ($this->getQuote()->getIsMultiShipping()) {
 
 
 
 
361
 
362
  Mage::getSingleton('checkout/type_multishipping')
363
  ->getCheckoutSession()
364
  ->setDisplaySuccess(true)
365
  ->setPayboxResponseCode('commandLine');
366
 
367
+ Mage::getSingleton('core/session')->setOrderIds($orderIds);
 
368
  Mage::getSingleton('checkout/session')->setIsMultishipping(true);
 
 
 
 
 
369
  }
370
 
371
 
372
  $session->setPayboxOrderId(Mage::helper('core')->encrypt($session->getLastRealOrderId()));
373
  $session->setPayboxPaymentAction(
374
+ $order->getPayment()->getMethodInstance()->getPaymentAction()
375
  );
376
 
377
  $session->unsQuoteId();
443
  *
444
  */
445
  public function failureAction()
446
+ {
447
  if (!$this->getCheckout()->getPayboxErrorMessage()) {
448
  $this->norouteAction();
449
  return;
460
  */
461
  protected function _checkResponse()
462
  {
 
463
  if (!$this->getCheckout()->getPayboxQuoteId()) {
464
  $this->norouteAction();
465
  return;
507
  return false;
508
  }
509
 
510
+ protected function _getSuccessRedirect()
511
+ {
512
+ if ($this->getQuote()->getIsMultiShipping())
513
+ return 'checkout/multishipping/success';
514
+ else
515
+ return 'checkout/onepage/success';
516
+ }
517
+
518
  /**
519
  * Paybox response router
520
  *
548
 
549
  if (!$unauthorized_server) {
550
  try {
 
 
551
 
552
+ foreach ($this->getRealOrderIds() as $realOrderId) {
553
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
 
554
 
555
+ if (!$order->getId()) {
556
+ Mage::throwException($this->__('There are no order.'));
 
 
 
 
 
 
557
  }
558
+
559
+ if ((int) ($this->getBaseGrandTotal() * 100) != (int) $this->_payboxResponse['amount']) {
560
  Mage::throwException($this->__('Amount is not match.'));
561
  }
562
  }
563
 
564
  if ($this->_payboxResponse['error'] == '00000') {
565
  // Aucune erreur = paiement paybox accepté
566
+ foreach ($this->getRealOrderIds() as $realOrderId) {
567
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
 
 
 
 
568
  $this->_updateOrderState($order, $model);
569
  }
570
 
576
  // On exit car en cas de réponse valide une page blanche doit être retournée
577
  exit();
578
  } else {
579
+ foreach ($this->getRealOrderIds() as $realOrderId) {
580
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
 
 
 
 
581
  $this->_updateOrderState($order, $model);
582
  }
583
  }
584
  } catch (Exception $e) {
585
+ foreach ($this->getRealOrderIds() as $realOrderId) {
586
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
 
 
 
 
 
587
  $order->addStatusToHistory($order->getStatus(), $this->__('Error in order validation %s', $e->getMessage()))
588
+ ->save();
589
  }
590
 
591
  $this->loadLayout();
592
  $this->renderLayout();
593
  }
594
  } else {
595
+ foreach ($this->getRealOrderIds() as $realOrderId) {
596
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
 
 
 
 
 
 
 
 
 
 
597
  $order->addStatusToHistory($order->getStatus(), $this->__('Error bad IP : %s', $_SERVER['REMOTE_ADDR']))
598
+ ->save();
599
  }
600
  }
601
 
614
  $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'));
615
  } else {
616
  $order->addStatusToHistory(
617
+ $model->getConfigData('order_status_payment_accepted'), $this->__('Payment accepted by Paybox'), true
618
  );
619
  }
620
 
637
  $order->sendNewOrderEmail();
638
  }
639
  $order->save();
640
+
641
  } else {
642
  // Si le client a déjà payé on ne fait aucun traitement
643
  if ($order->getStatus() == $model->getConfigData('order_status_payment_accepted') && $session->getQuote()->getIsActive() == false) {
652
  }
653
 
654
  $order->addStatusToHistory(
655
+ $model->getConfigData('order_status_payment_refused'), $messageError
656
  );
657
 
658
  if ($model->getConfigData('order_status_payment_refused') == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
661
  $order->hold();
662
  }
663
 
664
+ $order->save();
665
  }
666
  }
667
 
668
+ protected function _reorder()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
669
  {
670
  $cart = Mage::getSingleton('checkout/cart');
671
  $cartTruncated = false;
672
  /* @var $cart Mage_Checkout_Model_Cart */
673
+
674
+ foreach ($this->getRealOrderIds() as $realOrderId) {
675
+ $order = Mage::getModel('sales/order')->loadByIncrementId($realOrderId);
676
+
677
+ if ($order->getId()) {
678
+ $items = $order->getItemsCollection();
679
+ foreach ($items as $item) {
680
+ try {
681
+ $cart->addOrderItem($item);
682
+ } catch (Mage_Core_Exception $e){
683
+ if (Mage::getSingleton('checkout/session')->getUseNotice(true)) {
684
+ Mage::getSingleton('checkout/session')->addNotice($e->getMessage());
685
+ }
686
+ else {
687
+ Mage::getSingleton('checkout/session')->addError($e->getMessage());
688
+ }
689
+ } catch (Exception $e) {
690
+ Mage::getSingleton('checkout/session')->addException($e,
691
+ Mage::helper('checkout')->__('Cannot add the item to shopping cart.')
692
+ );
693
  }
 
 
 
 
694
  }
695
  }
696
  }
697
 
698
+ $cart->save();
699
  }
700
  }
app/code/community/Quadra/Paybox/controllers/SystemController.php.old DELETED
@@ -1,548 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @name Quadra_Paybox_SystemController
18
- * @author Quadra Team
19
- */
20
-
21
- class Quadra_Paybox_SystemController extends Mage_Core_Controller_Front_Action
22
- {
23
- protected $_payboxResponse = null;
24
- protected $_responseStatus = false;
25
-
26
- /**
27
- * seting response after returning from paybox
28
- *
29
- * @param array $response
30
- * @return object $this
31
- */
32
- protected function setPayboxResponse($response)
33
- {
34
- if (count($response)) {
35
- $this->_payboxResponse = $response;
36
- }
37
- return $this;
38
- }
39
-
40
- /**
41
- * Get System Model
42
- *
43
- * @return Quadra_Paybox_Model_System
44
- */
45
- public function getModel()
46
- {
47
- return Mage::getSingleton('paybox/system');
48
- }
49
-
50
- /**
51
- * Get Checkout Singleton
52
- *
53
- * @return Mage_Checkout_Model_Session
54
- */
55
- public function getCheckout()
56
- {
57
- return Mage::getSingleton('checkout/session');
58
- }
59
-
60
- /**
61
- * Redirect action. Redirect customer to Paybox
62
- *
63
- */
64
- public function redirectAction()
65
- {
66
- $session = $this->getCheckout();
67
- $session->setPayboxQuoteId($session->getQuoteId());
68
-
69
- $order = Mage::getModel('sales/order');
70
- $order->loadByIncrementId($session->getLastRealOrderId());
71
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer was redirected to Paybox'));
72
- $order->save();
73
-
74
- $session->setPayboxOrderId(Mage::helper('core')->encrypt($session->getLastRealOrderId()));
75
- $session->setPayboxPaymentAction(
76
- $order->getPayment()->getMethodInstance()->getPaymentAction()
77
- );
78
-
79
- $this->getResponse()->setBody(
80
- $this->getLayout()
81
- ->createBlock('paybox/system_redirect')
82
- ->setOrder($order)
83
- ->toHtml()
84
- );
85
-
86
- $session->unsQuoteId();
87
- }
88
-
89
- /**
90
- * Customer returning to this action if payment was successe
91
- */
92
- public function successAction()
93
- {
94
- $this->setPayboxResponse($this->getRequest()->getParams());
95
-
96
- if ($this->_checkResponse()) {
97
-
98
- $order = Mage::getModel('sales/order');
99
- $order->loadByIncrementId($this->_payboxResponse['ref']);
100
-
101
- if (!$order->getId()) {
102
- Mage::throwException($this->__('There are no order.'));
103
- }
104
-
105
- if (Mage::helper('core')->decrypt($this->getCheckout()->getPayboxOrderId()) != $this->_payboxResponse['ref']) {
106
- Mage::throwException($this->__('Order is not match.'));
107
- }
108
- $this->getCheckout()->unsPayboxOrderId();
109
-
110
- if ((string) ($order->getBaseGrandTotal() * 100) != $this->_payboxResponse['amount']) {
111
- $erreur = $this->__('Amount is not match.');
112
- $erreur .= ' ' . ($order->getBaseGrandTotal() * 100) . ' != ' . $this->_payboxResponse['amount'];
113
-
114
- $order->addStatusToHistory($order->getStatus(), $erreur);
115
- $order->save();
116
- Mage::throwException($this->__('Amount is not match.'));
117
- }
118
-
119
-
120
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer successfully returned from Paybox'));
121
-
122
- $redirectTo = 'checkout/onepage/success';
123
- if ($this->getCheckout()->getPayboxPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
124
- $this->getCheckout()->unsPayboxPaymentAction();
125
- $order->getPayment()
126
- ->getMethodInstance()
127
- ->setTransactionId($this->_payboxResponse['trans']);
128
- if ($this->_createInvoice($order)) {
129
- $order->addStatusToHistory($order->getStatus(), $this->__('Invoice was create successfully'));
130
- } else {
131
- $order->addStatusToHistory($order->getStatus(), $this->__('Cann\'t create invoice'));
132
- $redirectTo = '*/*/failure';
133
- }
134
- }
135
-
136
- $session = $this->getCheckout();
137
- $session->setQuoteId($session->getPayboxQuoteId(true));
138
- $session->getQuote()->setIsActive(false)->save();
139
- $session->unsPayboxQuoteId();
140
-
141
- //$order->sendNewOrderEmail();
142
- $order->save();
143
-
144
- $this->_redirect($redirectTo);
145
- } else {
146
- $this->norouteAction();
147
- return;
148
- }
149
- }
150
-
151
- /**
152
- * Action when payment was declined by Paybox
153
- */
154
- public function refuseAction()
155
- {
156
- $this->setPayboxResponse($this->getRequest()->getParams());
157
- if ($this->_checkResponse()) {
158
- $this->getCheckout()->unsPayboxQuoteId();
159
- $this->getCheckout()->setPayboxErrorMessage($this->__('Order was canceled by Paybox'));
160
-
161
- $order = Mage::getModel('sales/order')
162
- ->loadByIncrementId($this->_payboxResponse['ref']);
163
- $order->cancel();
164
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer was refuse by Paybox'));
165
- $order->save();
166
-
167
- $this->_redirect('*/*/failure');
168
- } else {
169
- $this->norouteAction();
170
- return;
171
- }
172
- }
173
-
174
- /**
175
- * Action when customer cancele payment or press button to back to shop
176
- */
177
- public function declineAction()
178
- {
179
- $this->setPayboxResponse($this->getRequest()->getParams());
180
- if ($this->_checkResponse()) {
181
-
182
- $order = Mage::getModel('sales/order')
183
- ->loadByIncrementId($this->_payboxResponse['ref']);
184
- $order->cancel();
185
- $order->addStatusToHistory($order->getStatus(), $this->__('Order was canceled by customer'));
186
- $order->save();
187
-
188
- $session = $this->getCheckout();
189
- $session->setQuoteId($session->getPayboxQuoteId(true));
190
- $session->getQuote()->setIsActive(false)->save();
191
- $session->unsPayboxQuoteId();
192
-
193
- $this->_redirect('checkout/cart');
194
- } else {
195
- $this->norouteAction();
196
- return;
197
- }
198
- }
199
-
200
- /**
201
- * Redirect action. Redirect to Paybox using commandline mode
202
- *
203
- */
204
- public function commandlineAction()
205
- {
206
- $session = $this->getCheckout();
207
- $session->setPayboxQuoteId($session->getQuoteId());
208
-
209
- $order = Mage::getModel('sales/order')
210
- ->loadByIncrementId($this->getCheckout()->getLastRealOrderId());
211
- $order->addStatusToHistory(
212
- $order->getStatus(), $this->__('Customer was redirected to Paybox using \'command line\' mode')
213
- );
214
- $order->save();
215
-
216
- $session->setPayboxOrderId(Mage::helper('core')->encrypt($session->getLastRealOrderId()));
217
- $session->setPayboxPaymentAction(
218
- $order->getPayment()->getMethodInstance()->getPaymentAction()
219
- );
220
-
221
- $session->unsQuoteId();
222
-
223
- $payment = $order->getPayment()->getMethodInstance();
224
- $fieldsArr = $payment->getFormFields();
225
- $paramStr = '';
226
- foreach ($fieldsArr as $k => $v) {
227
- $paramStr .= $k . '=' . $v . ' ';
228
- }
229
-
230
- $paramStr = str_replace(';', '\;', $paramStr);
231
- $result = shell_exec(Mage::getBaseDir() . '/' . $this->getModel()->getPayboxFile() . ' ' . $paramStr);
232
-
233
- if (isset($fieldsArr['PBX_PING']) && $fieldsArr['PBX_PING'] == '1') {
234
- $fieldsArr['PBX_PING'] = '0';
235
- $fieldsArr['PBX_PAYBOX'] = trim(substr($result, strpos($result, 'http')));
236
- $paramStr = '';
237
- foreach ($fieldsArr as $k => $v) {
238
- $paramStr .= $k . '=' . $v . ' ';
239
- }
240
-
241
- $paramStr = str_replace(';', '\;', $paramStr);
242
- $result = shell_exec(Mage::getBaseDir() . '/' . $this->getModel()->getPayboxFile() . ' ' . $paramStr);
243
- }
244
-
245
- $this->loadLayout(false);
246
- $this->getResponse()->setBody($result);
247
- $this->renderLayout();
248
- }
249
-
250
- /**
251
- * Error action. If request params to Paybox has mistakes
252
- *
253
- */
254
- public function errorAction()
255
- {
256
- if (!$this->getCheckout()->getPayboxQuoteId()) {
257
- $this->norouteAction();
258
- return;
259
- }
260
-
261
- $session = $this->getCheckout();
262
- $session->setQuoteId($session->getPayboxQuoteId(true));
263
- $session->getQuote()->setIsActive(false)->save();
264
- $session->unsPayboxQuoteId();
265
-
266
- if (!$this->getRequest()->getParam('NUMERR')) {
267
- $this->norouteAction();
268
- return;
269
- }
270
-
271
- $this->loadLayout();
272
-
273
- $this->getCheckout()
274
- ->setPayboxErrorNumber(
275
- $this->getRequest()->getParam('NUMERR')
276
- );
277
-
278
- $this->renderLayout();
279
- }
280
-
281
- /**
282
- * Failure action.
283
- * Displaying information if customer was redirecting to cancel or decline actions
284
- *
285
- */
286
- public function failureAction()
287
- {
288
- if (!$this->getCheckout()->getPayboxErrorMessage()) {
289
- $this->norouteAction();
290
- return;
291
- }
292
-
293
- $this->loadLayout();
294
- $this->renderLayout();
295
- }
296
-
297
- /**
298
- * Checking response and Paybox session variables
299
- *
300
- * @return unknown
301
- */
302
- protected function _checkResponse()
303
- {
304
- if (!$this->getCheckout()->getPayboxQuoteId()) {
305
- $this->norouteAction();
306
- return;
307
- }
308
-
309
- if (!$this->getCheckout()->getPayboxOrderId()) {
310
- $this->norouteAction();
311
- return;
312
- }
313
-
314
- if (!$this->getCheckout()->getPayboxPaymentAction()) {
315
- $this->norouteAction();
316
- return;
317
- }
318
-
319
- if (!$this->_payboxResponse) {
320
- return false;
321
- }
322
-
323
- //check for valid response
324
- if ($this->getModel()->checkResponse($this->_payboxResponse)) {
325
- return true;
326
- }
327
-
328
- return true;
329
- }
330
-
331
- /**
332
- * Creating invoice
333
- *
334
- * @param Mage_Sales_Model_Order $order
335
- * @return bool
336
- */
337
- protected function _createInvoice(Mage_Sales_Model_Order $order)
338
- {
339
- if ($order->canInvoice()) {
340
- $invoice = $order->prepareInvoice();
341
- $invoice->register()->capture();
342
- Mage::getModel('core/resource_transaction')
343
- ->addObject($invoice)
344
- ->addObject($invoice->getOrder())
345
- ->save();
346
- return true;
347
- }
348
- return false;
349
- }
350
-
351
- /**
352
- * Paybox response router
353
- *
354
- * @param none
355
- * @return void
356
- */
357
- public function notifyAction()
358
- {
359
- $params = $this->getRequest()->getParams();
360
- $this->setPayboxResponse($params);
361
-
362
- try {
363
- $order = Mage::getModel('sales/order');
364
- $order->loadByIncrementId($this->_payboxResponse['ref']);
365
-
366
- if (!$order->getId()) {
367
- Mage::throwException($this->__('There are no order.'));
368
- }
369
-
370
- if ((string) ($order->getBaseGrandTotal() * 100) != $this->_payboxResponse['amount']) {
371
- Mage::throwException($this->__('Amount is not match.'));
372
- }
373
-
374
- if ($this->_payboxResponse['error'] == '00000') {
375
- // Aucune erreur = paiement paybox accepté
376
- $order->addStatusToHistory($order->getStatus(), $this->__('Payment accepted by Paybox'), true);
377
-
378
- if ($this->getCheckout()->getPayboxPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
379
- $this->getCheckout()->unsPayboxPaymentAction();
380
- $order->getPayment()
381
- ->getMethodInstance()
382
- ->setTransactionId($this->_payboxResponse['trans']);
383
- if ($this->_createInvoice($order)) {
384
- $order->addStatusToHistory($order->getStatus(), $this->__('Invoice was create successfully'));
385
- } else {
386
- $order->addStatusToHistory($order->getStatus(), $this->__('Cann\'t create invoice'));
387
- }
388
- }
389
-
390
- $session = $this->getCheckout();
391
- $session->setQuoteId($session->getPayboxQuoteId(true));
392
- $session->getQuote()->setIsActive(false)->save();
393
- $session->unsPayboxQuoteId();
394
-
395
- $order->sendNewOrderEmail();
396
- $order->setEmailSent(true);
397
- $order->save();
398
-
399
- // On exit car en cas de réponse valide une page blanche doit être retournée
400
- exit();
401
- } else {
402
- // Erreur = paiement paybox refusé
403
- $order->cancel();
404
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer was rejected by Paybox'));
405
- $order->save();
406
- }
407
- } catch (Exception $e) {
408
- $order->addStatusToHistory($order->getStatus(), $this->__('Error in order validation %s', $e->getMessage()))
409
- ->save();
410
- $this->loadLayout();
411
- $this->renderLayout();
412
- }
413
-
414
- $this->loadLayout();
415
- $this->renderLayout();
416
- }
417
-
418
- /**
419
- * Paybox response router
420
- *
421
- * @param none
422
- * @return void
423
- */
424
- public function notify2Action()
425
- {
426
- // R�cup�ration des param�tres de la r�ponse Paybox
427
- $params = $this->getRequest()->getParams();
428
- $this->setPayboxResponse($params);
429
-
430
- // V�rification des adresses IP des serveurs Paybox
431
- $authorized_ips = Mage::getStoreConfig('payment/paybox_system/authorized_ips');
432
-
433
- $unauthorized_server = true;
434
- foreach ($authorized_ips as $authorized_ip) {
435
- if ($_SERVER['REMOTE_ADDR'] == $authorized_ip) {
436
- $unauthorized_server = false;
437
- break;
438
- }
439
- }
440
-
441
- // On instancie d�s maintenant la commande afin de pouvoir tracer les �ventuelles erreurs
442
- $order = Mage::getModel('sales/order')
443
- ->loadByIncrementId($this->_payboxResponse['ref']);
444
-
445
- if (!$unauthorized_server) {
446
-
447
- // V�rification de la signature Paybox
448
- $fp = fopen(Mage::getStoreConfig('payment/paybox_system/key_path'), 'r');
449
- $public_key = fread($fp, 8192);
450
- fclose($fp);
451
- $pbx_retour = '';
452
- if ($public_key) {
453
- foreach ($params as $key => $val) {
454
- if ($key == 'sign') {
455
- $pbx_sign = $val;
456
- } else {
457
- $pbx_retour .= '&' . $key . '=' . $val;
458
- }
459
- }
460
-
461
- $pbx_retour = substr($pbx_retour, 1);
462
- $pbx_sign = base64_decode($pbx_sign);
463
- $public_key = openssl_pkey_get_public($public_key);
464
-
465
- if (openssl_verify($pbx_retour, $pbx_sign, $public_key) == 1) {
466
- // Signature paybox valide
467
-
468
- try {
469
- $order = Mage::getModel('sales/order');
470
- $order->loadByIncrementId($this->_payboxResponse['ref']);
471
-
472
- if (!$order->getId()) {
473
- Mage::throwException($this->__('There are no order.'));
474
- }
475
-
476
- if ((string) ($order->getBaseGrandTotal() * 100) != $this->_payboxResponse['amount']) {
477
- Mage::throwException($this->__('Amount is not match.'));
478
- }
479
-
480
- // La signature est valid�e
481
- if ($this->_payboxResponse['error'] == '00000') {
482
- // Aucune erreur = paiement paybox accept�
483
- $order->addStatusToHistory($order->getStatus(), $this->__('Payment accepted by Paybox'), true);
484
-
485
- if ($this->getCheckout()->getPayboxPaymentAction() == Quadra_Paybox_Model_System::PBX_PAYMENT_ACTION_ATHORIZE_CAPTURE) {
486
- $this->getCheckout()->unsPayboxPaymentAction();
487
- $order->getPayment()
488
- ->getMethodInstance()
489
- ->setTransactionId($this->_payboxResponse['trans']);
490
- if ($this->_createInvoice($order)) {
491
- $order->addStatusToHistory($order->getStatus(), $this->__('Invoice was create successfully'));
492
- } else {
493
- $order->addStatusToHistory($order->getStatus(), $this->__('Cann\'t create invoice'));
494
- }
495
- }
496
-
497
- $session = $this->getCheckout();
498
- $session->setQuoteId($session->getPayboxQuoteId(true));
499
- $session->getQuote()->setIsActive(false)->save();
500
- $session->unsPayboxQuoteId();
501
-
502
- $order->sendNewOrderEmail();
503
- $order->setEmailSent(true);
504
- $order->save();
505
-
506
- // On exit car en cas de r�ponse valide une page blanche doit �tre retourn�e
507
- exit();
508
- } else {
509
- // Erreur = paiement paybox refus�
510
- $order->cancel();
511
- $order->addStatusToHistory($order->getStatus(), $this->__('Customer was rejected by Paybox'));
512
- $order->save();
513
- }
514
- } catch (Exception $e) {
515
- $order->addStatusToHistory($order->getStatus(), $this->__('Error in order validation %s', $e->getMessage()))
516
- ->save();
517
- $this->loadLayout();
518
- $this->renderLayout();
519
- }
520
- }
521
- // if (openssl_verify($pbx_retour, $pbx_sign, $public_key) == 1)
522
- else {
523
- $order->addStatusToHistory($order->getStatus(), $this->__('Error bad signature'))
524
- ->save();
525
- $this->loadLayout();
526
- $this->renderLayout();
527
- }
528
- }
529
- // if ($public_key)
530
- else {
531
- $order->addStatusToHistory($order->getStatus(), $this->__('Error public key unavailable'))
532
- ->save();
533
- $this->loadLayout();
534
- $this->renderLayout();
535
- }
536
- }
537
- // if (!$unauthorized_server)
538
- else {
539
- $order->addStatusToHistory($order->getStatus(), $this->__('Error bad IP : %s', $_SERVER['REMOTE_ADDR']))
540
- ->save();
541
- $this->loadLayout();
542
- $this->renderLayout();
543
- }
544
-
545
- $this->loadLayout();
546
- $this->renderLayout();
547
- }
548
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Quadra/Paybox/etc/config.xml CHANGED
@@ -1,27 +1,25 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
  *
16
- * @category Quadra
17
- * @package Quadra_Paybox
18
- * @author Quadra Team
 
19
  */
20
  -->
21
  <config>
22
  <modules>
23
  <Quadra_Paybox>
24
- <version>1.2.5</version>
25
  </Quadra_Paybox>
26
  </modules>
27
  <global>
@@ -72,16 +70,16 @@
72
  <use>core_read</use>
73
  </connection>
74
  </paybox_read>
75
- </resources>
76
  </global>
77
- <frontend>
78
  <layout>
79
  <updates>
80
  <booking>
81
  <file>paybox.xml</file>
82
  </booking>
83
  </updates>
84
- </layout>
85
  <routers>
86
  <paybox>
87
  <use>standard</use>
@@ -131,6 +129,26 @@
131
  </events>
132
  </frontend>
133
  <adminhtml>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  <translate>
135
  <modules>
136
  <Quadra_Paybox>
@@ -149,7 +167,6 @@
149
  <pbx_rang backend_model="adminhtml/system_config_backend_encrypted"/>
150
  <pbx_identifiant backend_model="adminhtml/system_config_backend_encrypted"/>
151
  <pbx_autoseule>authorize_capture</pbx_autoseule>
152
- <pbx_output>E</pbx_output>
153
  <pbx_langue>FRA</pbx_langue>
154
  <model>paybox/system</model>
155
  <title>Paybox System</title>
@@ -159,7 +176,7 @@
159
  <ip1>195.101.99.76</ip1>
160
  <ip2>194.2.122.158</ip2>
161
  </authorized_ips>
162
- <key_path>app/code/core/Mage/Paybox/etc/pubkey.pem</key_path>
163
  <empty_cart>1</empty_cart>
164
  </paybox_system>
165
  <paybox_direct>
@@ -175,5 +192,10 @@
175
  <allowspecific>0</allowspecific>
176
  </paybox_direct>
177
  </payment>
 
 
 
 
 
178
  </default>
179
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
+ /*
4
+ * 1997-2012 Quadra Informatique
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please send an email
11
+ * to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
12
  *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 1997-2012 Quadra Informatique
15
+ * @version Release: $Revision: 2.1.0 $
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.0</version>
23
  </Quadra_Paybox>
24
  </modules>
25
  <global>
70
  <use>core_read</use>
71
  </connection>
72
  </paybox_read>
73
+ </resources>
74
  </global>
75
+ <frontend>
76
  <layout>
77
  <updates>
78
  <booking>
79
  <file>paybox.xml</file>
80
  </booking>
81
  </updates>
82
+ </layout>
83
  <routers>
84
  <paybox>
85
  <use>standard</use>
129
  </events>
130
  </frontend>
131
  <adminhtml>
132
+ <acl>
133
+ <resources>
134
+ <admin>
135
+ <children>
136
+ <system>
137
+ <children>
138
+ <config>
139
+ <children>
140
+ <paybox_design>
141
+ <title>Paybox Design Section</title>
142
+ <sort_order>100</sort_order>
143
+ </paybox_design>
144
+ </children>
145
+ </config>
146
+ </children>
147
+ </system>
148
+ </children>
149
+ </admin>
150
+ </resources>
151
+ </acl>
152
  <translate>
153
  <modules>
154
  <Quadra_Paybox>
167
  <pbx_rang backend_model="adminhtml/system_config_backend_encrypted"/>
168
  <pbx_identifiant backend_model="adminhtml/system_config_backend_encrypted"/>
169
  <pbx_autoseule>authorize_capture</pbx_autoseule>
 
170
  <pbx_langue>FRA</pbx_langue>
171
  <model>paybox/system</model>
172
  <title>Paybox System</title>
176
  <ip1>195.101.99.76</ip1>
177
  <ip2>194.2.122.158</ip2>
178
  </authorized_ips>
179
+ <key_path>app/code/community/Quadra/Paybox/etc/pubkey.pem</key_path>
180
  <empty_cart>1</empty_cart>
181
  </paybox_system>
182
  <paybox_direct>
192
  <allowspecific>0</allowspecific>
193
  </paybox_direct>
194
  </payment>
195
+ <paybox_design>
196
+ <intermediate_page>
197
+ <pbx_output>E</pbx_output>
198
+ </intermediate_page>
199
+ </paybox_design>
200
  </default>
201
  </config>
app/code/community/Quadra/Paybox/etc/currency.xml CHANGED
@@ -1,21 +1,19 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
  *
16
- * @category Quadra
17
- * @package Quadra_Paybox
18
- * @author Quadra Team
 
19
  */
20
  -->
21
  <!-- ISO 4217 -->
1
  <?xml version="1.0"?>
2
  <!--
3
+ /*
4
+ * 1997-2012 Quadra Informatique
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please send an email
11
+ * to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
12
  *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 1997-2012 Quadra Informatique
15
+ * @version Release: $Revision: 2.1.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
19
  <!-- ISO 4217 -->
app/code/community/Quadra/Paybox/etc/system.xml CHANGED
@@ -1,21 +1,19 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
  *
16
- * @category Quadra
17
- * @package Quadra_Paybox
18
- * @author Quadra Team
 
19
  */
20
  -->
21
  <config>
@@ -101,55 +99,6 @@
101
  <show_in_website>1</show_in_website>
102
  <show_in_store>0</show_in_store>
103
  </pbx_identifiant>
104
- <!--pbx_output translate="label">
105
- <label>Management mode of the intermediary page</label>
106
- <comment>Only if you HTML From mode selected</comment>
107
- <frontend_type>select</frontend_type>
108
- <source_model>paybox/source_managementMode</source_model>
109
- <sort_order>50</sort_order>
110
- <show_in_default>1</show_in_default>
111
- <show_in_website>1</show_in_website>
112
- <show_in_store>0</show_in_store>
113
- </pbx_output>
114
- <pbx_txt translate="label">
115
- <label>Text on the intermediary page</label>
116
- <comment>Only if you HTML From mode selected</comment>
117
- <frontend_type>text</frontend_type>
118
- <sort_order>60</sort_order>
119
- <show_in_default>1</show_in_default>
120
- <show_in_website>1</show_in_website>
121
- <show_in_store>0</show_in_store>
122
- </pbx_txt>
123
- <pbx_boutpi translate="label">
124
- <label>Name of the button on the intermediary page</label>
125
- <comment>Only if you HTML From mode selected</comment>
126
- <frontend_type>text</frontend_type>
127
- <sort_order>70</sort_order>
128
- <show_in_default>1</show_in_default>
129
- <show_in_website>1</show_in_website>
130
- <show_in_store>0</show_in_store>
131
- </pbx_boutpi>
132
- <pbx_bkgd>
133
- <label>Screen background of the intermediary page</label>
134
- <comment>Only if you HTML From mode selected</comment>
135
- <frontend_type>image</frontend_type>
136
- <backend_model>adminhtml/system_config_backend_image</backend_model>
137
- <upload_dir config="system/filesystem/media" scope_info="1">payment/paybox/bkgd</upload_dir>
138
- <base_url type="media" scope_info="1">payment/paybox/bkgd</base_url>
139
- <sort_order>80</sort_order>
140
- <show_in_default>1</show_in_default>
141
- <show_in_website>1</show_in_website>
142
- <show_in_store>0</show_in_store>
143
- </pbx_bkgd>
144
- <pbx_wait translate="label">
145
- <label>Delay in displaying the intermediary page (in msec)</label>
146
- <comment>Only if you HTML From mode selected</comment>
147
- <frontend_type>text</frontend_type>
148
- <sort_order>90</sort_order>
149
- <show_in_default>1</show_in_default>
150
- <show_in_website>1</show_in_website>
151
- <show_in_store>0</show_in_store>
152
- </pbx_wait-->
153
  <pbx_langue translate="label">
154
  <label>Language of the payment page</label>
155
  <frontend_type>select</frontend_type>
@@ -401,7 +350,7 @@
401
  <show_in_default>1</show_in_default>
402
  <show_in_website>1</show_in_website>
403
  <show_in_store>0</show_in_store>
404
- </debug_flag>
405
  <order_status translate="label">
406
  <label>New order status</label>
407
  <frontend_type>select</frontend_type>
@@ -459,5 +408,80 @@
459
  </paybox_direct>
460
  </groups>
461
  </payment>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  </sections>
463
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
+ /*
4
+ * 1997-2012 Quadra Informatique
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please send an email
11
+ * to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
12
  *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 1997-2012 Quadra Informatique
15
+ * @version Release: $Revision: 2.1.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
19
  <config>
99
  <show_in_website>1</show_in_website>
100
  <show_in_store>0</show_in_store>
101
  </pbx_identifiant>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  <pbx_langue translate="label">
103
  <label>Language of the payment page</label>
104
  <frontend_type>select</frontend_type>
350
  <show_in_default>1</show_in_default>
351
  <show_in_website>1</show_in_website>
352
  <show_in_store>0</show_in_store>
353
+ </debug_flag>
354
  <order_status translate="label">
355
  <label>New order status</label>
356
  <frontend_type>select</frontend_type>
408
  </paybox_direct>
409
  </groups>
410
  </payment>
411
+ <paybox_design translate="label comment" module="paybox">
412
+ <label>Paybox Design</label>
413
+ <tab>sales</tab>
414
+ <sort_order>355</sort_order>
415
+ <show_in_default>1</show_in_default>
416
+ <show_in_website>1</show_in_website>
417
+ <show_in_store>1</show_in_store>
418
+ <groups>
419
+ <intermediate_page translate="label comment">
420
+ <label>Intermediate Page</label>
421
+ <frontend_type>text</frontend_type>
422
+ <sort_order>10</sort_order>
423
+ <show_in_default>1</show_in_default>
424
+ <show_in_website>1</show_in_website>
425
+ <show_in_store>0</show_in_store>
426
+ <!--comment>This configuration is only available if you selected the HTML Form Mode</comment-->
427
+ <fields>
428
+ <pbx_output translate="label comment">
429
+ <label>Management mode of the intermediate page</label>
430
+ <frontend_type>select</frontend_type>
431
+ <source_model>paybox/source_managementMode</source_model>
432
+ <sort_order>10</sort_order>
433
+ <show_in_default>1</show_in_default>
434
+ <show_in_website>1</show_in_website>
435
+ <show_in_store>0</show_in_store>
436
+ </pbx_output>
437
+ <pbx_txt translate="label comment">
438
+ <label>Text on the intermediate page</label>
439
+ <frontend_type>textarea</frontend_type>
440
+ <sort_order>20</sort_order>
441
+ <show_in_default>1</show_in_default>
442
+ <show_in_website>1</show_in_website>
443
+ <show_in_store>0</show_in_store>
444
+ </pbx_txt>
445
+ <pbx_boutpi translate="label comment">
446
+ <label>Name of the button on the intermediate page</label>
447
+ <frontend_type>text</frontend_type>
448
+ <sort_order>30</sort_order>
449
+ <show_in_default>1</show_in_default>
450
+ <show_in_website>1</show_in_website>
451
+ <show_in_store>0</show_in_store>
452
+ </pbx_boutpi>
453
+ <pbx_bkgd translate="label comment">
454
+ <label>Screen background of the intermediate page</label>
455
+ <frontend_type>image</frontend_type>
456
+ <backend_model>adminhtml/system_config_backend_image</backend_model>
457
+ <upload_dir config="system/filesystem/media" scope_info="1">payment/paybox/bkgd</upload_dir>
458
+ <base_url type="media" scope_info="1">payment/paybox/bkgd</base_url>
459
+ <sort_order>40</sort_order>
460
+ <show_in_default>1</show_in_default>
461
+ <show_in_website>1</show_in_website>
462
+ <show_in_store>0</show_in_store>
463
+ </pbx_bkgd>
464
+ <pbx_bkgd_color translate="label comment">
465
+ <label>Background color of the intermediate page</label>
466
+ <comment>Only if you don't use a screen background</comment>
467
+ <frontend_type>text</frontend_type>
468
+ <sort_order>41</sort_order>
469
+ <show_in_default>1</show_in_default>
470
+ <show_in_website>1</show_in_website>
471
+ <show_in_store>0</show_in_store>
472
+ </pbx_bkgd_color>
473
+ <pbx_wait translate="label comment">
474
+ <label>Delay in displaying the intermediate page</label>
475
+ <comment>in millisecond</comment>
476
+ <frontend_type>text</frontend_type>
477
+ <sort_order>50</sort_order>
478
+ <show_in_default>1</show_in_default>
479
+ <show_in_website>1</show_in_website>
480
+ <show_in_store>0</show_in_store>
481
+ </pbx_wait>
482
+ </fields>
483
+ </intermediate_page>
484
+ </groups>
485
+ </paybox_design>
486
  </sections>
487
  </config>
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-install-0.1.0.php CHANGED
@@ -1,20 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @author Quadra Team
 
18
  */
19
 
20
  $installer = $this;
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  $installer = $this;
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.0-0.1.1.php CHANGED
@@ -1,20 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @author Quadra Team
 
18
  */
19
 
20
  $installer = $this;
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  $installer = $this;
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.1-0.1.2.php CHANGED
@@ -1,20 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @author Quadra Team
 
18
  */
19
 
20
  $installer = $this;
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  $installer = $this;
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-0.1.2-0.1.3.php CHANGED
@@ -1,20 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @author Quadra Team
 
18
  */
19
 
20
  $installer = $this;
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  $installer = $this;
app/code/community/Quadra/Paybox/sql/paybox_setup/mysql4-upgrade-1.2.4-1.2.5.php CHANGED
@@ -1,20 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category Quadra
16
- * @package Quadra_Paybox
17
- * @author Quadra Team
 
18
  */
19
 
20
  $installer = $this;
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
 
18
  $installer = $this;
app/design/adminhtml/default/default/template/paybox/adminhtml/cart/type/select.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
  <script type="text/javascript">
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
18
  <script type="text/javascript">
app/design/adminhtml/default/default/template/paybox/direct/form.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
  <?php $_code=$this->getMethodCode() ?>
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
18
  <?php $_code=$this->getMethodCode() ?>
app/design/adminhtml/default/default/template/paybox/direct/info.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
  <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?><br/>
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
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/>
app/design/adminhtml/default/default/template/paybox/direct/pdf/info.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
  <?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?>
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
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()) ?>
app/design/frontend/default/default/layout/paybox.xml CHANGED
@@ -1,24 +1,20 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
  *
16
- * @category design_default
17
- * @package Mage_Paybox
18
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
-
22
  -->
23
  <layout version="0.1.0">
24
  <!--
@@ -45,16 +41,16 @@ Paybox errro page
45
  <block type="paybox/system_error" name="paybox_system_error" template="paybox/system/error.phtml">
46
  </block>
47
  </reference>
48
- </paybox_system_error>
49
-
50
- <paybox_system_notify>
51
- <reference name="root">
52
- <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
53
- </reference>
54
- <reference name="content">
55
- <block type="paybox/system_failure" name="paybox_system_notify" template="paybox/system/notify.phtml">
56
- </block>
57
- </reference>
58
  </paybox_system_notify>
59
 
60
  </layout>
1
  <?xml version="1.0"?>
2
  <!--
3
+ /*
4
+ * 1997-2012 Quadra Informatique
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please send an email
11
+ * to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
12
  *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 1997-2012 Quadra Informatique
15
+ * @version Release: $Revision: 2.1.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
 
18
  -->
19
  <layout version="0.1.0">
20
  <!--
41
  <block type="paybox/system_error" name="paybox_system_error" template="paybox/system/error.phtml">
42
  </block>
43
  </reference>
44
+ </paybox_system_error>
45
+
46
+ <paybox_system_notify>
47
+ <reference name="root">
48
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
49
+ </reference>
50
+ <reference name="content">
51
+ <block type="paybox/system_failure" name="paybox_system_notify" template="paybox/system/notify.phtml">
52
+ </block>
53
+ </reference>
54
  </paybox_system_notify>
55
 
56
  </layout>
app/design/frontend/default/default/template/paybox/direct/form.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
  <script type="text/javascript">
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
18
  <script type="text/javascript">
app/design/frontend/default/default/template/paybox/direct/info.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
  <?php if($_info = $this->getInfo()): ?>
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
18
  <?php if($_info = $this->getInfo()): ?>
app/design/frontend/default/default/template/paybox/system/error.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
  <div class="page-head">
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
18
  <div class="page-head">
app/design/frontend/default/default/template/paybox/system/form.phtml CHANGED
@@ -1,21 +1,18 @@
1
  <?php
2
- /**
3
- * Magento
4
  *
5
  * NOTICE OF LICENSE
6
  *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
- * @category design_default
16
- * @package Mage_Paybox
17
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  ?>
21
 
1
  <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
  *
5
  * NOTICE OF LICENSE
6
  *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
11
  *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
15
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
16
  */
17
  ?>
18
 
app/design/frontend/default/default/template/paybox/system/notify.phtml CHANGED
@@ -1,3 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <p>
2
  DOCUMENT FALSIFIE
3
  </p>
1
+ <?php
2
+ /*
3
+ * 1997-2012 Quadra Informatique
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
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 ecommerce@quadra-informatique.fr so we can send you a copy immediately.
11
+ *
12
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
13
+ * @copyright 1997-2012 Quadra Informatique
14
+ * @version Release: $Revision: 2.1.0 $
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>
app/etc/modules/Quadra_Paybox.xml CHANGED
@@ -1,22 +1,19 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- /**
4
- * Magento
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
  *
16
- * @category Mage
17
- * @package Mage_Paybox
18
- * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
22
  <config>
1
  <?xml version="1.0"?>
2
  <!--
3
+ /*
4
+ * 1997-2012 Quadra Informatique
5
  *
6
  * NOTICE OF LICENSE
7
  *
8
+ * This source file is subject to the Open Software License (OSL 3.0) that is available
9
+ * through the world-wide-web at this URL: http://www.opensource.org/licenses/OSL-3.0
10
+ * If you are unable to obtain it through the world-wide-web, please send an email
11
+ * to ecommerce@quadra-informatique.fr so we can send you a copy immediately.
 
 
 
12
  *
13
+ * @author Quadra Informatique <ecommerce@quadra-informatique.fr>
14
+ * @copyright 1997-2012 Quadra Informatique
15
+ * @version Release: $Revision: 2.1.0 $
16
+ * @license http://www.opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
17
  */
18
  -->
19
  <config>
app/locale/fr_FR/Quadra_Paybox.csv CHANGED
@@ -126,4 +126,17 @@
126
  "Error occured","Une erreur est survenue"
127
  "Order was canceled by Paybox","La commande a été annulée par Paybox"
128
  "Please <a href=""%s"">continue shopping</a>.","<a href=""%s"">Continuer vos achats</a>."
129
- "Empty cart when payment refused by Paybox or canceled by customer","Vider le panier quand le paiement est refusé par Paybox ou annulé par le client"
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  "Error occured","Une erreur est survenue"
127
  "Order was canceled by Paybox","La commande a été annulée par Paybox"
128
  "Please <a href=""%s"">continue shopping</a>.","<a href=""%s"">Continuer vos achats</a>."
129
+ "Empty cart when payment refused by Paybox or canceled by customer","Vider le panier quand le paiement est refusé par Paybox ou annulé par le client"
130
+ "The URL of the backup payment server","URL du serveur de backup"
131
+ "Intermediate Page","Page intermédiaire"
132
+ "This configuration is only available if you selected the HTML Form Mode","Cette configuration est uniquement disponible lorsque vous utilisez le mode formulaire HTML"
133
+ "Management mode of the intermediate page","Mode de gestion de la page intermédiaire"
134
+ "Text on the intermediate page","Texte sur la page intermédiaire"
135
+ "Name of the button on the intermediate page","Text du bouton de la page intermédiaire"
136
+ "Screen background of the intermediate page","Arrière plan de la page intermédiaire"
137
+ "Background color of the intermediate page","Couleur d'arrière plan de la page intermédiaire"
138
+ "Only if you don't use a screen background","Seulement si vous n'utilisez pas d'image d'arrière plan"
139
+ "Delay in displaying the intermediate page","Délai d'affichage de la page intermédiaire"
140
+ "in millisecond","en milliseconde"
141
+ "Customer successfully returned from Paybox","Le client est revenu de Paybox avec succès"
142
+ "Payment accepted by Paybox", "Le paiement a été accepté par Paybox"
package.xml CHANGED
@@ -1,95 +1,36 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Quadra_Paybox</name>
4
- <version>2.0.2</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>
8
  <extends/>
9
  <summary>Paybox payment integration (version 2)</summary>
10
- <description>The extension provides Paybox payment integration. Allows make payments through Paybox methods.
11
-
12
- Changelog:
13
- 2.0.2 :
14
- - Some fields in the configuration of the module are now configurable in store view
15
- - The field "empty cart" was added
16
-
17
- 2.0.1 : Stable version
18
-
19
- 2.0.0:
20
- - Magento 1.5 compatibility
21
- - Multishipping compatibility
22
- - Bug fixed with magento 1.4
23
- - Beta version
24
-
25
- 1.2.4 : Bug fixed on State Holded
26
- 1.2.3 :
27
- - Bug fixed on round prices
28
- - Selectable IP check
29
- 1.2.2 : Bug fixed on State Processing when payment accepted by Paybox
30
- 1.2.1 : Check Paybox IP address
31
- 1.2 :
32
- - selectable order status on placing order
33
- - selectable order status on payment success
34
- - selectable order status on payment failure
35
- - selectable order status on customer cancellation
36
- - selectable invoice creation
37
- 1.1.7 : Bug fixed when Paybox returns an error
38
- 1.1.6 :
39
- - translation
40
- - bug fixed on "num&#xE9;ro de question invalide"
41
- - bug fixed on double total paid
42
- 1.1.5 : PBX_AUTOSEULE 'N' (default)
43
- 1.1.4 : URL HTTP
44
- 1.1.1 : Magento Core extension</description>
45
- <notes>Changelog:
46
- 2.0.2 :
47
- - Some fields in the configuration of the module are now configurable in store view
48
- - The field "empty cart" was added
49
-
50
- 2.0.1: Stable version
51
-
52
- 2.0.0
53
- - Magento 1.5 compatibility
54
- - Multishipping compatibility
55
- - Bug fixed with magento 1.4
56
- - Beta version
57
-
58
- 1.2.5 : Bug fixed on Question Number Increment
59
-
60
- 1.2.4 : Bug fixed on State Holded
61
-
62
- 1.2.3 :
63
- - Bug fixed on round prices
64
- - Selectable IP check
65
-
66
- 1.2.2 : Bug fixed on State Processing when payment accepted by Paybox
67
-
68
- 1.2.1 : Check Paybox IP address
69
-
70
- 1.2 :
71
- - selectable order status on placing order
72
- - selectable order status on payment success
73
- - selectable order status on payment failure
74
- - selectable order status on customer cancellation
75
- - selectable invoice creation
76
-
77
- 1.1.7 : Bug fixed when Paybox returns an error
78
-
79
- 1.1.6 :
80
- - translation
81
- - bug fixed on "num&#xE9;ro de question invalide"
82
- - bug fixed on double total paid
83
-
84
- 1.1.5 : PBX_AUTOSEULE 'N' (default)
85
-
86
- 1.1.4 : URL HTTP
87
-
88
- 1.1.1 : Magento Core extension</notes>
89
  <authors><author><name>Quadra Informatique</name><user>auto-converted</user><email>ecommerce@quadra-informatique.fr</email></author></authors>
90
- <date>2011-07-29</date>
91
- <time>07:49:09</time>
92
- <contents><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="33538a4c3980b6a5aeff849024a8d408"/></dir></dir></dir><dir name="direct"><dir name="pdf"><file name="info.phtml" hash="8037a8abc4ab8c3da2ecfabd42247b27"/></dir><file name="form.phtml" hash="7d20d868238792f5c6e7333f923ead92"/><file name="info.phtml" hash="cee925ba85086d93de14cd4831591d4d"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="paybox.xml" hash="09492f6e1e7ebecca5043d816352f6db"/></dir><dir name="template"><dir name="paybox"><dir name="direct"><file name="form.phtml" hash="e32419916b5b1c3bd1a90d2c211c6127"/><file name="info.phtml" hash="276eda44a52e62b34384fae0cd1a3528"/></dir><dir name="system"><file name="error.phtml" hash="bc971ffb6434c241fbb04c9da0d635c1"/><file name="form.phtml" hash="e39629caeafc8f622fc224fa97e6270d"/><file name="notify.phtml" hash="124d29b917196b5acac9d1b1e9a6cb4b"/></dir></dir></dir></dir></dir></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="paybox.png" hash="87f2b567282864162b5af79d7ab7d44b"/><file name="PayboxPaiementSecurise.png" hash="de66247ae1debc79a0f3cd015247307e"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Quadra_Paybox.csv" hash="a3c333216ff0ca31d4308d0cf4c74bda"/></dir></target><target name="mageetc"><dir name="modules"><file name="Quadra_Paybox.xml" hash="da5f5123c142768bb5ff995e2b95ac5a"/></dir></target><target name="magecommunity"><dir name="Quadra"><dir name="Paybox"><dir name="Block"><dir name="Adminhtml"><dir name="Cart"><dir name="Type"><file name="Select.php" hash="51321f19e03d20f5efde964188fa6928"/></dir><file name="Type.php" hash="bf720b74158e684e4c0aee009b847ef5"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Backuppaymentserver.php" hash="11b5ae8dc4005cafbbe51de25bda03e4"/></dir></dir></dir></dir></dir><dir name="Direct"><file name="Form.php" hash="ed3c0828ee91fb910ce0d14a2995ab2c"/><file name="Info.php" hash="6f9b7532037acf1042bda777e3e9bb3f"/></dir><dir name="System"><file name="Error.php" hash="a700c3b1a489cf71d76551f6b733d53e"/><file name="Failure.php" hash="f6a6b00a355c0aa73d8c040144cfe565"/><file name="Form.php" hash="1bb8f7a6ba91aa48bc514d9b8795d0d3"/><file name="Redirect.php" hash="f9a79824dc7a9068d2dd649cc592a311"/></dir></dir><dir name="controllers"><file name="SystemController.php" hash="a13d90996e2803c0825000ae16e2e4f9"/><file name="SystemController.php.old" hash="d798841754dcb016675bbac3059b273a"/></dir><dir name="etc"><file name="config.xml" hash="7d0d106cbd052ebac4c1330496bd87bf"/><file name="currency.xml" hash="8a5cc0d549c4087a53818e2b96266bb6"/><file name="pubkey.pem" hash="9bf5be38bde5f19c40acf3d8e4e7806b"/><file name="system.xml" hash="e7056de57836f72b30924258b75efa7f"/></dir><dir name="Helper"><file name="Data.php" hash="dfb20ddf6a95b6dd7a651b8bcd4fca4d"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="d9f37591f5345f1db1f0e301777ea87c"/></dir><dir name="Config"><dir name="Data"><file name="Paybox.php" hash="4937070bb736f3ec056e5bb5758048ad"/></dir></dir><dir name="Mysql4"><dir name="Api"><dir name="Debug"><file name="Collection.php" hash="3429e61d551b448227a1aed1834b8a9b"/></dir><file name="Debug.php" hash="dacbd30c590f16622281d230801d7a61"/></dir><dir name="Question"><file name="Number.php" hash="f85607ffde633ad871bcffd9c33d5234"/></dir><file name="Setup.php" hash="b7c80fb9404b192296d6148772300ce5"/></dir><dir name="Question"><file name="Number.php" hash="90c1c6ec506c5ce15243af9e6db36fd5"/></dir><dir name="Source"><file name="CartType.php" hash="0fb1bf4428c16def548f6c3152ed7086"/><file name="Cctype.php" hash="0441f86e3551760968737e966dec2d33"/><file name="Language.php" hash="6a6937fead8e04e0112ab563cac3b2b5"/><file name="ManagementMode.php" hash="a9a2f1f47020da11dabca0f012f800d4"/><file name="MethodCall.php" hash="6359567b4156d605aa66030e05f89309"/><file name="PaymentAction.php" hash="b8d518e5ad704e1d772cf52e237cb4e2"/><file name="PaymentMode.php" hash="ab473a91634006f1cdda41a0d1c037a5"/><file name="PaymentType.php" hash="3fec4740471c21de07c24b041c933f6d"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Order"><file name="Statuswithoutcanceled.php" hash="75cdbadf35185f84616428c2b193b6dd"/></dir></dir></dir></dir><file name="Direct.php" hash="ccd1e246cbf832bcde725f07702b8c70"/><file name="Observer.php" hash="9c6b853915d0196af644d223b7d90cee"/><file name="System.php" hash="46991888ebeba2a7b48ce79a829137d1"/></dir><dir name="sql"><dir name="paybox_setup"><file name="mysql4-install-0.1.0.php" hash="fbded6a0cab3b2f7fccb2b366875400c"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="8182a45614defeb0fe63423fd25e53c8"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="8c6bb8b5f1fb795a82aba2f7f0fabd3e"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="3b9bec0b61bc06a67083b36d52677e3a"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="26a1501f1b70d72de1163f99352efe6b"/></dir></dir></dir></dir></target></contents>
93
  <compatible/>
94
  <dependencies><required><package><name>Quadra_Extensions</name><channel>community</channel><min>1.0.0</min><max>1.0.0</max></package></required></dependencies>
95
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Quadra_Paybox</name>
4
+ <version>2.1.0</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>
8
  <extends/>
9
  <summary>Paybox payment integration (version 2)</summary>
10
+ <description>The extension provides Paybox payment integration. Allows make payments through Paybox methods.</description>
11
+ <notes>Changelog:&#xD;
12
+ &#xD;
13
+ 2.1.0:&#xD;
14
+ - Bug fixed with Paybox Direct&#xD;
15
+ - Bug fixed with multishipping&#xD;
16
+ - Add Paybox System intermediate page configuration&#xD;
17
+ &#xD;
18
+ 2.0.2:&#xD;
19
+ - Some fields in the configuration of the module are now configurable in store view&#xD;
20
+ - The field "empty cart" was added&#xD;
21
+ &#xD;
22
+ 2.0.1:&#xD;
23
+ - Stable version&#xD;
24
+ &#xD;
25
+ 2.0.0:&#xD;
26
+ - Magento 1.5 compatibility&#xD;
27
+ - Multishipping compatibility&#xD;
28
+ - Bug fixed with magento 1.4&#xD;
29
+ - Beta version</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  <authors><author><name>Quadra Informatique</name><user>auto-converted</user><email>ecommerce@quadra-informatique.fr</email></author></authors>
31
+ <date>2012-01-06</date>
32
+ <time>14:57:27</time>
33
+ <contents><target name="magecommunity"><dir name="Quadra"><dir name="Paybox"><dir name="Block"><dir name="Adminhtml"><dir name="Cart"><dir name="Type"><file name="Select.php" hash="463bf56abe69805bcd5e3fe5f0fdca2b"/></dir><file name="Type.php" hash="4e181cd0c2ba32bf86511e9e25c4d21d"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Backuppaymentserver.php" hash="988b7a878a700f60587af6c9c4ebfe7f"/></dir></dir></dir></dir></dir><dir name="Direct"><file name="Form.php" hash="2a61efe96c852a66a178e82d429279b3"/><file name="Info.php" hash="55c82ad220cfc00cce2ceec06912f1c9"/></dir><dir name="System"><file name="Error.php" hash="6ab65cbdda223eb976d874f408fa791c"/><file name="Failure.php" hash="a722b3b3badcb22c676a2f9c63ef0899"/><file name="Form.php" hash="831d7e061e73b60885ad24f06937ff43"/><file name="Redirect.php" hash="66e53d21cbef364d8278c911973803db"/></dir></dir><dir name="Helper"><file name="Data.php" hash="bf7fc5b03de4708577a7d6b8f703c802"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="82dd7fe600c89041da19397e4b456dae"/></dir><dir name="Config"><dir name="Data"><file name="Paybox.php" hash="9958042799684a4ea08f3536dc408e17"/></dir></dir><dir name="Mysql4"><dir name="Api"><dir name="Debug"><file name="Collection.php" hash="61c96f5ee439192574ab709985212295"/></dir><file name="Debug.php" hash="7732e85745b1019ae7c251decfd4f0fd"/></dir><dir name="Question"><file name="Number.php" hash="7a53978fc71e66052d9573ee6b2695c8"/></dir><file name="Setup.php" hash="4164388dd53210a3fd50de923a91e49d"/></dir><dir name="Question"><file name="Number.php" hash="b3a02b88204a8378b959f22f4a20b854"/></dir><dir name="Source"><file name="CartType.php" hash="9da54a87a43c6b1145b8877935595d73"/><file name="Cctype.php" hash="e117d93bd3b39cef552635e03d8721c4"/><file name="Language.php" hash="2c910231c2e2c8ada143139d2a8a92f7"/><file name="ManagementMode.php" hash="c6e22d9d9e6ad263302628decea6f4d0"/><file name="MethodCall.php" hash="47a1fb2ffac7759c2844db8333fa06d5"/><file name="PaymentAction.php" hash="55b1cf2ff2d81e49e5adf3b455027637"/><file name="PaymentMode.php" hash="28543480c218216253e12412201e20b6"/><file name="PaymentType.php" hash="d852d6009b46d3734e7461dd02ecbbd8"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Order"><file name="Statuswithoutcanceled.php" hash="56d8c2b6f84e2829a099c034847cd170"/></dir></dir></dir></dir><file name="Direct.php" hash="cea8757b7117e9c1fd5a31c21b7e9446"/><file name="Observer.php" hash="1102007f0e3ad3cfa9634164ce7002a1"/><file name="System.php" hash="e8112f964c2b62e6b0c47208103bc3b0"/></dir><dir name="controllers"><file name="SystemController.php" hash="6dfa8a2ffef29ad56861d9e2296eaa8c"/></dir><dir name="etc"><file name="config.xml" hash="c354887b54707d7a4d4022aaf7f42650"/><file name="currency.xml" hash="5aed197eece2ccf9ef54c8b90e42dd04"/><file name="pubkey.pem" hash="9bf5be38bde5f19c40acf3d8e4e7806b"/><file name="system.xml" hash="4934a2705ee0cc46e2c1f5180f1c3858"/></dir><dir name="sql"><dir name="paybox_setup"><file name="mysql4-install-0.1.0.php" hash="3cd5b462ba1745a97771f7a8caf79968"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="64e2f4be8e42ff68ef67242c8818fa75"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="2a5683f805c5ab5694774b576c2a1a01"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="e7b3e782c4cd467e4f83a3bf9a1fc022"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="9a81511d6ba4dcb954f9656b16f2aaa0"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Quadra_Paybox.xml" hash="26b3f1ebae7718392be9714d089bd776"/></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="3de3c6be6858626be23ee974ec83c1f6"/></dir></dir></dir><dir name="direct"><dir name="pdf"><file name="info.phtml" hash="7b55bd8359dc1cc52434a7fec2c92be9"/></dir><file name="form.phtml" hash="e42ae3fee6cfbe5595a87ce8f37827b8"/><file name="info.phtml" hash="23a41813509d24ceb3bc5d8757c98616"/></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="a2199b12a7c6a1715911bd0cd1a5ac29"/><file name="info.phtml" hash="d6cec29d3b8a76adc7f950ad59cd62c7"/></dir><dir name="system"><file name="error.phtml" hash="5b9dcba2c2129b40004c343b040f3e5f"/><file name="form.phtml" hash="774598fe0468d553d9d2aef9706f037a"/><file name="notify.phtml" hash="bfb71e4c8e8e786dee373e20a3002188"/></dir></dir></dir><dir name="layout"><file name="paybox.xml" hash="a5b77c32edc4df8c67aaf579f8f87193"/></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>
34
  <compatible/>
35
  <dependencies><required><package><name>Quadra_Extensions</name><channel>community</channel><min>1.0.0</min><max>1.0.0</max></package></required></dependencies>
36
  </package>