sisowpayment - Version 4.1.11

Version Notes

Fix: not everything was visible in store view

Download this release

Release Info

Developer Magento Core Team
Extension sisowpayment
Version 4.1.11
Comparing to
See all releases


Version 4.1.11

Files changed (68) hide show
  1. app/code/local/Sisow/Block/Adminhtml/Notice.php +48 -0
  2. app/code/local/Sisow/Block/Paymentfee/Adminhtml/Sales/Order/Totals.php +34 -0
  3. app/code/local/Sisow/Block/Paymentfee/Checkout/Fee.php +73 -0
  4. app/code/local/Sisow/Block/Paymentfee/Creditmemo/Totals.php +31 -0
  5. app/code/local/Sisow/Block/Paymentfee/Invoice/Totals/Fee.php +31 -0
  6. app/code/local/Sisow/Block/Paymentfee/Order/Totals/Fee.php +32 -0
  7. app/code/local/Sisow/Block/Paymentmethod/Creditcard.php +34 -0
  8. app/code/local/Sisow/Block/Paymentmethod/Default.php +15 -0
  9. app/code/local/Sisow/Block/Paymentmethod/DefaultInfo.php +49 -0
  10. app/code/local/Sisow/Block/Paymentmethod/Ideal.php +27 -0
  11. app/code/local/Sisow/Block/Paymentmethod/IdealInfo.php +48 -0
  12. app/code/local/Sisow/Block/Paymentmethod/Klarna.php +66 -0
  13. app/code/local/Sisow/Block/Paymentmethod/Klarnaacc.php +76 -0
  14. app/code/local/Sisow/Block/Paymentmethod/Overboeking.php +15 -0
  15. app/code/local/Sisow/Block/Redirect.php +427 -0
  16. app/code/local/Sisow/Helper/Data.php +14 -0
  17. app/code/local/Sisow/Helper/Paymentfee.php +172 -0
  18. app/code/local/Sisow/Model/Base.php +474 -0
  19. app/code/local/Sisow/Model/Config/Autoinvoice.php +24 -0
  20. app/code/local/Sisow/Model/Config/GeneralAutoinvoice.php +23 -0
  21. app/code/local/Sisow/Model/Config/Newordermail.php +24 -0
  22. app/code/local/Sisow/Model/Config/NewordermailMethod.php +25 -0
  23. app/code/local/Sisow/Model/Methods/Abstract.php +119 -0
  24. app/code/local/Sisow/Model/Methods/Ebill.php +15 -0
  25. app/code/local/Sisow/Model/Methods/Ideal.php +32 -0
  26. app/code/local/Sisow/Model/Methods/Klarna.php +48 -0
  27. app/code/local/Sisow/Model/Methods/Klarnaacc.php +65 -0
  28. app/code/local/Sisow/Model/Methods/Maestro.php +28 -0
  29. app/code/local/Sisow/Model/Methods/Mastercard.php +28 -0
  30. app/code/local/Sisow/Model/Methods/Mistercash.php +14 -0
  31. app/code/local/Sisow/Model/Methods/Overboeking.php +14 -0
  32. app/code/local/Sisow/Model/Methods/Paypalec.php +14 -0
  33. app/code/local/Sisow/Model/Methods/Sofort.php +14 -0
  34. app/code/local/Sisow/Model/Methods/Visa.php +28 -0
  35. app/code/local/Sisow/Model/Methods/WebshopGiftcard.php +14 -0
  36. app/code/local/Sisow/Model/Observer/Order.php +50 -0
  37. app/code/local/Sisow/Model/Observer/Paymentfee.php +75 -0
  38. app/code/local/Sisow/Model/Observer/Sendebill.php +64 -0
  39. app/code/local/Sisow/Model/Observer/Submit.php +12 -0
  40. app/code/local/Sisow/Model/Paymentfee/Creditmemo/Total.php +66 -0
  41. app/code/local/Sisow/Model/Paymentfee/Invoice/Pdf/Total.php +99 -0
  42. app/code/local/Sisow/Model/Paymentfee/Invoice/Tax.php +119 -0
  43. app/code/local/Sisow/Model/Paymentfee/Invoice/Total.php +75 -0
  44. app/code/local/Sisow/Model/Paymentfee/Quote/Quote.php +51 -0
  45. app/code/local/Sisow/Model/Paymentfee/Quote/TaxTotal.php +65 -0
  46. app/code/local/Sisow/Model/Paymentfee/Quote/Total.php +142 -0
  47. app/code/local/Sisow/controllers/CheckoutController.php +276 -0
  48. app/code/local/Sisow/controllers/NotifyController.php +18 -0
  49. app/code/local/Sisow/etc/config.xml +321 -0
  50. app/code/local/Sisow/etc/system.xml +1991 -0
  51. app/design/adminhtml/default/default/template/sisow/adminhtml/notice.phtml +42 -0
  52. app/design/adminhtml/default/default/template/sisow/checkout/default_info.phtml +17 -0
  53. app/design/adminhtml/default/default/template/sisow/checkout/ideal_info.phtml +15 -0
  54. app/design/adminhtml/default/default/template/sisow/form.phtml +35 -0
  55. app/design/frontend/base/default/template/sisow/checkout/default_form.phtml +15 -0
  56. app/design/frontend/base/default/template/sisow/checkout/default_info.phtml +9 -0
  57. app/design/frontend/base/default/template/sisow/checkout/ideal_form.phtml +28 -0
  58. app/design/frontend/base/default/template/sisow/checkout/ideal_info.phtml +7 -0
  59. app/design/frontend/base/default/template/sisow/checkout/klarna_form.phtml +75 -0
  60. app/design/frontend/base/default/template/sisow/checkout/klarnaacc_form.phtml +87 -0
  61. app/design/frontend/base/default/template/sisow/checkout/overboeking_form.phtml +20 -0
  62. app/design/frontend/base/default/template/sisow/form.phtml +48 -0
  63. app/design/frontend/base/default/template/sisow/formecare.phtml +89 -0
  64. app/design/frontend/base/default/template/sisow/formovb.phtml +51 -0
  65. app/design/frontend/base/default/template/sisow/paymentfee/checkout/fee.phtml +39 -0
  66. app/etc/modules/Sisow.xml +12 -0
  67. app/locale/nl_NL/Sisow.csv +46 -0
  68. package.xml +26 -0
app/code/local/Sisow/Block/Adminhtml/Notice.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Adminhtml_Notice
3
+ extends Mage_Adminhtml_Block_Abstract
4
+ implements Varien_Data_Form_Element_Renderer_Interface
5
+ {
6
+ protected $_template = 'sisow/adminhtml/notice.phtml';
7
+
8
+ /**
9
+ * Render fieldset html
10
+ *
11
+ * @param Varien_Data_Form_Element_Abstract $element
12
+ * @return string
13
+ */
14
+ public function render(Varien_Data_Form_Element_Abstract $element)
15
+ {
16
+ $elementOriginalData = $element->getOriginalData();
17
+ if (isset($elementOriginalData['help_link'])) {
18
+ $this->setHelpLink($elementOriginalData['help_link']);
19
+ }
20
+ $js = '
21
+ sisowToggleSolution = function(id, url) {
22
+ var doScroll = false;
23
+ Fieldset.toggleCollapse(id, url);
24
+ if ($(this).hasClassName("open")) {
25
+ $$(".with-button button.button").each(function(anotherButton) {
26
+ if (anotherButton != this && $(anotherButton).hasClassName("open")) {
27
+ $(anotherButton).click();
28
+ doScroll = true;
29
+ }
30
+ }.bind(this));
31
+ }
32
+ if (doScroll) {
33
+ var pos = Element.cumulativeOffset($(this));
34
+ window.scrollTo(pos[0], pos[1] - 45);
35
+ }
36
+ }
37
+ ';
38
+ return $this->toHtml() . $this->helper('adminhtml/js')->getScript($js);
39
+ }
40
+
41
+ public function getActive()
42
+ {
43
+ $base = Mage::getModel('sisow/base');
44
+ $base->CheckMerchant();
45
+
46
+ return $base->active;
47
+ }
48
+ }
app/code/local/Sisow/Block/Paymentfee/Adminhtml/Sales/Order/Totals.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File used to include the invoice fee to the order totals on the admin page
4
+ *
5
+ * Order totals handling class.
6
+ *
7
+ */
8
+
9
+ class Sisow_Block_Paymentfee_Adminhtml_Sales_Order_Totals extends Mage_Adminhtml_Block_Sales_Order_Totals
10
+ {
11
+
12
+ /**
13
+ * Initialize order totals array
14
+ *
15
+ * @return Mage_Sales_Block_Order_Totals
16
+ */
17
+ protected function _initTotals()
18
+ {
19
+ parent::_initTotals();
20
+ $order = $this->getOrder();
21
+ $payment = $order->getPayment();
22
+ if (substr($payment->getMethod(), 0, 5) != "sisow") {
23
+ return $this;
24
+ }
25
+
26
+ $info = $order->getPayment()->getMethodInstance()->getInfoInstance();
27
+ if (!$info->getAdditionalInformation("invoice_fee")) {
28
+ return $this;
29
+ }
30
+
31
+ return Mage::helper('sisow/paymentfee')->addToBlock($this);
32
+ }
33
+
34
+ }
app/code/local/Sisow/Block/Paymentfee/Checkout/Fee.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File used to display a payment fee on the order total
4
+ *
5
+ * Class used to create a payment fee block
6
+ *
7
+ */
8
+
9
+ class Sisow_Block_Paymentfee_Checkout_Fee extends Mage_Checkout_Block_Total_Default
10
+ {
11
+ protected $_template = 'sisow/paymentfee/checkout/fee.phtml';
12
+
13
+ /**
14
+ * Get Payment fee including tax
15
+ *
16
+ * @return float
17
+ */
18
+ public function getInvoiceFeeIncludeTax()
19
+ {
20
+ return $this->getTotal()->getAddress()->getInvoiceFee();
21
+ }
22
+
23
+ /**
24
+ * Get Payment fee excluding tax
25
+ *
26
+ * @return float
27
+ */
28
+ public function getInvoiceFeeExcludeTax()
29
+ {
30
+ return $this->getTotal()->getAddress()->getInvoiceFeeExcludedVat();
31
+ }
32
+
33
+ /**
34
+ * Checks if both including and excluding tax prices should be shown
35
+ *
36
+ * @return bool
37
+ */
38
+ public function displayBoth()
39
+ {
40
+ return Mage::helper("tax")->displayCartBothPrices();
41
+ }
42
+
43
+ /**
44
+ * Checks if only including tax price should be shown
45
+ *
46
+ * @return bool
47
+ */
48
+ public function displayIncludeTax()
49
+ {
50
+ return Mage::helper("tax")->displayCartPriceInclTax();
51
+ }
52
+
53
+ /**
54
+ * Get the label to display for excluding tax
55
+ *
56
+ * @return string
57
+ */
58
+ public function getExcludeTaxLabel()
59
+ {
60
+ return Mage::helper("tax")->getIncExcTaxLabel(false);
61
+ }
62
+
63
+ /**
64
+ * Get the label to display for including tax
65
+ *
66
+ * @return string
67
+ */
68
+ public function getIncludeTaxLabel()
69
+ {
70
+ return Mage::helper("tax")->getIncExcTaxLabel(true);
71
+ }
72
+
73
+ }
app/code/local/Sisow/Block/Paymentfee/Creditmemo/Totals.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File used to display a invoice fee on a credit memo
4
+ *
5
+ * Class used to add the invoice fee to a credit memo
6
+ *
7
+ */
8
+
9
+ class Sisow_Block_Paymentfee_Creditmemo_Totals extends Mage_Sales_Block_Order_Creditmemo_Totals
10
+ {
11
+
12
+ /**
13
+ * Initialize order totals array
14
+ *
15
+ * @return Mage_Sales_Block_Order_Creditmemo_Totals
16
+ */
17
+ protected function _initTotals()
18
+ {
19
+ parent::_initTotals();
20
+ $payment = $this->getOrder()->getPayment();
21
+ if (substr($payment->getMethod(), 0, 6) != "sisow_") {
22
+ return $this;
23
+ }
24
+ $info = $payment->getMethodInstance()->getInfoInstance();
25
+ if (!$info->getAdditionalInformation("invoice_fee")) {
26
+ return $this;
27
+ }
28
+ return Mage::helper('sisow/paymentfee')->addToBlock($this);
29
+ }
30
+
31
+ }
app/code/local/Sisow/Block/Paymentfee/Invoice/Totals/Fee.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File used to display a invoice fee on a invoice
4
+ *
5
+ * Class used to add the invoice fee to a invoice
6
+ *
7
+ */
8
+
9
+ class Sisow_Block_Paymentfee_Invoice_Totals_Fee extends Mage_Sales_Block_Order_Invoice_Totals
10
+ {
11
+
12
+ /**
13
+ * Initialize order totals array
14
+ *
15
+ * @return Mage_Sales_Block_Order_Invoice_Totals
16
+ */
17
+ public function _initTotals()
18
+ {
19
+ parent::_initTotals();
20
+ $payment = $this->getOrder()->getPayment();
21
+ if (substr($payment->getMethod(), 0, 5) != "sisow") {
22
+ return $this;
23
+ }
24
+ $info = $payment->getMethodInstance()->getInfoInstance();
25
+ if (!$info->getAdditionalInformation("invoice_fee")) {
26
+ return $this;
27
+ }
28
+ return Mage::helper('sisow/paymentfee')->addToBlock($this);
29
+ }
30
+
31
+ }
app/code/local/Sisow/Block/Paymentfee/Order/Totals/Fee.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File used to display a invoice fee on a order
4
+ *
5
+ * Class used to add the invoice fee to a order
6
+ *
7
+ */
8
+
9
+ class Sisow_Block_Paymentfee_Order_Totals_Fee extends Mage_Sales_Block_Order_Totals
10
+ {
11
+
12
+ /**
13
+ * Initialize order totals array
14
+ *
15
+ * @return Mage_Sales_Block_Order_Totals
16
+ */
17
+ public function _initTotals()
18
+ {
19
+ parent::_initTotals();
20
+ $payment = $this->getOrder()->getPayment();
21
+ if (substr($payment->getMethod(), 0, 5) != "sisow") {
22
+ return $this;
23
+ }
24
+ $info = $payment->getMethodInstance()->getInfoInstance();
25
+ if (!$info->getAdditionalInformation("invoice_fee")) {
26
+ return $this;
27
+ }
28
+
29
+ return Mage::helper('sisow/paymentfee')->addToBlock($this);
30
+ }
31
+
32
+ }
app/code/local/Sisow/Block/Paymentmethod/Creditcard.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_CreditCard extends Mage_Payment_Block_Form
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->setTemplate('sisow/checkout/creditcard_form.phtml');
7
+ parent::_construct();
8
+ }
9
+
10
+ /**
11
+ * Loading the avaible issuers
12
+ *
13
+ * @return array
14
+ */
15
+ public function getCctypes()
16
+ {
17
+ $cctypes = array();
18
+
19
+ if(Mage::getStoreConfig('payment/sisow_creditcard/choose_cc_type'))
20
+ {
21
+ $cctypes['visa'] = 'Visa';
22
+ $cctypes['mastercard'] = 'MasterCard';
23
+ $cctypes['maestro'] = 'Maestro';
24
+ }
25
+
26
+ return $cctypes;
27
+ }
28
+
29
+ public function getFee()
30
+ {
31
+ return $this->getMethod()->getFeeArray();
32
+ }
33
+ }
34
+ ?>
app/code/local/Sisow/Block/Paymentmethod/Default.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_Default extends Mage_Payment_Block_Form
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->setTemplate('sisow/checkout/default_form.phtml');
7
+ parent::_construct();
8
+ }
9
+
10
+ public function getFee()
11
+ {
12
+ return $this->getMethod()->getFeeArray();
13
+ }
14
+ }
15
+ ?>
app/code/local/Sisow/Block/Paymentmethod/DefaultInfo.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_DefaultInfo extends Mage_Payment_Block_Info
3
+ {
4
+ /**
5
+ * Constructor. Set template.
6
+ */
7
+ protected function _construct()
8
+ {
9
+ parent::_construct();
10
+ $this->setTemplate('sisow/checkout/default_info.phtml');
11
+ }
12
+
13
+ /**
14
+ * Returns code of payment method
15
+ *
16
+ * @return string
17
+ */
18
+ public function getMethodCode()
19
+ {
20
+ return $this->getInfo()->getMethodInstance()->getCode();
21
+ }
22
+
23
+ /**
24
+ * Returns the payment fee
25
+ *
26
+ * @return array
27
+ */
28
+ public function getFee()
29
+ {
30
+ if( Mage::getSingleton('core/session')->getSisowFeeInc() )
31
+ $fee_array['incl'] = Mage::getSingleton('core/session')->getSisowFeeInc();
32
+ else
33
+ $fee_array = $this->getMethod()->getFeeArray();
34
+
35
+ return $fee_array;
36
+ }
37
+
38
+ public function _getAdditionalInfo()
39
+ {
40
+ $info = $this->getInfo()->getMethodInstance()->getInfoInstance();
41
+ $a_info = array();
42
+ $a_info['consumerName'] = $info->getAdditionalInformation('consumerName');
43
+ $a_info['consumerIban'] = $info->getAdditionalInformation('consumerIban');
44
+ $a_info['consumerBic'] = $info->getAdditionalInformation('consumerBic');
45
+ $a_info['trxid'] = $info->getAdditionalInformation('trxId');
46
+
47
+ return $a_info;
48
+ }
49
+ }
app/code/local/Sisow/Block/Paymentmethod/Ideal.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_Ideal extends Mage_Payment_Block_Form
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->setTemplate('sisow/checkout/ideal_form.phtml');
7
+ parent::_construct();
8
+ }
9
+
10
+ /**
11
+ * Loading the avaible issuers
12
+ *
13
+ * @return array
14
+ */
15
+ public function getIssuers()
16
+ {
17
+ $issuers = '';
18
+ Mage::getModel('sisow/base')->DirectoryRequest($issuers, false, (boolean)Mage::getStoreConfig('payment/sisow_ideal/testmode'));
19
+ return $issuers;
20
+ }
21
+
22
+ public function getFee()
23
+ {
24
+ return $this->getMethod()->getFeeArray();
25
+ }
26
+ }
27
+ ?>
app/code/local/Sisow/Block/Paymentmethod/IdealInfo.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_IdealInfo extends Mage_Payment_Block_Info
3
+ {
4
+ /**
5
+ * Constructor. Set template.
6
+ */
7
+ protected function _construct()
8
+ {
9
+ parent::_construct();
10
+ $this->setTemplate('sisow/checkout/ideal_info.phtml');
11
+ }
12
+
13
+ /**
14
+ * Returns code of payment method
15
+ *
16
+ * @return string
17
+ */
18
+ public function getMethodCode()
19
+ {
20
+ return $this->getInfo()->getMethodInstance()->getCode();
21
+ }
22
+
23
+ /**
24
+ * Returns the payment fee
25
+ *
26
+ * @return array
27
+ */
28
+ public function getFee()
29
+ {
30
+ if( Mage::getSingleton('core/session')->getSisowFeeInc() )
31
+ $fee_array['incl'] = Mage::getSingleton('core/session')->getSisowFeeInc();
32
+ else
33
+ $fee_array = $this->getMethod()->getFeeArray();
34
+
35
+ return $fee_array;
36
+ }
37
+
38
+ public function _getAdditionalInfo()
39
+ {
40
+ $info = $this->getInfo()->getMethodInstance()->getInfoInstance();
41
+ $customer = array();
42
+ $customer['consumerName'] = $info->getAdditionalInformation('consumerName');
43
+ $customer['consumerIban'] = $info->getAdditionalInformation('consumerIban');
44
+ $customer['consumerBic'] = $info->getAdditionalInformation('consumerBic');
45
+
46
+ return $customer;
47
+ }
48
+ }
app/code/local/Sisow/Block/Paymentmethod/Klarna.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_Klarna extends Mage_Payment_Block_Form
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->setTemplate('sisow/checkout/klarna_form.phtml');
7
+ parent::_construct();
8
+ }
9
+
10
+ public function getFee()
11
+ {
12
+ return $this->getMethod()->getFeeArray();
13
+ }
14
+
15
+ public function getPhone() {
16
+ return $this->getMethod()->getPhone();
17
+ }
18
+
19
+ public function getDates()
20
+ {
21
+ $days = array();
22
+
23
+ for($i=1;$i<32;$i++)
24
+ $days[sprintf("%02d", $i)] = sprintf("%02d", $i);
25
+
26
+ return $days;
27
+ }
28
+
29
+ public function GetCountryIso()
30
+ {
31
+ return $this->GetQuote()->getBillingAddress()->getCountryId();
32
+ }
33
+
34
+ public function getMonths()
35
+ {
36
+ $months = array();
37
+ $months['01'] = $this->__('January');
38
+ $months['02'] = $this->__('February');
39
+ $months['03'] = $this->__('March');
40
+ $months['04'] = $this->__('April');
41
+ $months['05'] = $this->__('May');
42
+ $months['06'] = $this->__('June');
43
+ $months['07'] = $this->__('July');
44
+ $months['08'] = $this->__('August');
45
+ $months['09'] = $this->__('September');
46
+ $months['10'] = $this->__('October');
47
+ $months['11'] = $this->__('November');
48
+ $months['12'] = $this->__('December');
49
+ return $months;
50
+ }
51
+
52
+ public function getYears()
53
+ {
54
+ $year = array();
55
+ for($i=(date("Y")-15);$i>(date("Y")-115);$i--)
56
+ $year[$i] = $i;
57
+
58
+ return $year;
59
+ }
60
+
61
+ private function GetQuote()
62
+ {
63
+ return Mage::getSingleton('checkout/session')->getQuote();
64
+ }
65
+ }
66
+ ?>
app/code/local/Sisow/Block/Paymentmethod/Klarnaacc.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_Klarnaacc extends Mage_Payment_Block_Form
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->setTemplate('sisow/checkout/klarnaacc_form.phtml');
7
+ parent::_construct();
8
+ }
9
+
10
+ public function getFee()
11
+ {
12
+ return $this->getMethod()->getFeeArray();
13
+ }
14
+
15
+ public function getPhone() {
16
+ return $this->getMethod()->getPhone();
17
+ }
18
+
19
+ public function getDates()
20
+ {
21
+ $days = array();
22
+
23
+ for($i=1;$i<32;$i++)
24
+ $days[sprintf("%02d", $i)] = sprintf("%02d", $i);
25
+
26
+ return $days;
27
+ }
28
+
29
+ public function GetCountryIso()
30
+ {
31
+ return $this->GetQuote()->getBillingAddress()->getCountryId();
32
+ }
33
+
34
+ public function getMonths()
35
+ {
36
+ $months = array();
37
+ $months['01'] = $this->__('January');
38
+ $months['02'] = $this->__('February');
39
+ $months['03'] = $this->__('March');
40
+ $months['04'] = $this->__('April');
41
+ $months['05'] = $this->__('May');
42
+ $months['06'] = $this->__('June');
43
+ $months['07'] = $this->__('July');
44
+ $months['08'] = $this->__('August');
45
+ $months['09'] = $this->__('September');
46
+ $months['10'] = $this->__('October');
47
+ $months['11'] = $this->__('November');
48
+ $months['12'] = $this->__('December');
49
+ return $months;
50
+ }
51
+
52
+ public function getYears()
53
+ {
54
+ $year = array();
55
+ for($i=(date("Y")-15);$i>(date("Y")-115);$i--)
56
+ $year[$i] = $i;
57
+
58
+ return $year;
59
+ }
60
+
61
+ public function getMonthly()
62
+ {
63
+ return $this->getMethod()->getMonthly();
64
+ }
65
+
66
+ public function getPclass()
67
+ {
68
+ return $this->getMethod()->getPclass();
69
+ }
70
+
71
+ private function GetQuote()
72
+ {
73
+ return Mage::getSingleton('checkout/session')->getQuote();
74
+ }
75
+ }
76
+ ?>
app/code/local/Sisow/Block/Paymentmethod/Overboeking.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Paymentmethod_Overboeking extends Mage_Payment_Block_Form
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->setTemplate('sisow/checkout/overboeking_form.phtml');
7
+ parent::_construct();
8
+ }
9
+
10
+ public function getFee()
11
+ {
12
+ return $this->getMethod()->getFeeArray();
13
+ }
14
+ }
15
+ ?>
app/code/local/Sisow/Block/Redirect.php ADDED
@@ -0,0 +1,427 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Block_Redirect extends Mage_Core_Block_Abstract
3
+ {
4
+ /**
5
+ * Get checkout session namespace
6
+ *
7
+ * @return Mage_Checkout_Model_Session
8
+ */
9
+ private function getCheckout()
10
+ {
11
+ return Mage::getSingleton('checkout/session');
12
+ }
13
+
14
+ /**
15
+ * Get current quote
16
+ *
17
+ * @return Mage_Sales_Model_Quote
18
+ */
19
+ private function getQuote()
20
+ {
21
+ return $this->getCheckout()->getQuote();
22
+ }
23
+
24
+ protected function _toHtml()
25
+ {
26
+ $orderIncrementId = $this->getCheckout()->getLastRealOrderId();
27
+ $order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
28
+ $method = (isset($_GET['method'])) ? $_GET['method'] : '';
29
+
30
+ if($orderIncrementId == '')
31
+ {
32
+ header('Location: '. Mage::getUrl('checkout/cart'));
33
+ exit;
34
+ }
35
+
36
+ $billto = $order->getBillingAddress();
37
+ if (!$billto) {
38
+ $billto = $this->getQuote()->getBillingAddress();
39
+ }
40
+ $shipto = $order->getShippingAddress();
41
+ if (!$shipto) {
42
+ $shipto = $this->getQuote()->getShippingAddress();
43
+ if (!$shipto) {
44
+ $shipto = $billto;
45
+ }
46
+ }
47
+
48
+ $arg = array();
49
+ //shipping address
50
+ $arg['shipping_firstname'] = $shipto->getFirstname();
51
+ $arg['shipping_lastname'] = $shipto->getLastname();
52
+ $arg['shipping_mail'] = $shipto->getEmail();
53
+ $arg['shipping_company'] = $shipto->getCompany();
54
+ $arg['shipping_address1'] = $shipto->getStreet1();
55
+ $arg['shipping_address2'] = $shipto->getStreet2();
56
+ $arg['shipping_zip'] = $shipto->getPostcode();
57
+ $arg['shipping_city'] = $shipto->getCity();
58
+ //$arg['shipping_country'] = $shipto;
59
+ $arg['shipping_countrycode'] = $shipto->getCountry();
60
+ $arg['shipping_phone'] = (isset($_GET['phone']) && $_GET['phone'] != '') ? $_GET['phone'] : $shipto->getTelephone();
61
+
62
+ //billing address
63
+ $arg['billing_firstname'] = $billto->getFirstname();
64
+ $arg['billing_lastname'] = $billto->getLastname();
65
+ $arg['billing_mail'] = $billto->getEmail();
66
+ $arg['billing_company'] = $billto->getCompany();
67
+ $arg['billing_address1'] = $billto->getStreet1();
68
+ $arg['billing_address2'] = $billto->getStreet2();
69
+ $arg['billing_zip'] = $billto->getPostcode();
70
+ $arg['billing_city'] = $billto->getCity();
71
+ //$arg['billing_country'] = $order->getBillingAddress()->;
72
+ $arg['billing_countrycode'] = $billto->getCountry();
73
+ $arg['billing_phone'] = (isset($_GET['phone']) && $_GET['phone'] != '') ? $_GET['phone'] : $billto->getTelephone();
74
+
75
+ $i = 0;
76
+ foreach($order->getAllVisibleItems() as $item)
77
+ {
78
+ $i++;
79
+ $arg['product_id_' . $i] = $item->getSku();
80
+ $arg['product_description_' . $i] = $item->getName();
81
+ $arg['product_quantity_' . $i] = (int)($item->getQtyOrdered() ? $item->getQtyOrdered() : $item->getQty());
82
+ $arg['product_tax_' . $i] = round($item->getTaxAmount() * 100, 0);
83
+ $arg['product_taxrate_' . $i] = round($item->getTaxPercent() * 100, 0);
84
+ $arg['product_netprice_' . $i] = round($item->getPrice() * 100, 0);
85
+ $arg['product_price_' . $i] = round($item->getPriceInclTax() * 100, 0);
86
+ $arg['product_nettotal_' . $i] = round($item->getRowTotal() * 100, 0);
87
+ $arg['product_total_' . $i] = round($item->getRowTotalInclTax() * 100, 0);
88
+ }
89
+
90
+ $shipping = $order->getShippingAmount();
91
+ if ($shipping > 0) {
92
+ $i++;
93
+ $shiptax = $shipping + $order->getShippingTaxAmount();
94
+ $arg['product_id_' . $i] = 'shipping';
95
+ $arg['product_description_' . $i] = 'Verzendkosten';
96
+ $arg['product_quantity_' . $i] = 1;
97
+ $arg['product_weight_' . $i] = 0;
98
+ $arg['product_tax_' . $i] = round($order->getShippingTaxAmount() * 100, 0);
99
+ $arg['product_taxrate_' . $i] = round($this->_getShippingTaxRate($order) * 100, 0);
100
+ $arg['product_netprice_' . $i] = round($shipping * 100, 0);
101
+ $arg['product_price_' . $i] = round($shiptax * 100, 0);
102
+ $arg['product_nettotal_' . $i] = round($shipping * 100, 0);
103
+ $arg['product_total_' . $i] = round($shiptax * 100, 0);
104
+ }
105
+
106
+ $fee = Mage::helper('sisow/paymentfee')->getPaymentFeeArray('sisow_'.$method, $this->getQuote());
107
+
108
+ if (is_array($fee) && $fee['incl'] > 0) {
109
+ $i++;
110
+ $arg['product_id_' . $i] = 'paymentfee';
111
+ $arg['product_description_' . $i] = Mage::getStoreConfig('payment/sisow_'.$method.'/payment_fee_label'); //'Payment Fee';
112
+ $arg['product_quantity_' . $i] = 1;
113
+ $arg['product_weight_' . $i] = 0;
114
+ $arg['product_tax_' . $i] = round($fee['taxamount'] * 100, 0);
115
+ $arg['product_taxrate_' . $i] = round($fee['rate'] * 100, 0);
116
+ $arg['product_netprice_' . $i] = round($fee['excl'] * 100, 0);
117
+ $arg['product_price_' . $i] = round(($fee['incl']) * 100, 0);
118
+ $arg['product_nettotal_' . $i] = round($fee['excl'] * 100, 0);
119
+ $arg['product_total_' . $i] = round(($fee['incl']) * 100, 0);
120
+ }
121
+
122
+ $giftCardsAmount = $order->getGiftCardsAmount();
123
+ if ($giftCardsAmount > 0) {
124
+ $i++;
125
+ $giftCardsAmount = -1 * $giftCardsAmount;
126
+ $arg['product_id_' . $i] = 'giftcard';
127
+ $arg['product_description_' . $i] = 'Gift Card';
128
+ $arg['product_quantity_' . $i] = 1;
129
+ $arg['product_weight_' . $i] = 0;
130
+ $arg['product_tax_' . $i] = round(0 * 100, 0);
131
+ $arg['product_taxrate_' . $i] = round(0 * 100, 0);
132
+ $arg['product_netprice_' . $i] = round($giftCardsAmount * 100, 0);
133
+ $arg['product_price_' . $i] = round($giftCardsAmount * 100, 0);
134
+ $arg['product_nettotal_' . $i] = round($giftCardsAmount * 100, 0);
135
+ $arg['product_total_' . $i] = round($giftCardsAmount * 100, 0);
136
+ }
137
+
138
+ $customerBalance = $order->getCustomerBalanceAmount();
139
+ if ($customerBalance > 0) {
140
+ $i++;
141
+ $customerBalance = -1 * $customerBalance;
142
+ $arg['product_id_' . $i] = 'storecredit';
143
+ $arg['product_description_' . $i] = 'Store Credit';
144
+ $arg['product_quantity_' . $i] = 1;
145
+ $arg['product_weight_' . $i] = 0;
146
+ $arg['product_tax_' . $i] = round(0 * 100, 0);
147
+ $arg['product_taxrate_' . $i] = round(0 * 100, 0);
148
+ $arg['product_netprice_' . $i] = round($customerBalance * 100, 0);
149
+ $arg['product_price_' . $i] = round($customerBalance * 100, 0);
150
+ $arg['product_nettotal_' . $i] = round($customerBalance * 100, 0);
151
+ $arg['product_total_' . $i] = round($customerBalance * 100, 0);
152
+ }
153
+
154
+ $rewardCurrency = $order->getRewardCurrencyAmount();
155
+ if ($rewardCurrency > 0) {
156
+ $i++;
157
+ $rewardCurrency = -1 * $rewardCurrency;
158
+ $arg['product_id_' . $i] = 'rewardpoints';
159
+ $arg['product_description_' . $i] = 'Reward points';
160
+ $arg['product_quantity_' . $i] = 1;
161
+ $arg['product_weight_' . $i] = 0;
162
+ $arg['product_tax_' . $i] = round(0 * 100, 0);
163
+ $arg['product_taxrate_' . $i] = round(0 * 100, 0);
164
+ $arg['product_netprice_' . $i] = round($rewardCurrency * 100, 0);
165
+ $arg['product_price_' . $i] = round($rewardCurrency * 100, 0);
166
+ $arg['product_nettotal_' . $i] = round($rewardCurrency * 100, 0);
167
+ $arg['product_total_' . $i] = round($rewardCurrency * 100, 0);
168
+ }
169
+
170
+ $discount = $order->getDiscountAmount();
171
+ if ($discount && $discount < 0) {
172
+ $i++;
173
+
174
+ $code = $order->getDiscountDescription();
175
+ $title = Mage::helper('sales')->__('Discount (%s)', $code);
176
+
177
+ $arg['product_id_' . $i] = 'discount';
178
+ $arg['product_description_' . $i] = $title;
179
+ $arg['product_quantity_' . $i] = 1;
180
+ $arg['product_weight_' . $i] = 0;
181
+ $arg['product_tax_' . $i] = round(0 * 100, 0);
182
+ $arg['product_taxrate_' . $i] = round(0 * 100, 0);
183
+ $arg['product_netprice_' . $i] = round($discount * 100, 0);
184
+ $arg['product_price_' . $i] = round($discount * 100, 0);
185
+ $arg['product_nettotal_' . $i] = round($discount * 100, 0);
186
+ $arg['product_total_' . $i] = round($discount * 100, 0);
187
+ }
188
+
189
+ //additional customer information
190
+ $arg['customer'] = $order->getBillingAddress()->getCustomerId();
191
+ if(isset($_GET['gender']))
192
+ $arg['gender'] = $_GET['gender'];
193
+ if(isset($_GET['dob']))
194
+ $arg['birthdate'] = $_GET['dob'];
195
+
196
+ $arg['ipaddress'] = $_SERVER['REMOTE_ADDR'];
197
+
198
+ //Klarna
199
+ if( $method == 'klarna' || $method == 'klarnaacc' )
200
+ {
201
+ $arg['directinvoice'] = (Mage::getStoreConfig('payment/sisow_'.$method.'/sendklarnainvoice') == 3) ? 'true' : 'false';
202
+ $arg['mailinvoice'] = (Mage::getStoreConfig('payment/sisow_'.$method.'/sendklarnainvoice') == 3) ? 'true' : 'false';
203
+
204
+ if($method == 'klarnaacc')
205
+ $arg['pclass'] = $_GET['pclass'];
206
+ }
207
+
208
+ $arg['currency'] = $order->getOrderCurrencyCode();
209
+ $arg['tax'] = round( ($order->getBaseTaxAmount() * 100.0) );
210
+ $arg['weight'] = round( ($order->getWeight() * 100.0) );
211
+ $arg['shipping'] = round( ($order->getBaseShippingAmount() * 100.0) );
212
+
213
+ if($method == 'overboeking')
214
+ {
215
+ $arg['days'] = Mage::getStoreConfig('payment/sisow_'.$method.'/days');
216
+ $arg['including'] = (Mage::getStoreConfig('payment/sisow_'.$method.'/include')) ? 'true' : 'false';
217
+ }
218
+
219
+ //testmode
220
+ $arg['testmode'] = (Mage::getStoreConfig('payment/sisow_'.$method.'/testmode')) ? 'true' : 'false';
221
+
222
+ $base = Mage::getModel('sisow/base');
223
+ $base->shopId = Mage::getStoreConfig('sisow_core/shopid');
224
+
225
+ if(!is_object($base) || $method == '')
226
+ {
227
+ if($method == '')
228
+ Mage::log($orderIncrementId . ': No payment method', null, 'log_sisow.log');
229
+ else
230
+ Mage::log($orderIncrementId . ": Sisow model can't be loaded", null, 'log_sisow.log');
231
+ }
232
+
233
+ $base->payment = $method;
234
+
235
+ if(isset($_GET['issuer']))
236
+ $base->issuerId = $_GET['issuer'];
237
+
238
+ $base->amount = $order->getGrandTotal();
239
+ if ($method == 'overboeking') {
240
+ $base->purchaseId = $order->getCustomerId() . $orderIncrementId;
241
+ $base->entranceCode = $orderIncrementId;
242
+ }
243
+ else
244
+ $base->purchaseId = $orderIncrementId;
245
+ $base->description = $orderIncrementId;
246
+ $base->notifyUrl = Mage::getUrl('sisow/checkout/notify', array('_secure' => true));
247
+ $base->returnUrl = Mage::getUrl('sisow/checkout/return', array('_secure' => true));
248
+
249
+ if(($ex = $base->TransactionRequest($arg)) < 0)
250
+ {
251
+ Mage::log($orderIncrementId . ': Sisow TransactionRequest failed('.$ex.', '.$base->errorCode.', '.$base->errorMessage.')', null, 'log_sisow.log');
252
+
253
+ if( ($base->payment == 'klarna' || $base->payment == 'klarnaacc') && $base->errorMessage != '')
254
+ Mage::getSingleton('checkout/session')->addError($base->errorMessage);
255
+ else
256
+ Mage::getSingleton('checkout/session')->addError("Sisow: " . $this->__('No communication')." (". $ex .", ". $base->errorCode . ")");
257
+ $order->cancel();
258
+ $order->save();
259
+
260
+ $url = Mage::getUrl('checkout/cart');
261
+ header('Location: ' . $url);
262
+ exit;
263
+ }
264
+ else
265
+ {
266
+ $transaction_closed = false;
267
+ $transaction_type = Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH;
268
+
269
+ if(Mage::helper("sisow")->GetNewMailConfig("sisow_".$method) == "after_confirmation")
270
+ $order->sendNewOrderEmail();
271
+
272
+ if($base->payment == 'overboeking')
273
+ {
274
+ $payment = $order->getPayment();
275
+ $comm = 'Sisow OverBoeking created.<br />';
276
+ $comm .= 'Transaction ID: ' . $base->trxId . '<br/>';
277
+ $st = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
278
+ $payment->setAdditionalInformation('trxId', $base->trxId)
279
+ ->setAdditionalInformation('documentId', $base->documentId)
280
+ ->setAdditionalInformation('linkPdf', $base->GetLink(''))
281
+ ->save();
282
+ $order->setState($st, $st, $comm);
283
+ $order->save();
284
+
285
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT);
286
+ $url = Mage::getUrl("sisow/checkout/success");
287
+ }
288
+ else if($base->payment == 'klarna' || $base->payment == 'klarnaacc')
289
+ {
290
+ $title = ($base->payment == 'klarna') ? 'Sisow Klarna Factuur' : 'Sisow Klarna Account';
291
+ $state = Mage_Sales_Model_Order::STATE_PROCESSING;
292
+ $payment = $order->getPayment();
293
+
294
+ if ($base->pendingKlarna)
295
+ {
296
+ $state = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
297
+ $comm = $title.' Pending.<br />';
298
+ $comm .= 'Transaction ID: ' . $base->trxId . '<br/>';
299
+ if (is_array($fee) && $fee['incl'] > 0) {
300
+ $comm .= $title.' payment fee ' . $fee['incl'] . '<br />';
301
+ }
302
+ if ($method == 'klarnaacc' && $_GET['sisow_monthly']) {
303
+ $comm .= $title.' monthly ' . round($_GET['sisow_monthly'] / 100.0, 2) . '<br/>';
304
+ }
305
+ $st = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
306
+ $payment->setAdditionalInformation('trxId', $base->trxId)->save();
307
+
308
+ $transaction_closed = false;
309
+ $transaction_type = Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH;
310
+ }
311
+ else if ($base->invoiceNo)
312
+ {
313
+ $comm = $title.' invoice created.<br/>';
314
+ $comm .= 'Transaction ID: ' . $base->trxId . '<br/>';
315
+
316
+ if ($method == 'klarnaacc' && $_GET['sisow_monthly']) {
317
+ $comm .= $title.' monthly ' . round($_GET['sisow_monthly'] / 100.0, 2) . '<br/>';
318
+ }
319
+ $comm .= $title.' invoiceNo ' . $base->invoiceNo . '<br/>';
320
+
321
+ $st = Mage::getStoreConfig('sisow_core/status_success');
322
+ if (!$st) {
323
+ $st = Mage_Sales_Model_Order::STATE_PROCESSING;
324
+ }
325
+
326
+ $payment->setAdditionalInformation('trxId', $base->trxId)
327
+ ->setAdditionalInformation('invoiceNo', $base->invoiceNo)
328
+ ->setAdditionalInformation('documentId', $base->documentId)
329
+ ->setAdditionalInformation('linkPdf', $base->GetLink(''))
330
+ ->save();
331
+
332
+ $transaction_closed = true;
333
+ $transaction_type = Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE;
334
+ }
335
+ else
336
+ {
337
+ $comm = $text.' reservation created.<br />';
338
+ $comm .= 'Transaction ID: ' . $base->trxId . '<br/>';
339
+ if (is_array($fee) && $fee['incl'] > 0) {
340
+ $comm .= $text.' payment fee ' . $fee['incl'] . '<br />';
341
+ }
342
+ if ($method == 'klarnaacc' && $_GET['sisow_monthly']) {
343
+ $comm .= $text.' monthly ' . round($_GET['sisow_monthly'] / 100.0, 2) . '<br/>';
344
+ }
345
+ $st = Mage::getStoreConfig('sisow_core/status_success');
346
+ if (!$st) {
347
+ $st = Mage_Sales_Model_Order::STATE_PROCESSING;
348
+ }
349
+ $payment->setAdditionalInformation('trxId', $base->trxId)
350
+ ->save();
351
+
352
+ $transaction_closed = true;
353
+ $transaction_type = Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE;
354
+ }
355
+
356
+ $order->setState($state, $st, $comm);
357
+ $order->save();
358
+ $url = Mage::getUrl("sisow/checkout/success");
359
+ }
360
+ else
361
+ {
362
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT);
363
+ $url = $base->issuerUrl;
364
+ }
365
+
366
+ if(isset($base->trxId) && $base->trxId != '')
367
+ {
368
+ $order->getPayment()->setAdditionalInformation('trxId', $base->trxId)->save();
369
+
370
+ $transaction = Mage::getModel('sales/order_payment')
371
+ ->setMethod('sisow_'.$method)
372
+ ->setTransactionId($base->trxId)
373
+ ->setIsTransactionClosed($transaction_closed);
374
+
375
+ $order->setPayment($transaction);
376
+ $transaction->addTransaction($transaction_type);
377
+ }
378
+
379
+ if($method == 'klarna' || $method == 'klarnaacc')
380
+ {
381
+ $mail = (Mage::getStoreConfig('payment/'.$payment->getMethod().'/autoinvoice') > 0) ? Mage::getStoreConfig('payment/'.$payment->getMethod().'/autoinvoice') : Mage::getStoreConfig('sisow_core/autoinvoice');
382
+ if($mail > 1)
383
+ {
384
+ if ($order->canInvoice()) {
385
+ $invoice = $order->prepareInvoice();
386
+ $invoice->register()->capture();
387
+ $invoice->setTransactionId($trxid);
388
+ Mage::getModel('core/resource_transaction')
389
+ ->addObject($invoice)
390
+ ->addObject($invoice->getOrder())
391
+ ->save();
392
+
393
+ if ($mail == 3) {
394
+ $invoice->sendEmail();
395
+ $invoice->setEmailSent(true);
396
+ }
397
+ $invoice->save();
398
+ }
399
+ }
400
+ }
401
+
402
+ $order->save();
403
+ header('Location: ' . $url);
404
+ exit;
405
+ }
406
+ }
407
+
408
+ private function _getShippingTaxRate($order)
409
+ {
410
+ // Load the customer so we can retrevice the correct tax class id
411
+ $customer = Mage::getModel('customer/customer')
412
+ ->load($order->getCustomerId());
413
+ $taxClass = Mage::getStoreConfig(
414
+ 'tax/classes/shipping_tax_class',
415
+ $order->getStoreId()
416
+ );
417
+ $calculation = Mage::getSingleton('tax/calculation');
418
+ $request = $calculation->getRateRequest(
419
+ $order->getShippingAddress(),
420
+ $order->getBillingAddress(),
421
+ $customer->getTaxClassId(),
422
+ Mage::app()->getStore($order->getStoreId())
423
+ );
424
+ return $calculation->getRate($request->setProductClassId($taxClass));
425
+ }
426
+ }
427
+ ?>
app/code/local/Sisow/Helper/Data.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Helper_Data extends Mage_Payment_Helper_Data
3
+ {
4
+ public function GetNewMailConfig($method)
5
+ {
6
+ $config = Mage::getStoreConfig('payment/'.$method.'/newordermail');
7
+
8
+ if($config == "general")
9
+ return Mage::getStoreConfig('sisow_core/newordermail');
10
+ else
11
+ return $config;
12
+ }
13
+ }
14
+ ?>
app/code/local/Sisow/Helper/Paymentfee.php ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Helper_Paymentfee extends Mage_Payment_Helper_Data
3
+ {
4
+ /**
5
+ * getPaymentFeeAmount
6
+ * Return string value payment fee inlcuding tax
7
+ * @return string
8
+ */
9
+ public function getPaymentFeeArray($paymentcode, $quote)
10
+ {
11
+ $inctax = Mage::getStoreConfig('payment/'.$paymentcode.'/payment_fee_inc_ex');
12
+ $paymentfee = Mage::getStoreConfig('payment/'.$paymentcode.'/payment_fee');
13
+ $paymentfee_taxclass = Mage::getStoreConfig('payment/'.$paymentcode.'/payment_fee_tax');
14
+
15
+ if($paymentfee == '')
16
+ {
17
+ Mage::getSingleton('core/session')->setSisowFeeInc(0);
18
+ return;
19
+ }
20
+
21
+ if( Mage::getSingleton('core/session')->getSisowTotal() > 0)
22
+ {
23
+ if( $quote->getGrandTotal() > 0 && Mage::getSingleton('core/session')->getSisowTotal() <> $quote->getGrandTotal() )
24
+ {
25
+ Mage::getSingleton('core/session')->setSisowTotal($quote->getGrandTotal());
26
+ $order_total = Mage::getSingleton('core/session')->getSisowTotal();
27
+ }
28
+ $order_total = Mage::getSingleton('core/session')->getSisowTotal();
29
+ }
30
+ else
31
+ {
32
+ Mage::getSingleton('core/session')->setSisowTotal($quote->getGrandTotal());
33
+ $order_total = $quote->getGrandTotal();
34
+ }
35
+
36
+ $charge = 0;
37
+ if(strpos($paymentfee, ';') > 0)
38
+ {
39
+ $fees = explode(";", $paymentfee);
40
+ if($fees[0] > 0)
41
+ $charge += $fees[0];
42
+ else
43
+ $charge += $order_total * (($fees[0] * -1) / 100.0);
44
+
45
+ if($fees[1] > 0)
46
+ $charge += $fees[1];
47
+ else
48
+ $charge += $order_total * (($fees[1] * -1) / 100.0);
49
+ }
50
+ else if ($paymentfee > 0) {
51
+ $charge = $paymentfee;
52
+ } else if ($paymentfee < 0) {
53
+ $charge = $order_total * (($paymentfee * -1) / 100.0);
54
+ }
55
+
56
+ //Get the correct rate to use
57
+ $address = $quote->getShippingAddress();
58
+ $taxClassId = $quote->getCustomerTaxClassId();
59
+
60
+ $store = Mage::app()->getStore();
61
+ $calc = Mage::getSingleton('tax/calculation');
62
+ $rateRequest = $calc->getRateRequest($address, $address, $taxClassId, $store);
63
+ $rateRequest->setProductClassId($paymentfee_taxclass);
64
+ $rate = $calc->getRate($rateRequest);
65
+
66
+ if($inctax == '1')
67
+ {
68
+ $value = $calc->calcTaxAmount($charge, $rate, true, false);
69
+ $excl = ($charge - $value);
70
+ $feeArray = array(
71
+ 'excl' => $excl,
72
+ 'base_excl' => $this->calcBaseValue($excl),
73
+ 'incl' => $charge,
74
+ 'base_incl' => $this->calcBaseValue($charge),
75
+ 'taxamount' => $value,
76
+ 'base_taxamount' => $this->calcBaseValue($value),
77
+ 'rate' => $rate
78
+ );
79
+ }
80
+ else
81
+ {
82
+ //Fee entered without tax
83
+ $value = $calc->calcTaxAmount($charge, $rate, false, false);
84
+ $incl = ($charge + $value);
85
+
86
+ $feeArray = array(
87
+ 'excl' => $charge,
88
+ 'base_excl' => $this->calcBaseValue($charge),
89
+ 'incl' => $incl,
90
+ 'base_incl' => $this->calcBaseValue($incl),
91
+ 'taxamount' => $value,
92
+ 'base_taxamount' => $this->calcBaseValue($value),
93
+ 'rate' => $rate
94
+ );
95
+ }
96
+
97
+ Mage::getSingleton('core/session')->setSisowFeeInc($feeArray['incl']);
98
+
99
+ return $feeArray;
100
+ }
101
+
102
+ public function addToBlock($block)
103
+ {
104
+
105
+ $order = $block->getOrder();
106
+ $info = $order->getPayment()->getMethodInstance()->getInfoInstance();
107
+ $storeId = Mage::app()->getStore()->getId();
108
+ $taxOption = Mage::getStoreConfig("tax/sales_display/shipping", $storeId);
109
+ $country = $order->getShippingAddress()->getCountry();
110
+ //$lang = Mage::helper('klarnaPaymentModule/lang');
111
+ $label = Mage::getStoreConfig('payment/'.$order->getPayment()->getMethod().'/payment_fee_label');
112
+
113
+ $paymentFee = $info->getAdditionalInformation('invoice_fee');
114
+ $basePaymentFee = $info->getAdditionalInformation('base_invoice_fee');
115
+ $paymentFeeExcludingVat = $info->getAdditionalInformation('invoice_fee_exluding_vat');
116
+ $basePaymentFeeExcludingVat = $info->getAdditionalInformation('base_invoice_fee_exluding_vat');
117
+
118
+ /**
119
+ * 1 : Show exluding tax
120
+ * 2 : Show including tax
121
+ * 3 : Show both
122
+ */
123
+
124
+ if (($taxOption === '1') || ($taxOption === '3')) {
125
+ $label = Mage::getStoreConfig('payment/'.$order->getPayment()->getMethod().'/payment_fee_label');
126
+ $fee = new Varien_Object();
127
+ $fee->setCode('invoice_fee_excl');
128
+ if ($taxOption == '3') {
129
+ $label .= ' (Excl.Tax)';
130
+ }
131
+ $fee->setLabel($label);
132
+ $fee->setBaseValue($basePaymentFeeExcludingVat);
133
+ $fee->setValue($paymentFeeExcludingVat);
134
+ $block->addTotalBefore($fee, 'shipping');
135
+ }
136
+ if (($taxOption === '2') || ($taxOption === '3')) {
137
+ $label = Mage::getStoreConfig('payment/'.$order->getPayment()->getMethod().'/payment_fee_label');
138
+ $fee = new Varien_Object();
139
+ $fee->setCode('invoice_fee_incl');
140
+ if ($taxOption == '3') {
141
+ $label .= ' (Incl.Tax)';
142
+ }
143
+ $fee->setLabel($label);
144
+ $fee->setBaseValue($basePaymentFee);
145
+ $fee->setValue($paymentFee);
146
+ $block->addTotalBefore($fee, 'shipping');
147
+ }
148
+
149
+ return $block;
150
+ }
151
+
152
+ /**
153
+ * Try to calculate the value of the payment fee with the base currency
154
+ * of the store if the purchase was done with a different currency.
155
+ *
156
+ * @param float $value value to calculate on
157
+ *
158
+ * @return float
159
+ */
160
+ private function calcBaseValue($value) {
161
+ $baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode();
162
+ $currentCurrencyCode = Mage::app()->getStore()->getCurrentCurrencyCode();
163
+
164
+ if ($currentCurrencyCode !== $baseCurrencyCode) {
165
+ $currencyModel = Mage::getModel('directory/currency');
166
+ $currencyRates = $currencyModel->getCurrencyRates($baseCurrencyCode, array($currentCurrencyCode));
167
+ return ($value / $currencyRates[$currentCurrencyCode]);
168
+ }
169
+ return $value;
170
+ }
171
+ }
172
+ ?>
app/code/local/Sisow/Model/Base.php ADDED
@@ -0,0 +1,474 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Base extends Mage_Core_Model_Abstract
3
+ {
4
+ public static $issuers; // = null;
5
+ public static $lastcheck; // = 0;
6
+
7
+ private $response;
8
+
9
+ // Merchant data
10
+ private $merchantId;
11
+ private $merchantKey;
12
+
13
+ // Transaction data
14
+ public $shopId;
15
+ public $payment; // empty=iDEAL; sofort=DIRECTebanking; mistercash=MisterCash; ...
16
+ public $issuerId; // mandatory; sisow bank code
17
+ public $purchaseId; // mandatory; max 16 alphanumeric
18
+ public $entranceCode; // max 40 strict alphanumeric (letters and numbers only)
19
+ public $description; // mandatory; max 32 alphanumeric
20
+ public $amount; // mandatory; min 0.45
21
+ public $notifyUrl;
22
+ public $returnUrl; // mandatory
23
+ public $cancelUrl;
24
+ public $callbackUrl;
25
+
26
+ // Status data
27
+ public $status;
28
+ public $timeStamp;
29
+ public $consumerAccount;
30
+ public $consumerIban;
31
+ public $consumerBic;
32
+ public $consumerName;
33
+ public $consumerCity;
34
+ public $active;
35
+
36
+ // Result/check data
37
+ public $trxId;
38
+ public $issuerUrl;
39
+ public $invoiceNo;
40
+ public $documentId;
41
+
42
+ // Klarna Factuur/Account
43
+ public $pendingKlarna;
44
+ public $monthly;
45
+ public $pclass;
46
+ public $intrestRate;
47
+ public $invoiceFee;
48
+ public $months;
49
+ public $startFee;
50
+
51
+ // Error data
52
+ public $errorCode;
53
+ public $errorMessage;
54
+
55
+ // Status
56
+ const statusSuccess = "Success";
57
+ const statusCancelled = "Cancelled";
58
+ const statusExpired = "Expired";
59
+ const statusFailure = "Failure";
60
+ const statusOpen = "Open";
61
+
62
+ /**
63
+ * Init resource model
64
+ */
65
+ protected function _construct()
66
+ {
67
+ //$this->_init('sisow/base');
68
+ $this->merchantId = Mage::getStoreConfig('sisow_core/merchantid');
69
+ $this->merchantKey = Mage::getStoreConfig('sisow_core/merchantkey');
70
+ }
71
+
72
+ /*public function __construct() { //$merchantid, $merchantkey) {
73
+ //$this->merchantId = $merchantid;
74
+ //$this->merchantKey = $merchantkey;
75
+ }*/
76
+
77
+ private function error() {
78
+ $this->errorCode = $this->parse("errorcode");
79
+ $this->errorMessage = urldecode($this->parse("errormessage"));
80
+ }
81
+
82
+ private function parse($search, $xml = false) {
83
+ if ($xml === false) {
84
+ $xml = $this->response;
85
+ }
86
+
87
+ if (($start = strpos($xml, "<" . $search . ">")) === false) {
88
+ return false;
89
+ }
90
+ $start += strlen($search) + 2;
91
+ if (($end = strpos($xml, "</" . $search . ">", $start)) === false) {
92
+ return false;
93
+ }
94
+ return substr($xml, $start, $end - $start);
95
+ }
96
+
97
+ private function send($method, array $keyvalue = NULL, $return = 1) {
98
+ $url = "https://www.sisow.nl/Sisow/iDeal/RestHandler.ashx/" . $method;
99
+ $options = array(
100
+ CURLOPT_POST => 1,
101
+ CURLOPT_HEADER => 0,
102
+ CURLOPT_URL => $url,
103
+ CURLOPT_FRESH_CONNECT => 1,
104
+ CURLOPT_RETURNTRANSFER => $return,
105
+ CURLOPT_FORBID_REUSE => 1,
106
+ CURLOPT_TIMEOUT => 120,
107
+ CURLOPT_SSL_VERIFYPEER => 0,
108
+ CURLOPT_POSTFIELDS => $keyvalue == NULL ? "" : http_build_query($keyvalue, '', '&'));
109
+ $ch = curl_init();
110
+ curl_setopt_array($ch, $options);
111
+ $this->response = curl_exec($ch);
112
+ curl_close($ch);
113
+ if (!$this->response) {
114
+ return false;
115
+ }
116
+ return true;
117
+ }
118
+
119
+ private function getDirectory() {
120
+ $diff = 24 * 60 * 60;
121
+ if (self::$lastcheck)
122
+ $diff = time() - self::$lastcheck;
123
+ if ($diff < 24 * 60 * 60)
124
+ return 0;
125
+ //$this->Report('Magento DirectoryRequest ' . self::$lastcheck);
126
+ if (!$this->send("DirectoryRequest"))
127
+ return -1;
128
+ $search = $this->parse("directory");
129
+ if (!$search) {
130
+ $this->error();
131
+ return -2;
132
+ }
133
+ self::$issuers = array();
134
+ $iss = explode("<issuer>", str_replace("</issuer>", "", $search));
135
+ foreach ($iss as $k => $v) {
136
+ $issuerid = $this->parse("issuerid", $v);
137
+ $issuername = $this->parse("issuername", $v);
138
+ if ($issuerid && $issuername) {
139
+ self::$issuers[$issuerid] = $issuername;
140
+ }
141
+ }
142
+ self::$lastcheck = time();
143
+ //$this->Report('Magento lastcheck ' . self::$lastcheck);
144
+ return 0;
145
+ }
146
+
147
+ // DirectoryRequest
148
+ public function DirectoryRequest(&$output, $select = false, $test = false) {
149
+ if ($test === true) {
150
+ // kan ook via de gateway aangevraagd worden, maar is altijd hetzelfde
151
+ if ($select === true) {
152
+ $output = "<select id=\"sisowbank\" name=\"issuerid\">";
153
+ $output .= "<option value=\"99\">Sisow Bank (test)</option>";
154
+ $output .= "</select>";
155
+ }
156
+ else {
157
+ $output = array("99" => "Sisow Bank (test)");
158
+ }
159
+ return 0;
160
+ }
161
+ $output = false;
162
+ $ex = $this->getDirectory();
163
+ if ($ex < 0) {
164
+ return $ex;
165
+ }
166
+ if ($select === true) {
167
+ $output = "<select id=\"sisowbank\" name=\"issuerid\">";
168
+ }
169
+ else {
170
+ $output = array();
171
+ }
172
+ foreach (Sisow_Model_Base::$issuers as $k => $v) {
173
+ if ($select === true) {
174
+ $output .= "<option value=\"" . $k . "\">" . $v . "</option>";
175
+ }
176
+ else {
177
+ $output[$k] = $v;
178
+ }
179
+ }
180
+ if ($select === true) {
181
+ $output .= "</select>";
182
+ }
183
+ return 0;
184
+ }
185
+
186
+ public function Report($message) {
187
+ if ($message) {
188
+ $arr['message'] = $message;
189
+ $this->send('Report', $arr);
190
+ }
191
+ }
192
+
193
+ // TransactionRequest
194
+ public function TransactionRequest($keyvalue = NULL) {
195
+ if(!isset($this->shopId))
196
+ $this->shopId = "";
197
+
198
+ $this->trxId = $this->issuerUrl = "";
199
+ if (!$this->merchantId)
200
+ return -1;
201
+ if (!$this->merchantKey)
202
+ return -2;
203
+ if (!$this->purchaseId)
204
+ return -3;
205
+ if ($this->amount < 0.45)
206
+ return -4;
207
+ if (!$this->description)
208
+ return -5;
209
+ if (!$this->returnUrl)
210
+ return -6;
211
+ if (!$this->issuerId && !$this->payment)
212
+ return -7;
213
+ if (!$this->entranceCode)
214
+ $this->entranceCode = $this->purchaseId;
215
+ $pars = array();
216
+
217
+ if(strlen($keyvalue['billing_countrycode']) == 2)
218
+ $pars["locale"] = $this->setLocale($keyvalue['billing_countrycode']);
219
+ else
220
+ $pars["locale"] = $this->setLocale("");
221
+
222
+ $pars["merchantid"] = $this->merchantId;
223
+ $pars["payment"] = $this->payment;
224
+ $pars["issuerid"] = $this->issuerId;
225
+ $pars["shopid"] = $this->shopId;
226
+ $pars["purchaseid"] = $this->purchaseId;
227
+ $pars["amount"] = round($this->amount * 100);
228
+ $pars["description"] = $this->description;
229
+ $pars["entrancecode"] = $this->entranceCode;
230
+ $pars["returnurl"] = $this->returnUrl;
231
+ $pars["cancelurl"] = $this->cancelUrl;
232
+ $pars["callbackurl"] = $this->callbackUrl;
233
+ $pars["notifyurl"] = $this->notifyUrl;
234
+ $pars["sha1"] = sha1($this->purchaseId . $this->entranceCode . round($this->amount * 100) . $this->shopId . $this->merchantId . $this->merchantKey);
235
+ if ($keyvalue) {
236
+ foreach ($keyvalue as $k => $v) {
237
+ $pars[$k] = $v;
238
+ }
239
+ }
240
+ if (!$this->send("TransactionRequest", $pars))
241
+ return -8;
242
+ $this->trxId = $this->parse("trxid");
243
+ $this->invoiceNo = $this->parse("invoiceno");
244
+ $this->documentId = $this->parse("documentid");
245
+ $this->sha = $this->parse("sha1");
246
+ $url = $this->parse("issuerurl");
247
+
248
+ /*
249
+ if($this->sha != sha1($this->trxId . '' . $this->merchantId . $this->merchantKey) )
250
+ {
251
+ $this->errorMessage = 'Illegal request';
252
+ return -9;
253
+ }
254
+ */
255
+
256
+ $this->issuerUrl = urldecode($url);
257
+ $this->pendingKlarna = $this->parse("pendingklarna") == "true";
258
+ if (!$this->issuerUrl) {
259
+ $this->error();
260
+ return -9;
261
+ }
262
+ return 0;
263
+ }
264
+
265
+ // StatusRequest
266
+ public function StatusRequest($trxid = false) {
267
+ if(!isset($this->shopId))
268
+ $this->shopId = "";
269
+
270
+ if ($trxid === false)
271
+ $trxid = $this->trxId;
272
+ if (!$this->merchantId)
273
+ return -1;
274
+ if (!$this->merchantKey)
275
+ return -2;
276
+ if (!$trxid)
277
+ return -3;
278
+ $this->trxId = $trxid;
279
+ $pars = array();
280
+ $pars["merchantid"] = $this->merchantId;
281
+ $pars["shopid"] = $this->shopId;
282
+ $pars["trxid"] = $this->trxId;
283
+ $pars["sha1"] = sha1($this->trxId . $this->shopId . $this->merchantId . $this->merchantKey);
284
+ if (!$this->send("StatusRequest", $pars))
285
+ return -4;
286
+ $this->status = $this->parse("status");
287
+ if (!$this->status) {
288
+ $this->error();
289
+ return -5;
290
+ }
291
+ $this->timeStamp = $this->parse("timestamp");
292
+ $this->amount = $this->parse("amount") / 100.0;
293
+ $this->consumerAccount = $this->parse("consumeraccount");
294
+ $this->consumerIban = $this->parse("consumeriban");
295
+ $this->consumerBic = $this->parse("consumerbic");
296
+ $this->consumerName = $this->parse("consumername");
297
+ $this->consumerCity = $this->parse("consumercity");
298
+ $this->purchaseId = $this->parse("purchaseid");
299
+ $this->description = $this->parse("description");
300
+ $this->entranceCode = $this->parse("entrancecode");
301
+ return 0;
302
+ }
303
+
304
+ // checkMerchant
305
+ public function checkMerchant() {
306
+ if (!$this->merchantId)
307
+ return -1;
308
+ if (!$this->merchantKey)
309
+ return -2;
310
+ $pars = array();
311
+ $pars["merchantid"] = $this->merchantId;
312
+ $pars["sha1"] = sha1($this->merchantId . $this->merchantKey);
313
+
314
+ if (!$this->send("CheckMerchantRequest", $pars))
315
+ return -4;
316
+ $this->timeStamp = $this->parse("timestamp");
317
+ $this->active = $this->parse("active");
318
+ return 0;
319
+ }
320
+
321
+ // FetchMonthlyRequest
322
+ public function FetchMonthlyRequest($amt = false) {
323
+ if (!$amt) $amt = round($this->amount * 100);
324
+ else $amt = round($amt * 100);
325
+ $pars = array();
326
+ $pars["merchantid"] = $this->merchantId;
327
+ $pars["amount"] = $amt;
328
+ $pars["sha1"] = sha1($amt . $this->merchantId . $this->merchantKey);
329
+ if (!$this->send("FetchMonthlyRequest", $pars))
330
+ return -1;
331
+ $this->monthly = $this->parse("monthly");
332
+ $this->pclass = $this->parse("pclass");
333
+ $this->intrestRate = $this->parse("intrestRate");
334
+ $this->invoiceFee = $this->parse("invoiceFee");
335
+ $this->months = $this->parse("months");
336
+ $this->startFee = $this->parse("startFee");
337
+ return $this->monthly;
338
+ }
339
+
340
+ // RefundRequest
341
+ public function RefundRequest($trxid) {
342
+ $pars = array();
343
+ $pars["merchantid"] = $this->merchantId;
344
+ $pars["amount"] = round($this->amount * 100.0);
345
+ $pars["trxid"] = $trxid;
346
+ $pars["sha1"] = sha1($trxid . $this->merchantId . $this->merchantKey);
347
+ if (!$this->send("RefundRequest", $pars))
348
+ return -1;
349
+ $id = $this->parse("refundid");
350
+ if (!$id) {
351
+ $this->error();
352
+ return -2;
353
+ }
354
+ return $id;
355
+ }
356
+
357
+ // InvoiceRequest
358
+ public function InvoiceRequest($trxid, $keyvalue = NULL) {
359
+ $pars = array();
360
+ $pars["merchantid"] = $this->merchantId;
361
+ $pars["trxid"] = $trxid;
362
+ $pars["sha1"] = sha1($trxid . $this->merchantId . $this->merchantKey);
363
+ if ($keyvalue) {
364
+ foreach ($keyvalue as $k => $v) {
365
+ $pars[$k] = $v;
366
+ }
367
+ }
368
+ if (!$this->send("InvoiceRequest", $pars))
369
+ return -1;
370
+ $this->invoiceNo = $this->parse("invoiceno");
371
+ if (!$this->invoiceNo) {
372
+ $this->error();
373
+ return -2;
374
+ }
375
+ $this->documentId = $this->parse("documentid");
376
+ return 0; //$this->invoiceNo;
377
+ }
378
+
379
+ // CreditInvoiceRequest
380
+ public function CreditInvoiceRequest($trxid) {
381
+ $pars = array();
382
+ $pars["merchantid"] = $this->merchantId;
383
+ $pars["trxid"] = $trxid;
384
+ $pars["sha1"] = sha1($trxid . $this->merchantId . $this->merchantKey);
385
+ if (!$this->send("CreditInvoiceRequest", $pars))
386
+ return -1;
387
+ $this->invoiceNo = $this->parse("invoiceno");
388
+ if (!$this->invoiceNo) {
389
+ $this->error();
390
+ return -2;
391
+ }
392
+ $this->documentId = $this->parse("documentid");
393
+ return 0; //$this->invoiceNo;
394
+ }
395
+
396
+ // CancelReservationRequest
397
+ public function CancelReservationRequest($trxid) {
398
+ $pars = array();
399
+ $pars["merchantid"] = $this->merchantId;
400
+ $pars["trxid"] = $trxid;
401
+ $pars["sha1"] = sha1($trxid . $this->merchantId . $this->merchantKey);
402
+ if (!$this->send("CancelReservationRequest", $pars))
403
+ return -1;
404
+ return 0;
405
+ }
406
+
407
+ public function GetLink($msg = 'hier', $method = '') {
408
+ if (!$method) {
409
+ if (!$msg)
410
+ $link = 'https://www.sisow.nl/Sisow/Opdrachtgever/download.aspx?merchantid=' .
411
+ $this->merchantId . '&doc=' . $this->documentId . '&sha1=' .
412
+ sha1($this->documentId . $this->merchantId . $this->merchantKey);
413
+ else
414
+ $link = '<a href="https://www.sisow.nl/Sisow/Opdrachtgever/download.aspx?merchantid=' .
415
+ $this->merchantId . '&doc=' . $this->documentId . '&sha1=' .
416
+ sha1($this->documentId . $this->merchantId . $this->merchantKey) . '">' . $msg . '</a>';
417
+ return $link;
418
+ }
419
+ if ($method == 'make') {
420
+ }
421
+ }
422
+
423
+ public function getMerchantId()
424
+ {
425
+ return $this->merchantId;
426
+ }
427
+
428
+ public function getMerchantKey()
429
+ {
430
+ return $this->merchantKey;
431
+ }
432
+
433
+ public function setLocale($countryIso)
434
+ {
435
+ $supported = array("US");
436
+
437
+ switch($this->payment)
438
+ {
439
+ case "paypalec":
440
+ $supported = array('AU','AT','BE','BR','CA','CH','CN','DE','ES','GB','FR','IT','NL','PL','PT','RU','US');
441
+ break;
442
+ case "mistercash":
443
+ $supported = array('NL', 'BE', 'DE', 'IT', 'ES', 'PT', 'BR', 'SE', 'FR');
444
+ break;
445
+ case "creditcard":
446
+ $supported = array('NL', 'BE', 'DE', 'IT', 'ES', 'PT', 'BR', 'SE', 'FR');
447
+ break;
448
+ case "maestro":
449
+ $supported = array('NL', 'BE', 'DE', 'IT', 'ES', 'PT', 'BR', 'SE', 'FR');
450
+ break;
451
+ case "mastercard":
452
+ $supported = array('NL', 'BE', 'DE', 'IT', 'ES', 'PT', 'BR', 'SE', 'FR');
453
+ break;
454
+ case "visa":
455
+ $supported = array('NL', 'BE', 'DE', 'IT', 'ES', 'PT', 'BR', 'SE', 'FR');
456
+ break;
457
+ default:
458
+ return "NL";
459
+ break;
460
+ }
461
+
462
+ $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
463
+ $lang = strtoupper($lang);
464
+
465
+ $lang = (!isset($lang) || $lang == "") ? $countryIso : $lang;
466
+
467
+ if($lang == "")
468
+ return "US";
469
+ if(in_array($lang, $supported))
470
+ return $lang;
471
+ else
472
+ return 'US';
473
+ }
474
+ }
app/code/local/Sisow/Model/Config/Autoinvoice.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Used in creating options for config value selection
4
+ *
5
+ */
6
+ class Sisow_Model_Config_Autoinvoice
7
+ {
8
+
9
+ /**
10
+ * Options getter
11
+ *
12
+ * @return array
13
+ */
14
+ public function toOptionArray()
15
+ {
16
+ return array(
17
+ array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Use General settings')),
18
+ array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('No')),
19
+ array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Yes')),
20
+ array('value' => 3, 'label' => Mage::helper('adminhtml')->__('Yes') . ' ' . Mage::helper('adminhtml')->__('and send mail'))
21
+ );
22
+ }
23
+
24
+ }
app/code/local/Sisow/Model/Config/GeneralAutoinvoice.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Used in creating options for config value selection
4
+ *
5
+ */
6
+ class Sisow_Model_Config_GeneralAutoinvoice
7
+ {
8
+
9
+ /**
10
+ * Options getter
11
+ *
12
+ * @return array
13
+ */
14
+ public function toOptionArray()
15
+ {
16
+ return array(
17
+ array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('No')),
18
+ array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Yes')),
19
+ array('value' => 3, 'label' => Mage::helper('adminhtml')->__('Yes') . ' ' . Mage::helper('adminhtml')->__('and send mail'))
20
+ );
21
+ }
22
+
23
+ }
app/code/local/Sisow/Model/Config/Newordermail.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Sisow_Model_Config_Newordermail
4
+ {
5
+
6
+ public function toOptionArray()
7
+ {
8
+ return array(
9
+ array(
10
+ "value" => "after_confirmation",
11
+ "label" => Mage::helper('adminhtml')->__("After order confirmation")
12
+ ),
13
+ array(
14
+ "value" => "after_notify_with_cancel",
15
+ "label" => Mage::helper('adminhtml')->__("After notification, including cancelled order")
16
+ ),
17
+ array(
18
+ "value" => "after_notify_without_cancel",
19
+ "label" => Mage::helper('adminhtml')->__("After notification, excluding cancelled order")
20
+ )
21
+ );
22
+ }
23
+
24
+ }
app/code/local/Sisow/Model/Config/NewordermailMethod.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Sisow_Model_Config_NewordermailMethod
4
+ {
5
+
6
+ public function toOptionArray()
7
+ {
8
+ return array(
9
+ array('value' => "general", 'label'=>Mage::helper('adminhtml')->__('Use General settings')),
10
+ array(
11
+ "value" => "after_confirmation",
12
+ "label" => Mage::helper('adminhtml')->__("After order confirmation")
13
+ ),
14
+ array(
15
+ "value" => "after_notify_with_cancel",
16
+ "label" => Mage::helper('adminhtml')->__("After notification, including cancelled order")
17
+ ),
18
+ array(
19
+ "value" => "after_notify_without_cancel",
20
+ "label" => Mage::helper('adminhtml')->__("After notification, excluding cancelled order")
21
+ )
22
+ );
23
+ }
24
+
25
+ }
app/code/local/Sisow/Model/Methods/Abstract.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ abstract class Sisow_Model_Methods_Abstract extends Mage_Payment_Model_Method_Abstract
3
+ {
4
+ protected $_isGateway = false;
5
+ protected $_canAuthorize = false;
6
+ protected $_canCapture = true;
7
+ protected $_canCapturePartial = false;
8
+ protected $_canRefund = false;
9
+ protected $_canRefundInvoicePartial = false;
10
+ protected $_canVoid = false;
11
+ protected $_canUseInternal = true;
12
+ protected $_canUseCheckout = false;
13
+ protected $_canUseForMultishipping = true;
14
+ protected $_canSaveCc = false;
15
+
16
+ public function getQuote() {
17
+ return $this->getCheckout()->getQuote();
18
+ }
19
+
20
+ public function getCheckout() {
21
+ return Mage::getSingleton('checkout/session');
22
+ }
23
+
24
+ public function getOrderPlaceRedirectUrl()
25
+ {
26
+ $issuer = $_POST['payment']['sisow_issuer'];
27
+
28
+ /*
29
+ * Redirect to Sisow
30
+ * method = paymentcode from Sisow
31
+ * additional params (fields from the checkout page)
32
+ */
33
+ $url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
34
+ if (!strpos($url, "?")) $url .= '?';
35
+ else $url .= '&';
36
+ $url .= 'method='.$this->_paymentcode;
37
+ return $url;
38
+ }
39
+
40
+ public function getFeeArray()
41
+ {
42
+ return Mage::helper('sisow/Paymentfee')->getPaymentFeeArray($this->_code, $this->getQuote());
43
+ }
44
+
45
+ public function capture(Varien_Object $payment, $amount)
46
+ {
47
+ return $this;
48
+ }
49
+
50
+ /**
51
+ * Refund a capture transaction
52
+ *
53
+ * @param Varien_Object $payment
54
+ * @param float $amount
55
+ */
56
+ public function refund(Varien_Object $payment, $amount)
57
+ {
58
+ $trxid = $this->_getParentTransactionId($payment);
59
+
60
+ if($trxid)
61
+ {
62
+ $base = Mage::getModel('sisow/base');
63
+ $base->amount = $amount;
64
+ if(($ex = $base->RefundRequest($trxid)) < 0)
65
+ {
66
+ Mage::log($trxid . ': Sisow RefundRequest failed('.$ex.', '.$base->errorCode.', '.$base->errorMessage.')', null, 'log_sisow.log');
67
+ }
68
+ else
69
+ {
70
+ $order = $payment->getOrder();
71
+ $transaction = Mage::getModel('sales/order_payment')
72
+ ->setMethod($this->_code)
73
+ ->setTransactionId($ex)
74
+ ->setIsTransactionClosed(true);
75
+
76
+ $order->setPayment($transaction);
77
+ $transaction->addTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND);
78
+
79
+ $order->save();
80
+ }
81
+ }
82
+ else
83
+ {
84
+ Mage::log($trxid . ': refund failed no transactionId found', null, 'log_sisow.log');
85
+ Mage::throwException(Mage::helper('sisow')->__("Impossible to issue a refund transaction because the transactionId can't be loaded."));
86
+ }
87
+
88
+ return $this;
89
+ }
90
+
91
+ public function processInvoice($invoice, $payment)
92
+ {
93
+ $info = $payment->getMethodInstance()->getInfoInstance();
94
+ $trxid = $info->getAdditionalInformation('trxId');
95
+
96
+ if($this->_paymentcode == 'klarna' || $this->_paymentcode == 'klarnaacc')
97
+ {
98
+ if(Mage::getStoreConfig('payment/sisow_'.$this->_paymentcode.'/sendklarnainvoice') > 1)
99
+ {
100
+ $base = Mage::getModel('sisow/base');
101
+ if( ($ex = $base->InvoiceRequest($trxid)) < 0)
102
+ {
103
+ Mage::getSingleton('adminhtml/session')->addSuccess( Mage::helper('sisow')->__("Klarna Invoice can't be created") . '!' );
104
+ }
105
+ else
106
+ {
107
+ Mage::getSingleton('adminhtml/session')->addSuccess( Mage::helper('sisow')->__("Klarna Invoice created") . '!' );
108
+ }
109
+ }
110
+ }
111
+ return $this;
112
+ }
113
+
114
+ protected function _getParentTransactionId(Varien_Object $payment)
115
+ {
116
+ return $payment->getParentTransactionId() ? $payment->getParentTransactionId() : $payment->getLastTransId();
117
+ }
118
+ }
119
+ ?>
app/code/local/Sisow/Model/Methods/Ebill.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Ebill extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_ebill'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'ebill';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseInternal = true;
13
+ protected $_canUseCheckout = false;
14
+ }
15
+ ?>
app/code/local/Sisow/Model/Methods/Ideal.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Ideal extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_ideal'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'ideal';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_ideal';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_idealInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canRefund = true;
13
+ protected $_canRefundInvoicePartial = true;
14
+ protected $_canUseCheckout = true;
15
+
16
+ public function getOrderPlaceRedirectUrl()
17
+ {
18
+ $issuer = $_POST['payment']['sisow_issuer'];
19
+
20
+ /*
21
+ * Redirect to Sisow
22
+ * method = paymentcode from Sisow
23
+ * additional params (fields from the checkout page)
24
+ */
25
+ $url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
26
+ if (!strpos($url, "?")) $url .= '?';
27
+ else $url .= '&';
28
+ $url .= 'issuer='.$issuer.'&method=ideal';
29
+ return $url;
30
+ }
31
+ }
32
+ ?>
app/code/local/Sisow/Model/Methods/Klarna.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Klarna extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_klarna'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'klarna';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_klarna';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+
14
+ public function getOrderPlaceRedirectUrl()
15
+ {
16
+ $gender = $_POST['payment']['sisow_gender'];
17
+ $phone = $_POST['payment']['sisow_phone'];
18
+ $day = $_POST['payment']['sisow_day'];
19
+ $month = $_POST['payment']['sisow_month'];
20
+ $year = $_POST['payment']['sisow_year'];
21
+
22
+ $dob = $day . $month . $year;
23
+
24
+ /*
25
+ * Redirect to Sisow
26
+ * method = paymentcode from Sisow
27
+ * additional params (fields from the checkout page)
28
+ */
29
+ $url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
30
+ if (!strpos($url, "?")) $url .= '?';
31
+ else $url .= '&';
32
+ $url .= 'method=klarna';
33
+ $url .= '&gender='.$gender;
34
+ $url .= '&phone='.$phone;
35
+ $url .= '&dob='.$dob;
36
+
37
+ return $url;
38
+ }
39
+
40
+ public function getPhone()
41
+ {
42
+ $phone = $this->getQuote()->getBillingAddress()->getTelephone();
43
+ if (!$phone && $this->getQuote()->getShippingAddress())
44
+ $phone = $this->getQuote()->getShippingAddress()->getTelephone();
45
+ return $phone;
46
+ }
47
+ }
48
+ ?>
app/code/local/Sisow/Model/Methods/Klarnaacc.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Klarnaacc extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_klarnaacc'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'klarnaacc';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_klarnaacc';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+
14
+ public function getOrderPlaceRedirectUrl()
15
+ {
16
+ $gender = $_POST['payment']['sisow_gender'];
17
+ $phone = $_POST['payment']['sisow_phone'];
18
+ $day = $_POST['payment']['sisow_day'];
19
+ $month = $_POST['payment']['sisow_month'];
20
+ $year = $_POST['payment']['sisow_year'];
21
+ $pclass = $_POST['payment']['sisow_pclass'];
22
+
23
+ $dob = $day . $month . $year;
24
+
25
+ /*
26
+ * Redirect to Sisow
27
+ * method = paymentcode from Sisow
28
+ * additional params (fields from the checkout page)
29
+ */
30
+ $url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
31
+ if (!strpos($url, "?")) $url .= '?';
32
+ else $url .= '&';
33
+ $url .= 'method=klarnaacc';
34
+ $url .= '&gender='.$gender;
35
+ $url .= '&phone='.$phone;
36
+ $url .= '&dob='.$dob;
37
+ $url .= '&pclass='.$pclass;
38
+
39
+ return $url;
40
+ }
41
+
42
+ public function getPhone()
43
+ {
44
+ $phone = $this->getQuote()->getBillingAddress()->getTelephone();
45
+ if (!$phone && $this->getQuote()->getShippingAddress())
46
+ $phone = $this->getQuote()->getShippingAddress()->getTelephone();
47
+ return $phone;
48
+ }
49
+
50
+ public function getMonthly()
51
+ {
52
+ $base = Mage::getModel('sisow/base');
53
+ $amt = $this->getQuote()->getGrandTotal();
54
+ $m = $base->FetchMonthlyRequest($amt);
55
+ $this->pclass = $base->pclass;
56
+ return $m;
57
+ }
58
+
59
+ public function getPclass()
60
+ {
61
+ if (!$this->pclass) $this->getMonthly();
62
+ return $this->pclass;
63
+ }
64
+ }
65
+ ?>
app/code/local/Sisow/Model/Methods/Maestro.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Maestro extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_maestro'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'maestro';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+
14
+ public function getOrderPlaceRedirectUrl()
15
+ {
16
+ /*
17
+ * Redirect to Sisow
18
+ * method = paymentcode from Sisow
19
+ * additional params (fields from the checkout page)
20
+ */
21
+ $url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
22
+ if (!strpos($url, "?")) $url .= '?';
23
+ else $url .= '&';
24
+ $url .= '&method=maestro';
25
+ return $url;
26
+ }
27
+ }
28
+ ?>
app/code/local/Sisow/Model/Methods/Mastercard.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Mastercard extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_mastercard'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'mastercard';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+
14
+ public function getOrderPlaceRedirectUrl()
15
+ {
16
+ /*
17
+ * Redirect to Sisow
18
+ * method = paymentcode from Sisow
19
+ * additional params (fields from the checkout page)
20
+ */
21
+ $url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
22
+ if (!strpos($url, "?")) $url .= '?';
23
+ else $url .= '&';
24
+ $url .= '&method=mastercard';
25
+ return $url;
26
+ }
27
+ }
28
+ ?>
app/code/local/Sisow/Model/Methods/Mistercash.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Mistercash extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_mistercash'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'mistercash';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+ }
14
+ ?>
app/code/local/Sisow/Model/Methods/Overboeking.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Overboeking extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_overboeking'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'overboeking';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_overboeking';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+ }
14
+ ?>
app/code/local/Sisow/Model/Methods/Paypalec.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Paypalec extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_paypalec'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'paypalec';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+ }
14
+ ?>
app/code/local/Sisow/Model/Methods/Sofort.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Sofort extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_sofort'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'sofort';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+ }
14
+ ?>
app/code/local/Sisow/Model/Methods/Visa.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_Visa extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_visa'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'visa';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+
14
+ public function getOrderPlaceRedirectUrl()
15
+ {
16
+ /*
17
+ * Redirect to Sisow
18
+ * method = paymentcode from Sisow
19
+ * additional params (fields from the checkout page)
20
+ */
21
+ $url = Mage::getUrl('sisow/checkout/redirect/', array('_secure' => true));
22
+ if (!strpos($url, "?")) $url .= '?';
23
+ else $url .= '&';
24
+ $url .= '&method=visa';
25
+ return $url;
26
+ }
27
+ }
28
+ ?>
app/code/local/Sisow/Model/Methods/WebshopGiftcard.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Methods_WebshopGiftcard extends Sisow_Model_Methods_Abstract
3
+ {
4
+ protected $_code = 'sisow_webshop'; //sisow = modulenaam, ideal = paymentcode sisow
5
+ protected $_paymentcode = 'webshop';
6
+
7
+ //blocks for loading templates in checkout
8
+ protected $_formBlockType = 'sisow/paymentmethod_default';
9
+ protected $_infoBlockType = 'sisow/paymentmethod_defaultInfo';
10
+
11
+ protected $_isGateway = true;
12
+ protected $_canUseCheckout = true;
13
+ }
14
+ ?>
app/code/local/Sisow/Model/Observer/Order.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Observer_Order extends Mage_Core_Model_Abstract
3
+ {
4
+ public function salesOrderLoadAfter($observer)
5
+ {
6
+ $order = $observer->getOrder();
7
+ $payment = $order->getPayment();
8
+
9
+ $payments = $order->getAllPayments();
10
+
11
+ foreach($payments as $payment)
12
+ {
13
+ switch($payment->getMethod())
14
+ {
15
+ case 'sisow':
16
+ $payment->setMethod('sisow_ideal');
17
+ break;
18
+ case 'sisowklarna':
19
+ $payment->setMethod('sisow_klarna');
20
+ break;
21
+ case 'sisowklaacc':
22
+ $payment->setMethod('sisow_klarnaacc');
23
+ break;
24
+ case 'sisowob':
25
+ $payment->setMethod('sisow_overboeking');
26
+ break;
27
+ case 'sisowcc':
28
+ $payment->setMethod('sisow_visa');
29
+ break;
30
+ case 'sisoweb':
31
+ $payment->setMethod('sisow_ebill');
32
+ break;
33
+ case 'sisowde':
34
+ $payment->setMethod('sisow_sofort');
35
+ break;
36
+ case 'sisowmc':
37
+ $payment->setMethod('sisow_mistercash');
38
+ break;
39
+ case 'sisowwg':
40
+ $payment->setMethod('sisow_webshop');
41
+ break;
42
+ case 'sisowpp':
43
+ $payment->setMethod('sisow_paypalec');
44
+ break;
45
+
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ?>
app/code/local/Sisow/Model/Observer/Paymentfee.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Observer_Paymentfee
3
+ {
4
+ public function salesQuoteCollectTotalsAfter(Varien_Event_Observer $observer)
5
+ {
6
+ $quote = $observer->getEvent()->getQuote();
7
+ $quote->setInvoiceFee(0);
8
+ $quote->setBaseInvoiceFee(0);
9
+ $quote->setInvoiceFeeExcludedVat(0);
10
+ $quote->setBaseInvoiceFeeExcludedVat(0);
11
+ $quote->setInvoiceTaxAmount(0);
12
+ $quote->setBaseInvoiceTaxAmount(0);
13
+ $quote->setInvoiceFeeRate(0);
14
+
15
+ foreach ($quote->getAllAddresses() as $address) {
16
+ $quote->setInvoiceFee(
17
+ (float) $quote->getInvoiceFee() + $address->getInvoiceFee()
18
+ );
19
+ $quote->setBaseInvoiceFee(
20
+ (float) $quote->getBaseInvoiceFee() + $address->getBaseInvoiceFee()
21
+ );
22
+
23
+ $quoteFeeExclVat = $quote->getInvoiceFeeExcludedVat();
24
+ $addressFeeExclCat = $address->getInvoiceFeeExcludedVat();
25
+ $quote->setInvoiceFeeExcludedVat(
26
+ (float) $quoteFeeExclVat + $addressFeeExclCat
27
+ );
28
+
29
+ $quoteBaseFeeExclVat = $quote->getBaseInvoiceFeeExcludedVat();
30
+ $addressBaseFeeExclVat = $address->getBaseInvoiceFeeExcludedVat();
31
+ $quote->setBaseInvoiceFeeExcludedVat(
32
+ (float) $quoteBaseFeeExclVat + $addressBaseFeeExclVat
33
+ );
34
+
35
+ $quoteFeeTaxAmount = $quote->getInvoiceTaxAmount();
36
+ $addressFeeTaxAmount = $address->getInvoiceTaxAmount();
37
+ $quote->setInvoiceTaxAmount(
38
+ (float) $quoteFeeTaxAmount + $addressFeeTaxAmount
39
+ );
40
+
41
+ $quoteBaseFeeTaxAmount = $quote->getBaseInvoiceTaxAmount();
42
+ $addressBaseFeeTaxAmount = $address->getBaseInvoiceTaxAmount();
43
+ $quote->setBaseInvoiceTaxAmount(
44
+ (float) $quoteBaseFeeTaxAmount + $addressBaseFeeTaxAmount
45
+ );
46
+ $quote->setInvoiceFeeRate($address->getInvoiceFeeRate());
47
+ }
48
+ }
49
+
50
+ public function salesOrderPaymentPlaceEnd(Varien_Event_Observer $observer) {
51
+ $payment = $observer->getPayment();
52
+ if (substr($payment->getMethodInstance()->getCode(), 0, 5) != 'sisow') {
53
+ return;
54
+ }
55
+
56
+ $info = $payment->getMethodInstance()->getInfoInstance();
57
+ $quote = Mage::getSingleton('checkout/session')->getQuote();
58
+ if (!$quote->getId()) {
59
+ $quote = Mage::getSingleton('adminhtml/session_quote')->getQuote();
60
+ }
61
+
62
+ //Set the payment fee included tax value
63
+ $info->setAdditionalInformation('invoice_fee', $quote->getInvoiceFee());
64
+ $info->setAdditionalInformation('base_invoice_fee', $quote->getBaseInvoiceFee());
65
+ $info->setAdditionalInformation('invoice_fee_exluding_vat', $quote->getInvoiceFeeExcludedVat());
66
+ $info->setAdditionalInformation('base_invoice_fee_exluding_vat', $quote->getBaseInvoiceFeeExcludedVat());
67
+ //Set the payment fee tax amount
68
+ $info->setAdditionalInformation('invoice_tax_amount', $quote->getInvoiceTaxAmount());
69
+ $info->setAdditionalInformation('base_invoice_tax_amount', $quote->getBaseInvoiceTaxAmount());
70
+ //Set the payment fee rate used
71
+ $info->setAdditionalInformation('invoice_fee_rate', $quote->getInvoiceFeeRate());
72
+
73
+ $info->save();
74
+ }
75
+ }
app/code/local/Sisow/Model/Observer/Sendebill.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Observer_Sendebill
3
+ {
4
+ public function sendEbill(Varien_Event_Observer $observer)
5
+ {
6
+ $order = $observer->getEvent()->getOrder();
7
+
8
+ if( $order->getPayment()->getMethodInstance()->getCode() == 'sisow_ebill')
9
+ {
10
+ $arg = array();
11
+ $base = Mage::getModel('sisow/base');
12
+
13
+ $base->payment = 'ebill';
14
+
15
+ $arg['billing_firstname'] = $order->getBillingAddress()->getFirstname();
16
+ $arg['billing_lastname'] = $order->getBillingAddress()->getLastname();
17
+ $arg['billing_mail'] = $order->getBillingAddress()->getEmail();
18
+ $arg['testmode'] = (Mage::getStoreConfig('payment/sisow_ebill/testmode')) ? 'true' : 'false';
19
+ $arg['days'] = Mage::getStoreConfig('payment/sisow_ebill/days');
20
+
21
+ $base->amount = round($order->getGrandTotal(), 2);
22
+ $base->purchaseId = $order->getCustomerId() . $order->getRealOrderId();
23
+ $base->entranceCode = $order->getRealOrderId();
24
+ $base->description = $order->getRealOrderId();
25
+
26
+ $base->notifyUrl = Mage::getUrl('sisow/checkout/notify', array('_secure' => true));
27
+ $base->returnUrl = Mage::getUrl('sisow/checkout/return', array('_secure' => true));
28
+
29
+ if( ($ex = $base->TransactionRequest($arg)) < 0)
30
+ {
31
+ Mage::getSingleton('adminhtml/session')->addError( 'Sisow error: ' . $ex . ', ' . $base->errorCode );
32
+ return $this;
33
+ }
34
+
35
+ $payment = $order->getPayment();
36
+ $comm = 'Sisow Ebill created.<br />';
37
+ $comm .= 'Transaction ID: ' . $base->trxId . '<br/>';
38
+ $st = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
39
+ $payment->setAdditionalInformation('trxId', $base->trxId)
40
+ ->setAdditionalInformation('documentId', $base->documentId)
41
+ ->setAdditionalInformation('linkPdf', $base->GetLink(''))
42
+ ->save();
43
+ $order->setState($st, $st, $comm);
44
+ $order->save();
45
+
46
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT);
47
+ $order->getPayment()->setAdditionalInformation('trxId', $base->trxId)->save();
48
+
49
+ $transaction = Mage::getModel('sales/order_payment')
50
+ ->setMethod('sisow_'.$method)
51
+ ->setTransactionId($base->trxId)
52
+ ->setIsTransactionClosed(false);
53
+
54
+ $order->setPayment($transaction);
55
+ $transaction->addTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH);
56
+ $order->save();
57
+
58
+ Mage::getSingleton('adminhtml/session')->addSuccess( 'The Ebill has been created and send to the customer.' );
59
+ }
60
+
61
+ return $this;
62
+ }
63
+ }
64
+ ?>
app/code/local/Sisow/Model/Observer/Submit.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_Model_Observer_Submit
3
+ {
4
+ public function sales_model_service_quote_submit_after(Varien_Event_Observer $observer) {
5
+ $method = $observer->getEvent()->getOrder()->getPayment()->getMethod();
6
+ if (substr($method, 0, 6) == 'sisow_') {
7
+ if (Mage::getStoreConfig('sisow_core/keepcart')) {
8
+ $observer->getQuote()->setIsActive(TRUE);
9
+ }
10
+ }
11
+ }
12
+ }
app/code/local/Sisow/Model/Paymentfee/Creditmemo/Total.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Payment fee Credit memo
4
+ *
5
+ * Class to handle the payment fee on a Credit memo
6
+ *
7
+ */
8
+
9
+ class Sisow_Model_Paymentfee_Creditmemo_Total extends Mage_Sales_Model_Order_Creditmemo_Total_Abstract
10
+ {
11
+
12
+ /**
13
+ * Collect the order total
14
+ *
15
+ * @param object $creditmemo The Creditmemo instance to collect from
16
+ *
17
+ * @return Mage_Sales_Model_Order_Creditmemo_Total_Abstract
18
+ */
19
+ public function collect(Mage_Sales_Model_Order_Creditmemo $creditmemo)
20
+ {
21
+ $method = $creditmemo->getOrder()->getPayment()->getMethodInstance();
22
+
23
+ if (substr($method->getCode(), 0, 5) != 'sisow') {
24
+ return $this;
25
+ }
26
+
27
+ $info = $method->getInfoInstance();
28
+
29
+ if (!$info) {
30
+ return $this;
31
+ }
32
+
33
+ $invoiceFee = $info->getAdditionalInformation('invoice_fee');
34
+ $baseInvoiceFee = $info->getAdditionalInformation('base_invoice_fee');
35
+
36
+ if (!$invoiceFee) {
37
+ return $this;
38
+ }
39
+
40
+ $creditmemo->setBaseGrandTotal(
41
+ ($creditmemo->getBaseGrandTotal() + $baseInvoiceFee)
42
+ );
43
+ $creditmemo->setGrandTotal(
44
+ ($creditmemo->getGrandTotal() + $invoiceFee)
45
+ );
46
+
47
+ $creditmemo->setBaseInvoiceFee($baseInvoiceFee);
48
+ $creditmemo->setInvoiceFee($invoiceFee);
49
+
50
+ $tax = $info->getAdditionalInformation('invoice_tax_amount');
51
+ $baseTax = $info->getAdditionalInformation('base_invoice_tax_amount');
52
+
53
+ if (!$tax) {
54
+ return $this;
55
+ }
56
+
57
+ $creditmemo->setBaseTaxAmount(
58
+ $creditmemo->getBaseTaxAmount() + $baseTax
59
+ );
60
+ $creditmemo->setTaxAmount(
61
+ $creditmemo->getTaxAmount() + $tax
62
+ );
63
+
64
+ return $this;
65
+ }
66
+ }
app/code/local/Sisow/Model/Paymentfee/Invoice/Pdf/Total.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Payment fee pdf
4
+ *
5
+ * Class to handle the payment fee on Invoice pdfs
6
+ *
7
+ */
8
+
9
+ class Sisow_Model_Paymentfee_Invoice_Pdf_Total extends Mage_Sales_Model_Order_Pdf_Total_Default
10
+ {
11
+
12
+ /**
13
+ * Get array of arrays with totals information
14
+ *
15
+ * @return array
16
+ */
17
+ public function getTotalsForDisplay()
18
+ {
19
+ $fee = $this->getAmount();
20
+ $order = $this->getOrder();
21
+ $incl = $order->formatPriceTxt($fee['incl']);
22
+ $excl = $order->formatPriceTxt($fee['excl']);
23
+ if ($this->getAmountPrefix()) {
24
+ $incl = $this->getAmountPrefix() . $incl;
25
+ $excl = $this->getAmountPrefix() . $excl;
26
+ }
27
+
28
+ //Mage::log($order->getTaxAmount(), null, 'sisow.log');
29
+ //Mage::log('excl: ' . $excl, null, 'sisow.log');
30
+
31
+ $storeId = Mage::app()->getStore()->getId();
32
+ $vatOption = Mage::getStoreConfig("tax/sales_display/shipping", $storeId);
33
+ $fontSize = $this->getFontSize() ? $this->getFontSize() : 7;
34
+ $label = Mage::getStoreConfig('payment/'.$order->getPayment()->getMethod().'/payment_fee_label');
35
+ $totals = array();
36
+ /**
37
+ * 1 : Show exluding tax
38
+ * 2 : Show including tax
39
+ * 3 : Show both
40
+ */
41
+ if ($vatOption == '1' || $vatOption == '3') {
42
+ $total = array(
43
+ 'amount' => $excl,
44
+ 'font_size' => $fontSize
45
+ );
46
+ $exclLabel = $label;
47
+ if ($vatOption == '3') {
48
+ $exclLabel .= ' (Excl.Tax)';
49
+ }
50
+ $exclLabel .= ":";
51
+
52
+ $total['label'] = $exclLabel;
53
+ $totals[] = $total;
54
+ }
55
+ if ($vatOption == '2' || $vatOption == '3') {
56
+ $total = array(
57
+ 'amount' => $incl,
58
+ 'font_size' => $fontSize
59
+ );
60
+ $inclLabel = $label;
61
+ if ($vatOption == '3') {
62
+ $inclLabel .= ' (Incl.Tax)';
63
+ }
64
+ $inclLabel .= ":";
65
+ $total['label'] = $inclLabel;
66
+ $totals[] = $total;
67
+ }
68
+
69
+ return $totals;
70
+ }
71
+
72
+ /**
73
+ * Check if we can display total information in PDF
74
+ *
75
+ * @return bool
76
+ */
77
+ public function canDisplay()
78
+ {
79
+ $amount = $this->getAmount();
80
+ return ($amount["incl"] !== 0);
81
+ }
82
+
83
+ /**
84
+ * Get Total amount from source
85
+ *
86
+ * @return array
87
+ */
88
+ public function getAmount()
89
+ {
90
+ $payment = $this->getOrder()->getPayment();
91
+ $incl = $payment->getAdditionalInformation("invoice_fee");
92
+ $excl = $payment->getAdditionalInformation("invoice_fee_exluding_vat");
93
+ return array(
94
+ 'incl' => ($incl ? $incl : 0),
95
+ 'excl' => ($excl ? $excl : 0)
96
+ );
97
+ }
98
+
99
+ }
app/code/local/Sisow/Model/Paymentfee/Invoice/Tax.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //Kopie van app/code/core/mages/sales/model/order/invoice/total/tax.php
3
+
4
+
5
+ class Sisow_Model_Paymentfee_Invoice_Tax extends Mage_Sales_Model_Order_Invoice_Total_Abstract
6
+ {
7
+ /**
8
+ * Collect invoice tax amount
9
+ *
10
+ * @param Mage_Sales_Model_Order_Invoice $invoice
11
+ * @return Mage_Sales_Model_Order_Invoice_Total_Tax
12
+ */
13
+ public function collect(Mage_Sales_Model_Order_Invoice $invoice)
14
+ {
15
+ $totalTax = 0;
16
+ $baseTotalTax = 0;
17
+ $totalHiddenTax = 0;
18
+ $baseTotalHiddenTax = 0;
19
+
20
+ $order = $invoice->getOrder();
21
+
22
+ /** @var $item Mage_Sales_Model_Order_Invoice_Item */
23
+ foreach ($invoice->getAllItems() as $item) {
24
+ $orderItem = $item->getOrderItem();
25
+ $orderItemQty = $orderItem->getQtyOrdered();
26
+
27
+ if ($orderItem->getTaxAmount() && $orderItemQty) {
28
+ if ($item->getOrderItem()->isDummy()) {
29
+ continue;
30
+ }
31
+
32
+ /**
33
+ * Resolve rounding problems
34
+ */
35
+ $tax = $orderItem->getTaxAmount() - $orderItem->getTaxInvoiced();
36
+ $baseTax = $orderItem->getBaseTaxAmount() - $orderItem->getBaseTaxInvoiced();
37
+ $hiddenTax = $orderItem->getHiddenTaxAmount() - $orderItem->getHiddenTaxInvoiced();
38
+ $baseHiddenTax = $orderItem->getBaseHiddenTaxAmount() - $orderItem->getBaseHiddenTaxInvoiced();
39
+ if (!$item->isLast()) {
40
+ $availableQty = $orderItemQty - $orderItem->getQtyInvoiced();
41
+ $tax = $invoice->roundPrice($tax / $availableQty * $item->getQty());
42
+ $baseTax = $invoice->roundPrice($baseTax / $availableQty * $item->getQty(), 'base');
43
+ $hiddenTax = $invoice->roundPrice($hiddenTax / $availableQty * $item->getQty());
44
+ $baseHiddenTax = $invoice->roundPrice($baseHiddenTax / $availableQty * $item->getQty(), 'base');
45
+ }
46
+
47
+ $item->setTaxAmount($tax);
48
+ $item->setBaseTaxAmount($baseTax);
49
+ $item->setHiddenTaxAmount($hiddenTax);
50
+ $item->setBaseHiddenTaxAmount($baseHiddenTax);
51
+
52
+ $totalTax += $tax;
53
+ $baseTotalTax += $baseTax;
54
+ $totalHiddenTax += $hiddenTax;
55
+ $baseTotalHiddenTax += $baseHiddenTax;
56
+ }
57
+ }
58
+
59
+ if ($this->_canIncludeShipping($invoice)) {
60
+ $totalTax += $order->getShippingTaxAmount();
61
+ $baseTotalTax += $order->getBaseShippingTaxAmount();
62
+ $totalHiddenTax += $order->getShippingHiddenTaxAmount();
63
+ $baseTotalHiddenTax += $order->getBaseShippingHiddenTaxAmount();
64
+ $invoice->setShippingTaxAmount($order->getShippingTaxAmount());
65
+ $invoice->setBaseShippingTaxAmount($order->getBaseShippingTaxAmount());
66
+ $invoice->setShippingHiddenTaxAmount($order->getShippingHiddenTaxAmount());
67
+ $invoice->setBaseShippingHiddenTaxAmount($order->getBaseShippingHiddenTaxAmount());
68
+ }
69
+ $allowedTax = $order->getTaxAmount() - $order->getTaxInvoiced();
70
+ $allowedBaseTax = $order->getBaseTaxAmount() - $order->getBaseTaxInvoiced();;
71
+ $allowedHiddenTax = $order->getHiddenTaxAmount() + $order->getShippingHiddenTaxAmount()
72
+ - $order->getHiddenTaxInvoiced() - $order->getShippingHiddenTaxInvoiced();
73
+ $allowedBaseHiddenTax = $order->getBaseHiddenTaxAmount() + $order->getBaseShippingHiddenTaxAmount()
74
+ - $order->getBaseHiddenTaxInvoiced() - $order->getBaseShippingHiddenTaxInvoiced();
75
+
76
+ if ($invoice->isLast()) {
77
+ $totalTax = $allowedTax;
78
+ $baseTotalTax = $allowedBaseTax;
79
+ $totalHiddenTax = $allowedHiddenTax;
80
+ $baseTotalHiddenTax = $allowedBaseHiddenTax;
81
+ } else {
82
+ $totalTax = min($allowedTax, $totalTax);
83
+ $baseTotalTax = min($allowedBaseTax, $baseTotalTax);
84
+ $totalHiddenTax = min($allowedHiddenTax, $totalHiddenTax);
85
+ $baseTotalHiddenTax = min($allowedBaseHiddenTax, $baseTotalHiddenTax);
86
+ }
87
+
88
+ $info = $order->getPayment()->getMethodInstance()->getInfoInstance();
89
+
90
+ $invoice->setTaxAmount($totalTax + $info->getAdditionalInformation('invoice_tax_amount'));
91
+ $invoice->setBaseTaxAmount($baseTotalTax + $info->getAdditionalInformation('base_invoice_tax_amount'));
92
+ //$invoice->setHiddenTaxAmount($totalHiddenTax + $info->getAdditionalInformation('invoice_tax_amount'));
93
+ //$invoice->setBaseHiddenTaxAmount($baseTotalHiddenTax + $info->getAdditionalInformation('base_invoice_tax_amount'));
94
+
95
+ $invoice->setGrandTotal($invoice->getGrandTotal() + $totalTax + $totalHiddenTax + $info->getAdditionalInformation('base_invoice_tax_amount'));
96
+ $invoice->setBaseGrandTotal($invoice->getBaseGrandTotal() + $baseTotalTax + $baseTotalHiddenTax + $info->getAdditionalInformation('base_invoice_tax_amount'));
97
+
98
+ return $this;
99
+ }
100
+
101
+ /**
102
+ * Check if shipping tax calculation can be included to current invoice
103
+ * @param Mage_Sales_Model_Order_Invoice $invoice
104
+ * @return boolean
105
+ */
106
+ protected function _canIncludeShipping($invoice)
107
+ {
108
+ $includeShippingTax = true;
109
+ /**
110
+ * Check shipping amount in previous invoices
111
+ */
112
+ foreach ($invoice->getOrder()->getInvoiceCollection() as $previusInvoice) {
113
+ if ($previusInvoice->getShippingAmount() && !$previusInvoice->isCanceled()) {
114
+ $includeShippingTax = false;
115
+ }
116
+ }
117
+ return $includeShippingTax;
118
+ }
119
+ }
app/code/local/Sisow/Model/Paymentfee/Invoice/Total.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Payment fee on order invoice
4
+ *
5
+ * Class to handle the payment fee on a order Invoice pdf
6
+ *
7
+ */
8
+
9
+ class Sisow_Model_Paymentfee_Invoice_Total extends Mage_Sales_Model_Order_Invoice_Total_Abstract
10
+ {
11
+
12
+ /**
13
+ * Collect the order total
14
+ *
15
+ * @param object $invoice The invoice instance to collect from
16
+ *
17
+ * @return Mage_Sales_Model_Order_Invoice_Total_Abstract
18
+ */
19
+ public function collect(Mage_Sales_Model_Order_Invoice $invoice)
20
+ {
21
+ $order = $invoice->getOrder();
22
+ $method = $order->getPayment()->getMethodInstance();
23
+
24
+ if (substr($method->getCode(),0 , 5) != 'sisow') {
25
+ return $this;
26
+ }
27
+
28
+ // Only collect the invoice fee if we do not have any recent invoices
29
+ if ($invoice->getOrder()->hasInvoices() != 0) {
30
+ return $this;
31
+ }
32
+
33
+ $info = $method->getInfoInstance();
34
+
35
+ if (!$info) {
36
+ return $this;
37
+ }
38
+
39
+ $invoiceFee = $info->getAdditionalInformation('invoice_fee');
40
+ $baseInvoiceFee = $info->getAdditionalInformation('base_invoice_fee');
41
+ $invoiceFeeExludingVat = $info->getAdditionalInformation('invoice_fee_exluding_vat');
42
+ $baseInvoiceFeeExludingVat = $info->getAdditionalInformation('base_invoice_fee_exluding_vat');
43
+
44
+ if (!$invoiceFee) {
45
+ return $this;
46
+ }
47
+
48
+ if ($invoice->isLast()) {
49
+ //The tax for our invoice fee is already applied to the grand total
50
+ //at this point, so we only need to add the remaining amount
51
+ $invoice->setBaseGrandTotal(
52
+ $invoice->getBaseGrandTotal() + $baseInvoiceFeeExludingVat
53
+ );
54
+ $invoice->setGrandTotal(
55
+ $invoice->getGrandTotal() + $invoiceFeeExludingVat
56
+ );
57
+ } else {
58
+ //Our tax doesn't get picked up by the parent function so we need
59
+ //to add our complete invoice fee
60
+ $invoice->setBaseGrandTotal(
61
+ $invoice->getBaseGrandTotal() + $baseInvoiceFee
62
+ );
63
+ $invoice->setGrandTotal($invoice->getGrandTotal() + $invoiceFee);
64
+ }
65
+
66
+ $invoice->setBaseInvoiceFee($baseInvoiceFee);
67
+ $invoice->setInvoiceFee($invoiceFee);
68
+
69
+ $order->setBaseInvoiceFeeInvoiced($invoiceFeeExludingVat);
70
+ $order->setInvoiceFeeInvoiced($invoiceFee);
71
+
72
+ return $this;
73
+ }
74
+
75
+ }
app/code/local/Sisow/Model/Paymentfee/Quote/Quote.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Payment fee totals quote
4
+ *
5
+ * Class to handle the payment fee totals quote
6
+ *
7
+ */
8
+
9
+ class Sisow_Model_Paymentfee_Quote_Quote extends Mage_Sales_Model_Quote
10
+ {
11
+ /**
12
+ * Get all quote totals
13
+ *
14
+ * We need to remove a sisow_tax line that is created from
15
+ * one of our models. Otherwise there will be two tax lines in the
16
+ * checkout
17
+ *
18
+ * @return array
19
+ */
20
+ public function getTotals()
21
+ {
22
+ $totals = parent::getTotals();
23
+ unset($totals['sisow_tax']);
24
+ $totalsIndex = array_keys($totals);
25
+ if (array_search('sisow_fee', $totalsIndex) === false) {
26
+ return $totals;
27
+ }
28
+ unset($totalsIndex[array_search('sisow_fee', $totalsIndex)]);
29
+ $fee = $totals['sisow_fee'];
30
+ unset($totals['sisow_fee']);
31
+
32
+ $feeIndex = array_search('shipping', $totalsIndex);
33
+ if ($feeIndex === false) {
34
+ $feeIndex = array_search('subtotal', $totalsIndex)+1;
35
+ }
36
+
37
+ $sortedTotals = array();
38
+ $size = count($totalsIndex);
39
+ for ($i=0; $i<$size; $i++) {
40
+ if ($i == $feeIndex) {
41
+ $sortedTotals['sisow_fee'] = $fee;
42
+ }
43
+ $sortedTotals[array_shift($totalsIndex)] = array_shift($totals);
44
+ }
45
+
46
+ return $sortedTotals;
47
+ }
48
+
49
+ }
50
+
51
+
app/code/local/Sisow/Model/Paymentfee/Quote/TaxTotal.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Payment fee tax address quote
4
+ *
5
+ * Class to handle the payment fee tax on a address quote
6
+ *
7
+ */
8
+
9
+ class Sisow_Model_Paymentfee_Quote_TaxTotal extends Mage_Sales_Model_Quote_Address_Total_Tax
10
+ {
11
+
12
+ /**
13
+ * Collect the order total
14
+ *
15
+ * @param object $address The address instance to collect from
16
+ *
17
+ * @return Sisow_Model_Quote_TaxTotal
18
+ */
19
+ public function collect(Mage_Sales_Model_Quote_Address $address)
20
+ {
21
+ $quote = $address->getQuote();
22
+ if (($quote->getId() == null)
23
+ || ($address->getAddressType() != "shipping")
24
+ ) {
25
+ return $this;
26
+ }
27
+
28
+ $payment = $quote->getPayment();
29
+
30
+ if ((substr($payment->getMethod(),0 , 6) != 'sisow_')
31
+ && (!count($quote->getPaymentsCollection())
32
+ || (!$payment->hasMethodInstance()))
33
+ ) {
34
+ return $this;
35
+ }
36
+
37
+ $methodInstance = $payment->getMethodInstance();
38
+
39
+ if (substr($methodInstance->getCode(), 0 ,6) != 'sisow_') {
40
+ return $this;
41
+ }
42
+
43
+ $helper = Mage::helper('sisow/paymentfee');
44
+
45
+ $fee = $helper->getPaymentFeeArray(
46
+ $methodInstance->getCode(),
47
+ $quote
48
+ );
49
+
50
+ if (!is_array($fee)) {
51
+ return $this;
52
+ }
53
+
54
+ $address->setTaxAmount($address->getTaxAmount() + $fee['taxamount']);
55
+ $address->setBaseTaxAmount(
56
+ $address->getBaseTaxAmount() + $fee['base_taxamount']
57
+ );
58
+
59
+ $address->setInvoiceTaxAmount($fee['taxamount']);
60
+ $address->setBaseInvoiceTaxAmount($fee['base_taxamount']);
61
+
62
+ return $this;
63
+ }
64
+
65
+ }
app/code/local/Sisow/Model/Paymentfee/Quote/Total.php ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Payment fee address quote
4
+ *
5
+ * Class to handle the payment fee on a address quote
6
+ *
7
+ */
8
+
9
+ class Sisow_Model_Paymentfee_Quote_Total extends Mage_Sales_Model_Quote_Address_Total_Abstract
10
+ {
11
+
12
+ protected $address;
13
+
14
+ protected $paymentMethod;
15
+
16
+ /**
17
+ * Collect the order total
18
+ *
19
+ * @param object $address The address instance to collect from
20
+ *
21
+ * @return Sisow_Model_Quote_Total
22
+ */
23
+ public function collect(Mage_Sales_Model_Quote_Address $address)
24
+ {
25
+ if ($address->getAddressType() != "shipping") {
26
+ return $this;
27
+ }
28
+
29
+ $this->address = $address;
30
+ $this->quote = $address->getQuote();
31
+ $this->payment = $this->quote->getPayment();
32
+
33
+ if ((substr($this->payment->getMethod(),0 , 6) != 'sisow_'))
34
+ {
35
+ return $this;
36
+ }
37
+
38
+ $this->_resetValues();
39
+
40
+ if ($this->address->getQuote()->getId() == null) {
41
+ return $this;
42
+ }
43
+
44
+ $items = $this->address->getAllItems();
45
+ if (!count($items)) {
46
+ return $this;
47
+ }
48
+
49
+
50
+ if ($this->payment->hasMethodInstance()) {
51
+ $this->paymentMethod = $this->payment->getMethodInstance();
52
+ if (substr($this->paymentMethod->getCode(), 0, 6) == 'sisow_') {
53
+ $this->_initInvoiceFee();
54
+ }
55
+ }
56
+ }
57
+
58
+ /**
59
+ * Reset the invoice fee variables
60
+ *
61
+ * @return void
62
+ */
63
+ private function _resetValues()
64
+ {
65
+ $this->address->setInvoiceFee(0);
66
+ $this->address->setBaseInvoiceFee(0);
67
+ $this->address->setInvoiceFeeExcludedVat(0);
68
+ $this->address->setBaseInvoiceFeeExcludedVat(0);
69
+ $this->address->setInvoiceTaxAmount(0);
70
+ $this->address->setBaseInvoiceTaxAmount(0);
71
+ $this->address->setInvoiceFeeRate(0);
72
+ }
73
+
74
+ /**
75
+ * Initialize the invoice fee variables on the address instance
76
+ *
77
+ * @return void
78
+ */
79
+ private function _initInvoiceFee()
80
+ {
81
+ $helper = Mage::helper('sisow/paymentfee');
82
+ $fee = $helper->getPaymentFeeArray(
83
+ $this->payment->getMethodInstance()->getCode(),
84
+ $this->quote
85
+ );
86
+
87
+ $this->address->setBaseInvoiceFee($fee['base_incl']);
88
+ $this->address->setInvoiceFee($fee['incl']);
89
+ $this->address->setBaseInvoiceFeeExcludedVat($fee['base_excl']);
90
+ $this->address->setInvoiceFeeExcludedVat($fee['excl']);
91
+ $this->address->setBaseInvoiceTaxAmount($fee['base_taxamount']);
92
+ $this->address->setInvoiceTaxAmount($fee['taxamount']);
93
+ $this->address->setInvoiceFeeRate($fee['rate']);
94
+
95
+ // Add our invoice fee to the address totals
96
+ $this->address->setBaseGrandTotal(
97
+ $this->address->getBaseGrandTotal() + $fee['base_incl']
98
+ );
99
+ $this->address->setGrandTotal(
100
+ $this->address->getGrandTotal() + $fee['incl']
101
+ );
102
+ }
103
+
104
+ /**
105
+ * Add invoice fee total information to address
106
+ *
107
+ * @param object $address The address instance
108
+ *
109
+ * @return Sisow_Model_Quote_Total
110
+ */
111
+ public function fetch(Mage_Sales_Model_Quote_Address $address)
112
+ {
113
+ if ($address->getAddressType() != "shipping") {
114
+ return $this;
115
+ }
116
+ $excl = $address->getInvoiceFeeExcludedVat();
117
+ $incl = $address->getInvoiceFee();
118
+ //$lang = Mage::helper('klarnaPaymentModule/lang');
119
+ $country = $address->getCountry();
120
+ $storeId = Mage::app()->getStore()->getId();
121
+
122
+ $isOSCEnabled = Mage::getStoreConfig('onestepcheckout/general/rewrite_checkout_links', $storeId);
123
+ if ($isOSCEnabled) {
124
+ $OSCDisplayAmountsInclTax = Mage::getStoreConfig('onestepcheckout/general/display_tax_included', $storeId);
125
+ $value = ($OSCDisplayAmountsInclTax ? $incl : $excl);
126
+ } else {
127
+ $value = $incl;
128
+ }
129
+
130
+ if ($value != 0) {
131
+ $address->addTotal(
132
+ array(
133
+ 'code' => $this->getCode(),
134
+ 'title' => Mage::getStoreConfig('payment/'.$this->payment->getMethodInstance()->getCode().'/payment_fee_label'),
135
+ 'value' => $value
136
+ )
137
+ );
138
+ }
139
+ return $this;
140
+ }
141
+
142
+ }
app/code/local/Sisow/controllers/CheckoutController.php ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sisow_CheckoutController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function redirectAction()
5
+ {
6
+ $this->getResponse()
7
+ ->setHeader('Content-type', 'text/html; charset=utf8')
8
+ ->setBody($this->getLayout()->createBlock('sisow/redirect')->toHtml());
9
+ }
10
+
11
+ public function returnAction()
12
+ {
13
+ if ($_GET['status'] == 'Success') {
14
+ Mage::getSingleton('checkout/session')->getQuote()->setIsActive(false)->save();
15
+
16
+ foreach (Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection() as $item ) {
17
+ Mage::getSingleton('checkout/cart')->removeItem( $item->getId() )->save();
18
+ }
19
+
20
+ return $this->_redirect("checkout/onepage/success", array("_secure" => true));
21
+ } else {
22
+ Mage::getSingleton('core/session')->addError('Betaling niet gelukt');
23
+
24
+ return $this->_redirect('checkout/cart', array("_secure" => true));
25
+ }
26
+ }
27
+
28
+ public function successAction()
29
+ {
30
+ foreach (Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection() as $item ) {
31
+ Mage::getSingleton('checkout/cart')->removeItem( $item->getId() )->save();
32
+ }
33
+ return $this->_redirect('checkout/onepage/success');
34
+ }
35
+
36
+ public function notifyAction()
37
+ {
38
+ $orderid = $_GET['ec'];
39
+ $trxid = $_GET['trxid'];
40
+ $status = $_GET['status'];
41
+ $sha1 = $_GET['sha1'];
42
+
43
+ /*
44
+ * Sisow
45
+ * Last Adjustment: 12-02-2014
46
+ * Url Check for Notify URL
47
+ */
48
+ if($orderid == '' || $trxid == '' || $status == '' || $sha1 == '' || (!isset($_GET['notify']) && !isset($_GET['callback'])) )
49
+ {
50
+ echo 'No Notify Url';
51
+ Mage::log($orderid . ': Incorrect NotifyUrl (request uri: '.$_SERVER['REQUEST_URI'].')', null, 'log_sisow.log');
52
+ exit;
53
+ }
54
+
55
+ $sha = sha1($trxid . $orderid . $status . Mage::getStoreConfig('sisow_core/merchantid') . Mage::getStoreConfig('sisow_core/merchantkey'));
56
+
57
+ if($sha != $_GET['sha1'])
58
+ {
59
+ echo 'Incorrect URL';
60
+ Mage::log($orderid . ": NotifyUrl couldn't be authorised (request uri: ".$_SERVER['REQUEST_URI'].')', null, 'log_sisow.log');
61
+ exit;
62
+ }
63
+
64
+ /*
65
+ * Sisow
66
+ * Last Adjustment: 12-02-2014
67
+ * Loading Order, Sisow status and TransactionId
68
+ */
69
+ $order = Mage::getModel('sales/order')->loadByIncrementId($orderid);
70
+ $payment = $order->getPayment();
71
+
72
+ if (method_exists($payment, 'getAdditionalInformation')) {
73
+ $trxid = $payment->getAdditionalInformation('trxId');
74
+ }
75
+ $trxid = (isset($trxid) && $trxid != '') ? $trxid : filter_input(INPUT_GET, 'trxid');
76
+
77
+ $base = Mage::getModel('sisow/base');
78
+ $base->shopId = Mage::getStoreConfig('sisow_core/shopid');
79
+
80
+ if(($ex = $base->StatusRequest($trxid)) < 0)
81
+ {
82
+ echo 'statusrequest failed';
83
+ Mage::log($orderid . ': Sisow StatusRequest failed('.$ex.', '.$base->errorCode.', '.$base->errorMessage.')', null, 'log_sisow.log');
84
+ exit;
85
+ }
86
+
87
+ /*
88
+ * Sisow
89
+ * Last Adjustment: 12-02-2014
90
+ * Check Order state
91
+ * When order is processed, exit
92
+ */
93
+ $ostate = $order->getState();
94
+ $ostatus = $order->getStatus();
95
+
96
+ if ($ostate == Mage_Sales_Model_Order::STATE_PROCESSING && $ostatus == Mage::getStoreConfig('sisow_core/status_success') && $base->status != 'Reversed' && $base->status != 'Refunded' && $base->status != 'Success')
97
+ {
98
+ echo 'Order state & order status already processed';
99
+ Mage::log($orderid . ': Order state & order status already processed.', null, 'log_sisow.log');
100
+ exit;
101
+ }
102
+
103
+ /*
104
+ * Sisow
105
+ * Last Adjustment: 12-02-2014
106
+ * Process order
107
+ */
108
+ if ($base->status == "Pending" || $base->status == "Open") {
109
+ echo 'Order still Open/Pending.';
110
+ exit;
111
+ }
112
+
113
+ if(is_object($payment))
114
+ {
115
+ if(Mage::helper("sisow")->GetNewMailConfig($payment->getMethodInstance()->getCode()) == "after_notify_with_cancel")
116
+ $order->sendNewOrderEmail();
117
+ }
118
+ $mState = Mage_Sales_Model_Order::STATE_CANCELED;
119
+ $mStatus = true;
120
+ $comm = "Betaling gecontroleerd door Sisow.<br />";
121
+ switch ($base->status) {
122
+ case "Success":
123
+ if(Mage::helper("sisow")->GetNewMailConfig($payment->getMethodInstance()->getCode()) == "after_notify_without_cancel")
124
+ $order->sendNewOrderEmail();
125
+
126
+ if( $payment->getMethodInstance()->getCode() == 'sisow_overboeking' )
127
+ $base->trxId = $_GET['trxid'];
128
+
129
+ $mState = Mage_Sales_Model_Order::STATE_PROCESSING;
130
+ $mStatus = Mage::getStoreConfig('sisow_core/status_success');
131
+ if (!$mStatus) {
132
+ $mStatus = Mage_Sales_Model_Order::STATE_PROCESSING;
133
+ }
134
+ $comm .= "Transaction ID: " . $base->trxId . "<br />";
135
+ $info = $order->getPayment()->getMethodInstance()->getInfoInstance();
136
+ $info->setAdditionalInformation('trxid', $base->trxId );
137
+
138
+ if ($base->consumerName) {
139
+ $info->setAdditionalInformation('consumerName', $base->consumerName );
140
+ $info->setAdditionalInformation('consumerIban', $base->consumerIban );
141
+ $info->setAdditionalInformation('consumerBic', $base->consumerBic);
142
+ }
143
+ $info->save();
144
+ break;
145
+ case "Paid":
146
+ if( $payment->getMethodInstance()->getCode() == 'sisow_overboeking' )
147
+ $base->trxId = $_GET['trxid'];
148
+
149
+ $mState = Mage_Sales_Model_Order::STATE_PROCESSING;
150
+ $mStatus = Mage::getStoreConfig('sisow_core/status_success');
151
+ if (!$mStatus) {
152
+ $mStatus = Mage_Sales_Model_Order::STATE_PROCESSING;
153
+ }
154
+ $comm .= "Transaction ID: " . $base->trxId . "<br />";
155
+
156
+ $info = $order->getPayment()->getMethodInstance()->getInfoInstance();
157
+ $info->setAdditionalInformation('trxid', $base->trxId );
158
+
159
+ if ($base->consumerName) {
160
+ $info->setAdditionalInformation('consumerName', $base->consumerName );
161
+ $info->setAdditionalInformation('consumerIban', $base->consumerIban );
162
+ $info->setAdditionalInformation('consumerBic', $base->consumerBic);
163
+ }
164
+ $info->save();
165
+ break;
166
+ case "Cancelled":
167
+ $mStatus = Mage::getStoreConfig('sisow_core/status_cancelled');
168
+ if (!$mStatus) {
169
+ $mStatus = Mage_Sales_Model_Order::STATE_CANCELED;
170
+ }
171
+ $comm .= "Betaling geannuleerd (Cancelled).";
172
+ break;
173
+ case "Reversed":
174
+ $mStatus = Mage::getStoreConfig('sisow_core/status_cancelled');
175
+ if (!$mStatus) {
176
+ $mStatus = Mage_Sales_Model_Order::STATE_CANCELED;
177
+ }
178
+ $comm .= "Betaling geannuleerd (reversed).";
179
+ break;
180
+ case "Refunded":
181
+ $mStatus = Mage::getStoreConfig('sisow_core/status_cancelled');
182
+ if (!$mStatus) {
183
+ $mStatus = Mage_Sales_Model_Order::STATE_CANCELED;
184
+ }
185
+ $comm .= "Betaling geannuleerd (refunded).";
186
+ break;
187
+ case "Expired":
188
+ $mStatus = Mage::getStoreConfig('sisow_core/status_expired');
189
+ if (!$mStatus) {
190
+ $mStatus = Mage_Sales_Model_Order::STATE_CANCELED;
191
+ }
192
+ $comm .= "Betaling verlopen (Expired).";
193
+ break;
194
+ case "Failure":
195
+ $mStatus = Mage::getStoreConfig('sisow_core/status_failure');
196
+ if (!$mStatus) {
197
+ $mStatus = Mage_Sales_Model_Order::STATE_CANCELED;
198
+ }
199
+ $comm .= "Fout in netwerk (Failure).";
200
+ break;
201
+ case "PendingKlarna":
202
+ return;
203
+ case "Reservation":
204
+ if ($payment && ($payment->getMethod() == 'sisowklarna' || $payment->getMethod() == 'sisowklaacc')) {
205
+ $comm = 'Klarna reservation created.<br />';
206
+ $mState = Mage_Sales_Model_Order::STATE_PROCESSING;
207
+ $mStatus = Mage::getStoreConfig('sisow_core/status_reservation');
208
+ if (!$mStatus) {
209
+ $mStatus = Mage_Sales_Model_Order::STATE_PROCESSING;
210
+ }
211
+
212
+ $info = $order->getPayment()->getMethodInstance()->getInfoInstance();
213
+ $info->setAdditionalInformation('trxid', $base->trxId );
214
+ $info->save();
215
+ }
216
+ }
217
+
218
+ $payment_transaction = Mage::getModel('sales/order_payment')
219
+ ->setMethod($order->getPayment())
220
+ ->setTransactionId($base->trxId)
221
+ ->setIsTransactionClosed(true);
222
+
223
+ $order->setPayment($payment_transaction);
224
+
225
+ if( strpos($payment->getMethod(), 'klarna') )
226
+ $mail = 0;
227
+ else
228
+ $mail = (Mage::getStoreConfig('payment/'.$payment->getMethod().'/autoinvoice') > 0) ? Mage::getStoreConfig('payment/'.$payment->getMethod().'/autoinvoice') : Mage::getStoreConfig('sisow_core/autoinvoice');
229
+
230
+ if ($mState == Mage_Sales_Model_Order::STATE_CANCELED) {
231
+ $order->cancel();
232
+ $order->setState($mState, $mStatus, $comm, true);
233
+ $payment_transaction->addTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID);
234
+
235
+ if ($notify) {
236
+ echo '$order->setState(' . $mState . ', ' . $mStatus . ', ' . $comm . ')';
237
+ }
238
+ } elseif ($mState !== null && ($mState != $ostate || $mStatus != $ostate)) {
239
+ if($mail == 1)
240
+ {
241
+ $order->setState($mState, $mStatus, $comm, true);
242
+ $payment_transaction->addTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE);
243
+ echo '$order->setState(' . $mState . ', ' . $mStatus . ', ' . $comm . ')';
244
+ }
245
+ }
246
+
247
+ //$order->save();
248
+ if($mail > 1)
249
+ {
250
+ if ($order->canInvoice()) {
251
+ $invoice = $order->prepareInvoice();
252
+ $invoice->register()->capture();
253
+ $invoice->setTransactionId($trxid);
254
+ Mage::getModel('core/resource_transaction')
255
+ ->addObject($invoice)
256
+ ->addObject($invoice->getOrder())
257
+ ->save();
258
+
259
+ if ($mail == 3) {
260
+ $invoice->sendEmail();
261
+ $invoice->setEmailSent(true);
262
+ }
263
+ $invoice->save();
264
+ echo 'Invoice created!';
265
+ }
266
+ else
267
+ {
268
+ echo 'Can\'t create Invoice!';
269
+ }
270
+ }
271
+ $order->save();
272
+
273
+ exit;
274
+ }
275
+ }
276
+ ?>
app/code/local/Sisow/controllers/NotifyController.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Sisow_NotifyController extends Mage_Core_Controller_Front_Action {
4
+ {
5
+ public function Sisow_NotifyController()
6
+ {
7
+ echo 'test2';
8
+ exit;
9
+ }
10
+
11
+ public function indexAction()
12
+ {
13
+ echo 'test';
14
+ exit;
15
+ }
16
+ }
17
+
18
+ ?>
app/code/local/Sisow/etc/config.xml ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <global>
4
+ <models>
5
+ <sisow>
6
+ <class>Sisow_Model</class>
7
+ </sisow>
8
+ <sisow_base>
9
+ <class>Sisow_Model_Base</class>
10
+ </sisow_base>
11
+ <sales>
12
+ <rewrite>Mage_Sales_Model_Order_Payment
13
+ <quote>Sisow_Model_Paymentfee_Quote_Quote</quote>
14
+ <order_invoice_total_tax>Sisow_Model_Paymentfee_Invoice_Tax</order_invoice_total_tax>
15
+ </rewrite>
16
+ </sales>
17
+ </models>
18
+ <helpers>
19
+ <sisow>
20
+ <class>Sisow_Helper</class>
21
+ </sisow>
22
+ </helpers>
23
+ <blocks>
24
+ <sisow>
25
+ <class>Sisow_Block</class>
26
+ </sisow>
27
+ <adminhtml>
28
+ <rewrite>
29
+ <sales_order_totals>Sisow_Block_Paymentfee_Adminhtml_Sales_Order_Totals</sales_order_totals>
30
+ <sales_order_invoice_totals>Sisow_Block_Paymentfee_Adminhtml_Sales_Order_Totals</sales_order_invoice_totals>
31
+ <sales_order_creditmemo_totals>Sisow_Block_Paymentfee_Creditmemo_Totals</sales_order_creditmemo_totals>
32
+ </rewrite>
33
+ </adminhtml>
34
+ <sales>
35
+ <rewrite>
36
+ <order_creditmemo_totals>Sisow_Block_Paymentfee_Creditmemo_Totals</order_creditmemo_totals>
37
+ <order_invoice_totals>Sisow_Block_Paymentfee_Invoice_Totals_Fee</order_invoice_totals>
38
+ <order_totals>Sisow_Block_Paymentfee_Order_Totals_Fee</order_totals>
39
+ </rewrite>
40
+ </sales>
41
+ </blocks>
42
+ <resources>
43
+ <sisow_setup>
44
+ <setup>
45
+ <module>Sisow</module>
46
+ </setup>
47
+ <connection>
48
+ <use>core_setup</use>
49
+ </connection>
50
+ </sisow_setup>
51
+ <sisow_write>
52
+ <connection>
53
+ <use>core_write</use>
54
+ </connection>
55
+ </sisow_write>
56
+ <sisow_read>
57
+ <connection>
58
+ <use>core_read</use>
59
+ </connection>
60
+ </sisow_read>
61
+ </resources>
62
+ <sales>
63
+ <quote>
64
+ <totals>
65
+ <sisow_fee>
66
+ <class>sisow/paymentfee_quote_total</class>
67
+ <after>subtotal,discount,shipping</after>
68
+ <before>tax,grand_total</before>
69
+ <renderer>sisow/paymentfee_checkout_fee</renderer>
70
+ </sisow_fee>
71
+ <sisow_tax>
72
+ <class>sisow/paymentfee_quote_taxTotal</class>
73
+ <after>subtotal,discount,shipping,tax</after>
74
+ <before>grand_total</before>
75
+ </sisow_tax>
76
+ </totals>
77
+ </quote>
78
+ <order_creditmemo>
79
+ <totals>
80
+ <sisow_total>
81
+ <class>sisow/paymentfee_creditmemo_total</class>
82
+ </sisow_total>
83
+ </totals>
84
+ </order_creditmemo>
85
+ <order_invoice>
86
+ <totals>
87
+ <sisow_total>
88
+ <class>sisow/paymentfee_invoice_total</class>
89
+ </sisow_total>
90
+ </totals>
91
+ </order_invoice>
92
+ </sales>
93
+ <pdf>
94
+ <totals>
95
+ <invoice_fee translate="title">
96
+ <title>Invoice fee</title>
97
+ <source_field>sisow</source_field>
98
+ <font_size>7</font_size>
99
+ <display_zero>1</display_zero>
100
+ <sort_order>550</sort_order>
101
+ <model>sisow/paymentfee_invoice_pdf_total</model>
102
+ </invoice_fee>
103
+ </totals>
104
+ </pdf>
105
+ <events>
106
+ <sales_quote_collect_totals_after>
107
+ <observers>
108
+ <sisow>
109
+ <type>singleton</type>
110
+ <class>sisow/observer_paymentfee</class>
111
+ <method>salesQuoteCollectTotalsAfter</method>
112
+ </sisow>
113
+ </observers>
114
+ </sales_quote_collect_totals_after>
115
+ <sales_order_payment_place_end>
116
+ <observers>
117
+ <sisow>
118
+ <type>singleton</type>
119
+ <class>sisow/observer_paymentfee</class>
120
+ <method>salesOrderPaymentPlaceEnd</method>
121
+ </sisow>
122
+ </observers>
123
+ </sales_order_payment_place_end>
124
+ <checkout_submit_all_after>
125
+ <observers>
126
+ <sisow>
127
+ <type>singleton</type>
128
+ <class>sisow/observer_sendebill</class>
129
+ <method>sendEbill</method>
130
+ </sisow>
131
+ </observers>
132
+ </checkout_submit_all_after>
133
+ <sales_order_load_after>
134
+ <observers>
135
+ <sisow>
136
+ <type>singleton</type>
137
+ <class>sisow/observer_order</class>
138
+ <method>salesOrderLoadAfter</method>
139
+ </sisow>
140
+ </observers>
141
+ </sales_order_load_after>
142
+ </events>
143
+ <payment>
144
+ <groups>
145
+ <sisow>Sisow</sisow>
146
+ </groups>
147
+ </payment>
148
+ </global>
149
+ <frontend>
150
+ <events>
151
+ <sales_model_service_quote_submit_after>
152
+ <observers>
153
+ <sisow_observer>
154
+ <type>singleton</type>
155
+ <class>sisow/observer_submit</class>
156
+ <method>sales_model_service_quote_submit_after</method>
157
+ </sisow_observer>
158
+ </observers>
159
+ </sales_model_service_quote_submit_after>
160
+ </events>
161
+ <secure_url>
162
+ <sisow_processing>/sisow</sisow_processing>
163
+ </secure_url>
164
+ <routers>
165
+ <sisow>
166
+ <use>standard</use>
167
+ <args>
168
+ <module>Sisow</module>
169
+ <frontName>sisow</frontName>
170
+ </args>
171
+ </sisow>
172
+ </routers>
173
+ <translate>
174
+ <modules>
175
+ <Sisow>
176
+ <files>
177
+ <default>Sisow.csv</default>
178
+ </files>
179
+ </Sisow>
180
+ </modules>
181
+ </translate>
182
+ </frontend>
183
+ <adminhtml>
184
+ <translate>
185
+ <modules>
186
+ <Sisow>
187
+ <files>
188
+ <default>Sisow.csv</default>
189
+ </files>
190
+ </Sisow>
191
+ </modules>
192
+ </translate>
193
+ <acl>
194
+ <resources>
195
+ <admin>
196
+ <children>
197
+ <system>
198
+ <children>
199
+ <config>
200
+ <children>
201
+ <sisow translate="title" module="sisow">
202
+ <title>Sisow Settings</title>
203
+ </sisow>
204
+ </children>
205
+ </config>
206
+ </children>
207
+ </system>
208
+ </children>
209
+ </admin>
210
+ </resources>
211
+ </acl>
212
+ </adminhtml>
213
+ <default>
214
+ <payment>
215
+ <sisow_ideal>
216
+ <group>sisow</group>
217
+ <active>0</active>
218
+ <model>sisow/methods_Ideal</model>
219
+ <title>Sisow iDEAL</title>
220
+ <testmode>0</testmode>
221
+ <allowspecific>1</allowspecific>
222
+ <specificcountry>NL</specificcountry>
223
+ </sisow_ideal>
224
+ <sisow_mistercash>
225
+ <group>sisow</group>
226
+ <active>0</active>
227
+ <model>sisow/methods_Mistercash</model>
228
+ <title>Sisow MisterCash</title>
229
+ <testmode>0</testmode>
230
+ <allowspecific>1</allowspecific>
231
+ <specificcountry>BE</specificcountry>
232
+ </sisow_mistercash>
233
+ <sisow_sofort>
234
+ <group>sisow</group>
235
+ <active>0</active>
236
+ <model>sisow/methods_Sofort</model>
237
+ <title>Sisow SofortBanking</title>
238
+ <testmode>0</testmode>
239
+ <allowspecific>1</allowspecific>
240
+ <specificcountry>AT,BE,FR,DE,IT,NL,PL,ES,CH</specificcountry>
241
+ </sisow_sofort>
242
+ <sisow_visa>
243
+ <group>sisow</group>
244
+ <active>0</active>
245
+ <model>sisow/methods_Visa</model>
246
+ <title>Sisow Visa</title>
247
+ <testmode>0</testmode>
248
+ <allowspecific>0</allowspecific>
249
+ </sisow_visa>
250
+ <sisow_mastercard>
251
+ <group>sisow</group>
252
+ <active>0</active>
253
+ <model>sisow/methods_Mastercard</model>
254
+ <title>Sisow MasterCard</title>
255
+ <testmode>0</testmode>
256
+ <allowspecific>0</allowspecific>
257
+ </sisow_mastercard>
258
+ <sisow_maestro>
259
+ <group>sisow</group>
260
+ <active>0</active>
261
+ <model>sisow/methods_Maestro</model>
262
+ <title>Sisow Maestro</title>
263
+ <testmode>0</testmode>
264
+ <allowspecific>0</allowspecific>
265
+ </sisow_maestro>
266
+ <sisow_overboeking>
267
+ <group>sisow</group>
268
+ <active>0</active>
269
+ <model>sisow/methods_Overboeking</model>
270
+ <title>Sisow OverBoeking</title>
271
+ <testmode>0</testmode>
272
+ <allowspecific>0</allowspecific>
273
+ </sisow_overboeking>
274
+ <sisow_paypalec>
275
+ <group>sisow</group>
276
+ <active>0</active>
277
+ <model>sisow/methods_Paypalec</model>
278
+ <title>Sisow PayPal</title>
279
+ <testmode>0</testmode>
280
+ <allowspecific>0</allowspecific>
281
+ </sisow_paypalec>
282
+ <sisow_klarna>
283
+ <group>sisow</group>
284
+ <active>0</active>
285
+ <model>sisow/methods_Klarna</model>
286
+ <title>Sisow Klarna Factuur</title>
287
+ <testmode>0</testmode>
288
+ <sendklarnainvoice>0</sendklarnainvoice>
289
+ <allowspecific>1</allowspecific>
290
+ <specificcountry>NL</specificcountry>
291
+ </sisow_klarna>
292
+ <sisow_klarnaacc>
293
+ <group>sisow</group>
294
+ <active>0</active>
295
+ <model>sisow/methods_Klarnaacc</model>
296
+ <title>Sisow Klarna Account</title>
297
+ <testmode>0</testmode>
298
+ <sendklarnainvoice>0</sendklarnainvoice>
299
+ <allowspecific>1</allowspecific>
300
+ <specificcountry>NL</specificcountry>
301
+ </sisow_klarnaacc>
302
+ <sisow_webshop>
303
+ <group>sisow</group>
304
+ <active>0</active>
305
+ <model>sisow/methods_WebshopGiftcard</model>
306
+ <title>Sisow Webshop Giftcard</title>
307
+ <testmode>0</testmode>
308
+ <allowspecific>1</allowspecific>
309
+ <specificcountry>NL</specificcountry>
310
+ </sisow_webshop>
311
+ <sisow_ebill>
312
+ <group>sisow</group>
313
+ <active>0</active>
314
+ <model>sisow/methods_Ebill</model>
315
+ <title>Sisow Ebill</title>
316
+ <testmode>0</testmode>
317
+ <allowspecific>0</allowspecific>
318
+ </sisow_ebill>
319
+ </payment>
320
+ </default>
321
+ </config>
app/code/local/Sisow/etc/system.xml ADDED
@@ -0,0 +1,1991 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <sisow translate="label" module="sisow">
5
+ <label>Sisow</label>
6
+ <tab>sales</tab>
7
+ <frontend_type>text</frontend_type>
8
+ <sort_order>980</sort_order>
9
+ <show_in_default>1</show_in_default>
10
+ <show_in_website>1</show_in_website>
11
+ <show_in_store>1</show_in_store>
12
+ <groups>
13
+ <sisow_notice translate="label" module="sisow">
14
+ <frontend_model>sisow/adminhtml_notice</frontend_model>
15
+ <sort_order>0</sort_order>
16
+ <show_in_default>1</show_in_default>
17
+ <show_in_website>1</show_in_website>
18
+ <show_in_store>1</show_in_store>
19
+ </sisow_notice>
20
+ <settings translate="label">
21
+ <label>Sisow General Settings</label>
22
+ <frontend_type>text</frontend_type>
23
+ <sort_order>1</sort_order>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>1</show_in_website>
26
+ <show_in_store>1</show_in_store>
27
+ <fields>
28
+ <sisow_merchantid translate="label,comment">
29
+ <label>Merchant ID</label>
30
+ <comment><![CDATA[The Merchant ID form Sisow. You can find this in your Sisow profile.]]></comment>
31
+ <frontend_type>text</frontend_type>
32
+ <config_path>sisow_core/merchantid</config_path>
33
+ <sort_order>10</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ </sisow_merchantid>
38
+ <sisow_merchantkey translate="label,comment">
39
+ <label>Merchant Key</label>
40
+ <comment><![CDATA[The Merchant Key form Sisow. You can find this in your Sisow profile.]]></comment>
41
+ <frontend_type>text</frontend_type>
42
+ <config_path>sisow_core/merchantkey</config_path>
43
+ <sort_order>20</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ </sisow_merchantkey>
48
+ <sisow_shopid>
49
+ <label>ShopID</label>
50
+ <comment><![CDATA[The ShopID form Sisow. You can find this in your Sisow profile.]]></comment>
51
+ <frontend_type>text</frontend_type>
52
+ <config_path>sisow_core/shopid</config_path>
53
+ <sort_order>30</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>1</show_in_store>
57
+ </sisow_shopid>
58
+ <new_order_mail translate="label">
59
+ <label>New order mail</label>
60
+ <frontend_type>select</frontend_type>
61
+ <config_path>sisow_core/newordermail</config_path>
62
+ <source_model>sisow/config_newordermail</source_model>
63
+ <sort_order>35</sort_order>
64
+ <show_in_default>1</show_in_default>
65
+ <show_in_website>1</show_in_website>
66
+ <show_in_store>1</show_in_store>
67
+ </new_order_mail>
68
+ <keepcart translate="label">
69
+ <label>Keep cart</label>
70
+ <comment><![CDATA[Save the cart after a failed transaction.]]></comment>
71
+ <frontend_type>select</frontend_type>
72
+ <config_path>sisow_core/keepcart</config_path>
73
+ <source_model>adminhtml/system_config_source_yesno</source_model>
74
+ <sort_order>37</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ </keepcart>
79
+ <order_status_success translate="label">
80
+ <label>Order status 'success'</label>
81
+ <frontend_type>select</frontend_type>
82
+ <config_path>sisow_core/status_success</config_path>
83
+ <source_model>adminhtml/system_config_source_order_status</source_model>
84
+ <sort_order>40</sort_order>
85
+ <show_in_default>1</show_in_default>
86
+ <show_in_website>1</show_in_website>
87
+ <show_in_store>1</show_in_store>
88
+ </order_status_success>
89
+ <order_status_cancelled translate="label">
90
+ <label>Order status 'cancelled'</label>
91
+ <frontend_type>select</frontend_type>
92
+ <config_path>sisow_core/status_cancelled</config_path>
93
+ <source_model>adminhtml/system_config_source_order_status</source_model>
94
+ <sort_order>50</sort_order>
95
+ <show_in_default>1</show_in_default>
96
+ <show_in_website>1</show_in_website>
97
+ <show_in_store>1</show_in_store>
98
+ </order_status_cancelled>
99
+ <order_status_expired translate="label">
100
+ <label>Order status 'expired'</label>
101
+ <frontend_type>select</frontend_type>
102
+ <config_path>sisow_core/status_expired</config_path>
103
+ <source_model>adminhtml/system_config_source_order_status</source_model>
104
+ <sort_order>60</sort_order>
105
+ <show_in_default>1</show_in_default>
106
+ <show_in_website>1</show_in_website>
107
+ <show_in_store>1</show_in_store>
108
+ </order_status_expired>
109
+ <order_status_failure translate="label">
110
+ <label>Order status 'failure'</label>
111
+ <frontend_type>select</frontend_type>
112
+ <config_path>sisow_core/status_failure</config_path>
113
+ <source_model>adminhtml/system_config_source_order_status</source_model>
114
+ <sort_order>70</sort_order>
115
+ <show_in_default>1</show_in_default>
116
+ <show_in_website>1</show_in_website>
117
+ <show_in_store>1</show_in_store>
118
+ </order_status_failure>
119
+ <order_status_reservation translate="label,comment">
120
+ <label>Order status 'reservation'</label>
121
+ <comment><![CDATA[Only for Klarna Invoice and Klarna Account.]]></comment>
122
+ <frontend_type>select</frontend_type>
123
+ <config_path>sisow_core/status_reservation</config_path>
124
+ <source_model>adminhtml/system_config_source_order_status</source_model>
125
+ <sort_order>80</sort_order>
126
+ <show_in_default>1</show_in_default>
127
+ <show_in_website>1</show_in_website>
128
+ <show_in_store>1</show_in_store>
129
+ </order_status_reservation>
130
+ <auto_invoice translate="label">
131
+ <label>Auto invoice</label>
132
+ <frontend_type>select</frontend_type>
133
+ <config_path>sisow_core/autoinvoice</config_path>
134
+ <source_model>sisow/config_generalAutoinvoice</source_model>
135
+ <sort_order>90</sort_order>
136
+ <show_in_default>1</show_in_default>
137
+ <show_in_website>1</show_in_website>
138
+ <show_in_store>1</show_in_store>
139
+ </auto_invoice>
140
+ </fields>
141
+ </settings>
142
+ <sisow_ideal translate="label" module="sisow">
143
+ <label>Sisow iDEAL</label>
144
+ <sort_order>10</sort_order>
145
+ <show_in_default>1</show_in_default>
146
+ <show_in_website>1</show_in_website>
147
+ <show_in_store>1</show_in_store>
148
+ <fields>
149
+ <active translate="label">
150
+ <label>Enabled</label>
151
+ <frontend_type>select</frontend_type>
152
+ <config_path>payment/sisow_ideal/active</config_path>
153
+ <source_model>adminhtml/system_config_source_yesno</source_model>
154
+ <sort_order>10</sort_order>
155
+ <show_in_default>1</show_in_default>
156
+ <show_in_website>1</show_in_website>
157
+ <show_in_store>1</show_in_store>
158
+ </active>
159
+ <title translate="label">
160
+ <label>Title</label>
161
+ <frontend_type>text</frontend_type>
162
+ <config_path>payment/sisow_ideal/title</config_path>
163
+ <sort_order>20</sort_order>
164
+ <show_in_default>1</show_in_default>
165
+ <show_in_website>1</show_in_website>
166
+ <show_in_store>1</show_in_store>
167
+ </title>
168
+ <prefix translate="label">
169
+ <label>Prefix</label>
170
+ <config_path>payment/sisow_ideal/prefix</config_path>
171
+ <frontend_type>text</frontend_type>
172
+ <sort_order>30</sort_order>
173
+ <show_in_default>1</show_in_default>
174
+ <show_in_website>1</show_in_website>
175
+ <show_in_store>1</show_in_store>
176
+ </prefix>
177
+ <testmode translate="label">
178
+ <label>Testmode</label>
179
+ <frontend_type>select</frontend_type>
180
+ <config_path>payment/sisow_ideal/testmode</config_path>
181
+ <source_model>adminhtml/system_config_source_yesno</source_model>
182
+ <sort_order>40</sort_order>
183
+ <show_in_default>1</show_in_default>
184
+ <show_in_website>1</show_in_website>
185
+ <show_in_store>1</show_in_store>
186
+ </testmode>
187
+ <sort_order translate="label">
188
+ <label>Sort order</label>
189
+ <config_path>payment/sisow_ideal/sort_order</config_path>
190
+ <frontend_type>text</frontend_type>
191
+ <sort_order>50</sort_order>
192
+ <show_in_default>1</show_in_default>
193
+ <show_in_website>1</show_in_website>
194
+ <show_in_store>1</show_in_store>
195
+ </sort_order>
196
+ <new_order_mail translate="label">
197
+ <label>New order mail</label>
198
+ <frontend_type>select</frontend_type>
199
+ <config_path>payment/sisow_ideal/newordermail</config_path>
200
+ <source_model>sisow/config_newordermailMethod</source_model>
201
+ <sort_order>55</sort_order>
202
+ <show_in_default>1</show_in_default>
203
+ <show_in_website>1</show_in_website>
204
+ <show_in_store>1</show_in_store>
205
+ </new_order_mail>
206
+ <auto_invoice translate="label">
207
+ <label>Auto invoice</label>
208
+ <frontend_type>select</frontend_type>
209
+ <config_path>payment/sisow_ideal/autoinvoice</config_path>
210
+ <source_model>sisow/config_autoinvoice</source_model>
211
+ <sort_order>60</sort_order>
212
+ <show_in_default>1</show_in_default>
213
+ <show_in_website>1</show_in_website>
214
+ <show_in_store>1</show_in_store>
215
+ </auto_invoice>
216
+ <min_order_total translate="label">
217
+ <label>Minimum Order Total</label>
218
+ <config_path>payment/sisow_ideal/min_order_total</config_path>
219
+ <frontend_type>text</frontend_type>
220
+ <sort_order>70</sort_order>
221
+ <show_in_default>1</show_in_default>
222
+ <show_in_website>1</show_in_website>
223
+ <show_in_store>1</show_in_store>
224
+ </min_order_total>
225
+ <max_order_total translate="label">
226
+ <label>Maximum Order Total</label>
227
+ <config_path>payment/sisow_ideal/max_order_total</config_path>
228
+ <frontend_type>text</frontend_type>
229
+ <sort_order>80</sort_order>
230
+ <show_in_default>1</show_in_default>
231
+ <show_in_website>1</show_in_website>
232
+ <show_in_store>1</show_in_store>
233
+ </max_order_total>
234
+ <allowspecific translate="label">
235
+ <label>Payment from Applicable Countries</label>
236
+ <frontend_type>allowspecific</frontend_type>
237
+ <config_path>payment/sisow_ideal/allowspecific</config_path>
238
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
239
+ <sort_order>90</sort_order>
240
+ <show_in_default>1</show_in_default>
241
+ <show_in_website>1</show_in_website>
242
+ <show_in_store>1</show_in_store>
243
+ </allowspecific>
244
+ <specificcountry translate="label">
245
+ <label>Payment from Specific Country</label>
246
+ <frontend_type>multiselect</frontend_type>
247
+ <config_path>payment/sisow_ideal/specificcountry</config_path>
248
+ <source_model>adminhtml/system_config_source_country</source_model>
249
+ <sort_order>100</sort_order>
250
+ <show_in_default>1</show_in_default>
251
+ <show_in_website>1</show_in_website>
252
+ <show_in_store>1</show_in_store>
253
+ </specificcountry>
254
+ <payment_fee translate="label">
255
+ <label>Payment fee</label>
256
+ <config_path>payment/sisow_ideal/payment_fee</config_path>
257
+ <sort_order>110</sort_order>
258
+ <show_in_default>1</show_in_default>
259
+ <show_in_website>1</show_in_website>
260
+ <show_in_store>1</show_in_store>
261
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
262
+ </payment_fee>
263
+ <payment_fee_tax translate="label">
264
+ <label>Payment fee tax class</label>
265
+ <frontend_type>select</frontend_type>
266
+ <config_path>payment/sisow_ideal/payment_fee_tax</config_path>
267
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
268
+ <sort_order>120</sort_order>
269
+ <show_in_default>1</show_in_default>
270
+ <show_in_store>1</show_in_store>
271
+ <show_in_website>1</show_in_website>
272
+ <comment>The tax class to use to calculate the payment fee tax</comment>
273
+ </payment_fee_tax>
274
+ <payment_fee_inc_ex translate="label">
275
+ <label>Including/Excluding Tax</label>
276
+ <frontend_type>select</frontend_type>
277
+ <config_path>payment/sisow_ideal/payment_fee_inc_ex</config_path>
278
+ <source_model>adminhtml/system_config_source_yesno</source_model>
279
+ <sort_order>130</sort_order>
280
+ <show_in_default>1</show_in_default>
281
+ <show_in_website>1</show_in_website>
282
+ <show_in_store>1</show_in_store>
283
+ <comment>Is the entered payment fee value including or exluding tax</comment>
284
+ </payment_fee_inc_ex>
285
+ <payment_fee_label translate="label,comment">
286
+ <label>Payment fee label</label>
287
+ <config_path>payment/sisow_ideal/payment_fee_label</config_path>
288
+ <sort_order>140</sort_order>
289
+ <show_in_default>1</show_in_default>
290
+ <show_in_website>1</show_in_website>
291
+ <show_in_store>1</show_in_store>
292
+ <comment>Payment fee label to show</comment>
293
+ </payment_fee_label>
294
+ </fields>
295
+ </sisow_ideal>
296
+ <sisow_mistercash translate="label" module="sisow">
297
+ <label>Sisow MisterCash</label>
298
+ <sort_order>20</sort_order>
299
+ <show_in_default>1</show_in_default>
300
+ <show_in_website>1</show_in_website>
301
+ <show_in_store>1</show_in_store>
302
+ <fields>
303
+ <active translate="label">
304
+ <label>Enabled</label>
305
+ <frontend_type>select</frontend_type>
306
+ <config_path>payment/sisow_mistercash/active</config_path>
307
+ <source_model>adminhtml/system_config_source_yesno</source_model>
308
+ <sort_order>10</sort_order>
309
+ <show_in_default>1</show_in_default>
310
+ <show_in_website>1</show_in_website>
311
+ <show_in_store>1</show_in_store>
312
+ </active>
313
+ <title translate="label">
314
+ <label>Title</label>
315
+ <frontend_type>text</frontend_type>
316
+ <config_path>payment/sisow_mistercash/title</config_path>
317
+ <sort_order>20</sort_order>
318
+ <show_in_default>1</show_in_default>
319
+ <show_in_website>1</show_in_website>
320
+ <show_in_store>1</show_in_store>
321
+ </title>
322
+ <prefix translate="label">
323
+ <label>Prefix</label>
324
+ <frontend_type>text</frontend_type>
325
+ <config_path>payment/sisow_mistercash/prefix</config_path>
326
+ <sort_order>30</sort_order>
327
+ <show_in_default>1</show_in_default>
328
+ <show_in_website>1</show_in_website>
329
+ <show_in_store>1</show_in_store>
330
+ </prefix>
331
+ <testmode translate="label">
332
+ <label>Testmode</label>
333
+ <frontend_type>select</frontend_type>
334
+ <config_path>payment/sisow_mistercash/testmode</config_path>
335
+ <source_model>adminhtml/system_config_source_yesno</source_model>
336
+ <sort_order>40</sort_order>
337
+ <show_in_default>1</show_in_default>
338
+ <show_in_website>1</show_in_website>
339
+ <show_in_store>1</show_in_store>
340
+ </testmode>
341
+ <sort_order translate="label">
342
+ <label>Sort order</label>
343
+ <config_path>payment/sisow_mistercash/sort_order</config_path>
344
+ <frontend_type>text</frontend_type>
345
+ <sort_order>50</sort_order>
346
+ <show_in_default>1</show_in_default>
347
+ <show_in_website>1</show_in_website>
348
+ <show_in_store>1</show_in_store>
349
+ </sort_order>
350
+ <new_order_mail translate="label">
351
+ <label>New order mail</label>
352
+ <frontend_type>select</frontend_type>
353
+ <config_path>payment/sisow_mistercash/newordermail</config_path>
354
+ <source_model>sisow/config_newordermailMethod</source_model>
355
+ <sort_order>55</sort_order>
356
+ <show_in_default>1</show_in_default>
357
+ <show_in_website>1</show_in_website>
358
+ <show_in_store>1</show_in_store>
359
+ </new_order_mail>
360
+ <auto_invoice translate="label">
361
+ <label>Auto invoice</label>
362
+ <frontend_type>select</frontend_type>
363
+ <config_path>payment/sisow_mistercash/autoinvoice</config_path>
364
+ <source_model>sisow/config_autoinvoice</source_model>
365
+ <sort_order>60</sort_order>
366
+ <show_in_default>1</show_in_default>
367
+ <show_in_website>1</show_in_website>
368
+ <show_in_store>1</show_in_store>
369
+ </auto_invoice>
370
+ <min_order_total translate="label">
371
+ <label>Minimum Order Total</label>
372
+ <config_path>payment/sisow_mistercash/min_order_total</config_path>
373
+ <frontend_type>text</frontend_type>
374
+ <sort_order>70</sort_order>
375
+ <show_in_default>1</show_in_default>
376
+ <show_in_website>1</show_in_website>
377
+ <show_in_store>1</show_in_store>
378
+ </min_order_total>
379
+ <max_order_total translate="label">
380
+ <label>Maximum Order Total</label>
381
+ <config_path>payment/sisow_mistercash/max_order_total</config_path>
382
+ <frontend_type>text</frontend_type>
383
+ <sort_order>80</sort_order>
384
+ <show_in_default>1</show_in_default>
385
+ <show_in_website>1</show_in_website>
386
+ <show_in_store>1</show_in_store>
387
+ </max_order_total>
388
+ <allowspecific translate="label">
389
+ <label>Payment from Applicable Countries</label>
390
+ <frontend_type>allowspecific</frontend_type>
391
+ <config_path>payment/sisow_mistercash/allowspecific</config_path>
392
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
393
+ <sort_order>90</sort_order>
394
+ <show_in_default>1</show_in_default>
395
+ <show_in_website>1</show_in_website>
396
+ <show_in_store>1</show_in_store>
397
+ </allowspecific>
398
+ <specificcountry translate="label">
399
+ <label>Payment from Specific Country</label>
400
+ <frontend_type>multiselect</frontend_type>
401
+ <config_path>payment/sisow_mistercash/specificcountry</config_path>
402
+ <source_model>adminhtml/system_config_source_country</source_model>
403
+ <sort_order>100</sort_order>
404
+ <show_in_default>1</show_in_default>
405
+ <show_in_website>1</show_in_website>
406
+ <show_in_store>1</show_in_store>
407
+ </specificcountry>
408
+ <payment_fee translate="label">
409
+ <label>Payment fee</label>
410
+ <config_path>payment/sisow_mistercash/payment_fee</config_path>
411
+ <sort_order>110</sort_order>
412
+ <show_in_default>1</show_in_default>
413
+ <show_in_website>1</show_in_website>
414
+ <show_in_store>1</show_in_store>
415
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
416
+ </payment_fee>
417
+ <payment_fee_tax translate="label">
418
+ <label>Payment fee tax class</label>
419
+ <frontend_type>select</frontend_type>
420
+ <config_path>payment/sisow_mistercash/payment_fee_tax</config_path>
421
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
422
+ <sort_order>120</sort_order>
423
+ <show_in_default>1</show_in_default>
424
+ <show_in_store>1</show_in_store>
425
+ <show_in_website>1</show_in_website>
426
+ <comment>The tax class to use to calculate the payment fee tax</comment>
427
+ </payment_fee_tax>
428
+ <payment_fee_inc_ex translate="label">
429
+ <label>Including/Excluding Tax</label>
430
+ <frontend_type>select</frontend_type>
431
+ <config_path>payment/sisow_mistercash/payment_fee_inc_ex</config_path>
432
+ <source_model>adminhtml/system_config_source_yesno</source_model>
433
+ <sort_order>130</sort_order>
434
+ <show_in_default>1</show_in_default>
435
+ <show_in_website>1</show_in_website>
436
+ <show_in_store>1</show_in_store>
437
+ <comment>Is the entered payment fee value including or exluding tax</comment>
438
+ </payment_fee_inc_ex>
439
+ <payment_fee_label translate="label,comment">
440
+ <label>Payment fee label</label>
441
+ <config_path>payment/sisow_mistercash/payment_fee_label</config_path>
442
+ <sort_order>140</sort_order>
443
+ <show_in_default>1</show_in_default>
444
+ <show_in_website>1</show_in_website>
445
+ <show_in_store>1</show_in_store>
446
+ <comment>Payment fee label to show</comment>
447
+ </payment_fee_label>
448
+ </fields>
449
+ </sisow_mistercash>
450
+ <sisow_sofort translate="label" module="sisow">
451
+ <label>Sisow SofortBanking</label>
452
+ <sort_order>30</sort_order>
453
+ <show_in_default>1</show_in_default>
454
+ <show_in_website>1</show_in_website>
455
+ <show_in_store>1</show_in_store>
456
+ <fields>
457
+ <active translate="label">
458
+ <label>Enabled</label>
459
+ <frontend_type>select</frontend_type>
460
+ <config_path>payment/sisow_sofort/active</config_path>
461
+ <source_model>adminhtml/system_config_source_yesno</source_model>
462
+ <sort_order>10</sort_order>
463
+ <show_in_default>1</show_in_default>
464
+ <show_in_website>1</show_in_website>
465
+ <show_in_store>1</show_in_store>
466
+ </active>
467
+ <title translate="label">
468
+ <label>Title</label>
469
+ <frontend_type>text</frontend_type>
470
+ <config_path>payment/sisow_sofort/title</config_path>
471
+ <sort_order>20</sort_order>
472
+ <show_in_default>1</show_in_default>
473
+ <show_in_website>1</show_in_website>
474
+ <show_in_store>1</show_in_store>
475
+ </title>
476
+ <prefix translate="label">
477
+ <label>Prefix</label>
478
+ <frontend_type>text</frontend_type>
479
+ <config_path>payment/sisow_sofort/prefix</config_path>
480
+ <sort_order>30</sort_order>
481
+ <show_in_default>1</show_in_default>
482
+ <show_in_website>1</show_in_website>
483
+ <show_in_store>1</show_in_store>
484
+ </prefix>
485
+ <testmode translate="label">
486
+ <label>Testmode</label>
487
+ <frontend_type>select</frontend_type>
488
+ <config_path>payment/sisow_sofort/testmode</config_path>
489
+ <source_model>adminhtml/system_config_source_yesno</source_model>
490
+ <sort_order>40</sort_order>
491
+ <show_in_default>1</show_in_default>
492
+ <show_in_website>1</show_in_website>
493
+ <show_in_store>1</show_in_store>
494
+ </testmode>
495
+ <sort_order translate="label">
496
+ <label>Sort order</label>
497
+ <config_path>payment/sisow_sofort/sort_order</config_path>
498
+ <frontend_type>text</frontend_type>
499
+ <sort_order>50</sort_order>
500
+ <show_in_default>1</show_in_default>
501
+ <show_in_website>1</show_in_website>
502
+ <show_in_store>1</show_in_store>
503
+ </sort_order>
504
+ <new_order_mail translate="label">
505
+ <label>New order mail</label>
506
+ <frontend_type>select</frontend_type>
507
+ <config_path>payment/sisow_sofort/newordermail</config_path>
508
+ <source_model>sisow/config_newordermailMethod</source_model>
509
+ <sort_order>55</sort_order>
510
+ <show_in_default>1</show_in_default>
511
+ <show_in_website>1</show_in_website>
512
+ <show_in_store>1</show_in_store>
513
+ </new_order_mail>
514
+ <auto_invoice translate="label">
515
+ <label>Auto invoice</label>
516
+ <frontend_type>select</frontend_type>
517
+ <config_path>payment/sisow_sofort/autoinvoice</config_path>
518
+ <source_model>sisow/config_autoinvoice</source_model>
519
+ <sort_order>60</sort_order>
520
+ <show_in_default>1</show_in_default>
521
+ <show_in_website>1</show_in_website>
522
+ <show_in_store>1</show_in_store>
523
+ </auto_invoice>
524
+ <min_order_total translate="label">
525
+ <label>Minimum Order Total</label>
526
+ <config_path>payment/sisow_sofort/min_order_total</config_path>
527
+ <frontend_type>text</frontend_type>
528
+ <sort_order>70</sort_order>
529
+ <show_in_default>1</show_in_default>
530
+ <show_in_website>1</show_in_website>
531
+ <show_in_store>1</show_in_store>
532
+ </min_order_total>
533
+ <max_order_total translate="label">
534
+ <label>Maximum Order Total</label>
535
+ <config_path>payment/sisow_sofort/max_order_total</config_path>
536
+ <frontend_type>text</frontend_type>
537
+ <sort_order>80</sort_order>
538
+ <show_in_default>1</show_in_default>
539
+ <show_in_website>1</show_in_website>
540
+ <show_in_store>1</show_in_store>
541
+ </max_order_total>
542
+ <allowspecific translate="label">
543
+ <label>Payment from Applicable Countries</label>
544
+ <frontend_type>allowspecific</frontend_type>
545
+ <config_path>payment/sisow_sofort/allowspecific</config_path>
546
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
547
+ <sort_order>90</sort_order>
548
+ <show_in_default>1</show_in_default>
549
+ <show_in_website>1</show_in_website>
550
+ <show_in_store>1</show_in_store>
551
+ </allowspecific>
552
+ <specificcountry translate="label">
553
+ <label>Payment from Specific Country</label>
554
+ <frontend_type>multiselect</frontend_type>
555
+ <config_path>payment/sisow_sofort/specificcountry</config_path>
556
+ <source_model>adminhtml/system_config_source_country</source_model>
557
+ <sort_order>100</sort_order>
558
+ <show_in_default>1</show_in_default>
559
+ <show_in_website>1</show_in_website>
560
+ <show_in_store>1</show_in_store>
561
+ </specificcountry>
562
+ <payment_fee translate="label">
563
+ <label>Payment fee</label>
564
+ <config_path>payment/sisow_sofort/payment_fee</config_path>
565
+ <sort_order>110</sort_order>
566
+ <show_in_default>1</show_in_default>
567
+ <show_in_website>1</show_in_website>
568
+ <show_in_store>1</show_in_store>
569
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
570
+ </payment_fee>
571
+ <payment_fee_tax translate="label">
572
+ <label>Payment fee tax class</label>
573
+ <frontend_type>select</frontend_type>
574
+ <config_path>payment/sisow_sofort/payment_fee_tax</config_path>
575
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
576
+ <sort_order>120</sort_order>
577
+ <show_in_default>1</show_in_default>
578
+ <show_in_store>1</show_in_store>
579
+ <show_in_website>1</show_in_website>
580
+ <comment>The tax class to use to calculate the payment fee tax</comment>
581
+ </payment_fee_tax>
582
+ <payment_fee_inc_ex translate="label">
583
+ <label>Including/Excluding Tax</label>
584
+ <frontend_type>select</frontend_type>
585
+ <config_path>payment/sisow_sofort/payment_fee_inc_ex</config_path>
586
+ <source_model>adminhtml/system_config_source_yesno</source_model>
587
+ <sort_order>130</sort_order>
588
+ <show_in_default>1</show_in_default>
589
+ <show_in_website>1</show_in_website>
590
+ <show_in_store>1</show_in_store>
591
+ <comment>Is the entered payment fee value including or exluding tax</comment>
592
+ </payment_fee_inc_ex>
593
+ <payment_fee_label translate="label,comment">
594
+ <label>Payment fee label</label>
595
+ <config_path>payment/sisow_sofort/payment_fee_label</config_path>
596
+ <sort_order>140</sort_order>
597
+ <show_in_default>1</show_in_default>
598
+ <show_in_website>1</show_in_website>
599
+ <show_in_store>1</show_in_store>
600
+ <comment>Payment fee label to show</comment>
601
+ </payment_fee_label>
602
+ </fields>
603
+ </sisow_sofort>
604
+ <sisow_visa translate="label" module="sisow">
605
+ <label>Sisow Visa</label>
606
+ <sort_order>40</sort_order>
607
+ <show_in_default>1</show_in_default>
608
+ <show_in_website>1</show_in_website>
609
+ <show_in_store>1</show_in_store>
610
+ <fields>
611
+ <active translate="label">
612
+ <label>Enabled</label>
613
+ <frontend_type>select</frontend_type>
614
+ <config_path>payment/sisow_visa/active</config_path>
615
+ <source_model>adminhtml/system_config_source_yesno</source_model>
616
+ <sort_order>10</sort_order>
617
+ <show_in_default>1</show_in_default>
618
+ <show_in_website>1</show_in_website>
619
+ <show_in_store>1</show_in_store>
620
+ </active>
621
+ <title translate="label">
622
+ <label>Title</label>
623
+ <frontend_type>text</frontend_type>
624
+ <config_path>payment/sisow_visa/title</config_path>
625
+ <sort_order>20</sort_order>
626
+ <show_in_default>1</show_in_default>
627
+ <show_in_website>1</show_in_website>
628
+ <show_in_store>1</show_in_store>
629
+ </title>
630
+ <prefix translate="label">
631
+ <label>Prefix</label>
632
+ <frontend_type>text</frontend_type>
633
+ <config_path>payment/sisow_visa/prefix</config_path>
634
+ <sort_order>30</sort_order>
635
+ <show_in_default>1</show_in_default>
636
+ <show_in_website>1</show_in_website>
637
+ <show_in_store>1</show_in_store>
638
+ </prefix>
639
+ <testmode translate="label">
640
+ <label>Testmode</label>
641
+ <frontend_type>select</frontend_type>
642
+ <config_path>payment/sisow_visa/testmode</config_path>
643
+ <source_model>adminhtml/system_config_source_yesno</source_model>
644
+ <sort_order>40</sort_order>
645
+ <show_in_default>1</show_in_default>
646
+ <show_in_website>1</show_in_website>
647
+ <show_in_store>1</show_in_store>
648
+ </testmode>
649
+ <sort_order translate="label">
650
+ <label>Sort order</label>
651
+ <config_path>payment/sisow_visa/sort_order</config_path>
652
+ <frontend_type>text</frontend_type>
653
+ <sort_order>50</sort_order>
654
+ <show_in_default>1</show_in_default>
655
+ <show_in_website>1</show_in_website>
656
+ <show_in_store>1</show_in_store>
657
+ </sort_order>
658
+ <new_order_mail translate="label">
659
+ <label>New order mail</label>
660
+ <frontend_type>select</frontend_type>
661
+ <config_path>payment/sisow_visa/newordermail</config_path>
662
+ <source_model>sisow/config_newordermailMethod</source_model>
663
+ <sort_order>55</sort_order>
664
+ <show_in_default>1</show_in_default>
665
+ <show_in_website>1</show_in_website>
666
+ <show_in_store>1</show_in_store>
667
+ </new_order_mail>
668
+ <auto_invoice translate="label">
669
+ <label>Auto invoice</label>
670
+ <frontend_type>select</frontend_type>
671
+ <config_path>payment/sisow_visa/autoinvoice</config_path>
672
+ <source_model>sisow/config_autoinvoice</source_model>
673
+ <sort_order>60</sort_order>
674
+ <show_in_default>1</show_in_default>
675
+ <show_in_website>1</show_in_website>
676
+ <show_in_store>1</show_in_store>
677
+ </auto_invoice>
678
+ <min_order_total translate="label">
679
+ <label>Minimum Order Total</label>
680
+ <config_path>payment/sisow_visa/min_order_total</config_path>
681
+ <frontend_type>text</frontend_type>
682
+ <sort_order>70</sort_order>
683
+ <show_in_default>1</show_in_default>
684
+ <show_in_website>1</show_in_website>
685
+ <show_in_store>1</show_in_store>
686
+ </min_order_total>
687
+ <max_order_total translate="label">
688
+ <label>Maximum Order Total</label>
689
+ <config_path>payment/sisow_visa/max_order_total</config_path>
690
+ <frontend_type>text</frontend_type>
691
+ <sort_order>80</sort_order>
692
+ <show_in_default>1</show_in_default>
693
+ <show_in_website>1</show_in_website>
694
+ <show_in_store>1</show_in_store>
695
+ </max_order_total>
696
+ <allowspecific translate="label">
697
+ <label>Payment from Applicable Countries</label>
698
+ <frontend_type>allowspecific</frontend_type>
699
+ <config_path>payment/sisow_visa/allowspecific</config_path>
700
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
701
+ <sort_order>90</sort_order>
702
+ <show_in_default>1</show_in_default>
703
+ <show_in_website>1</show_in_website>
704
+ <show_in_store>1</show_in_store>
705
+ </allowspecific>
706
+ <specificcountry translate="label">
707
+ <label>Payment from Specific Country</label>
708
+ <frontend_type>multiselect</frontend_type>
709
+ <config_path>payment/sisow_visa/specificcountry</config_path>
710
+ <source_model>adminhtml/system_config_source_country</source_model>
711
+ <sort_order>100</sort_order>
712
+ <show_in_default>1</show_in_default>
713
+ <show_in_website>1</show_in_website>
714
+ <show_in_store>1</show_in_store>
715
+ </specificcountry>
716
+ <payment_fee translate="label">
717
+ <label>Payment fee</label>
718
+ <config_path>payment/sisow_visa/payment_fee</config_path>
719
+ <sort_order>110</sort_order>
720
+ <show_in_default>1</show_in_default>
721
+ <show_in_website>1</show_in_website>
722
+ <show_in_store>1</show_in_store>
723
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
724
+ </payment_fee>
725
+ <payment_fee_tax translate="label">
726
+ <label>Payment fee tax class</label>
727
+ <frontend_type>select</frontend_type>
728
+ <config_path>payment/sisow_visa/payment_fee_tax</config_path>
729
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
730
+ <sort_order>120</sort_order>
731
+ <show_in_default>1</show_in_default>
732
+ <show_in_store>1</show_in_store>
733
+ <show_in_website>1</show_in_website>
734
+ <comment>The tax class to use to calculate the payment fee tax</comment>
735
+ </payment_fee_tax>
736
+ <payment_fee_inc_ex translate="label">
737
+ <label>Including/Excluding Tax</label>
738
+ <frontend_type>select</frontend_type>
739
+ <config_path>payment/sisow_visa/payment_fee_inc_ex</config_path>
740
+ <source_model>adminhtml/system_config_source_yesno</source_model>
741
+ <sort_order>130</sort_order>
742
+ <show_in_default>1</show_in_default>
743
+ <show_in_website>1</show_in_website>
744
+ <show_in_store>1</show_in_store>
745
+ <comment>Is the entered payment fee value including or exluding tax</comment>
746
+ </payment_fee_inc_ex>
747
+ <payment_fee_label translate="label,comment">
748
+ <label>Payment fee label</label>
749
+ <config_path>payment/sisow_visa/payment_fee_label</config_path>
750
+ <sort_order>140</sort_order>
751
+ <show_in_default>1</show_in_default>
752
+ <show_in_website>1</show_in_website>
753
+ <show_in_store>1</show_in_store>
754
+ <comment>Payment fee label to show</comment>
755
+ </payment_fee_label>
756
+ </fields>
757
+ </sisow_visa>
758
+ <sisow_mastercard translate="label" module="sisow">
759
+ <label>Sisow MasterCard</label>
760
+ <sort_order>43</sort_order>
761
+ <show_in_default>1</show_in_default>
762
+ <show_in_website>1</show_in_website>
763
+ <show_in_store>1</show_in_store>
764
+ <fields>
765
+ <active translate="label">
766
+ <label>Enabled</label>
767
+ <frontend_type>select</frontend_type>
768
+ <config_path>payment/sisow_mastercard/active</config_path>
769
+ <source_model>adminhtml/system_config_source_yesno</source_model>
770
+ <sort_order>10</sort_order>
771
+ <show_in_default>1</show_in_default>
772
+ <show_in_website>1</show_in_website>
773
+ <show_in_store>1</show_in_store>
774
+ </active>
775
+ <title translate="label">
776
+ <label>Title</label>
777
+ <frontend_type>text</frontend_type>
778
+ <config_path>payment/sisow_mastercard/title</config_path>
779
+ <sort_order>20</sort_order>
780
+ <show_in_default>1</show_in_default>
781
+ <show_in_website>1</show_in_website>
782
+ <show_in_store>1</show_in_store>
783
+ </title>
784
+ <prefix translate="label">
785
+ <label>Prefix</label>
786
+ <frontend_type>text</frontend_type>
787
+ <config_path>payment/sisow_mastercard/prefix</config_path>
788
+ <sort_order>30</sort_order>
789
+ <show_in_default>1</show_in_default>
790
+ <show_in_website>1</show_in_website>
791
+ <show_in_store>1</show_in_store>
792
+ </prefix>
793
+ <testmode translate="label">
794
+ <label>Testmode</label>
795
+ <frontend_type>select</frontend_type>
796
+ <config_path>payment/sisow_mastercard/testmode</config_path>
797
+ <source_model>adminhtml/system_config_source_yesno</source_model>
798
+ <sort_order>40</sort_order>
799
+ <show_in_default>1</show_in_default>
800
+ <show_in_website>1</show_in_website>
801
+ <show_in_store>1</show_in_store>
802
+ </testmode>
803
+ <sort_order translate="label">
804
+ <label>Sort order</label>
805
+ <config_path>payment/sisow_mastercard/sort_order</config_path>
806
+ <frontend_type>text</frontend_type>
807
+ <sort_order>50</sort_order>
808
+ <show_in_default>1</show_in_default>
809
+ <show_in_website>1</show_in_website>
810
+ <show_in_store>1</show_in_store>
811
+ </sort_order>
812
+ <new_order_mail translate="label">
813
+ <label>New order mail</label>
814
+ <frontend_type>select</frontend_type>
815
+ <config_path>payment/sisow_mastercard/newordermail</config_path>
816
+ <source_model>sisow/config_newordermailMethod</source_model>
817
+ <sort_order>55</sort_order>
818
+ <show_in_default>1</show_in_default>
819
+ <show_in_website>1</show_in_website>
820
+ <show_in_store>1</show_in_store>
821
+ </new_order_mail>
822
+ <auto_invoice translate="label">
823
+ <label>Auto invoice</label>
824
+ <frontend_type>select</frontend_type>
825
+ <config_path>payment/sisow_mastercard/autoinvoice</config_path>
826
+ <source_model>sisow/config_autoinvoice</source_model>
827
+ <sort_order>60</sort_order>
828
+ <show_in_default>1</show_in_default>
829
+ <show_in_website>1</show_in_website>
830
+ <show_in_store>1</show_in_store>
831
+ </auto_invoice>
832
+ <min_order_total translate="label">
833
+ <label>Minimum Order Total</label>
834
+ <config_path>payment/sisow_mastercard/min_order_total</config_path>
835
+ <frontend_type>text</frontend_type>
836
+ <sort_order>70</sort_order>
837
+ <show_in_default>1</show_in_default>
838
+ <show_in_website>1</show_in_website>
839
+ <show_in_store>1</show_in_store>
840
+ </min_order_total>
841
+ <max_order_total translate="label">
842
+ <label>Maximum Order Total</label>
843
+ <config_path>payment/sisow_mastercard/max_order_total</config_path>
844
+ <frontend_type>text</frontend_type>
845
+ <sort_order>80</sort_order>
846
+ <show_in_default>1</show_in_default>
847
+ <show_in_website>1</show_in_website>
848
+ <show_in_store>1</show_in_store>
849
+ </max_order_total>
850
+ <allowspecific translate="label">
851
+ <label>Payment from Applicable Countries</label>
852
+ <frontend_type>allowspecific</frontend_type>
853
+ <config_path>payment/sisow_mastercard/allowspecific</config_path>
854
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
855
+ <sort_order>90</sort_order>
856
+ <show_in_default>1</show_in_default>
857
+ <show_in_website>1</show_in_website>
858
+ <show_in_store>1</show_in_store>
859
+ </allowspecific>
860
+ <specificcountry translate="label">
861
+ <label>Payment from Specific Country</label>
862
+ <frontend_type>multiselect</frontend_type>
863
+ <config_path>payment/sisow_mastercard/specificcountry</config_path>
864
+ <source_model>adminhtml/system_config_source_country</source_model>
865
+ <sort_order>100</sort_order>
866
+ <show_in_default>1</show_in_default>
867
+ <show_in_website>1</show_in_website>
868
+ <show_in_store>1</show_in_store>
869
+ </specificcountry>
870
+ <payment_fee translate="label">
871
+ <label>Payment fee</label>
872
+ <config_path>payment/sisow_mastercard/payment_fee</config_path>
873
+ <sort_order>110</sort_order>
874
+ <show_in_default>1</show_in_default>
875
+ <show_in_website>1</show_in_website>
876
+ <show_in_store>1</show_in_store>
877
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
878
+ </payment_fee>
879
+ <payment_fee_tax translate="label">
880
+ <label>Payment fee tax class</label>
881
+ <frontend_type>select</frontend_type>
882
+ <config_path>payment/sisow_mastercard/payment_fee_tax</config_path>
883
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
884
+ <sort_order>120</sort_order>
885
+ <show_in_default>1</show_in_default>
886
+ <show_in_store>1</show_in_store>
887
+ <show_in_website>1</show_in_website>
888
+ <comment>The tax class to use to calculate the payment fee tax</comment>
889
+ </payment_fee_tax>
890
+ <payment_fee_inc_ex translate="label">
891
+ <label>Including/Excluding Tax</label>
892
+ <frontend_type>select</frontend_type>
893
+ <config_path>payment/sisow_mastercard/payment_fee_inc_ex</config_path>
894
+ <source_model>adminhtml/system_config_source_yesno</source_model>
895
+ <sort_order>130</sort_order>
896
+ <show_in_default>1</show_in_default>
897
+ <show_in_website>1</show_in_website>
898
+ <show_in_store>1</show_in_store>
899
+ <comment>Is the entered payment fee value including or exluding tax</comment>
900
+ </payment_fee_inc_ex>
901
+ <payment_fee_label translate="label,comment">
902
+ <label>Payment fee label</label>
903
+ <config_path>payment/sisow_mastercard/payment_fee_label</config_path>
904
+ <sort_order>140</sort_order>
905
+ <show_in_default>1</show_in_default>
906
+ <show_in_website>1</show_in_website>
907
+ <show_in_store>1</show_in_store>
908
+ <comment>Payment fee label to show</comment>
909
+ </payment_fee_label>
910
+ </fields>
911
+ </sisow_mastercard>
912
+ <sisow_maestro translate="label" module="sisow">
913
+ <label>Sisow Maestro</label>
914
+ <sort_order>46</sort_order>
915
+ <show_in_default>1</show_in_default>
916
+ <show_in_website>1</show_in_website>
917
+ <show_in_store>1</show_in_store>
918
+ <fields>
919
+ <active translate="label">
920
+ <label>Enabled</label>
921
+ <frontend_type>select</frontend_type>
922
+ <config_path>payment/sisow_maestro/active</config_path>
923
+ <source_model>adminhtml/system_config_source_yesno</source_model>
924
+ <sort_order>10</sort_order>
925
+ <show_in_default>1</show_in_default>
926
+ <show_in_website>1</show_in_website>
927
+ <show_in_store>1</show_in_store>
928
+ </active>
929
+ <title translate="label">
930
+ <label>Title</label>
931
+ <frontend_type>text</frontend_type>
932
+ <config_path>payment/sisow_maestro/title</config_path>
933
+ <sort_order>20</sort_order>
934
+ <show_in_default>1</show_in_default>
935
+ <show_in_website>1</show_in_website>
936
+ <show_in_store>1</show_in_store>
937
+ </title>
938
+ <prefix translate="label">
939
+ <label>Prefix</label>
940
+ <frontend_type>text</frontend_type>
941
+ <config_path>payment/sisow_maestro/prefix</config_path>
942
+ <sort_order>30</sort_order>
943
+ <show_in_default>1</show_in_default>
944
+ <show_in_website>1</show_in_website>
945
+ <show_in_store>1</show_in_store>
946
+ </prefix>
947
+ <testmode translate="label">
948
+ <label>Testmode</label>
949
+ <frontend_type>select</frontend_type>
950
+ <config_path>payment/sisow_maestro/testmode</config_path>
951
+ <source_model>adminhtml/system_config_source_yesno</source_model>
952
+ <sort_order>40</sort_order>
953
+ <show_in_default>1</show_in_default>
954
+ <show_in_website>1</show_in_website>
955
+ <show_in_store>1</show_in_store>
956
+ </testmode>
957
+ <sort_order translate="label">
958
+ <label>Sort order</label>
959
+ <config_path>payment/sisow_maestro/sort_order</config_path>
960
+ <frontend_type>text</frontend_type>
961
+ <sort_order>50</sort_order>
962
+ <show_in_default>1</show_in_default>
963
+ <show_in_website>1</show_in_website>
964
+ <show_in_store>1</show_in_store>
965
+ </sort_order>
966
+ <new_order_mail translate="label">
967
+ <label>New order mail</label>
968
+ <frontend_type>select</frontend_type>
969
+ <config_path>payment/sisow_maestro/newordermail</config_path>
970
+ <source_model>sisow/config_newordermailMethod</source_model>
971
+ <sort_order>55</sort_order>
972
+ <show_in_default>1</show_in_default>
973
+ <show_in_website>1</show_in_website>
974
+ <show_in_store>1</show_in_store>
975
+ </new_order_mail>
976
+ <auto_invoice translate="label">
977
+ <label>Auto invoice</label>
978
+ <frontend_type>select</frontend_type>
979
+ <config_path>payment/sisow_maestro/autoinvoice</config_path>
980
+ <source_model>sisow/config_autoinvoice</source_model>
981
+ <sort_order>60</sort_order>
982
+ <show_in_default>1</show_in_default>
983
+ <show_in_website>1</show_in_website>
984
+ <show_in_store>1</show_in_store>
985
+ </auto_invoice>
986
+ <min_order_total translate="label">
987
+ <label>Minimum Order Total</label>
988
+ <config_path>payment/sisow_maestro/min_order_total</config_path>
989
+ <frontend_type>text</frontend_type>
990
+ <sort_order>70</sort_order>
991
+ <show_in_default>1</show_in_default>
992
+ <show_in_website>1</show_in_website>
993
+ <show_in_store>1</show_in_store>
994
+ </min_order_total>
995
+ <max_order_total translate="label">
996
+ <label>Maximum Order Total</label>
997
+ <config_path>payment/sisow_maestro/max_order_total</config_path>
998
+ <frontend_type>text</frontend_type>
999
+ <sort_order>80</sort_order>
1000
+ <show_in_default>1</show_in_default>
1001
+ <show_in_website>1</show_in_website>
1002
+ <show_in_store>1</show_in_store>
1003
+ </max_order_total>
1004
+ <allowspecific translate="label">
1005
+ <label>Payment from Applicable Countries</label>
1006
+ <frontend_type>allowspecific</frontend_type>
1007
+ <config_path>payment/sisow_maestro/allowspecific</config_path>
1008
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1009
+ <sort_order>90</sort_order>
1010
+ <show_in_default>1</show_in_default>
1011
+ <show_in_website>1</show_in_website>
1012
+ <show_in_store>1</show_in_store>
1013
+ </allowspecific>
1014
+ <specificcountry translate="label">
1015
+ <label>Payment from Specific Country</label>
1016
+ <frontend_type>multiselect</frontend_type>
1017
+ <config_path>payment/sisow_maestro/specificcountry</config_path>
1018
+ <source_model>adminhtml/system_config_source_country</source_model>
1019
+ <sort_order>100</sort_order>
1020
+ <show_in_default>1</show_in_default>
1021
+ <show_in_website>1</show_in_website>
1022
+ <show_in_store>1</show_in_store>
1023
+ </specificcountry>
1024
+ <payment_fee translate="label">
1025
+ <label>Payment fee</label>
1026
+ <config_path>payment/sisow_maestro/payment_fee</config_path>
1027
+ <sort_order>110</sort_order>
1028
+ <show_in_default>1</show_in_default>
1029
+ <show_in_website>1</show_in_website>
1030
+ <show_in_store>1</show_in_store>
1031
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
1032
+ </payment_fee>
1033
+ <payment_fee_tax translate="label">
1034
+ <label>Payment fee tax class</label>
1035
+ <frontend_type>select</frontend_type>
1036
+ <config_path>payment/sisow_maestro/payment_fee_tax</config_path>
1037
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
1038
+ <sort_order>120</sort_order>
1039
+ <show_in_default>1</show_in_default>
1040
+ <show_in_store>1</show_in_store>
1041
+ <show_in_website>1</show_in_website>
1042
+ <comment>The tax class to use to calculate the payment fee tax</comment>
1043
+ </payment_fee_tax>
1044
+ <payment_fee_inc_ex translate="label">
1045
+ <label>Including/Excluding Tax</label>
1046
+ <frontend_type>select</frontend_type>
1047
+ <config_path>payment/sisow_maestro/payment_fee_inc_ex</config_path>
1048
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1049
+ <sort_order>130</sort_order>
1050
+ <show_in_default>1</show_in_default>
1051
+ <show_in_website>1</show_in_website>
1052
+ <show_in_store>1</show_in_store>
1053
+ <comment>Is the entered payment fee value including or exluding tax</comment>
1054
+ </payment_fee_inc_ex>
1055
+ <payment_fee_label translate="label,comment">
1056
+ <label>Payment fee label</label>
1057
+ <config_path>payment/sisow_maestro/payment_fee_label</config_path>
1058
+ <sort_order>140</sort_order>
1059
+ <show_in_default>1</show_in_default>
1060
+ <show_in_website>1</show_in_website>
1061
+ <show_in_store>1</show_in_store>
1062
+ <comment>Payment fee label to show</comment>
1063
+ </payment_fee_label>
1064
+ </fields>
1065
+ </sisow_maestro>
1066
+ <sisow_overboeking translate="label" module="sisow">
1067
+ <label>Sisow OverBoeking</label>
1068
+ <sort_order>50</sort_order>
1069
+ <show_in_default>1</show_in_default>
1070
+ <show_in_website>1</show_in_website>
1071
+ <show_in_store>1</show_in_store>
1072
+ <fields>
1073
+ <active translate="label">
1074
+ <label>Enabled</label>
1075
+ <frontend_type>select</frontend_type>
1076
+ <config_path>payment/sisow_overboeking/active</config_path>
1077
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1078
+ <sort_order>10</sort_order>
1079
+ <show_in_default>1</show_in_default>
1080
+ <show_in_website>1</show_in_website>
1081
+ <show_in_store>1</show_in_store>
1082
+ </active>
1083
+ <title translate="label">
1084
+ <label>Title</label>
1085
+ <frontend_type>text</frontend_type>
1086
+ <config_path>payment/sisow_overboeking/title</config_path>
1087
+ <sort_order>20</sort_order>
1088
+ <show_in_default>1</show_in_default>
1089
+ <show_in_website>1</show_in_website>
1090
+ <show_in_store>1</show_in_store>
1091
+ </title>
1092
+ <prefix translate="label">
1093
+ <label>Prefix</label>
1094
+ <frontend_type>text</frontend_type>
1095
+ <config_path>payment/sisow_overboeking/prefix</config_path>
1096
+ <sort_order>30</sort_order>
1097
+ <show_in_default>1</show_in_default>
1098
+ <show_in_website>1</show_in_website>
1099
+ <show_in_store>1</show_in_store>
1100
+ </prefix>
1101
+ <testmode translate="label">
1102
+ <label>Testmode</label>
1103
+ <frontend_type>select</frontend_type>
1104
+ <config_path>payment/sisow_overboeking/testmode</config_path>
1105
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1106
+ <sort_order>40</sort_order>
1107
+ <show_in_default>1</show_in_default>
1108
+ <show_in_website>1</show_in_website>
1109
+ <show_in_store>1</show_in_store>
1110
+ </testmode>
1111
+ <include translate="label">
1112
+ <label>Include payment link</label>
1113
+ <frontend_type>select</frontend_type>
1114
+ <config_path>payment/sisow_overboeking/include</config_path>
1115
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1116
+ <sort_order>44</sort_order>
1117
+ <show_in_default>1</show_in_default>
1118
+ <show_in_website>1</show_in_website>
1119
+ <show_in_store>1</show_in_store>
1120
+ </include>
1121
+ <days translate="label">
1122
+ <label>Days overboeking is valid</label>
1123
+ <config_path>payment/sisow_overboeking/days</config_path>
1124
+ <frontend_type>text</frontend_type>
1125
+ <sort_order>48</sort_order>
1126
+ <show_in_default>1</show_in_default>
1127
+ <show_in_website>1</show_in_website>
1128
+ <show_in_store>1</show_in_store>
1129
+ </days>
1130
+ <sort_order translate="label">
1131
+ <label>Sort order</label>
1132
+ <config_path>payment/sisow_overboeking/sort_order</config_path>
1133
+ <frontend_type>text</frontend_type>
1134
+ <sort_order>50</sort_order>
1135
+ <show_in_default>1</show_in_default>
1136
+ <show_in_website>1</show_in_website>
1137
+ <show_in_store>1</show_in_store>
1138
+ </sort_order>
1139
+ <new_order_mail translate="label">
1140
+ <label>New order mail</label>
1141
+ <frontend_type>select</frontend_type>
1142
+ <config_path>payment/sisow_overboeking/newordermail</config_path>
1143
+ <source_model>sisow/config_newordermailMethod</source_model>
1144
+ <sort_order>55</sort_order>
1145
+ <show_in_default>1</show_in_default>
1146
+ <show_in_website>1</show_in_website>
1147
+ <show_in_store>1</show_in_store>
1148
+ </new_order_mail>
1149
+ <auto_invoice translate="label">
1150
+ <label>Auto invoice</label>
1151
+ <frontend_type>select</frontend_type>
1152
+ <config_path>payment/sisow_overboeking/autoinvoice</config_path>
1153
+ <source_model>sisow/config_autoinvoice</source_model>
1154
+ <sort_order>60</sort_order>
1155
+ <show_in_default>1</show_in_default>
1156
+ <show_in_website>1</show_in_website>
1157
+ <show_in_store>1</show_in_store>
1158
+ </auto_invoice>
1159
+ <min_order_total translate="label">
1160
+ <label>Minimum Order Total</label>
1161
+ <config_path>payment/sisow_overboeking/min_order_total</config_path>
1162
+ <frontend_type>text</frontend_type>
1163
+ <sort_order>70</sort_order>
1164
+ <show_in_default>1</show_in_default>
1165
+ <show_in_website>1</show_in_website>
1166
+ <show_in_store>1</show_in_store>
1167
+ </min_order_total>
1168
+ <max_order_total translate="label">
1169
+ <label>Maximum Order Total</label>
1170
+ <config_path>payment/sisow_overboeking/max_order_total</config_path>
1171
+ <frontend_type>text</frontend_type>
1172
+ <sort_order>80</sort_order>
1173
+ <show_in_default>1</show_in_default>
1174
+ <show_in_website>1</show_in_website>
1175
+ <show_in_store>1</show_in_store>
1176
+ </max_order_total>
1177
+ <allowspecific translate="label">
1178
+ <label>Payment from Applicable Countries</label>
1179
+ <frontend_type>allowspecific</frontend_type>
1180
+ <config_path>payment/sisow_overboeking/allowspecific</config_path>
1181
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1182
+ <sort_order>90</sort_order>
1183
+ <show_in_default>1</show_in_default>
1184
+ <show_in_website>1</show_in_website>
1185
+ <show_in_store>1</show_in_store>
1186
+ </allowspecific>
1187
+ <specificcountry translate="label">
1188
+ <label>Payment from Specific Country</label>
1189
+ <frontend_type>multiselect</frontend_type>
1190
+ <config_path>payment/sisow_overboeking/specificcountry</config_path>
1191
+ <source_model>adminhtml/system_config_source_country</source_model>
1192
+ <sort_order>100</sort_order>
1193
+ <show_in_default>1</show_in_default>
1194
+ <show_in_website>1</show_in_website>
1195
+ <show_in_store>1</show_in_store>
1196
+ </specificcountry>
1197
+ <payment_fee translate="label">
1198
+ <label>Payment fee</label>
1199
+ <config_path>payment/sisow_overboeking/payment_fee</config_path>
1200
+ <sort_order>110</sort_order>
1201
+ <show_in_default>1</show_in_default>
1202
+ <show_in_website>1</show_in_website>
1203
+ <show_in_store>1</show_in_store>
1204
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
1205
+ </payment_fee>
1206
+ <payment_fee_tax translate="label">
1207
+ <label>Payment fee tax class</label>
1208
+ <frontend_type>select</frontend_type>
1209
+ <config_path>payment/sisow_overboeking/payment_fee_tax</config_path>
1210
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
1211
+ <sort_order>120</sort_order>
1212
+ <show_in_default>1</show_in_default>
1213
+ <show_in_store>1</show_in_store>
1214
+ <show_in_website>1</show_in_website>
1215
+ <comment>The tax class to use to calculate the payment fee tax</comment>
1216
+ </payment_fee_tax>
1217
+ <payment_fee_inc_ex translate="label">
1218
+ <label>Including/Excluding Tax</label>
1219
+ <frontend_type>select</frontend_type>
1220
+ <config_path>payment/sisow_overboeking/payment_fee_inc_ex</config_path>
1221
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1222
+ <sort_order>130</sort_order>
1223
+ <show_in_default>1</show_in_default>
1224
+ <show_in_website>1</show_in_website>
1225
+ <show_in_store>1</show_in_store>
1226
+ <comment>Is the entered payment fee value including or exluding tax</comment>
1227
+ </payment_fee_inc_ex>
1228
+ <payment_fee_label translate="label,comment">
1229
+ <label>Payment fee label</label>
1230
+ <config_path>payment/sisow_overboeking/payment_fee_label</config_path>
1231
+ <sort_order>140</sort_order>
1232
+ <show_in_default>1</show_in_default>
1233
+ <show_in_website>1</show_in_website>
1234
+ <show_in_store>1</show_in_store>
1235
+ <comment>Payment fee label to show</comment>
1236
+ </payment_fee_label>
1237
+ </fields>
1238
+ </sisow_overboeking>
1239
+ <sisow_paypalec translate="label" module="sisow">
1240
+ <label>Sisow PayPal</label>
1241
+ <sort_order>60</sort_order>
1242
+ <show_in_default>1</show_in_default>
1243
+ <show_in_website>1</show_in_website>
1244
+ <show_in_store>1</show_in_store>
1245
+ <fields>
1246
+ <active translate="label">
1247
+ <label>Enabled</label>
1248
+ <frontend_type>select</frontend_type>
1249
+ <config_path>payment/sisow_paypalec/active</config_path>
1250
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1251
+ <sort_order>10</sort_order>
1252
+ <show_in_default>1</show_in_default>
1253
+ <show_in_website>1</show_in_website>
1254
+ <show_in_store>1</show_in_store>
1255
+ </active>
1256
+ <title translate="label">
1257
+ <label>Title</label>
1258
+ <frontend_type>text</frontend_type>
1259
+ <config_path>payment/sisow_paypalec/title</config_path>
1260
+ <sort_order>20</sort_order>
1261
+ <show_in_default>1</show_in_default>
1262
+ <show_in_website>1</show_in_website>
1263
+ <show_in_store>1</show_in_store>
1264
+ </title>
1265
+ <prefix translate="label">
1266
+ <label>Prefix</label>
1267
+ <frontend_type>text</frontend_type>
1268
+ <config_path>payment/sisow_paypalec/prefix</config_path>
1269
+ <sort_order>30</sort_order>
1270
+ <show_in_default>1</show_in_default>
1271
+ <show_in_website>1</show_in_website>
1272
+ <show_in_store>1</show_in_store>
1273
+ </prefix>
1274
+ <testmode translate="label">
1275
+ <label>Testmode</label>
1276
+ <frontend_type>select</frontend_type>
1277
+ <config_path>payment/sisow_paypalec/testmode</config_path>
1278
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1279
+ <sort_order>40</sort_order>
1280
+ <show_in_default>1</show_in_default>
1281
+ <show_in_website>1</show_in_website>
1282
+ <show_in_store>1</show_in_store>
1283
+ </testmode>
1284
+ <sort_order translate="label">
1285
+ <label>Sort order</label>
1286
+ <config_path>payment/sisow_paypalec/sort_order</config_path>
1287
+ <frontend_type>text</frontend_type>
1288
+ <sort_order>50</sort_order>
1289
+ <show_in_default>1</show_in_default>
1290
+ <show_in_website>1</show_in_website>
1291
+ <show_in_store>1</show_in_store>
1292
+ </sort_order>
1293
+ <new_order_mail translate="label">
1294
+ <label>New order mail</label>
1295
+ <frontend_type>select</frontend_type>
1296
+ <config_path>payment/sisow_paypalec/newordermail</config_path>
1297
+ <source_model>sisow/config_newordermailMethod</source_model>
1298
+ <sort_order>55</sort_order>
1299
+ <show_in_default>1</show_in_default>
1300
+ <show_in_website>1</show_in_website>
1301
+ <show_in_store>1</show_in_store>
1302
+ </new_order_mail>
1303
+ <auto_invoice translate="label">
1304
+ <label>Auto invoice</label>
1305
+ <frontend_type>select</frontend_type>
1306
+ <config_path>payment/sisow_paypalec/autoinvoice</config_path>
1307
+ <source_model>sisow/config_autoinvoice</source_model>
1308
+ <sort_order>60</sort_order>
1309
+ <show_in_default>1</show_in_default>
1310
+ <show_in_website>1</show_in_website>
1311
+ <show_in_store>1</show_in_store>
1312
+ </auto_invoice>
1313
+ <min_order_total translate="label">
1314
+ <label>Minimum Order Total</label>
1315
+ <config_path>payment/sisow_paypalec/min_order_total</config_path>
1316
+ <frontend_type>text</frontend_type>
1317
+ <sort_order>70</sort_order>
1318
+ <show_in_default>1</show_in_default>
1319
+ <show_in_website>1</show_in_website>
1320
+ <show_in_store>1</show_in_store>
1321
+ </min_order_total>
1322
+ <max_order_total translate="label">
1323
+ <label>Maximum Order Total</label>
1324
+ <config_path>payment/sisow_paypalec/max_order_total</config_path>
1325
+ <frontend_type>text</frontend_type>
1326
+ <sort_order>80</sort_order>
1327
+ <show_in_default>1</show_in_default>
1328
+ <show_in_website>1</show_in_website>
1329
+ <show_in_store>1</show_in_store>
1330
+ </max_order_total>
1331
+ <allowspecific translate="label">
1332
+ <label>Payment from Applicable Countries</label>
1333
+ <frontend_type>allowspecific</frontend_type>
1334
+ <config_path>payment/sisow_paypalec/allowspecific</config_path>
1335
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1336
+ <sort_order>90</sort_order>
1337
+ <show_in_default>1</show_in_default>
1338
+ <show_in_website>1</show_in_website>
1339
+ <show_in_store>1</show_in_store>
1340
+ </allowspecific>
1341
+ <specificcountry translate="label">
1342
+ <label>Payment from Specific Country</label>
1343
+ <frontend_type>multiselect</frontend_type>
1344
+ <config_path>payment/sisow_paypalec/specificcountry</config_path>
1345
+ <source_model>adminhtml/system_config_source_country</source_model>
1346
+ <sort_order>100</sort_order>
1347
+ <show_in_default>1</show_in_default>
1348
+ <show_in_website>1</show_in_website>
1349
+ <show_in_store>1</show_in_store>
1350
+ </specificcountry>
1351
+ <payment_fee translate="label">
1352
+ <label>Payment fee</label>
1353
+ <config_path>payment/sisow_paypalec/payment_fee</config_path>
1354
+ <sort_order>110</sort_order>
1355
+ <show_in_default>1</show_in_default>
1356
+ <show_in_website>1</show_in_website>
1357
+ <show_in_store>1</show_in_store>
1358
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
1359
+ </payment_fee>
1360
+ <payment_fee_tax translate="label">
1361
+ <label>Payment fee tax class</label>
1362
+ <frontend_type>select</frontend_type>
1363
+ <config_path>payment/sisow_paypalec/payment_fee_tax</config_path>
1364
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
1365
+ <sort_order>120</sort_order>
1366
+ <show_in_default>1</show_in_default>
1367
+ <show_in_store>1</show_in_store>
1368
+ <show_in_website>1</show_in_website>
1369
+ <comment>The tax class to use to calculate the payment fee tax</comment>
1370
+ </payment_fee_tax>
1371
+ <payment_fee_inc_ex translate="label">
1372
+ <label>Including/Excluding Tax</label>
1373
+ <frontend_type>select</frontend_type>
1374
+ <config_path>payment/sisow_paypalec/payment_fee_inc_ex</config_path>
1375
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1376
+ <sort_order>130</sort_order>
1377
+ <show_in_default>1</show_in_default>
1378
+ <show_in_website>1</show_in_website>
1379
+ <show_in_store>1</show_in_store>
1380
+ <comment>Is the entered payment fee value including or exluding tax</comment>
1381
+ </payment_fee_inc_ex>
1382
+ <payment_fee_label translate="label,comment">
1383
+ <label>Payment fee label</label>
1384
+ <config_path>payment/sisow_paypalec/payment_fee_label</config_path>
1385
+ <sort_order>140</sort_order>
1386
+ <show_in_default>1</show_in_default>
1387
+ <show_in_website>1</show_in_website>
1388
+ <show_in_store>1</show_in_store>
1389
+ <comment>Payment fee label to show</comment>
1390
+ </payment_fee_label>
1391
+ </fields>
1392
+ </sisow_paypalec>
1393
+ <sisow_klarna translate="label" module="sisow">
1394
+ <label>Sisow Klarna Factuur</label>
1395
+ <sort_order>70</sort_order>
1396
+ <show_in_default>1</show_in_default>
1397
+ <show_in_website>1</show_in_website>
1398
+ <show_in_store>1</show_in_store>
1399
+ <fields>
1400
+ <active translate="label">
1401
+ <label>Enabled</label>
1402
+ <frontend_type>select</frontend_type>
1403
+ <config_path>payment/sisow_klarna/active</config_path>
1404
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1405
+ <sort_order>10</sort_order>
1406
+ <show_in_default>1</show_in_default>
1407
+ <show_in_website>1</show_in_website>
1408
+ <show_in_store>1</show_in_store>
1409
+ </active>
1410
+ <title translate="label">
1411
+ <label>Title</label>
1412
+ <frontend_type>text</frontend_type>
1413
+ <config_path>payment/sisow_klarna/title</config_path>
1414
+ <sort_order>20</sort_order>
1415
+ <show_in_default>1</show_in_default>
1416
+ <show_in_website>1</show_in_website>
1417
+ <show_in_store>1</show_in_store>
1418
+ </title>
1419
+ <klarna_id translate="label">
1420
+ <label>Klarna Eid</label>
1421
+ <frontend_type>text</frontend_type>
1422
+ <config_path>payment/sisow_klarna/klarnaeid</config_path>
1423
+ <sort_order>30</sort_order>
1424
+ <show_in_default>1</show_in_default>
1425
+ <show_in_website>1</show_in_website>
1426
+ <show_in_store>1</show_in_store>
1427
+ </klarna_id>
1428
+ <prefix translate="label">
1429
+ <label>Prefix</label>
1430
+ <frontend_type>text</frontend_type>
1431
+ <config_path>payment/sisow_klarna/prefix</config_path>
1432
+ <sort_order>35</sort_order>
1433
+ <show_in_default>1</show_in_default>
1434
+ <show_in_website>1</show_in_website>
1435
+ <show_in_store>1</show_in_store>
1436
+ </prefix>
1437
+ <testmode translate="label">
1438
+ <label>Testmode</label>
1439
+ <frontend_type>select</frontend_type>
1440
+ <config_path>payment/sisow_klarna/testmode</config_path>
1441
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1442
+ <sort_order>40</sort_order>
1443
+ <show_in_default>1</show_in_default>
1444
+ <show_in_website>1</show_in_website>
1445
+ <show_in_store>1</show_in_store>
1446
+ </testmode>
1447
+ <order_status_pending translate="label">
1448
+ <label>Order status 'Klarna Pending'</label>
1449
+ <frontend_type>select</frontend_type>
1450
+ <source_model>adminhtml/system_config_source_order_status</source_model>
1451
+ <sort_order>45</sort_order>
1452
+ <show_in_default>1</show_in_default>
1453
+ <show_in_website>1</show_in_website>
1454
+ <show_in_store>1</show_in_store>
1455
+ </order_status_pending>
1456
+ <sort_order translate="label">
1457
+ <label>Sort order</label>
1458
+ <config_path>payment/sisow_klarna/sort_order</config_path>
1459
+ <frontend_type>text</frontend_type>
1460
+ <sort_order>50</sort_order>
1461
+ <show_in_default>1</show_in_default>
1462
+ <show_in_website>1</show_in_website>
1463
+ <show_in_store>1</show_in_store>
1464
+ </sort_order>
1465
+ <new_order_mail translate="label">
1466
+ <label>New order mail</label>
1467
+ <frontend_type>select</frontend_type>
1468
+ <config_path>payment/sisow_klarna/newordermail</config_path>
1469
+ <source_model>sisow/config_newordermailMethod</source_model>
1470
+ <sort_order>55</sort_order>
1471
+ <show_in_default>1</show_in_default>
1472
+ <show_in_website>1</show_in_website>
1473
+ <show_in_store>1</show_in_store>
1474
+ </new_order_mail>
1475
+ <auto_invoice translate="label">
1476
+ <label>Auto invoice</label>
1477
+ <frontend_type>select</frontend_type>
1478
+ <config_path>payment/sisow_klarna/autoinvoice</config_path>
1479
+ <source_model>sisow/config_autoinvoice</source_model>
1480
+ <sort_order>60</sort_order>
1481
+ <show_in_default>1</show_in_default>
1482
+ <show_in_website>1</show_in_website>
1483
+ <show_in_store>1</show_in_store>
1484
+ </auto_invoice>
1485
+ <sendklarnainvoice translate="label">
1486
+ <label>Create Klarna Invoice</label>
1487
+ <frontend_type>select</frontend_type>
1488
+ <config_path>payment/sisow_klarna/sendklarnainvoice</config_path>
1489
+ <source_model>sisow/config_generalAutoinvoice</source_model>
1490
+ <sort_order>40</sort_order>
1491
+ <show_in_default>1</show_in_default>
1492
+ <show_in_website>1</show_in_website>
1493
+ <show_in_store>1</show_in_store>
1494
+ </sendklarnainvoice>
1495
+ <min_order_total translate="label">
1496
+ <label>Minimum Order Total</label>
1497
+ <config_path>payment/sisow_klarna/min_order_total</config_path>
1498
+ <frontend_type>text</frontend_type>
1499
+ <sort_order>70</sort_order>
1500
+ <show_in_default>1</show_in_default>
1501
+ <show_in_website>1</show_in_website>
1502
+ <show_in_store>1</show_in_store>
1503
+ </min_order_total>
1504
+ <max_order_total translate="label">
1505
+ <label>Maximum Order Total</label>
1506
+ <config_path>payment/sisow_klarna/max_order_total</config_path>
1507
+ <frontend_type>text</frontend_type>
1508
+ <sort_order>80</sort_order>
1509
+ <show_in_default>1</show_in_default>
1510
+ <show_in_website>1</show_in_website>
1511
+ <show_in_store>1</show_in_store>
1512
+ </max_order_total>
1513
+ <allowspecific translate="label">
1514
+ <label>Payment from Applicable Countries</label>
1515
+ <frontend_type>allowspecific</frontend_type>
1516
+ <config_path>payment/sisow_klarna/allowspecific</config_path>
1517
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1518
+ <sort_order>90</sort_order>
1519
+ <show_in_default>1</show_in_default>
1520
+ <show_in_website>1</show_in_website>
1521
+ <show_in_store>1</show_in_store>
1522
+ </allowspecific>
1523
+ <specificcountry translate="label">
1524
+ <label>Payment from Specific Country</label>
1525
+ <frontend_type>multiselect</frontend_type>
1526
+ <config_path>payment/sisow_klarna/specificcountry</config_path>
1527
+ <source_model>adminhtml/system_config_source_country</source_model>
1528
+ <sort_order>100</sort_order>
1529
+ <show_in_default>1</show_in_default>
1530
+ <show_in_website>1</show_in_website>
1531
+ <show_in_store>1</show_in_store>
1532
+ </specificcountry>
1533
+ <payment_fee translate="label">
1534
+ <label>Payment fee</label>
1535
+ <config_path>payment/sisow_klarna/payment_fee</config_path>
1536
+ <sort_order>110</sort_order>
1537
+ <show_in_default>1</show_in_default>
1538
+ <show_in_website>1</show_in_website>
1539
+ <show_in_store>1</show_in_store>
1540
+ <comment>Payment fee</comment>
1541
+ </payment_fee>
1542
+ <payment_fee_tax translate="label">
1543
+ <label>Payment fee tax class</label>
1544
+ <frontend_type>select</frontend_type>
1545
+ <config_path>payment/sisow_klarna/payment_fee_tax</config_path>
1546
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
1547
+ <sort_order>120</sort_order>
1548
+ <show_in_default>1</show_in_default>
1549
+ <show_in_store>1</show_in_store>
1550
+ <show_in_website>1</show_in_website>
1551
+ <comment>The tax class to use to calculate the payment fee tax</comment>
1552
+ </payment_fee_tax>
1553
+ <payment_fee_inc_ex translate="label">
1554
+ <label>Including/Excluding Tax</label>
1555
+ <frontend_type>select</frontend_type>
1556
+ <config_path>payment/sisow_klarna/payment_fee_inc_ex</config_path>
1557
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1558
+ <sort_order>130</sort_order>
1559
+ <show_in_default>1</show_in_default>
1560
+ <show_in_website>1</show_in_website>
1561
+ <show_in_store>1</show_in_store>
1562
+ <comment>Is the entered payment fee value including or exluding tax</comment>
1563
+ </payment_fee_inc_ex>
1564
+ <payment_fee_label translate="label,comment">
1565
+ <label>Payment fee label</label>
1566
+ <config_path>payment/sisow_klarna/payment_fee_label</config_path>
1567
+ <sort_order>140</sort_order>
1568
+ <show_in_default>1</show_in_default>
1569
+ <show_in_website>1</show_in_website>
1570
+ <show_in_store>1</show_in_store>
1571
+ <comment>Payment fee label to show</comment>
1572
+ </payment_fee_label>
1573
+ </fields>
1574
+ </sisow_klarna>
1575
+ <sisow_klarnaacc translate="label" module="sisow">
1576
+ <label>Sisow Klarna Account</label>
1577
+ <sort_order>80</sort_order>
1578
+ <show_in_default>1</show_in_default>
1579
+ <show_in_website>1</show_in_website>
1580
+ <show_in_store>1</show_in_store>
1581
+ <fields>
1582
+ <active translate="label">
1583
+ <label>Enabled</label>
1584
+ <frontend_type>select</frontend_type>
1585
+ <config_path>payment/sisow_klarnaacc/active</config_path>
1586
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1587
+ <sort_order>10</sort_order>
1588
+ <show_in_default>1</show_in_default>
1589
+ <show_in_website>1</show_in_website>
1590
+ <show_in_store>1</show_in_store>
1591
+ </active>
1592
+ <title translate="label">
1593
+ <label>Title</label>
1594
+ <frontend_type>text</frontend_type>
1595
+ <config_path>payment/sisow_klarnaacc/title</config_path>
1596
+ <sort_order>20</sort_order>
1597
+ <show_in_default>1</show_in_default>
1598
+ <show_in_website>1</show_in_website>
1599
+ <show_in_store>1</show_in_store>
1600
+ </title>
1601
+ <klarna_id translate="label">
1602
+ <label>Klarna Eid</label>
1603
+ <frontend_type>text</frontend_type>
1604
+ <config_path>payment/sisow_klarnaacc/klarnaeid</config_path>
1605
+ <sort_order>30</sort_order>
1606
+ <show_in_default>1</show_in_default>
1607
+ <show_in_website>1</show_in_website>
1608
+ <show_in_store>1</show_in_store>
1609
+ </klarna_id>
1610
+ <prefix translate="label">
1611
+ <label>Prefix</label>
1612
+ <frontend_type>text</frontend_type>
1613
+ <config_path>payment/sisow_klarnaacc/prefix</config_path>
1614
+ <sort_order>35</sort_order>
1615
+ <show_in_default>1</show_in_default>
1616
+ <show_in_website>1</show_in_website>
1617
+ <show_in_store>1</show_in_store>
1618
+ </prefix>
1619
+ <testmode translate="label">
1620
+ <label>Testmode</label>
1621
+ <frontend_type>select</frontend_type>
1622
+ <config_path>payment/sisow_klarnaacc/testmode</config_path>
1623
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1624
+ <sort_order>40</sort_order>
1625
+ <show_in_default>1</show_in_default>
1626
+ <show_in_website>1</show_in_website>
1627
+ <show_in_store>1</show_in_store>
1628
+ </testmode>
1629
+ <order_status_pending translate="label">
1630
+ <label>Order status 'Klarna Pending'</label>
1631
+ <frontend_type>select</frontend_type>
1632
+ <source_model>adminhtml/system_config_source_order_status</source_model>
1633
+ <sort_order>45</sort_order>
1634
+ <show_in_default>1</show_in_default>
1635
+ <show_in_website>1</show_in_website>
1636
+ <show_in_store>1</show_in_store>
1637
+ </order_status_pending>
1638
+ <sort_order translate="label">
1639
+ <label>Sort order</label>
1640
+ <config_path>payment/sisow_klarnaacc/sort_order</config_path>
1641
+ <frontend_type>text</frontend_type>
1642
+ <sort_order>50</sort_order>
1643
+ <show_in_default>1</show_in_default>
1644
+ <show_in_website>1</show_in_website>
1645
+ <show_in_store>1</show_in_store>
1646
+ </sort_order>
1647
+ <new_order_mail translate="label">
1648
+ <label>New order mail</label>
1649
+ <frontend_type>select</frontend_type>
1650
+ <config_path>payment/sisow_klarnaacc/newordermail</config_path>
1651
+ <source_model>sisow/config_newordermailMethod</source_model>
1652
+ <sort_order>55</sort_order>
1653
+ <show_in_default>1</show_in_default>
1654
+ <show_in_website>1</show_in_website>
1655
+ <show_in_store>1</show_in_store>
1656
+ </new_order_mail>
1657
+ <auto_invoice translate="label">
1658
+ <label>Auto invoice</label>
1659
+ <frontend_type>select</frontend_type>
1660
+ <config_path>payment/sisow_klarnaacc/autoinvoice</config_path>
1661
+ <source_model>sisow/config_autoinvoice</source_model>
1662
+ <sort_order>60</sort_order>
1663
+ <show_in_default>1</show_in_default>
1664
+ <show_in_website>1</show_in_website>
1665
+ <show_in_store>1</show_in_store>
1666
+ </auto_invoice>
1667
+ <sendklarnainvoice translate="label">
1668
+ <label>Create Klarna Invoice</label>
1669
+ <frontend_type>select</frontend_type>
1670
+ <config_path>payment/sisow_klarnaacc/sendklarnainvoice</config_path>
1671
+ <source_model>sisow/config_generalAutoinvoice</source_model>
1672
+ <sort_order>40</sort_order>
1673
+ <show_in_default>1</show_in_default>
1674
+ <show_in_website>1</show_in_website>
1675
+ <show_in_store>1</show_in_store>
1676
+ </sendklarnainvoice>
1677
+ <min_order_total translate="label">
1678
+ <label>Minimum Order Total</label>
1679
+ <config_path>payment/sisow_klarnaacc/min_order_total</config_path>
1680
+ <frontend_type>text</frontend_type>
1681
+ <sort_order>70</sort_order>
1682
+ <show_in_default>1</show_in_default>
1683
+ <show_in_website>1</show_in_website>
1684
+ <show_in_store>1</show_in_store>
1685
+ </min_order_total>
1686
+ <max_order_total translate="label">
1687
+ <label>Maximum Order Total</label>
1688
+ <config_path>payment/sisow_klarnaacc/max_order_total</config_path>
1689
+ <frontend_type>text</frontend_type>
1690
+ <sort_order>80</sort_order>
1691
+ <show_in_default>1</show_in_default>
1692
+ <show_in_website>1</show_in_website>
1693
+ <show_in_store>1</show_in_store>
1694
+ </max_order_total>
1695
+ <allowspecific translate="label">
1696
+ <label>Payment from Applicable Countries</label>
1697
+ <frontend_type>allowspecific</frontend_type>
1698
+ <config_path>payment/sisow_klarnaacc/allowspecific</config_path>
1699
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1700
+ <sort_order>90</sort_order>
1701
+ <show_in_default>1</show_in_default>
1702
+ <show_in_website>1</show_in_website>
1703
+ <show_in_store>1</show_in_store>
1704
+ </allowspecific>
1705
+ <specificcountry translate="label">
1706
+ <label>Payment from Specific Country</label>
1707
+ <frontend_type>multiselect</frontend_type>
1708
+ <config_path>payment/sisow_klarnaacc/specificcountry</config_path>
1709
+ <source_model>adminhtml/system_config_source_country</source_model>
1710
+ <sort_order>100</sort_order>
1711
+ <show_in_default>1</show_in_default>
1712
+ <show_in_website>1</show_in_website>
1713
+ <show_in_store>1</show_in_store>
1714
+ </specificcountry>
1715
+ <payment_fee translate="label">
1716
+ <label>Payment fee</label>
1717
+ <config_path>payment/sisow_klarnaacc/payment_fee</config_path>
1718
+ <sort_order>110</sort_order>
1719
+ <show_in_default>1</show_in_default>
1720
+ <show_in_website>1</show_in_website>
1721
+ <show_in_store>1</show_in_store>
1722
+ <comment>Payment fee</comment>
1723
+ </payment_fee>
1724
+ <payment_fee_tax translate="label">
1725
+ <label>Payment fee tax class</label>
1726
+ <frontend_type>select</frontend_type>
1727
+ <config_path>payment/sisow_klarnaacc/payment_fee_tax</config_path>
1728
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
1729
+ <sort_order>120</sort_order>
1730
+ <show_in_default>1</show_in_default>
1731
+ <show_in_store>1</show_in_store>
1732
+ <show_in_website>1</show_in_website>
1733
+ <comment>The tax class to use to calculate the payment fee tax</comment>
1734
+ </payment_fee_tax>
1735
+ <payment_fee_inc_ex translate="label">
1736
+ <label>Including/Excluding Tax</label>
1737
+ <frontend_type>select</frontend_type>
1738
+ <config_path>payment/sisow_klarnaacc/payment_fee_inc_ex</config_path>
1739
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1740
+ <sort_order>130</sort_order>
1741
+ <show_in_default>1</show_in_default>
1742
+ <show_in_website>1</show_in_website>
1743
+ <show_in_store>1</show_in_store>
1744
+ <comment>Is the entered payment fee value including or exluding tax</comment>
1745
+ </payment_fee_inc_ex>
1746
+ <payment_fee_label translate="label,comment">
1747
+ <label>Payment fee label</label>
1748
+ <config_path>payment/sisow_klarnaacc/payment_fee_label</config_path>
1749
+ <sort_order>140</sort_order>
1750
+ <show_in_default>1</show_in_default>
1751
+ <show_in_website>1</show_in_website>
1752
+ <show_in_store>1</show_in_store>
1753
+ <comment>Payment fee label to show</comment>
1754
+ </payment_fee_label>
1755
+ </fields>
1756
+ </sisow_klarnaacc>
1757
+ <sisow_webshop translate="label" module="sisow">
1758
+ <label>Sisow Webshop Giftcard</label>
1759
+ <sort_order>90</sort_order>
1760
+ <show_in_default>1</show_in_default>
1761
+ <show_in_website>1</show_in_website>
1762
+ <show_in_store>1</show_in_store>
1763
+ <fields>
1764
+ <active translate="label">
1765
+ <label>Enabled</label>
1766
+ <frontend_type>select</frontend_type>
1767
+ <config_path>payment/sisow_webshop/active</config_path>
1768
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1769
+ <sort_order>10</sort_order>
1770
+ <show_in_default>1</show_in_default>
1771
+ <show_in_website>1</show_in_website>
1772
+ <show_in_store>1</show_in_store>
1773
+ </active>
1774
+ <title translate="label">
1775
+ <label>Title</label>
1776
+ <frontend_type>text</frontend_type>
1777
+ <config_path>payment/sisow_webshop/title</config_path>
1778
+ <sort_order>20</sort_order>
1779
+ <show_in_default>1</show_in_default>
1780
+ <show_in_website>1</show_in_website>
1781
+ <show_in_store>1</show_in_store>
1782
+ </title>
1783
+ <prefix translate="label">
1784
+ <label>Prefix</label>
1785
+ <frontend_type>text</frontend_type>
1786
+ <config_path>payment/sisow_webshop/prefix</config_path>
1787
+ <sort_order>30</sort_order>
1788
+ <show_in_default>1</show_in_default>
1789
+ <show_in_website>1</show_in_website>
1790
+ <show_in_store>1</show_in_store>
1791
+ </prefix>
1792
+ <testmode translate="label">
1793
+ <label>Testmode</label>
1794
+ <frontend_type>select</frontend_type>
1795
+ <config_path>payment/sisow_webshop/testmode</config_path>
1796
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1797
+ <sort_order>40</sort_order>
1798
+ <show_in_default>1</show_in_default>
1799
+ <show_in_website>1</show_in_website>
1800
+ <show_in_store>1</show_in_store>
1801
+ </testmode>
1802
+ <sort_order translate="label">
1803
+ <label>Sort order</label>
1804
+ <config_path>payment/sisow_webshop/sort_order</config_path>
1805
+ <frontend_type>text</frontend_type>
1806
+ <sort_order>50</sort_order>
1807
+ <show_in_default>1</show_in_default>
1808
+ <show_in_website>1</show_in_website>
1809
+ <show_in_store>1</show_in_store>
1810
+ </sort_order>
1811
+ <new_order_mail translate="label">
1812
+ <label>New order mail</label>
1813
+ <frontend_type>select</frontend_type>
1814
+ <config_path>payment/sisow_webshop/newordermail</config_path>
1815
+ <source_model>sisow/config_newordermailMethod</source_model>
1816
+ <sort_order>55</sort_order>
1817
+ <show_in_default>1</show_in_default>
1818
+ <show_in_website>1</show_in_website>
1819
+ <show_in_store>1</show_in_store>
1820
+ </new_order_mail>
1821
+ <auto_invoice translate="label">
1822
+ <label>Auto invoice</label>
1823
+ <frontend_type>select</frontend_type>
1824
+ <config_path>payment/sisow_webshop/autoinvoice</config_path>
1825
+ <source_model>sisow/config_autoinvoice</source_model>
1826
+ <sort_order>60</sort_order>
1827
+ <show_in_default>1</show_in_default>
1828
+ <show_in_website>1</show_in_website>
1829
+ <show_in_store>1</show_in_store>
1830
+ </auto_invoice>
1831
+ <min_order_total translate="label">
1832
+ <label>Minimum Order Total</label>
1833
+ <config_path>payment/sisow_webshop/min_order_total</config_path>
1834
+ <frontend_type>text</frontend_type>
1835
+ <sort_order>70</sort_order>
1836
+ <show_in_default>1</show_in_default>
1837
+ <show_in_website>1</show_in_website>
1838
+ <show_in_store>1</show_in_store>
1839
+ </min_order_total>
1840
+ <max_order_total translate="label">
1841
+ <label>Maximum Order Total</label>
1842
+ <config_path>payment/sisow_webshop/max_order_total</config_path>
1843
+ <frontend_type>text</frontend_type>
1844
+ <sort_order>80</sort_order>
1845
+ <show_in_default>1</show_in_default>
1846
+ <show_in_website>1</show_in_website>
1847
+ <show_in_store>1</show_in_store>
1848
+ </max_order_total>
1849
+ <allowspecific translate="label">
1850
+ <label>Payment from Applicable Countries</label>
1851
+ <frontend_type>allowspecific</frontend_type>
1852
+ <config_path>payment/sisow_webshop/allowspecific</config_path>
1853
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1854
+ <sort_order>90</sort_order>
1855
+ <show_in_default>1</show_in_default>
1856
+ <show_in_website>1</show_in_website>
1857
+ <show_in_store>1</show_in_store>
1858
+ </allowspecific>
1859
+ <specificcountry translate="label">
1860
+ <label>Payment from Specific Country</label>
1861
+ <frontend_type>multiselect</frontend_type>
1862
+ <config_path>payment/sisow_webshop/specificcountry</config_path>
1863
+ <source_model>adminhtml/system_config_source_country</source_model>
1864
+ <sort_order>100</sort_order>
1865
+ <show_in_default>1</show_in_default>
1866
+ <show_in_website>1</show_in_website>
1867
+ <show_in_store>1</show_in_store>
1868
+ </specificcountry>
1869
+ <payment_fee translate="label">
1870
+ <label>Payment fee</label>
1871
+ <config_path>payment/sisow_webshop/payment_fee</config_path>
1872
+ <sort_order>110</sort_order>
1873
+ <show_in_default>1</show_in_default>
1874
+ <show_in_website>1</show_in_website>
1875
+ <show_in_store>1</show_in_store>
1876
+ <comment>Payment fee, positive is amount, negative is percentage or make a comination (eg 1;-3)</comment>
1877
+ </payment_fee>
1878
+ <payment_fee_tax translate="label">
1879
+ <label>Payment fee tax class</label>
1880
+ <frontend_type>select</frontend_type>
1881
+ <config_path>payment/sisow_webshop/payment_fee_tax</config_path>
1882
+ <source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
1883
+ <sort_order>120</sort_order>
1884
+ <show_in_default>1</show_in_default>
1885
+ <show_in_store>1</show_in_store>
1886
+ <show_in_website>1</show_in_website>
1887
+ <comment>The tax class to use to calculate the payment fee tax</comment>
1888
+ </payment_fee_tax>
1889
+ <payment_fee_inc_ex translate="label">
1890
+ <label>Including/Excluding Tax</label>
1891
+ <frontend_type>select</frontend_type>
1892
+ <config_path>payment/sisow_webshop/payment_fee_inc_ex</config_path>
1893
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1894
+ <sort_order>130</sort_order>
1895
+ <show_in_default>1</show_in_default>
1896
+ <show_in_website>1</show_in_website>
1897
+ <show_in_store>1</show_in_store>
1898
+ <comment>Is the entered payment fee value including or exluding tax</comment>
1899
+ </payment_fee_inc_ex>
1900
+ <payment_fee_label translate="label,comment">
1901
+ <label>Payment fee label</label>
1902
+ <config_path>payment/sisow_webshop/payment_fee_label</config_path>
1903
+ <sort_order>140</sort_order>
1904
+ <show_in_default>1</show_in_default>
1905
+ <show_in_website>1</show_in_website>
1906
+ <show_in_store>1</show_in_store>
1907
+ <comment>Payment fee label to show</comment>
1908
+ </payment_fee_label>
1909
+ </fields>
1910
+ </sisow_webshop>
1911
+ <sisow_ebill translate="label comment" module="sisow">
1912
+ <label>Sisow Ebill</label>
1913
+ <comment>Only for internal use, the customer receives a pre-printed giro credit slip in his/her mail.</comment>
1914
+ <sort_order>100</sort_order>
1915
+ <show_in_default>1</show_in_default>
1916
+ <show_in_website>1</show_in_website>
1917
+ <show_in_store>1</show_in_store>
1918
+ <fields>
1919
+ <active translate="label">
1920
+ <label>Enabled</label>
1921
+ <frontend_type>select</frontend_type>
1922
+ <config_path>payment/sisow_ebill/active</config_path>
1923
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1924
+ <sort_order>10</sort_order>
1925
+ <show_in_default>1</show_in_default>
1926
+ <show_in_website>1</show_in_website>
1927
+ <show_in_store>1</show_in_store>
1928
+ </active>
1929
+ <title translate="label">
1930
+ <label>Title</label>
1931
+ <frontend_type>text</frontend_type>
1932
+ <config_path>payment/sisow_ebill/title</config_path>
1933
+ <sort_order>20</sort_order>
1934
+ <show_in_default>1</show_in_default>
1935
+ <show_in_website>1</show_in_website>
1936
+ <show_in_store>1</show_in_store>
1937
+ </title>
1938
+ <prefix translate="label">
1939
+ <label>Prefix</label>
1940
+ <frontend_type>text</frontend_type>
1941
+ <config_path>payment/sisow_ebill/prefix</config_path>
1942
+ <sort_order>30</sort_order>
1943
+ <show_in_default>1</show_in_default>
1944
+ <show_in_website>1</show_in_website>
1945
+ <show_in_store>1</show_in_store>
1946
+ </prefix>
1947
+ <days translate="label">
1948
+ <label>Days Ebill is valid</label>
1949
+ <config_path>payment/sisow_ebill/days</config_path>
1950
+ <frontend_type>text</frontend_type>
1951
+ <sort_order>48</sort_order>
1952
+ <show_in_default>1</show_in_default>
1953
+ <show_in_website>1</show_in_website>
1954
+ <show_in_store>1</show_in_store>
1955
+ </days>
1956
+ <testmode translate="label">
1957
+ <label>Testmode</label>
1958
+ <frontend_type>select</frontend_type>
1959
+ <config_path>payment/sisow_ebill/testmode</config_path>
1960
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1961
+ <sort_order>40</sort_order>
1962
+ <show_in_default>1</show_in_default>
1963
+ <show_in_website>1</show_in_website>
1964
+ <show_in_store>1</show_in_store>
1965
+ </testmode>
1966
+ <new_order_mail translate="label">
1967
+ <label>New order mail</label>
1968
+ <frontend_type>select</frontend_type>
1969
+ <config_path>payment/sisow_ebill/newordermail</config_path>
1970
+ <source_model>sisow/config_newordermailMethod</source_model>
1971
+ <sort_order>55</sort_order>
1972
+ <show_in_default>1</show_in_default>
1973
+ <show_in_website>1</show_in_website>
1974
+ <show_in_store>1</show_in_store>
1975
+ </new_order_mail>
1976
+ <auto_invoice translate="label">
1977
+ <label>Auto invoice</label>
1978
+ <frontend_type>select</frontend_type>
1979
+ <config_path>payment/sisow_ebill/autoinvoice</config_path>
1980
+ <source_model>sisow/config_autoinvoice</source_model>
1981
+ <sort_order>60</sort_order>
1982
+ <show_in_default>1</show_in_default>
1983
+ <show_in_website>1</show_in_website>
1984
+ <show_in_store>1</show_in_store>
1985
+ </auto_invoice>
1986
+ </fields>
1987
+ </sisow_ebill>
1988
+ </groups>
1989
+ </sisow>
1990
+ </sections>
1991
+ </config>
app/design/adminhtml/default/default/template/sisow/adminhtml/notice.phtml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package default_default
23
+ * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * @see Mage_Paypal_Block_System_Config_Fieldset_Hint
30
+ */
31
+ ?>
32
+ <div class="paypal-payment-notice">
33
+ <?php if($this->getActive() == 'false'){
34
+ echo $this->__("Your account isn't live for live transactions") . '!</br>';
35
+ }
36
+ ?>
37
+
38
+ <a href="http://mvhaaren.nl/manuals/magento_nl.pdf" target="_blank"><?php echo $this->__("Dutch Manual"); ?></a> <br/>
39
+ <a href="http://mvhaaren.nl/manuals/magento_en.pdf" target="_blank"><?php echo $this->__("English Manual"); ?></a></br>
40
+ </br>
41
+ <a href="https://www.sisow.nl/epay-online-betaalmogelijkheden/epay-veel-gestelde-vragen" target="_blank"><?php echo $this->__("FAQ"); ?></a>
42
+ </div>
app/design/adminhtml/default/default/template/sisow/checkout/default_info.phtml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $consumer = $this->_getAdditionalInfo();
3
+ ?>
4
+
5
+ <?php echo '<b>Sisow: ' . $this->escapeHtml($this->getMethod()->getTitle()) . '</b>'; ?>
6
+ </br>
7
+ <?php
8
+ if($consumer['trxId'] != '')
9
+ echo '</br>Transaction ID: <b>' . $consumer['trxId'] . '</b>';
10
+ if($consumer['consumerName'] != '')
11
+ echo '</br>Name: <b>' . $consumer['consumerName'] . '</b>';
12
+ if($consumer['consumerIban'] != '')
13
+ echo '</br>IBAN: <b>' . $consumer['consumerIban'] . '</b>';
14
+ if($consumer['consumerBic'] != '')
15
+ echo '</br>BIC: <b>' . $consumer['consumerBic'] . '</b>';
16
+ ?>
17
+ </br>
app/design/adminhtml/default/default/template/sisow/checkout/ideal_info.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $consumer = $this->_getAdditionalInfo();
3
+ ?>
4
+
5
+ <?php echo '<b>Sisow ' . $this->escapeHtml($this->getMethod()->getTitle()) . '</b>'; ?>
6
+ </br>
7
+ <?php
8
+ if($consumer['consumerName'] != '')
9
+ echo '</br>Name: <b>' . $consumer['consumerName'] . '</b>';
10
+ if($consumer['consumerIban'] != '')
11
+ echo '</br>IBAN: <b>' . $consumer['consumerIban'] . '</b>';
12
+ if($consumer['consumerBic'] != '')
13
+ echo '</br>BIC: <b>' . $consumer['consumerBic'] . '</b>';
14
+ ?>
15
+ </br>
app/design/adminhtml/default/default/template/sisow/form.phtml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <fieldset class="form-list">
29
+ <?php $_code=$this->getMethodCode() ?>
30
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
31
+ <li>
32
+ <?php echo $this->__('Sisow.') ?>
33
+ </li>
34
+ </ul>
35
+ </fieldset>
app/design/frontend/base/default/template/sisow/checkout/default_form.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_code = $this->getMethodCode();
3
+ $_paymentfee = $this->getFee();
4
+ ?>
5
+
6
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
7
+ <li>
8
+ <?php
9
+ if($_paymentfee['incl'] > 0)
10
+ {
11
+ echo '<b>'. $this->__(Mage::getStoreConfig('payment/'.$_code.'/payment_fee_label')) .' ' . Mage::app()->getStore()->convertPrice($_paymentfee['incl'], true, true).'</b>';
12
+ }
13
+ ?>
14
+ </li>
15
+ </ul>
app/design/frontend/base/default/template/sisow/checkout/default_info.phtml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?>
2
+ <?php
3
+ $_paymentfee = $this->getFee();
4
+ $_code = $this->getMethodCode();
5
+
6
+ if($_paymentfee['incl'] > 0)
7
+ echo ' - ' .$this->__(Mage::getStoreConfig('payment/'.$_code.'/payment_fee_label')) .' ' . Mage::app()->getStore()->convertPrice($_paymentfee['incl'], true, true);
8
+
9
+ ?>
app/design/frontend/base/default/template/sisow/checkout/ideal_form.phtml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_code = $this->getMethodCode();
3
+ $_issuers = $this->getIssuers();
4
+ $_choosenIssuer = $this->getInfoData('sisow_issuer');
5
+ $_paymentfee = $this->getFee();
6
+ ?>
7
+
8
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
9
+ <li>
10
+ <label for="<?php echo $_code ?>_issuer" class="required"><em>*</em><?php echo $this->__('Choose your bank'); ?>:</label>
11
+ <div class="input-box">
12
+ <select id="<?php echo $_code ?>_issuer" name="payment[sisow_issuer]" title="sisow_issuer" class="validate-select required-entry">
13
+ <option value=""><?php echo $this->__('Choose your bank'); ?>...</option>
14
+
15
+ <?php foreach ($_issuers as $_k => $_v): ?>
16
+ <option value="<?php echo $_k ?>"<?php if($_k==$_choosenIssuer): ?> selected="selected"<?php endif ?>><?php echo $_v ?></option>
17
+ <?php endforeach ?>
18
+ </select>
19
+ </div>
20
+
21
+ <?php
22
+ if($_paymentfee['incl'] > 0)
23
+ {
24
+ echo '<b>'. $this->__(Mage::getStoreConfig('payment/'.$_code.'/payment_fee_label')) .' ' . Mage::app()->getStore()->convertPrice($_paymentfee['incl'], true, true).'</b>';
25
+ }
26
+ ?>
27
+ </li>
28
+ </ul>
app/design/frontend/base/default/template/sisow/checkout/ideal_info.phtml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?>
2
+ <?php
3
+ $_paymentfee = $this->getFee();
4
+ $_code = $this->getMethodCode();
5
+ if($_paymentfee['incl'] > 0)
6
+ echo ' - ' .$this->__(Mage::getStoreConfig('payment/'.$_code.'/payment_fee_label')) .' ' . Mage::app()->getStore()->convertPrice($_paymentfee['incl'], true, true);
7
+ ?>
app/design/frontend/base/default/template/sisow/checkout/klarna_form.phtml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $paymentfee = $this->getFee();
3
+
4
+ $fee = $paymentfee['incl'];
5
+ $phone = $this->getPhone();
6
+ $_code = $this->getMethodCode();
7
+ $countryiso = $this->GetCountryIso();
8
+
9
+ $name = ($countryiso == "DE") ? "Klarna Rechnung" : "Klarna Factuur";
10
+ ?>
11
+
12
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
13
+ <li class="form-alt">
14
+ <?php
15
+ if($countryiso == "DE")
16
+ echo '<img src="https://cdn.klarna.com/public/images/DE/badges/v1/invoice/DE_invoice_badge_std_blue.png?width=125&eid='. Mage::getStoreConfig('payment/sisowpayments_klarna/klarnaeid').'" alt="Sisow Klarna" />';
17
+ else
18
+ echo '<img src="https://cdn.klarna.com/public/images/NL/badges/v1/invoice/NL_invoice_badge_std_blue.png?width=125&eid='. Mage::getStoreConfig('payment/sisowpayments_klarna/klarnaeid').'" alt="Sisow Klarna" />';
19
+ ?>
20
+ <br/><?php echo $name; ?> - <?php echo $this->__('Payment within 14 days'); ?>.
21
+ <br/>
22
+ <a target="_blank" href="https://online.klarna.com/villkor_nl.yaws?eid=<?php echo Mage::getStoreConfig('payment/sisowpayments_klarna/klarnaeid'); ?>&charge=<?php echo $fee; ?>"><?php echo $this->__('Klarna Invoice Terms and Conditions'); ?></a>
23
+ <br/>
24
+ <?php
25
+ if ($fee > 0) {
26
+ ?>
27
+ <br/><?php echo $this->__('The extra costs are'); ?> <?php echo Mage::app()->getStore()->convertPrice($fee, true, true); ?>.<br/>
28
+ <?php
29
+ }
30
+ ?>
31
+ <!--<br/><b>Let op: verwerking/acceptatie kan tot 30 seconden duren.</b>
32
+ <br/>-->
33
+ <br/>
34
+ <label for="sisow_gender"><?php echo $this->__('Salutation'); ?>&nbsp;<span class="required"></span></label>
35
+ <div class="input-box">
36
+ <select id="sisow_gender" class="input-text required-entry" title="Aanhef" name="payment[sisow_gender]">
37
+ <option value=""><?php echo $this->__('--Please Select--') ?></option>
38
+ <option value="F"><?php echo $this->__('Female');?></option>
39
+ <option value="M"><?php echo $this->__('Male');?></option>
40
+ </select>
41
+ </div>
42
+ <br/>
43
+ <label for="sisow_phone"><?php echo $this->__('Telephone Number');?>&nbsp;<span class="required"></span></label>
44
+ <div class="input-box">
45
+ <input id="sisow_phone" class="input-text required-entry" maxlength="12" title="Telefoonnummer" value="<?php echo $phone; ?>" name="payment[sisow_phone]"/>
46
+ </div>
47
+ <br/>
48
+ <label for="sisow_day"><?php echo $this->__('Date of birth');?>&nbsp;<span class="required"></span></label></br>
49
+ <div class="select">
50
+ <select id="sisow_day" name="payment[sisow_day]" title="sisow_day" class="year required-entry">
51
+ <option value=""><?php echo $this->__('Day');?></option>
52
+ <?php foreach($this->getDates() as $k=>$v){?>
53
+ <option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
54
+ <select>
55
+ <select id="sisow_month" name="payment[sisow_month]" title="sisow_day" class="year required-entry">
56
+ <option value=""><?php echo $this->__('Month');?></option>
57
+ <?php foreach($this->getMonths() as $k=>$v){?>
58
+ <option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
59
+ <select>
60
+ <select id="sisow_year" name="payment[sisow_year]" title="sisow_year" class="year required-entry">
61
+ <option value=""><?php echo $this->__('Year');?></option>
62
+ <?php foreach($this->getYears() as $k=>$v){?>
63
+ <option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
64
+ <select>
65
+ </div>
66
+ <br/>
67
+ <?php if($countryiso == "DE")
68
+ echo '<input type="checkbox" name="accept" value="termsde" class="required-entry"><a href="https://cdn.klarna.com/1.0/shared/content/legal/terms/256/de_de/consent" target="_blank">Einwilligung<a/><br/>';
69
+ ?>
70
+ <br/>
71
+ <div style="text-align: right; width: 100%;">
72
+ <a target="_blank" href="https://www.sisow.nl"><img src="https://www.sisow.nl/images/betaallogos/logo_sisow_klein.png" alt="Powered by Sisow" width="100px"/></a>
73
+ </div>
74
+ </li>
75
+ </ul>
app/design/frontend/base/default/template/sisow/checkout/klarnaacc_form.phtml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $paymentfee = $this->getFee();
3
+
4
+ $fee = $paymentfee['incl'];
5
+ $phone = $this->getPhone();
6
+ $_code = $this->getMethodCode();
7
+ $monthly = $this->getMonthly();
8
+ $pclass = $this->getPclass();
9
+ $countryiso = $this->GetCountryIso();
10
+
11
+ $name = ($countryiso == "DE") ? "Klarna Ratenkauf" : "Klarna Account";
12
+ ?>
13
+
14
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
15
+ <li class="form-alt">
16
+ <?php
17
+ if($countryiso == "DE")
18
+ echo '<img src="https://cdn.klarna.com/public/images/DE/badges/v1/account/DE_account_badge_std_blue.png?width=125&eid='. Mage::getStoreConfig('payment/sisowpayments_klarnaacc/klarnaeid').'"/><br/>';
19
+ else
20
+ echo '<img src="https://cdn.klarna.com/public/images/NL/badges/v1/account/NL_account_badge_std_blue.png?width=125&eid='. Mage::getStoreConfig('payment/sisowpayments_klarnaacc/klarnaeid').'"/><br/>';
21
+ ?>
22
+ <?php echo $name; ?> - &euro; <?php echo round($monthly / 100.0, 2); ?> / <?php echo $this->__('Month');?>
23
+ <br/>
24
+ <?php
25
+ if($countryiso == "DE")
26
+ echo '<a target="_blank" href="https://online.klarna.com/account_de.yaws?eid='. Mage::getStoreConfig('payment/sisowpayments_klarnaacc/klarnaeid').'">'. $this->__('Read more').'!</a><br/>';
27
+ else
28
+ echo '<a target="_blank" href="https://online.klarna.com/account_nl.yaws?eid='. Mage::getStoreConfig('payment/sisowpayments_klarnaacc/klarnaeid').'">'. $this->__('Read more').'!</a><br/>';
29
+ ?>
30
+ <?php
31
+ if($countryiso == "NL")
32
+ echo '<img src="https://www.sisow.nl/images/betaallogos/lenenkostgeld.jpg" alt="Let op! Geld lenen kost geld" /><br/>';
33
+ ?>
34
+ <?php
35
+ if ($fee > 0) {
36
+ ?>
37
+ <br/><?php echo $this->__('The extra costs are '); ?><?php echo Mage::app()->getStore()->convertPrice($fee, true, true); ?>.<br/>
38
+ <?php
39
+ }
40
+ ?>
41
+ <!--<br/><b>Let op: verwerking/acceptatie kan tot 30 seconden duren.</b>
42
+ <br/>-->
43
+ <br/>
44
+ <label for="sisow_gender"><?php echo $this->__('Salutation'); ?>&nbsp;<span class="required"></span></label>
45
+ <div class="input-box">
46
+ <select id="sisow_gender" class="input-text required-entry" title="Aanhef" name="payment[sisow_gender]">
47
+ <option value=""><?php echo $this->__('--Please Select--') ?></option>
48
+ <option value="F"><?php echo $this->__('Female');?></option>
49
+ <option value="M"><?php echo $this->__('Male');?></option>
50
+ </select>
51
+ </div>
52
+ <br/>
53
+ <label for="sisow_phone"><?php echo $this->__('Telephone Number');?>&nbsp;<span class="required"></span></label>
54
+ <div class="input-box">
55
+ <input id="sisow_phone" class="input-text required-entry" maxlength="12" title="Telefoonnummer" value="<?php echo $phone; ?>" name="payment[sisow_phone]"/>
56
+ </div>
57
+ <br/>
58
+ <label for="sisow_day"><?php echo $this->__('Date of birth');?>&nbsp;<span class="required"></span></label></br>
59
+ <div class="select">
60
+ <select id="sisow_day" name="payment[sisow_day]" title="sisow_day" class="year required-entry">
61
+ <option value=""><?php echo $this->__('Day');?></option>
62
+ <?php foreach($this->getDates() as $k=>$v){?>
63
+ <option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
64
+ <select>
65
+ <select id="sisow_month" name="payment[sisow_month]" title="sisow_day" class="year required-entry">
66
+ <option value=""><?php echo $this->__('Month');?></option>
67
+ <?php foreach($this->getMonths() as $k=>$v){?>
68
+ <option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
69
+ <select>
70
+ <select id="sisow_year" name="payment[sisow_year]" title="sisow_year" class="year required-entry">
71
+ <option value=""><?php echo $this->__('Year');?></option>
72
+ <?php foreach($this->getYears() as $k=>$v){?>
73
+ <option value="<?php echo $k;?>"><?php echo $v;?></option><?php } ?>
74
+ <select>
75
+ </div>
76
+ <br/>
77
+ <?php if($countryiso == "DE")
78
+ echo '<input type="checkbox" name="acceptacc" value="termsdeacc" class="required-entry"><a href="https://cdn.klarna.com/1.0/shared/content/legal/terms/256/de_de/consent" target="_blank">Einwilligung<a/><br/>';
79
+ ?>
80
+ <br/>
81
+ <div style="text-align: right; width: 100%;">
82
+ <a target="_blank" href="https://www.sisow.nl"><img src="https://www.sisow.nl/images/betaallogos/logo_sisow_klein.png" alt="Powered by Sisow" width="100px"/></a>
83
+ </div>
84
+ <input type="hidden" id="sisow_monthly" name="payment[sisow_monthly]" value="<?php echo $monthly; ?>" />
85
+ <input type="hidden" id="sisow_pclass" name="payment[sisow_pclass]" value="<?php echo $pclass; ?>" />
86
+ </li>
87
+ </ul>
app/design/frontend/base/default/template/sisow/checkout/overboeking_form.phtml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_code = $this->getMethodCode();
3
+ $_paymentfee = $this->getFee();
4
+ ?>
5
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
6
+ <li class="form-alt">
7
+ <a href="http://www.sisow.nl" target="_blank"><img src="https://www.sisow.nl/Sisow/images/mail/sisowklein.jpg" alt="Sisow OverBoeking" /></a><br/>
8
+ <?php echo $this->__('You have chosen to pay in advance by bank transfer.'); ?><br/>
9
+ <?php echo $this->__('The processing is outsourced to Sisow B.V.'); ?><br/>
10
+ <br/>
11
+ <?php echo $this->__('You will receive an e-mail with information on how to complete your payment.'); ?>
12
+
13
+ <?php
14
+ if($_paymentfee['incl'] > 0)
15
+ {
16
+ echo '<br/><br/><b>'. $this->__(Mage::getStoreConfig('payment/'.$_code.'/payment_fee_label')) .' ' . Mage::app()->getStore()->convertPrice($_paymentfee['incl'], true, true).'</b>';
17
+ }
18
+ ?>
19
+ </li>
20
+ </ul>
app/design/frontend/base/default/template/sisow/form.phtml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ $banks=$this->getBanks();
28
+ $_code=$this->getMethodCode();
29
+
30
+ ?>
31
+
32
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none">
33
+ <li>
34
+ <label for="<?php echo $_code ?>_bank"><?php echo $this->__(Mage::getStoreConfig('payment/sisow/issuerchoice')) ?> <span class="required">*</span></label><br/>
35
+ <select id="<?php echo $_code ?>_bank" name="payment[<?php echo $_code ?>_bank]" class="input-text validate-text required-entry">
36
+ <option value=""><?php echo $this->__('Selecteer een bank...'); ?></option>
37
+ <?php foreach($banks as $bank)
38
+ {
39
+ ?>
40
+ <option value="<?php echo $bank['value'];?>"><?php echo $bank['label']; ?></option>
41
+ <?php
42
+ }
43
+ ?>
44
+ </select>
45
+ <br/>
46
+ <?php echo $this->__(Mage::getStoreConfig('payment/sisow/payoff')) ?>
47
+ </li>
48
+ </ul>
app/design/frontend/base/default/template/sisow/formecare.phtml ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ $fee = $this->getFee();
28
+ $firstletter = $this->getFirstname();
29
+
30
+ ?>
31
+
32
+ <ul class="form-list" id="payment_form_sisowecare" style="display:none">
33
+ <li class="form-alt">
34
+ <img src="https://www.sisow.nl/Sisow/images/ideal/logo_ecare_small.gif" alt="Sisow ecare" /><br/>
35
+ Sisow ecare is een betaalmogelijkheid waarbij niet direct betaald hoeft te worden.
36
+ De betalingstermijn is 14 dagen en de factuur zal worden verzonden met de verzending.
37
+ Om te betalen met Sisow ecare (factuur) moet u minimaal 18 jaar oud zijn.
38
+ Er wordt een credit check uitgevoerd op het moment van aankoop.<br/>
39
+ <br/><a href="http://www.sisow.nl/downloads/Betalingsvoorwaarden_ecare.pdf">Sisow ecare betalingsvoorwaarden</a><br/>
40
+ <?php
41
+ if ($fee > 0) {
42
+ ?>
43
+ <br/>De extra kosten hiervoor bedragen <?php echo Mage::app()->getStore()->convertPrice($fee, true, true); ?> exclusief BTW.<br/>
44
+ <?php
45
+ }
46
+ ?>
47
+ <br/><b>Let op: verwerking/acceptatie kan tot 30 seconden duren.</b>
48
+ <br/>
49
+ <br/>
50
+ <label class="required" for="sisow_gender">Aanhef&nbsp;<span class="required">*</span></label>
51
+ <div class="input-box">
52
+ <select id="sisow_gender" class="input-text required-entry" title="Aanhef" name="payment[sisow_gender]">
53
+ <option value=""/>
54
+ <option value="F">Mevrouw</option>
55
+ <option value="M">De heer</option>
56
+ </select>
57
+ </div>
58
+ <br/>
59
+ <label class="required" for="sisow_initials">Voorletter(s)&nbsp;<span class="required">*</span></label>
60
+ <div class="input-box">
61
+ <input id="sisow_initials" class="input-text required-entry" maxlength="6" title="Voorletter(s)" value="<?php echo $firstletter; ?>" name="payment[sisow_initials]"/>
62
+ </div>
63
+ <br/>
64
+ <label class="required" for="sisow_month">Geboortedatum&nbsp;<span class="required">*</span></label>
65
+ <div class="input-box customer-dob sisow-dob">
66
+ <div class="dob-day">
67
+ <input id="sisow_day" class="input-text required-entry validate-custom" maxlength="2" type="text" title="Dag" value="" name="payment[sisow_day]">
68
+ <label for="sisow_day">DD</label>
69
+ </div>
70
+ <div class="dob-month">
71
+ <input id="sisow_month" class="input-text required-entry validate-custom" maxlength="2" type="text" title="Maand" value="" name="payment[sisow_month]">
72
+ <label for="sisow_month">MM</label>
73
+ </div>
74
+ <div class="dob-year">
75
+ <input id="sisow_year" class="input-text required-entry validate-custom" maxlength="4" type="text" title="Jaar" value="" name="payment[sisow_year]">
76
+ <label for="sisow_year">JJJJ</label>
77
+ </div>
78
+ <div class="dob-full" style="display:none;">
79
+ <input id="sisow_dob" type="hidden" name="payment[sisow_dob]">
80
+ </div>
81
+ <div class="validation-advice" style="display:none;"></div>
82
+ </div>
83
+ <script type="text/javascript">
84
+ //<![CDATA[
85
+ var customer_dob = new Varien.DOB('.sisow-dob', false, '%d-%m-%y');
86
+ //]]>
87
+ </script>
88
+ </li>
89
+ </ul>
app/design/frontend/base/default/template/sisow/formovb.phtml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ //$data = $this->getDataOvb();
28
+
29
+ $locale = Mage::getStoreConfig('general/locale/code');
30
+ if (strtolower(substr($locale, 0, 2)) == 'nl') {
31
+ $tekst = 'U heeft ervoor gekozen om uw bestelling per bank/giro over te maken.<br/>
32
+ De verwerking hiervan is uitbesteed aan Sisow B.V.<br/>
33
+ <br/>
34
+ U ontvangt een e-mail met daarin informatie hoe u uw betaling kunt voltooien.';
35
+ }
36
+ else {
37
+ $tekst = 'You have chosen to pay in advance by bank transfer.<br/>
38
+ The processing is outsourced to Sisow B.V.<br/>
39
+ <br/>
40
+ You will receive an e-mail with information on how to complete your payment.';
41
+ }
42
+
43
+ ?>
44
+
45
+ <ul class="form-list" id="payment_form_sisowob" style="display:none">
46
+ <li class="form-alt">
47
+ <a href="http://www.sisow.nl" target="_blank"><img src="https://www.sisow.nl/Sisow/images/mail/sisowklein.jpg" alt="Sisow OverBoeking" /></a><br/>
48
+ <?php echo $tekst; ?>
49
+ <br/>
50
+ </li>
51
+ </ul>
app/design/frontend/base/default/template/sisow/paymentfee/checkout/fee.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ($this->displayBoth()):?>
3
+ <tr>
4
+ <td style="<?php echo $this->getStyle() ?>" class="a-right" colspan="<?php echo $this->getColspan(); ?>">
5
+ <?php echo $this->getTotal()->getTitle() . " " . $this->getExcludeTaxLabel() ?>
6
+ </td>
7
+ <td style="<?php echo $this->getStyle() ?>" class="a-right">
8
+ <?php echo $this->helper('checkout')->formatPrice($this->getInvoiceFeeExcludeTax()) ?>
9
+ </td>
10
+ </tr>
11
+ <tr>
12
+ <td style="<?php echo $this->getStyle() ?>" class="a-right" colspan="<?php echo $this->getColspan(); ?>">
13
+ <?php echo $this->getTotal()->getTitle() . " " . $this->getIncludeTaxLabel() ?>
14
+ </td>
15
+ <td style="<?php echo $this->getStyle() ?>" class="a-right">
16
+ <?php echo $this->helper('checkout')->formatPrice($this->getInvoiceFeeIncludeTax()) ?>
17
+ </td>
18
+ </tr>
19
+ <?php elseif($this->displayIncludeTax()) : ?>
20
+ <tr>
21
+ <td style="<?php echo $this->getStyle() ?>" class="a-right" colspan="<?php echo $this->getColspan(); ?>">
22
+ <?php echo $this->getTotal()->getTitle() ?>
23
+ </td>
24
+ <td style="<?php echo $this->getStyle() ?>" class="a-right">
25
+ <?php echo $this->helper('checkout')->formatPrice($this->getInvoiceFeeIncludeTax()) ?>
26
+ </td>
27
+ </tr>
28
+ <?php else:?>
29
+ <tr>
30
+ <td style="<?php echo $this->getStyle() ?>" class="a-right" colspan="<?php echo $this->getColspan(); ?>">
31
+ <?php echo $this->getTotal()->getTitle() ?>
32
+ </td>
33
+ <td style="<?php echo $this->getStyle() ?>" class="a-right">
34
+ <?php echo $this->helper('checkout')->formatPrice($this->getInvoiceFeeExcludeTax()) ?>
35
+ </td>
36
+ </tr>
37
+ <?php endif;?>
38
+
39
+
app/etc/modules/Sisow.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Sisow>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <depends>
8
+ <Mage_Payment />
9
+ </depends>
10
+ </Sisow>
11
+ </modules>
12
+ </config>
app/locale/nl_NL/Sisow.csv ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Payment from Specific Country","Betaling van specifieke landen"
2
+ "Auto invoice","Automatisch factuur genereren"
3
+ "Payment from Applicable Countries","Betaling van toepasbare landen"
4
+ "Payment fee","Betalingstoeslag"
5
+ "Payment fee tax class","Betalingstoeslag BTW groep"
6
+ "Including/Excluding Tax","Inclusief/Exclusief BTW"
7
+ "Payment fee label", "Betalingstoeslag label"
8
+ "The tax class to use to calculate the payment fee tax", "De gebruikte BTW groep voor een betalingstoeslag"
9
+ "Is the entered payment fee value including or exluding tax", "Is de ingevoerde betalingstoeslag inclusief of exclusief BTW"
10
+ "Payment fee label to show", "Betalingstoeslag label dat wordt getoond"
11
+ "Use General settings", "Gebruik standaard instellingen"
12
+ "Only for Klarna Invoice and Klarna Account.", "Alleen voor Klarna Factuur en Klarna Account"
13
+ "The Merchant ID form Sisow. You can find this in your Sisow profile.", "Het Merchant ID van Sisow. Deze kan worden gevonden in uw Sisow profiel."
14
+ "The Merchant Key form Sisow. You can find this in your Sisow profile.", "De Merchant Key van Sisow. Deze kan worden gevonden in uw Sisow profiel."
15
+ "You will receive an e-mail with information on how to complete your payment.", "U ontvangt een e-mail met daarin informatie hoe u uw betaling kunt voltooien."
16
+ "The processing is outsourced to Sisow B.V.", "De verwerking hiervan is uitbesteed aan Sisow B.V."
17
+ "You have chosen to pay in advance by bank transfer.", "U heeft ervoor gekozen om uw bestelling per bank/giro over te maken."
18
+ "Salutation", "Aanhef"
19
+ "Male", "De heer"
20
+ "Female", "Mevrouw"
21
+ "Telephone Number", "Telefoon nummer"
22
+ "Date of birth", "Geboortedatum"
23
+ "Klarna Invoice Terms and Conditions", "Klarna Factuur voorwaarden"
24
+ "Payment within 14 days", "Betaling binnen 14 dagen"
25
+ "The extra costs are", "De extra kosten bedragen"
26
+ "Read more", "Lees meer"
27
+ "Choose your bank", "Kies uw bank"
28
+ "and send mail", "en verstuur per mail"
29
+ "No communication", "geen communicatie mogelijk"
30
+ "created", "aangemaakt"
31
+ "Include payment link", "Inclusief betaallink"
32
+ "Days overboeking is valid", "Aantal dagen geldig"
33
+ "Only for internal use, the customer receives a pre-printed giro credit slip in his/her mail.", "Alleen voor intern gebruik, bij het plaatsen van een backorder ontvangt uw klant een digitale acceptgiro."
34
+ "Days Ebill is valid", "Aantal dagen geldig"
35
+ "Description on bank statement", "Omschrijving op bankafschrift"
36
+ "Impossible to issue a refund transaction because the transactionId can't be loaded.", "Retour kan niet worden uitgevoerd, TransactieID kan niet worden geladen."
37
+ "Klarna Invoice created", "Klarna Factuur aangemaakt"
38
+ "Klarna Invoice can't be created", "De Klarna factuur kan niet worden aangemaakt"
39
+ "Prefix", "Voorvoegsel"
40
+ "Your account isn't live for live transactions", "U account is nog niet actief voor live transacties"
41
+ "Dutch Manual", "Nederlandstalige handleiding"
42
+ "English Manual", "Engelstalige handleiding"
43
+ "FAQ", "Veelgestelde vragen"
44
+ "After order confirmation", "Na bevestigen order"
45
+ "After notification, including cancelled order", "Na notificatie, inc mislukte betalingen"
46
+ "After notification, excluding cancelled order", "Na notificatie, ex mislukte betalingen"
package.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>sisowpayment</name>
4
+ <version>4.1.11</version>
5
+ <stability>stable</stability>
6
+ <license/>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This plug-in contains all the payment options from Sisow.</summary>
10
+ <description>This plug-in contains the following payment methods:&#xD;
11
+ Bankwire&#xD;
12
+ Creditcard (Maestro/MasterCard/Visa)&#xD;
13
+ Ebill&#xD;
14
+ iDEAL&#xD;
15
+ Klarna Account&#xD;
16
+ Klarna Invoice&#xD;
17
+ MisterCash&#xD;
18
+ Sofort</description>
19
+ <notes>Fix: not everything was visible in store view</notes>
20
+ <authors><author><name>Sisow</name><user>auto-converted</user><email>support@sisow.nl</email></author></authors>
21
+ <date>2014-11-17</date>
22
+ <time>09:11:30</time>
23
+ <contents><target name="magelocale"><dir name="nl_NL"><file name="Sisow.csv" hash="3c34bbc6892ce908fe3880bf52866b46"/></dir></target><target name="mageetc"><dir name="modules"><file name="Sisow.xml" hash="7da3fbd82a48d5428b8c723bafbb946b"/></dir></target><target name="magelocal"><dir name="Sisow"><dir name="Block"><dir name="Adminhtml"><file name="Notice.php" hash="56154d92843b3c8a205837010405923e"/></dir><dir name="Paymentfee"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="c086b64c05012dc579ee54fb6e50c5a3"/></dir></dir></dir><dir name="Checkout"><file name="Fee.php" hash="c7b7b19d5f2d2c5fbd07f355f8f57f9e"/></dir><dir name="Creditmemo"><file name="Totals.php" hash="ccfaa67f45416ab398ec55ea7356b537"/></dir><dir name="Invoice"><dir name="Totals"><file name="Fee.php" hash="a715f52568aa5f4a42a65437be3d0fb8"/></dir></dir><dir name="Order"><dir name="Totals"><file name="Fee.php" hash="2158794a5836acedc765900403649b16"/></dir></dir></dir><dir name="Paymentmethod"><file name="Creditcard.php" hash="bddf58a2a12dae02e5061b04e68345da"/><file name="Default.php" hash="b1c2947be1e0e731a5aea8757f038018"/><file name="DefaultInfo.php" hash="12bc768b15a910295c911f4790ae936a"/><file name="Ideal.php" hash="45d11ae70ca002c9c2f10431d65f388e"/><file name="IdealInfo.php" hash="f2be70b33ab781c89a25c4be6f738067"/><file name="Klarna.php" hash="8b529f2c376fd78888b91d8d73339118"/><file name="Klarnaacc.php" hash="2923d73bb1a9b8ad712d7671c6012e37"/><file name="Overboeking.php" hash="87050fba1fb782fce9e02e5c8095ef2e"/></dir><file name="Redirect.php" hash="f0b53eaad3d14a8785ede29b8101c47b"/></dir><dir name="Helper"><file name="Data.php" hash="48f4a618f1778cc3c9027ab7daa15ba0"/><file name="Paymentfee.php" hash="44f51f6166d85f0d6df2348c094ba0aa"/></dir><dir name="Model"><dir name="Config"><file name="Autoinvoice.php" hash="d4edbab951b4b16e8ccab660bbee8fda"/><file name="GeneralAutoinvoice.php" hash="603d830548bf012631fa0e0f00738802"/><file name="Newordermail.php" hash="b0225e1243442e4c1df1ea4eaab72c5c"/><file name="NewordermailMethod.php" hash="41813afa9531be21163c6a4c1550b759"/></dir><dir name="Methods"><file name="Abstract.php" hash="e3574194dd5d469d7173c2738b69fbea"/><file name="Ebill.php" hash="b4e00783ca4854a4a13e2f4ed78e0e77"/><file name="Ideal.php" hash="26275c27874cd4e1eb32b7d59540c65e"/><file name="Klarna.php" hash="46a92a6a29e51e2e152389475e77d025"/><file name="Klarnaacc.php" hash="6905ba077eab559fe4d24a864e0ed416"/><file name="Maestro.php" hash="7372b9babeb8e60e6e7de39a6a249747"/><file name="Mastercard.php" hash="f09053c2dd9581aa094063254178207f"/><file name="Mistercash.php" hash="f56cfae23c74791432cef1e50733829c"/><file name="Overboeking.php" hash="028a8cb928c8fe1fd84645a5427ceae1"/><file name="Paypalec.php" hash="8f802ac3efc8709ab17e130671b1c8dd"/><file name="Sofort.php" hash="f9ebf43bda7ffd62582c869a5ba5014b"/><file name="Visa.php" hash="0214e927261846df04892bdf2c048792"/><file name="WebshopGiftcard.php" hash="3ea06c83b6c0d1f87f1d61dcbf3a55c7"/></dir><dir name="Observer"><file name="Order.php" hash="99db52231b8fe6c80ed653e19dc6a34e"/><file name="Paymentfee.php" hash="78835217b2b6875e14da8b6630c21456"/><file name="Sendebill.php" hash="95adb35fbd55ac3c8c077cd6a54050b5"/><file name="Submit.php" hash="47aa5da33f953cf9363f05578b2850fe"/></dir><dir name="Paymentfee"><dir name="Creditmemo"><file name="Total.php" hash="2340fd22ec6597f5fad53d9faea2d9fe"/></dir><dir name="Invoice"><dir name="Pdf"><file name="Total.php" hash="cec95df39f550cd70e6eb63b16cfb627"/></dir><file name="Tax.php" hash="5fba21bc05a7ed55b3c57ccb4b2790b5"/><file name="Total.php" hash="b77c63f1173d2112056a782490968cf6"/></dir><dir name="Quote"><file name="Quote.php" hash="838ad691a2da75b942a8ef41c2815a9a"/><file name="TaxTotal.php" hash="bd7cd2a16dc3dbc8c7a3c82746a0f671"/><file name="Total.php" hash="d2c8afd1ec4c96b6215ae28766e18177"/></dir></dir><file name="Base.php" hash="a4371740ac33a2fc88384e0487ff3657"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="d5b638ffa4a10ed9cb46b68b883d0c41"/><file name="NotifyController.php" hash="4793822e1b937191ace1f2925038082f"/></dir><dir name="etc"><file name="config.xml" hash="828b8f65b7ebe5cf033fdc5a7808764a"/><file name="system.xml" hash="a6dc314b26408a15eedf556181b16e09"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sisow"><dir name="adminhtml"><file name="notice.phtml" hash="7fa2d76678ad34eae48516fd757c30df"/></dir><dir name="checkout"><file name="default_info.phtml" hash="558581601de86afce3bd62ea50de7a4e"/><file name="ideal_info.phtml" hash="864ee0e16191ef6dca5c18522172b51c"/></dir><file name="form.phtml" hash="0dc40ad38b62218d6f947674312b7a61"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sisow"><dir name="checkout"><file name="default_form.phtml" hash="d4ce52d483e5206d8ab7cd7ff9fdd646"/><file name="default_info.phtml" hash="94eeee994f2f21dc36489f6b7824e616"/><file name="ideal_form.phtml" hash="37f399e0cd922e70586a3be6a00f76a3"/><file name="ideal_info.phtml" hash="88e15559e2f0cca9744b4dae1a81a1ea"/><file name="klarna_form.phtml" hash="8a232f3e8f6e3bcf453298a922dd26bf"/><file name="klarnaacc_form.phtml" hash="c2e32986bbd9a95bea23b1ff8d49ef0e"/><file name="overboeking_form.phtml" hash="164e244d6df230f20f460012fc72a7d8"/></dir><dir name="paymentfee"><dir name="checkout"><file name="fee.phtml" hash="79362bab3963195ad6727d077fe87b11"/></dir></dir><file name="form.phtml" hash="8874a0713c384d1346f6ae713f2cb9bd"/><file name="formecare.phtml" hash="0de41387de5f0c8d35066c0f30e113c2"/><file name="formovb.phtml" hash="20da22a0ef4384411bf971ff133a6a2c"/></dir></dir></dir></dir></dir></target></contents>
24
+ <compatible/>
25
+ <dependencies/>
26
+ </package>