HC_PayByFinance - Version 1.0.3

Version Notes

* Deposit amount to calculate with discounts and giftcards
* Demo URL instead of UAT
* Unit tests to reach UAT
* Changed license from HWS to GPL
* HC-150 Address Checked and Wizard fields
* HC-154 debug POST requests to order comments

Download this release

Release Info

Developer Sandor Czettner
Extension HC_PayByFinance
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

Files changed (60) hide show
  1. app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Redirect.php +46 -0
  2. app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service.php +2 -2
  3. app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit.php +2 -2
  4. app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit/Form.php +2 -2
  5. app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit/Tab/Form.php +2 -2
  6. app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit/Tabs.php +2 -2
  7. app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Grid.php +2 -2
  8. app/code/local/HC/PayByFinance/Block/Checkout/Redirect.php +2 -2
  9. app/code/local/HC/PayByFinance/Block/Sales/Order/Totals.php +2 -2
  10. app/code/local/HC/PayByFinance/Block/Selector.php +2 -2
  11. app/code/local/HC/PayByFinance/Block/Status.php +2 -2
  12. app/code/local/HC/PayByFinance/Helper/Cart.php +2 -2
  13. app/code/local/HC/PayByFinance/Helper/Checkout.php +2 -2
  14. app/code/local/HC/PayByFinance/Helper/Data.php +11 -7
  15. app/code/local/HC/PayByFinance/Helper/Notification.php +2 -2
  16. app/code/local/HC/PayByFinance/Model/Calculator.php +2 -2
  17. app/code/local/HC/PayByFinance/Model/Config/Source/Catalog/Product/Finance.php +2 -2
  18. app/code/local/HC/PayByFinance/Model/Config/Source/Catalog/Product/Type.php +2 -2
  19. app/code/local/HC/PayByFinance/Model/Config/Source/Cms/Block.php +2 -2
  20. app/code/local/HC/PayByFinance/Model/Config/Source/Connectionmode.php +2 -2
  21. app/code/local/HC/PayByFinance/Model/Config/Source/Type.php +2 -2
  22. app/code/local/HC/PayByFinance/Model/Log.php +2 -2
  23. app/code/local/HC/PayByFinance/Model/Mysql4/Log.php +2 -2
  24. app/code/local/HC/PayByFinance/Model/Mysql4/Log/Collection.php +2 -2
  25. app/code/local/HC/PayByFinance/Model/Mysql4/Service.php +2 -2
  26. app/code/local/HC/PayByFinance/Model/Mysql4/Service/Collection.php +2 -2
  27. app/code/local/HC/PayByFinance/Model/Observer.php +2 -2
  28. app/code/local/HC/PayByFinance/Model/Paypal/Api/Nvp.php +2 -2
  29. app/code/local/HC/PayByFinance/Model/Paypal/Hostedpro/Request.php +2 -2
  30. app/code/local/HC/PayByFinance/Model/PaypalUk/Api/Nvp.php +2 -2
  31. app/code/local/HC/PayByFinance/Model/Post.php +7 -2
  32. app/code/local/HC/PayByFinance/Model/Post/Abstract.php +12 -5
  33. app/code/local/HC/PayByFinance/Model/Post/Live.php +2 -2
  34. app/code/local/HC/PayByFinance/Model/Post/Simulation.php +4 -4
  35. app/code/local/HC/PayByFinance/Model/Post/Test.php +4 -4
  36. app/code/local/HC/PayByFinance/Model/Post/Unittest.php +32 -0
  37. app/code/local/HC/PayByFinance/Model/Resource/Setup.php +2 -2
  38. app/code/local/HC/PayByFinance/Model/Sales/Order/Creditmemo/Financeamount.php +2 -2
  39. app/code/local/HC/PayByFinance/Model/Sales/Order/Invoice/Financeamount.php +2 -2
  40. app/code/local/HC/PayByFinance/Model/Sales/Quote/Financeamount.php +2 -2
  41. app/code/local/HC/PayByFinance/Model/Sales/Quote/Totalcost.php +2 -2
  42. app/code/local/HC/PayByFinance/Model/Service.php +2 -2
  43. app/code/local/HC/PayByFinance/Model/Session.php +2 -2
  44. app/code/local/HC/PayByFinance/controllers/Adminhtml/Paybyfinance/RedirectController.php +67 -0
  45. app/code/local/HC/PayByFinance/controllers/Adminhtml/Paybyfinance/ServiceController.php +2 -2
  46. app/code/local/HC/PayByFinance/controllers/CheckoutController.php +19 -2
  47. app/code/local/HC/PayByFinance/controllers/NotificationController.php +2 -2
  48. app/code/local/HC/PayByFinance/controllers/SelectorController.php +2 -2
  49. app/code/local/HC/PayByFinance/controllers/SessionController.php +2 -2
  50. app/code/local/HC/PayByFinance/controllers/StatusController.php +2 -2
  51. app/code/local/HC/PayByFinance/etc/config.xml +3 -1
  52. app/code/local/HC/PayByFinance/etc/system.xml +26 -0
  53. app/code/local/HC/PayByFinance/sql/paybyfinance_setup/{mysql4-install-1.0.2.php → mysql4-install-1.0.3.php} +1 -1
  54. app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-upgrade-1.0.0-1.0.1.php +1 -1
  55. app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-upgrade-1.0.1-1.0.2.php +1 -1
  56. app/design/adminhtml/default/default/layout/paybyfinance.xml +18 -1
  57. app/design/frontend/base/default/template/paybyfinance/form.phtml +1 -1
  58. app/design/frontend/base/default/template/paybyfinance/selector.phtml +1 -1
  59. app/etc/modules/HC_PayByFinance.xml +3 -0
  60. package.xml +10 -5
app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Redirect.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Hitachi Capital Pay By Finance
4
+ *
5
+ * Hitachi Capital Pay By Finance Extension
6
+ *
7
+ * PHP version >= 5.3.*
8
+ *
9
+ * @category HC
10
+ * @package PayByFinance
11
+ * @author Healthy Websites <support@healthywebsites.co.uk>
12
+ * @copyright 2014 Healthy Websites
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
+ * @link http://www.healthywebsites.co.uk/
15
+ *
16
+ */
17
+
18
+ /**
19
+ * Redirect debug preview block
20
+ *
21
+ * @uses Mage_Adminhtml_Block_Template
22
+ *
23
+ * @category HC
24
+ * @package PayByFinance
25
+ * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
+ * @link http://www.healthywebsites.co.uk/
28
+ */
29
+ class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Redirect
30
+ extends Mage_Adminhtml_Block_Template
31
+ {
32
+ /**
33
+ * Constructor
34
+ *
35
+ * @return mixed Value.
36
+ */
37
+ public function __construct()
38
+ {
39
+ $this->_controller = 'adminhtml_paybyfinance_redirect';
40
+ $this->_blockGroup = 'paybyfinance';
41
+ $helper = Mage::helper('paybyfinance');
42
+ $this->_headerText = $helper->__('Redirect');
43
+ parent::__construct();
44
+ }
45
+
46
+ }
app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service
app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service_Edit
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service_Edit
app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit/Form.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service_Edit_Form
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service_Edit_Form
app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit/Tab/Form.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service_Edit_Tab_Form
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Adminhtml_Paybyfinance_Service_Edit_Tab_Form
app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Edit/Tabs.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFInance_Block_Adminhtml_Paybyfinance_Service_Edit_Tabs
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFInance_Block_Adminhtml_Paybyfinance_Service_Edit_Tabs
app/code/local/HC/PayByFinance/Block/Adminhtml/Paybyfinance/Service/Grid.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFInance_Block_Adminhtml_Paybyfinance_Service_Grid
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Healthy Websites
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFInance_Block_Adminhtml_Paybyfinance_Service_Grid
app/code/local/HC/PayByFinance/Block/Checkout/Redirect.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Block_Checkout_Redirect extends Mage_Core_Block_Template
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Block_Checkout_Redirect extends Mage_Core_Block_Template
app/code/local/HC/PayByFinance/Block/Sales/Order/Totals.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFInance_Block_Sales_Order_Totals extends Mage_Core_Block_Template
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFInance_Block_Sales_Order_Totals extends Mage_Core_Block_Template
app/code/local/HC/PayByFinance/Block/Selector.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Selector extends Mage_Core_Block_Template
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Selector extends Mage_Core_Block_Template
app/code/local/HC/PayByFinance/Block/Status.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Status extends Mage_Core_Block_Template
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Block_Status extends Mage_Core_Block_Template
app/code/local/HC/PayByFinance/Helper/Cart.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Cart extends Mage_Core_Helper_Data
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Cart extends Mage_Core_Helper_Data
app/code/local/HC/PayByFinance/Helper/Checkout.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Checkout extends Mage_Core_Helper_Data
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Checkout extends Mage_Core_Helper_Data
app/code/local/HC/PayByFinance/Helper/Data.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
@@ -33,6 +33,8 @@ class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
33
  const XML_PATH_MINIMUM_PRICE_BASKET = 'hc_paybyfinance/general/minimum_price_basket';
34
  const XML_PATH_FIXED_DEPOSIT = 'hc_paybyfinance/general/fixed_deposit';
35
  const XML_PATH_INCLUDE_SHIPPING = 'hc_paybyfinance/general/include_shipping';
 
 
36
  const XML_PATH_STATUS_ACCEPTED = 'hc_paybyfinance/order_status/accepted';
37
  const XML_PATH_STATUS_REFERRED = 'hc_paybyfinance/order_status/referred';
38
  const XML_PATH_STATUS_DECLINED = 'hc_paybyfinance/order_status/declined';
@@ -194,7 +196,7 @@ class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
194
  *
195
  * @throws Exception
196
  *
197
- * @return void
198
  */
199
  public function log($data, $type = 'log')
200
  {
@@ -204,8 +206,6 @@ class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
204
  throw new Exception("Usage of array or object is discouraged for security reasons.", 1);
205
  }
206
 
207
- $this->logDB($data, $type);
208
-
209
  if (!file_exists(Mage::getBaseDir('var').'/log')) {
210
  mkdir(Mage::getBaseDir('var').'/log');
211
  }
@@ -223,6 +223,8 @@ class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
223
  if ($type == 'notification') {
224
  Mage::log($data, null, self::ERROR_LOG_PATH_NOTIFICATION);
225
  }
 
 
226
  }
227
 
228
  /**
@@ -231,7 +233,7 @@ class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
231
  * @param string $data data as returned by print_r or any text to log
232
  * @param string $type log type
233
  *
234
- * @return void
235
  */
236
  public function logDB($data, $type ='log')
237
  {
@@ -245,7 +247,7 @@ class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
245
 
246
  if ($type == 'log') {
247
  $log->setType('General')
248
- ->setFlow('outgoing')
249
  ->setTime($currentTime)
250
  ->setContent($data)
251
  ->save();
@@ -274,6 +276,8 @@ class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
274
  ->setContent($data)
275
  ->save();
276
  }
 
 
277
  }
278
 
279
  /**
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Data extends Mage_Core_Helper_Data
33
  const XML_PATH_MINIMUM_PRICE_BASKET = 'hc_paybyfinance/general/minimum_price_basket';
34
  const XML_PATH_FIXED_DEPOSIT = 'hc_paybyfinance/general/fixed_deposit';
35
  const XML_PATH_INCLUDE_SHIPPING = 'hc_paybyfinance/general/include_shipping';
36
+ const XML_PATH_ADDRESS_CHECKED = 'hc_paybyfinance/general/address_checked';
37
+ const XML_PATH_WIZARD = 'hc_paybyfinance/general/wizard';
38
  const XML_PATH_STATUS_ACCEPTED = 'hc_paybyfinance/order_status/accepted';
39
  const XML_PATH_STATUS_REFERRED = 'hc_paybyfinance/order_status/referred';
40
  const XML_PATH_STATUS_DECLINED = 'hc_paybyfinance/order_status/declined';
196
  *
197
  * @throws Exception
198
  *
199
+ * @return integer
200
  */
201
  public function log($data, $type = 'log')
202
  {
206
  throw new Exception("Usage of array or object is discouraged for security reasons.", 1);
207
  }
208
 
 
 
209
  if (!file_exists(Mage::getBaseDir('var').'/log')) {
210
  mkdir(Mage::getBaseDir('var').'/log');
211
  }
223
  if ($type == 'notification') {
224
  Mage::log($data, null, self::ERROR_LOG_PATH_NOTIFICATION);
225
  }
226
+
227
+ return $this->logDB($data, $type);
228
  }
229
 
230
  /**
233
  * @param string $data data as returned by print_r or any text to log
234
  * @param string $type log type
235
  *
236
+ * @return integer Id of the saved log.
237
  */
238
  public function logDB($data, $type ='log')
239
  {
247
 
248
  if ($type == 'log') {
249
  $log->setType('General')
250
+ ->setFlow('Outgoing')
251
  ->setTime($currentTime)
252
  ->setContent($data)
253
  ->save();
276
  ->setContent($data)
277
  ->save();
278
  }
279
+
280
+ return $log->getId();
281
  }
282
 
283
  /**
app/code/local/HC/PayByFinance/Helper/Notification.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Notification extends Mage_Core_Helper_Data
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Helper_Notification extends Mage_Core_Helper_Data
app/code/local/HC/PayByFinance/Model/Calculator.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Calculator extends Varien_Object
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Calculator extends Varien_Object
app/code/local/HC/PayByFinance/Model/Config/Source/Catalog/Product/Finance.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Catalog_Product_Finance
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Catalog_Product_Finance
app/code/local/HC/PayByFinance/Model/Config/Source/Catalog/Product/Type.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Catalog_Product_Type
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Catalog_Product_Type
app/code/local/HC/PayByFinance/Model/Config/Source/Cms/Block.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Cms_Block
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Cms_Block
app/code/local/HC/PayByFinance/Model/Config/Source/Connectionmode.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Connectionmode
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Connectionmode
app/code/local/HC/PayByFinance/Model/Config/Source/Type.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Type
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Config_Source_Type
app/code/local/HC/PayByFinance/Model/Log.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Log extends Mage_Core_Model_Abstract
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Log extends Mage_Core_Model_Abstract
app/code/local/HC/PayByFinance/Model/Mysql4/Log.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Log
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Log
app/code/local/HC/PayByFinance/Model/Mysql4/Log/Collection.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Log_Collection
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Log_Collection
app/code/local/HC/PayByFinance/Model/Mysql4/Service.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Service
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Service
app/code/local/HC/PayByFinance/Model/Mysql4/Service/Collection.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Service_Collection
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Mysql4_Service_Collection
app/code/local/HC/PayByFinance/Model/Observer.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Observer
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Observer
app/code/local/HC/PayByFinance/Model/Paypal/Api/Nvp.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Paypal_Api_Nvp extends Mage_Paypal_Model_Api_Nvp
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Paypal_Api_Nvp extends Mage_Paypal_Model_Api_Nvp
app/code/local/HC/PayByFinance/Model/Paypal/Hostedpro/Request.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Paypal_Hostedpro_Request extends Mage_Paypal_Model_Hostedpro_Request
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Paypal_Hostedpro_Request extends Mage_Paypal_Model_Hostedpro_Request
app/code/local/HC/PayByFinance/Model/PaypalUk/Api/Nvp.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_PaypalUk_Api_Nvp extends Mage_PaypalUk_Model_Api_Nvp
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_PaypalUk_Api_Nvp extends Mage_PaypalUk_Model_Api_Nvp
app/code/local/HC/PayByFinance/Model/Post.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post extends Mage_Core_Model_Abstract
@@ -83,6 +83,9 @@ class HC_PayByFinance_Model_Post extends Mage_Core_Model_Abstract
83
  $helper = Mage::helper('paybyfinance');
84
  $adapter = $this->getPostAdapter();
85
 
 
 
 
86
  $fields = array(
87
  'id' => trim((string) Mage::getStoreConfig($helper::XML_PATH_PBF_ACCOUNT_ID1)),
88
  'id2' => trim((string) Mage::getStoreConfig($helper::XML_PATH_PBF_ACCOUNT_ID2)),
@@ -94,6 +97,8 @@ class HC_PayByFinance_Model_Post extends Mage_Core_Model_Abstract
94
  'declinedURL' => Mage::getUrl('paybyfinance/checkout/response'),
95
  'toStoreURL' => Mage::getUrl('paybyfinance/checkout/response'),
96
  'notificationURL' => Mage::getUrl('paybyfinance/notification'),
 
 
97
  );
98
  $data = array_merge($data, $fields);
99
 
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post extends Mage_Core_Model_Abstract
83
  $helper = Mage::helper('paybyfinance');
84
  $adapter = $this->getPostAdapter();
85
 
86
+ $addressChecked = Mage::getStoreConfig($helper::XML_PATH_ADDRESS_CHECKED);
87
+ $wizard = Mage::getStoreConfig($helper::XML_PATH_WIZARD);
88
+
89
  $fields = array(
90
  'id' => trim((string) Mage::getStoreConfig($helper::XML_PATH_PBF_ACCOUNT_ID1)),
91
  'id2' => trim((string) Mage::getStoreConfig($helper::XML_PATH_PBF_ACCOUNT_ID2)),
97
  'declinedURL' => Mage::getUrl('paybyfinance/checkout/response'),
98
  'toStoreURL' => Mage::getUrl('paybyfinance/checkout/response'),
99
  'notificationURL' => Mage::getUrl('paybyfinance/notification'),
100
+ 'address_checked' => $addressChecked == "1" ? 'Y' : 'N',
101
+ 'wizard' => $wizard == "1" ? 'Y' : 'N',
102
  );
103
  $data = array_merge($data, $fields);
104
 
app/code/local/HC/PayByFinance/Model/Post/Abstract.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  abstract class HC_PayByFinance_Model_Post_Abstract extends Mage_Core_Model_Abstract
@@ -81,9 +81,6 @@ abstract class HC_PayByFinance_Model_Post_Abstract extends Mage_Core_Model_Abstr
81
  */
82
  public function getRedirectForm()
83
  {
84
- $helper = Mage::helper('paybyfinance');
85
- $helper->log("getRedirectForm: \n" . $helper->arrayDump($this->_pbfInformation), 'post');
86
-
87
  $block = Mage::app()->getLayout()->createBlock('paybyfinance/checkout_redirect')
88
  ->setPostContent($this->_pbfInformation)
89
  ->setPostUrl($this::POST_URL)
@@ -92,4 +89,14 @@ abstract class HC_PayByFinance_Model_Post_Abstract extends Mage_Core_Model_Abstr
92
 
93
  return $block->toHtml();
94
  }
 
 
 
 
 
 
 
 
 
 
95
  }
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  abstract class HC_PayByFinance_Model_Post_Abstract extends Mage_Core_Model_Abstract
81
  */
82
  public function getRedirectForm()
83
  {
 
 
 
84
  $block = Mage::app()->getLayout()->createBlock('paybyfinance/checkout_redirect')
85
  ->setPostContent($this->_pbfInformation)
86
  ->setPostUrl($this::POST_URL)
89
 
90
  return $block->toHtml();
91
  }
92
+
93
+ /**
94
+ * Get generated post data.
95
+ *
96
+ * @return array POST fields to be sent to the PBF servers
97
+ */
98
+ public function getPostData()
99
+ {
100
+ return $this->_pbfInformation;
101
+ }
102
  }
app/code/local/HC/PayByFinance/Model/Post/Live.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post_Live extends HC_PayByFinance_Model_Post_Abstract
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post_Live extends HC_PayByFinance_Model_Post_Abstract
app/code/local/HC/PayByFinance/Model/Post/Simulation.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,12 +21,12 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post_Simulation extends HC_PayByFinance_Model_Post_Abstract
28
  {
29
- const POST_URL = 'https://uat-www.creditmaster2.co.uk/Ecommerce/etailer/createQuote.action';
30
- const NOTIFY_URL = 'https://uat-www.creditmaster2.co.uk/Ecommerce/etailer/notify.action';
31
  const MODE = 'simulation';
32
  }
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post_Simulation extends HC_PayByFinance_Model_Post_Abstract
28
  {
29
+ const POST_URL = 'https://demo.creditmaster2.co.uk/Ecommerce/etailer/createQuote.action';
30
+ const NOTIFY_URL = 'https://demo.creditmaster2.co.uk/Ecommerce/etailer/notify.action';
31
  const MODE = 'simulation';
32
  }
app/code/local/HC/PayByFinance/Model/Post/Test.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,12 +21,12 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post_Test extends HC_PayByFinance_Model_Post_Abstract
28
  {
29
- const POST_URL = 'https://uat-www.creditmaster2.co.uk/Ecommerce/etailer/createQuote.action';
30
- const NOTIFY_URL = 'https://uat-www.creditmaster2.co.uk/Ecommerce/etailer/notify.action';
31
  const MODE = 'test';
32
  }
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Post_Test extends HC_PayByFinance_Model_Post_Abstract
28
  {
29
+ const POST_URL = 'https://demo.creditmaster2.co.uk/Ecommerce/etailer/createQuote.action';
30
+ const NOTIFY_URL = 'https://demo.creditmaster2.co.uk/Ecommerce/etailer/notify.action';
31
  const MODE = 'test';
32
  }
app/code/local/HC/PayByFinance/Model/Post/Unittest.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Hitachi Capital Pay By Finance
4
+ *
5
+ * Hitachi Capital Pay By Finance Extension
6
+ *
7
+ * PHP version >= 5.3.*
8
+ *
9
+ * @category HC
10
+ * @package PayByFinance
11
+ * @author Healthy Websites <support@healthywebsites.co.uk>
12
+ * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
+ * @link http://www.healthywebsites.co.uk/
15
+ *
16
+ */
17
+
18
+ /**
19
+ * Hitachi Post TEst Model
20
+ *
21
+ * @category HC
22
+ * @package PayByFinance
23
+ * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
+ * @link http://www.healthywebsites.co.uk/
26
+ */
27
+ class HC_PayByFinance_Model_Post_Unittest extends HC_PayByFinance_Model_Post_Abstract
28
+ {
29
+ const POST_URL = 'https://uat-www.creditmaster2.co.uk/Ecommerce/etailer/createQuote.action';
30
+ const NOTIFY_URL = 'https://uat-www.creditmaster2.co.uk/Ecommerce/etailer/notify.action';
31
+ const MODE = 'unittest';
32
+ }
app/code/local/HC/PayByFinance/Model/Resource/Setup.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Resource_Setup
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Resource_Setup
app/code/local/HC/PayByFinance/Model/Sales/Order/Creditmemo/Financeamount.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Order_Creditmemo_FInanceamount
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Order_Creditmemo_FInanceamount
app/code/local/HC/PayByFinance/Model/Sales/Order/Invoice/Financeamount.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Order_Invoice_Financeamount
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Order_Invoice_Financeamount
app/code/local/HC/PayByFinance/Model/Sales/Quote/Financeamount.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Quote_Financeamount
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Quote_Financeamount
app/code/local/HC/PayByFinance/Model/Sales/Quote/Totalcost.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Quote_Totalcost
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Model_Sales_Quote_Totalcost
app/code/local/HC/PayByFinance/Model/Service.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Service extends Mage_Core_Model_Abstract
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Service extends Mage_Core_Model_Abstract
app/code/local/HC/PayByFinance/Model/Session.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -21,7 +21,7 @@
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
- * @license http://www.healthywebsites.co.uk/license.html HWS License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Session extends Mage_Core_Model_Session_Abstract
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
21
  * @category HC
22
  * @package PayByFinance
23
  * @author Healthy Websites <support@healthywebsites.co.uk>
24
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
25
  * @link http://www.healthywebsites.co.uk/
26
  */
27
  class HC_PayByFinance_Model_Session extends Mage_Core_Model_Session_Abstract
app/code/local/HC/PayByFinance/controllers/Adminhtml/Paybyfinance/RedirectController.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Hitachi Capital Pay By Finance
4
+ *
5
+ * Hitachi Capital Pay By Finance Extension
6
+ *
7
+ * PHP version >= 5.3.*
8
+ *
9
+ * @category HC
10
+ * @package PayByFinance
11
+ * @author Healthy Websites <support@healthywebsites.co.uk>
12
+ * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
+ * @link http://www.healthywebsites.co.uk/
15
+ *
16
+ */
17
+
18
+ /**
19
+ * Controller for previewing redirect forms
20
+ *
21
+ * @uses Mage_Adminhtml_Controller_Action
22
+ *
23
+ * @category HC
24
+ * @package PayByFinance
25
+ * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
+ * @link http://www.healthywebsites.co.uk/
28
+ */
29
+ class HC_PayByFinance_Adminhtml_Paybyfinance_RedirectController
30
+ extends Mage_Adminhtml_Controller_Action
31
+ {
32
+ public $_publicActions = array('view');
33
+
34
+ /**
35
+ * _initAction
36
+ *
37
+ * @return mixed Value.
38
+ */
39
+ protected function _initAction()
40
+ {
41
+ $helper = Mage::helper('paybyfinance');
42
+ $this->loadLayout()
43
+ ->_setActiveMenu('paybyfinance')
44
+ ->_addBreadcrumb(
45
+ $helper->__('Pay By Finance'),
46
+ $helper->__('Redirect')
47
+ );
48
+ return $this;
49
+ }
50
+
51
+ /**
52
+ * indexAction
53
+ *
54
+ * @return void.
55
+ */
56
+ public function viewAction()
57
+ {
58
+ $this->_title($this->__('Pay By Finance'))
59
+ ->_title($this->__('Redirect'));
60
+ $logId = $this->getRequest()->getParam('id');
61
+ $log = Mage::getModel('paybyfinance/log')->load($logId);
62
+
63
+ $this->_initAction();
64
+ $this->getLayout()->getBlock('pbf_redirect')->setLog($log);
65
+ $this->renderLayout();
66
+ }
67
+ }
app/code/local/HC/PayByFinance/controllers/Adminhtml/Paybyfinance/ServiceController.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Adminhtml_Paybyfinance_ServiceController
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_Adminhtml_Paybyfinance_ServiceController
app/code/local/HC/PayByFinance/controllers/CheckoutController.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_CheckoutController extends Mage_Core_Controller_Front_Action
@@ -157,6 +157,23 @@ class HC_PayByFinance_CheckoutController extends Mage_Core_Controller_Front_Acti
157
 
158
  // Generates the forwarder form
159
  echo $post->getRedirectForm();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  }
161
 
162
  /**
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_CheckoutController extends Mage_Core_Controller_Front_Action
157
 
158
  // Generates the forwarder form
159
  echo $post->getRedirectForm();
160
+
161
+ // Log the generated POST data
162
+ $logId = $helper->log(
163
+ "getRedirectForm: \n" . $helper->arrayDump($post->getPostAdapter()->getPostData()),
164
+ 'post'
165
+ );
166
+
167
+ $formUrl = Mage::helper("adminhtml")->getUrl(
168
+ 'adminhtml/paybyfinance_redirect/view',
169
+ array('id' => $logId)
170
+ );
171
+ $formUrl = '<a href="' . $formUrl . '">click here.</a>';
172
+
173
+ $order->addStatusHistoryComment('Customer redirected to PBF with this POST: ' . $formUrl)
174
+ ->setIsVisibleOnFront(false)
175
+ ->setIsCustomerNotified(false);
176
+ $order->save();
177
  }
178
 
179
  /**
app/code/local/HC/PayByFinance/controllers/NotificationController.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_NotificationController extends Mage_Core_Controller_Front_Action
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_NotificationController extends Mage_Core_Controller_Front_Action
app/code/local/HC/PayByFinance/controllers/SelectorController.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_SelectorController extends Mage_Core_Controller_Front_Action
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_SelectorController extends Mage_Core_Controller_Front_Action
app/code/local/HC/PayByFinance/controllers/SessionController.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_SessionController extends Mage_Core_Controller_Front_Action
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_SessionController extends Mage_Core_Controller_Front_Action
app/code/local/HC/PayByFinance/controllers/StatusController.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
@@ -23,7 +23,7 @@
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
- * @license http://www.healthywebsites.co.uk/license.html HWS License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_StatusController extends Mage_Core_Controller_Front_Action
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
23
  * @category HC
24
  * @package PayByFinance
25
  * @author Healthy Websites <support@healthywebsites.co.uk>
26
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
27
  * @link http://www.healthywebsites.co.uk/
28
  */
29
  class HC_PayByFinance_StatusController extends Mage_Core_Controller_Front_Action
app/code/local/HC/PayByFinance/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <HC_PayByFinance>
5
- <version>1.0.2</version>
6
  </HC_PayByFinance>
7
  </modules>
8
  <global>
@@ -215,6 +215,8 @@
215
  <enable_producttypes>simple</enable_producttypes>
216
  <fixed_deposit>0</fixed_deposit>
217
  <include_shipping>1</include_shipping>
 
 
218
  </general>
219
  <order_status>
220
  <accepted>finance_accepted</accepted>
2
  <config>
3
  <modules>
4
  <HC_PayByFinance>
5
+ <version>1.0.3</version>
6
  </HC_PayByFinance>
7
  </modules>
8
  <global>
215
  <enable_producttypes>simple</enable_producttypes>
216
  <fixed_deposit>0</fixed_deposit>
217
  <include_shipping>1</include_shipping>
218
+ <address_checked>0</address_checked>
219
+ <wizard>0</wizard>
220
  </general>
221
  <order_status>
222
  <accepted>finance_accepted</accepted>
app/code/local/HC/PayByFinance/etc/system.xml CHANGED
@@ -69,6 +69,32 @@
69
  <show_in_website>1</show_in_website>
70
  <show_in_store>1</show_in_store>
71
  </include_shipping>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  </fields>
73
  </general>
74
  <order_status>
69
  <show_in_website>1</show_in_website>
70
  <show_in_store>1</show_in_store>
71
  </include_shipping>
72
+ <address_checked translate="label">
73
+ <label>Address checked</label>
74
+ <comment>
75
+ If enabled then this means that the e-tailer has checked the address
76
+ supplied in the next fields against some form of post-office
77
+ supplier service such as QAS. The PBF system won't allow any
78
+ modification to the current address by the user as an anti-fraud
79
+ measure.
80
+ </comment>
81
+ <frontend_type>select</frontend_type>
82
+ <source_model>adminhtml/system_config_source_yesno</source_model>
83
+ <sort_order>7</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ </address_checked>
88
+ <wizard>
89
+ <label>Responsive credit wizard</label>
90
+ <comment>The credit wizard works well on all screen sizes, from mobile phones to desktops</comment>
91
+ <frontend_type>select</frontend_type>
92
+ <source_model>adminhtml/system_config_source_yesno</source_model>
93
+ <sort_order>8</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ </wizard>
98
  </fields>
99
  </general>
100
  <order_status>
app/code/local/HC/PayByFinance/sql/paybyfinance_setup/{mysql4-install-1.0.2.php → mysql4-install-1.0.3.php} RENAMED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-upgrade-1.0.0-1.0.1.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
app/code/local/HC/PayByFinance/sql/paybyfinance_setup/mysql4-upgrade-1.0.1-1.0.2.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
app/design/adminhtml/default/default/layout/paybyfinance.xml CHANGED
@@ -3,10 +3,27 @@
3
  <layout>
4
  <adminhtml_paybyfinance_service_index>
5
  <reference name="content">
6
- <block type="paybyfinance/adminhtml_paybyfinance_service" name="pbf_service"></block>
7
  </reference>
8
  </adminhtml_paybyfinance_service_index>
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <adminhtml_sales_order_view>
11
  <reference name="left">
12
  <reference name="sales_order_tabs">
3
  <layout>
4
  <adminhtml_paybyfinance_service_index>
5
  <reference name="content">
6
+ <block type="paybyfinance/adminhtml_paybyfinance_service" name="pbf_service" />
7
  </reference>
8
  </adminhtml_paybyfinance_service_index>
9
 
10
+ <adminhtml_paybyfinance_redirect_view>
11
+ <reference name="content">
12
+ <block type="paybyfinance/adminhtml_paybyfinance_redirect" name="pbf_redirect" template="paybyfinance/redirect.phtml" />
13
+ </reference>
14
+ </adminhtml_paybyfinance_redirect_view>
15
+
16
+ <adminhtml_sales_order_addcomment>
17
+ <reference name="order_history">
18
+ <action method="setTemplate"><template>paybyfinance/history.phtml</template></action>
19
+ </reference>
20
+ </adminhtml_sales_order_addcomment>
21
+ <adminhtml_sales_order_view>
22
+ <reference name="order_history">
23
+ <action method="setTemplate"><template>paybyfinance/history.phtml</template></action>
24
+ </reference>
25
+ </adminhtml_sales_order_view>
26
+
27
  <adminhtml_sales_order_view>
28
  <reference name="left">
29
  <reference name="sales_order_tabs">
app/design/frontend/base/default/template/paybyfinance/form.phtml CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
app/design/frontend/base/default/template/paybyfinance/selector.phtml CHANGED
@@ -10,7 +10,7 @@
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
- * @license http://www.healthywebsites.co.uk/license.html HWS License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
10
  * @package PayByFinance
11
  * @author Healthy Websites <support@healthywebsites.co.uk>
12
  * @copyright 2014 Hitachi Capital
13
+ * @license http://www.gnu.org/copyleft/gpl.html GPL License
14
  * @link http://www.healthywebsites.co.uk/
15
  *
16
  */
app/etc/modules/HC_PayByFinance.xml CHANGED
@@ -4,6 +4,9 @@
4
  <HC_PayByFinance>
5
  <active>true</active>
6
  <codePool>local</codePool>
 
 
 
7
  </HC_PayByFinance>
8
  </modules>
9
  </config>
4
  <HC_PayByFinance>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
+ <depends>
8
+ <Mage_Sales />
9
+ </depends>
10
  </HC_PayByFinance>
11
  </modules>
12
  </config>
package.xml CHANGED
@@ -1,18 +1,23 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HC_PayByFinance</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.healthywebsites.co.uk/license.html">Healthy Websites</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Hitachi Capital Pay By Finance</summary>
10
  <description>Hitachi Capital Pay By Finance</description>
11
- <notes>First stable release</notes>
 
 
 
 
 
12
  <authors><author><name>Sandor Czettner</name><user>MAG000003395</user><email>support@healthywebsites.co.uk</email></author><author><name>Alistair Macneil</name><user>MAG000006529</user><email>support@healthywebsites.co.uk</email></author><author><name>Rhuaridh Clark</name><user>MAG002562063</user><email>support@healthywebsites.co.uk</email></author></authors>
13
- <date>2015-02-20</date>
14
- <time>13:13:37</time>
15
- <contents><target name="magelocal"><dir><dir name="HC"><dir name="PayByFinance"><dir name="Block"><dir name="Adminhtml"><dir name="Paybyfinance"><dir name="Service"><dir name="Edit"><file name="Form.php" hash="f84c4ee4513626c1cd47c4009c68c8e1"/><dir name="Tab"><file name="Form.php" hash="4f6b1627468a444ba3bb677a5958e60b"/></dir><file name="Tabs.php" hash="97391f42c7fef94764ca26b104eb99d2"/></dir><file name="Edit.php" hash="c9da4058c93c7de4ad7cf1f5461848a5"/><file name="Grid.php" hash="3689c360077ba67532446396806f5d9a"/></dir><file name="Service.php" hash="190ceec90eb9aab516028e3cc3f5c237"/></dir></dir><dir name="Checkout"><file name="Redirect.php" hash="f1e6291f9cdc1de9201f185a30a364d4"/></dir><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="4b4c6dff06b7414853af10f10056f457"/></dir></dir><file name="Selector.php" hash="3daddea9a422c1e384e507d621dce004"/><file name="Status.php" hash="115cd6b0690b9d176ba1f899500f9cce"/></dir><dir name="Helper"><file name="Cart.php" hash="aa661c00a455e130ee6a872fbb5da059"/><file name="Checkout.php" hash="a3f888029652f8c7fda270c8a210941e"/><file name="Data.php" hash="da611b9bac4dcdd47ddbcf7ce50ffe74"/><file name="Notification.php" hash="8a1c37ec6ca866eb924839e46a95013f"/></dir><dir name="Model"><file name="Calculator.php" hash="b8e7f85e696377268723b3b18ee0b69c"/><dir name="Config"><dir name="Source"><dir name="Catalog"><dir name="Product"><file name="Finance.php" hash="b0a58b1ed5168b98463d48ab7047952f"/><file name="Type.php" hash="a26c5ea4a5806bbd240e205b811c2681"/></dir></dir><dir name="Cms"><file name="Block.php" hash="a37f1c4fa25a39f6dc9519fc7738bafb"/></dir><file name="Connectionmode.php" hash="9bd8a9e867aaa938cfef679b401ed7ee"/><file name="Type.php" hash="0499fe8f0c4693d24f4dd7bc6f399a6c"/></dir></dir><file name="Log.php" hash="6fe2441f7ccba032a975b108437e744e"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="5ab2160543c7e95911645f8f147e9ac3"/></dir><file name="Log.php" hash="24b64c4a23d8a9a1fd5a349e52a33425"/><dir name="Service"><file name="Collection.php" hash="cd55fd8a58ee4ad494eb2847c239c9c4"/></dir><file name="Service.php" hash="9eb8f62eb257f2e94b96f6e2bfaad8d8"/></dir><file name="Observer.php" hash="35350d53b4bee6f9a5672a047b04e4e0"/><dir name="Paypal"><dir name="Api"><file name="Nvp.php" hash="1eec140b29675438d8b0559310c44c08"/></dir><dir name="Hostedpro"><file name="Request.php" hash="1f9b1b6fbb454ef42f15423925f323ff"/></dir></dir><dir name="PaypalUk"><dir name="Api"><file name="Nvp.php" hash="2fd9f5bdb94a9f7577acf14cad16ba4a"/></dir></dir><dir name="Post"><file name="Abstract.php" hash="ef0b84824189fb3424077cb5553e3b48"/><file name="Live.php" hash="cbbaa70f34dd05d8d44172ff48b9d3ad"/><file name="Simulation.php" hash="7fe137fd5038de0180444e5cdbe0f2e2"/><file name="Test.php" hash="7e70abee772c138520daf1ed89d872dc"/></dir><file name="Post.php" hash="eb0bf627031857bb9074c3169c120e4a"/><dir name="Resource"><file name="Setup.php" hash="1036edfcdfbd1d428e32fe52a3f89398"/></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Financeamount.php" hash="93f141b164a19ea3b18d765904edfc07"/></dir><dir name="Invoice"><file name="Financeamount.php" hash="15f3dbe05fedc46878f471103ebf8a70"/></dir></dir><dir name="Quote"><file name="Financeamount.php" hash="1ea32cf0ad1d21f69a3ae397a97a535e"/><file name="Totalcost.php" hash="d0298a581489845284613d342abb396a"/></dir></dir><file name="Service.php" hash="2e725486173c9610bc19a4d527fe01da"/><file name="Session.php" hash="910ad62145d3cadca6145d8f509812ef"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Paybyfinance"><file name="ServiceController.php" hash="321cd52738e5c5ac7cfc23a9382d5a6f"/></dir></dir><file name="CheckoutController.php" hash="27edab31e5acfeb5893a7fd2630f8b6c"/><file name="NotificationController.php" hash="c5698028a816a46e2c25760e70243b2e"/><file name="SelectorController.php" hash="ac0ebd56dfbd394b8dc2998d69629f0c"/><file name="SessionController.php" hash="c1561b9ff48e7f36d8c707ef6b1e9f5b"/><file name="StatusController.php" hash="f41fe7bf5546492fd9730af1af522b7b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="216df222a5f5d9fdcf29c238cfd78bd5"/><file name="config.xml" hash="ee58260932654892376deb9540d1f24a"/><file name="system.xml" hash="fcbda5e4a750b8e427f5b1609adb9462"/></dir><dir name="sql"><dir name="paybyfinance_setup"><dir name="html"><file name="abandoned.html" hash="424f900dbddc267f7dac72e67752df25"/><file name="accepted.html" hash="5a12318275410a8bf62d7508422d9503"/><file name="declined.html" hash="bd3e7565c3d98645629d9f6274e4bf24"/><file name="error.html" hash="4a448b052f101b2648dfe84423ad1313"/><file name="information.html" hash="b364458ba3d9ad7579fa4935e3449b46"/><file name="page-finance-options.html" hash="d6786a27e4bf82a73e3134df0f98888b"/><file name="referred.html" hash="5955befddbb2e274f350ba71458b6151"/></dir><file name="mysql4-install-1.0.2.php" hash="58377c7871b44c91af6143f660b884ad"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="e5cf36eff72823d06abb2b6fdda05a28"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="900abb408705c4d5fd994418c64b99d8"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="paybyfinance"><file name="form.phtml" hash="ab934201f40613f9a870ab7acb0c2b12"/><dir><dir name="sales"><dir name="order"><file name="totals.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="selector-no.phtml" hash="b54c570f68254a2e879464a0b761c7db"/><file name="selector.phtml" hash="832a8e05fec7263aee2b171d73d84361"/><file name="status.phtml" hash="9e02cb668c470d72612bccc09e34c51a"/></dir><dir name="checkout"><dir name="cart"><file name="totals.phtml" hash="f14878e618aa3c8943f3728128aadaa6"/></dir><dir name="onepage"><dir name="review"><file name="info.phtml" hash="e4c7c70c798f1956ae7aaa5c09114fab"/><file name="totals.phtml" hash="f26e488359433c3814a1cd416006869a"/></dir></dir><file name="cart.phtml" hash="9f6b1873ed02e5e2ae1966e3e5a1910d"/></dir></dir><dir name="layout"><file name="paybyfinance.xml" hash="25dad1b01b3f78266b55ac7b4bb5c11e"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="paybyfinance.xml" hash="2093299071918ce8a306988ea8a788a0"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="paybyfinance"><file name="checkout.js" hash="21051d8691dd773427d3e761403896ab"/><file name="functions.js" hash="98c27381b3f7eaeaa845271dbe763f05"/><file name="slider.js" hash="453a7468c528377d4b0db03848a62f93"/></dir></dir><dir name="css"><file name="paybyfinance.css" hash="25d02dc5cf228662c30d908d7c2f1356"/><file name="paybyfinance-ie8.css" hash="a6be9c7af8b95300bc62e4fe9ef252ac"/></dir><dir name="images"><dir name="paybyfinance"><file name="bullet.png" hash="ea2baab34b2eb7d0aacb7a67d5b080f1"/><file name="pointer-toggle.png" hash="e661d42aed7a5562f75828312c7a635a"/><file name="pointer.png" hash="68c58b28d6ebd77d415f8666c301a199"/><file name="progress.png" hash="6d46a109cc9e38a663678918142d89f2"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="HC_PayByFinance.xml" hash="1202534cbafc0da4499963aa80878c8f"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.38</min><max>5.6.6</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HC_PayByFinance</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.healthywebsites.co.uk/license.html">Healthy Websites</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Hitachi Capital Pay By Finance</summary>
10
  <description>Hitachi Capital Pay By Finance</description>
11
+ <notes> * Deposit amount to calculate with discounts and giftcards&#xD;
12
+ * Demo URL instead of UAT&#xD;
13
+ * Unit tests to reach UAT&#xD;
14
+ * Changed license from HWS to GPL&#xD;
15
+ * HC-150 Address Checked and Wizard fields&#xD;
16
+ * HC-154 debug POST requests to order comments</notes>
17
  <authors><author><name>Sandor Czettner</name><user>MAG000003395</user><email>support@healthywebsites.co.uk</email></author><author><name>Alistair Macneil</name><user>MAG000006529</user><email>support@healthywebsites.co.uk</email></author><author><name>Rhuaridh Clark</name><user>MAG002562063</user><email>support@healthywebsites.co.uk</email></author></authors>
18
+ <date>2015-03-17</date>
19
+ <time>12:48:12</time>
20
+ <contents><target name="magelocal"><dir><dir name="HC"><dir name="PayByFinance"><dir name="Block"><dir name="Adminhtml"><dir name="Paybyfinance"><file name="Redirect.php" hash="e833b66126df043c3c82ddad731b72ee"/><dir name="Service"><dir name="Edit"><file name="Form.php" hash="83c8b9c20619ba8754c4ff589b9a93d8"/><dir name="Tab"><file name="Form.php" hash="b1cc9b35c4504f12d75e5fd05c286ceb"/></dir><file name="Tabs.php" hash="563cd0546a62114f4ce0ad226dcbd284"/></dir><file name="Edit.php" hash="6c27682856959920a054c5e46f9e6202"/><file name="Grid.php" hash="3b1decef1063f3f4dc6220b1d770ac34"/></dir><file name="Service.php" hash="863a6adb6aa194f80ef85eff35b835fc"/></dir></dir><dir name="Checkout"><file name="Redirect.php" hash="d666ffdae5d127c041d72af7a4125222"/></dir><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="32f03e3a7529b91e41ed203b67b1a776"/></dir></dir><file name="Selector.php" hash="e5a43cbc50858ce6ba9e3695c2a53251"/><file name="Status.php" hash="e2cfd097569fdb0dbf4f6f56ce282181"/></dir><dir name="Helper"><file name="Cart.php" hash="02314da8f564f015698ea0c640a2412a"/><file name="Checkout.php" hash="ace804f10a6673cb89d7621cd0f56a3b"/><file name="Data.php" hash="17c4567187d366d5943441b974d48ab5"/><file name="Notification.php" hash="92e04e043b2eced9f6159f8817d0d7fa"/></dir><dir name="Model"><file name="Calculator.php" hash="7c86b984569f07616005ea3fa5748eb3"/><dir name="Config"><dir name="Source"><dir name="Catalog"><dir name="Product"><file name="Finance.php" hash="ff556af6968a9ddc48313446f117a161"/><file name="Type.php" hash="497f87f6e6f8ff94e6308436e8c23339"/></dir></dir><dir name="Cms"><file name="Block.php" hash="6f27ccfc9ed421b4e329fcb1aa898d7e"/></dir><file name="Connectionmode.php" hash="2b37d9563a3a1721b3aa9e1400866e6c"/><file name="Type.php" hash="3fe934255019556ddc6ed4fe3f485dea"/></dir></dir><file name="Log.php" hash="6565186d165b38aa4513dc15b9f88fc9"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="e3886eeb186a92c8ec81fc7fd03b4c38"/></dir><file name="Log.php" hash="7444e07d1d77554ae82e9900fb8a7e4c"/><dir name="Service"><file name="Collection.php" hash="2fdccc0f53a2e038fe46d18c667df818"/></dir><file name="Service.php" hash="846486c8584eab5656a54961cd2da208"/></dir><file name="Observer.php" hash="804fe1c89a3c1452b129d6cf09acfd21"/><dir name="Paypal"><dir name="Api"><file name="Nvp.php" hash="b9716601482ba2f95b092b272b0a719f"/></dir><dir name="Hostedpro"><file name="Request.php" hash="609a2f59d5135c98d65a7bf57e6765ef"/></dir></dir><dir name="PaypalUk"><dir name="Api"><file name="Nvp.php" hash="86649f5e35d9c766055ca9bfc50d74ee"/></dir></dir><dir name="Post"><file name="Abstract.php" hash="4e6890baa2a600a01db25c4fee31b09f"/><file name="Live.php" hash="b0c86feedfee4fa7ad2f0a681f3f8074"/><file name="Simulation.php" hash="27a113919d0e7e121a2d09aa4842acad"/><file name="Test.php" hash="0c6a8e53162c4fc8d267f4151d1a5b97"/><file name="Unittest.php" hash="f25426416325a36b28bec3d061723380"/></dir><file name="Post.php" hash="8b21b79b7127737b56a73f250b539b60"/><dir name="Resource"><file name="Setup.php" hash="c9b783bd9bef1ceeb1cc649e91ef3b9a"/></dir><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Financeamount.php" hash="f6fc2d9bedb7e6748ef06fafb3bd7b10"/></dir><dir name="Invoice"><file name="Financeamount.php" hash="7f652017f58594cb9fa0a3348d49ad15"/></dir></dir><dir name="Quote"><file name="Financeamount.php" hash="910189ffbaefc69603d14c5eef87f350"/><file name="Totalcost.php" hash="edc6e156abba2c8bd3a3d48671694e95"/></dir></dir><file name="Service.php" hash="2043375b0586e18bcdfe98ed579770a8"/><file name="Session.php" hash="705be3666220145cbbd78fff158ddf71"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Paybyfinance"><file name="RedirectController.php" hash="12a6b1951a07fa5d50fcf38a6fb3d57e"/><file name="ServiceController.php" hash="e0354ea82610cb3821a91fa89c8aeb2b"/></dir></dir><file name="CheckoutController.php" hash="1b26b2b1933471445ccf48bf5977e2c5"/><file name="NotificationController.php" hash="2ae082f6a856187268dd7bea4cd8ddad"/><file name="SelectorController.php" hash="8d55176bbd5787b9981e60f96cf8254a"/><file name="SessionController.php" hash="ea6f58e8a3f024e2d55c8b363c6448fd"/><file name="StatusController.php" hash="f017c622790033a9c928debdd5c94427"/></dir><dir name="etc"><file name="adminhtml.xml" hash="216df222a5f5d9fdcf29c238cfd78bd5"/><file name="config.xml" hash="af5cc66ada2d807dfc32e0037837221c"/><file name="system.xml" hash="75c44f436fb9afbf3db3ea3aa312f57a"/></dir><dir name="sql"><dir name="paybyfinance_setup"><dir name="html"><file name="abandoned.html" hash="424f900dbddc267f7dac72e67752df25"/><file name="accepted.html" hash="5a12318275410a8bf62d7508422d9503"/><file name="declined.html" hash="bd3e7565c3d98645629d9f6274e4bf24"/><file name="error.html" hash="4a448b052f101b2648dfe84423ad1313"/><file name="information.html" hash="b364458ba3d9ad7579fa4935e3449b46"/><file name="page-finance-options.html" hash="d6786a27e4bf82a73e3134df0f98888b"/><file name="referred.html" hash="5955befddbb2e274f350ba71458b6151"/></dir><file name="mysql4-install-1.0.3.php" hash="7ddff316dc5a2b55470afd63d7adffff"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="ebbf4e768317754347893a4ed6b624e2"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="6424964cd6c10967ee6eb1f6db558a63"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="paybyfinance"><file name="form.phtml" hash="6f583d5629e39fe564d4b86535242c7a"/><dir><dir name="sales"><dir name="order"><file name="totals.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="selector-no.phtml" hash="b54c570f68254a2e879464a0b761c7db"/><file name="selector.phtml" hash="bbf02e8c824c8184ee9702af95902a28"/><file name="status.phtml" hash="9e02cb668c470d72612bccc09e34c51a"/></dir><dir name="checkout"><dir name="cart"><file name="totals.phtml" hash="f14878e618aa3c8943f3728128aadaa6"/></dir><dir name="onepage"><dir name="review"><file name="info.phtml" hash="e4c7c70c798f1956ae7aaa5c09114fab"/><file name="totals.phtml" hash="f26e488359433c3814a1cd416006869a"/></dir></dir><file name="cart.phtml" hash="9f6b1873ed02e5e2ae1966e3e5a1910d"/></dir></dir><dir name="layout"><file name="paybyfinance.xml" hash="25dad1b01b3f78266b55ac7b4bb5c11e"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="paybyfinance.xml" hash="6dd419ed31a10c3fc409a5a58f89fe01"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="paybyfinance"><file name="checkout.js" hash="21051d8691dd773427d3e761403896ab"/><file name="functions.js" hash="98c27381b3f7eaeaa845271dbe763f05"/><file name="slider.js" hash="453a7468c528377d4b0db03848a62f93"/></dir></dir><dir name="css"><file name="paybyfinance.css" hash="25d02dc5cf228662c30d908d7c2f1356"/><file name="paybyfinance-ie8.css" hash="a6be9c7af8b95300bc62e4fe9ef252ac"/></dir><dir name="images"><dir name="paybyfinance"><file name="bullet.png" hash="ea2baab34b2eb7d0aacb7a67d5b080f1"/><file name="pointer-toggle.png" hash="e661d42aed7a5562f75828312c7a635a"/><file name="pointer.png" hash="68c58b28d6ebd77d415f8666c301a199"/><file name="progress.png" hash="6d46a109cc9e38a663678918142d89f2"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="HC_PayByFinance.xml" hash="ff9284d6a9b1c132d6b6c25352cfd134"/></dir></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.4.38</min><max>5.6.6</max></php></required></dependencies>
23
  </package>