wirecard_checkout_seamless - Version 4.0.9

Version Notes

- updated Invoice B2B visibility

Download this release

Release Info

Developer WirecardCEE
Extension wirecard_checkout_seamless
Version 4.0.9
Comparing to
See all releases


Code changes from version 4.0.7 to 4.0.9

Files changed (117) hide show
  1. app/code/community/Wirecard/CheckoutSeamless/Block/Additional/Installment.php +81 -81
  2. app/code/community/Wirecard/CheckoutSeamless/Block/Additional/Invoice.php +75 -75
  3. app/code/community/Wirecard/CheckoutSeamless/Block/Additional/InvoiceB2b.php +49 -49
  4. app/code/community/Wirecard/CheckoutSeamless/Block/Checkout.php +73 -73
  5. app/code/community/Wirecard/CheckoutSeamless/Block/Failure.php +53 -53
  6. app/code/community/Wirecard/CheckoutSeamless/Block/Info.php +51 -51
  7. app/code/community/Wirecard/CheckoutSeamless/Block/Processing.php +82 -82
  8. app/code/community/Wirecard/CheckoutSeamless/Block/Return.php +52 -52
  9. app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Base.php +35 -35
  10. app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Eps.php +44 -44
  11. app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Ideal.php +44 -44
  12. app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/SepaDd.php +39 -39
  13. app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Trustpay.php +39 -39
  14. app/code/community/Wirecard/CheckoutSeamless/Helper/Data.php +251 -251
  15. app/code/community/Wirecard/CheckoutSeamless/Model/Abstract.php +497 -497
  16. app/code/community/Wirecard/CheckoutSeamless/Model/Admin/Support.php +128 -128
  17. app/code/community/Wirecard/CheckoutSeamless/Model/Admin/Test.php +67 -67
  18. app/code/community/Wirecard/CheckoutSeamless/Model/Bmc.php +42 -42
  19. app/code/community/Wirecard/CheckoutSeamless/Model/Cc.php +42 -42
  20. app/code/community/Wirecard/CheckoutSeamless/Model/CcMoto.php +42 -42
  21. app/code/community/Wirecard/CheckoutSeamless/Model/Ekonto.php +42 -42
  22. app/code/community/Wirecard/CheckoutSeamless/Model/Epaybg.php +42 -42
  23. app/code/community/Wirecard/CheckoutSeamless/Model/Eps.php +73 -73
  24. app/code/community/Wirecard/CheckoutSeamless/Model/Giropay.php +42 -42
  25. app/code/community/Wirecard/CheckoutSeamless/Model/Ideal.php +73 -73
  26. app/code/community/Wirecard/CheckoutSeamless/Model/Installment.php +104 -104
  27. app/code/community/Wirecard/CheckoutSeamless/Model/Invoice.php +105 -105
  28. app/code/community/Wirecard/CheckoutSeamless/Model/Invoiceb2b.php +160 -160
  29. app/code/community/Wirecard/CheckoutSeamless/Model/Moneta.php +42 -42
  30. app/code/community/Wirecard/CheckoutSeamless/Model/Mpass.php +42 -42
  31. app/code/community/Wirecard/CheckoutSeamless/Model/P24.php +44 -44
  32. app/code/community/Wirecard/CheckoutSeamless/Model/Paybox.php +42 -42
  33. app/code/community/Wirecard/CheckoutSeamless/Model/Paypal.php +42 -42
  34. app/code/community/Wirecard/CheckoutSeamless/Model/Paysafecard.php +42 -42
  35. app/code/community/Wirecard/CheckoutSeamless/Model/Poli.php +41 -41
  36. app/code/community/Wirecard/CheckoutSeamless/Model/Quick.php +42 -42
  37. app/code/community/Wirecard/CheckoutSeamless/Model/Sepadd.php +42 -42
  38. app/code/community/Wirecard/CheckoutSeamless/Model/Skrilldirect.php +42 -42
  39. app/code/community/Wirecard/CheckoutSeamless/Model/Skrillwallet.php +42 -42
  40. app/code/community/Wirecard/CheckoutSeamless/Model/Sofortbanking.php +42 -42
  41. app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/Configurations.php +48 -48
  42. app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/InstallmentProviders.php +44 -44
  43. app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/InvoiceProviders.php +44 -44
  44. app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/Order/Status.php +41 -41
  45. app/code/community/Wirecard/CheckoutSeamless/Model/Tatrapay.php +42 -42
  46. app/code/community/Wirecard/CheckoutSeamless/Model/Trustly.php +42 -42
  47. app/code/community/Wirecard/CheckoutSeamless/Model/Trustpay.php +42 -42
  48. app/code/community/Wirecard/CheckoutSeamless/Model/Voucher.php +42 -42
  49. app/code/community/Wirecard/CheckoutSeamless/controllers/ProcessingController.php +396 -396
  50. app/code/community/Wirecard/CheckoutSeamless/etc/config.xml +345 -345
  51. app/code/community/Wirecard/CheckoutSeamless/etc/system.xml +2381 -2381
  52. app/code/community/Wirecard/CheckoutSeamless/sql/wirecard_checkoutpage_setup/mysql4-install-4.0.0.php +72 -72
  53. app/code/local/Wirecard/CheckoutSeamless/QMore/BackendClient.php +591 -591
  54. app/code/local/Wirecard/CheckoutSeamless/QMore/Config/client.config.php +22 -22
  55. app/code/local/Wirecard/CheckoutSeamless/QMore/Config/user.config.php +21 -21
  56. app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Exception/ExceptionInterface.php +17 -17
  57. app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Exception/InvalidArgumentException.php +19 -19
  58. app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Request/Read.php +113 -113
  59. app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Response/Initiation.php +65 -65
  60. app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Response/Read.php +193 -193
  61. app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorageClient.php +377 -377
  62. app/code/local/Wirecard/CheckoutSeamless/QMore/Error.php +70 -70
  63. app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/BadMethodCallException.php +17 -17
  64. app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/ExceptionInterface.php +17 -17
  65. app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/InvalidArgumentException.php +18 -18
  66. app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/InvalidParamLengthException.php +17 -17
  67. app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/InvalidResponseException.php +18 -18
  68. app/code/local/Wirecard/CheckoutSeamless/QMore/FrontendClient.php +640 -640
  69. app/code/local/Wirecard/CheckoutSeamless/QMore/Module.php +38 -38
  70. app/code/local/Wirecard/CheckoutSeamless/QMore/PaymentType.php +18 -18
  71. app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund.php +96 -96
  72. app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/Existing.php +65 -65
  73. app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/Moneta.php +66 -66
  74. app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/SepaCT.php +73 -73
  75. app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/SkrillWallet.php +66 -66
  76. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/ApproveReversal.php +17 -17
  77. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Deposit.php +33 -33
  78. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/DepositReversal.php +17 -17
  79. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/FinancialObject.php +51 -51
  80. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/GetFinancialInstitutions.php +24 -24
  81. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/GetOrderDetails.php +72 -72
  82. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order.php +398 -398
  83. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Credit.php +203 -203
  84. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/CreditIterator.php +18 -18
  85. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/OrderIterator.php +82 -82
  86. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment.php +251 -251
  87. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment/Ideal.php +65 -65
  88. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment/Paypal.php +225 -225
  89. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php +146 -146
  90. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/PaymentIterator.php +17 -17
  91. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/RecurPayment.php +33 -33
  92. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Refund.php +34 -34
  93. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/RefundReversal.php +17 -17
  94. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/ResponseAbstract.php +34 -34
  95. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/TransferFund.php +34 -34
  96. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Initiation.php +29 -29
  97. app/code/local/Wirecard/CheckoutSeamless/QMore/Response/ResponseAbstract.php +93 -93
  98. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Cancel.php +18 -18
  99. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Failure.php +53 -53
  100. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Pending.php +22 -22
  101. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success.php +22 -22
  102. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/CreditCard.php +22 -22
  103. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/Ideal.php +22 -22
  104. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/PayPal.php +22 -22
  105. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/SepaDD.php +22 -22
  106. app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/Sofortueberweisung.php +21 -21
  107. app/code/local/Wirecard/CheckoutSeamless/QMore/ReturnFactory.php +113 -113
  108. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Basket.php +180 -180
  109. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Basket/Item.php +145 -145
  110. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Client/ClientAbstract.php +438 -438
  111. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Client/Exception/ExceptionInterface.php +18 -18
  112. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Client/Exception/InvalidResponseException.php +19 -19
  113. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Config.php +193 -193
  114. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Config/client.config.php +23 -23
  115. app/code/local/Wirecard/CheckoutSeamless/Stdlib/ConsumerData.php +270 -270
  116. app/code/local/Wirecard/CheckoutSeamless/Stdlib/ConsumerData/Address.php +261 -261
  117. app/code/local/Wirecard/CheckoutSeamless/Stdlib/Error.php +0 -61
app/code/community/Wirecard/CheckoutSeamless/Block/Additional/Installment.php CHANGED
@@ -1,82 +1,82 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Additional_Installment extends Mage_Core_Block_Template
34
- {
35
-
36
- protected function _construct()
37
- {
38
- parent::_construct();
39
- $this->setTemplate('wirecard/checkoutseamless/additional/installment.phtml');
40
- }
41
-
42
- private function getCheckout()
43
- {
44
- return Mage::getSingleton('checkout/session');
45
- }
46
-
47
- private function getQuote()
48
- {
49
- return $this->getCheckout()->getQuote();
50
- }
51
-
52
- public function getCustomerDob()
53
- {
54
- $quote = $this->getQuote();
55
- return $quote->getCustomerDob();
56
- }
57
-
58
- private function getCustomerDobPart($mask)
59
- {
60
- $dob = $this->getCustomerDob();
61
- if ($dob) {
62
- return Mage::app()->getLocale()->date($dob, null, null, false)->toString($mask);
63
- }
64
- return '';
65
- }
66
-
67
- public function getCustomerDobYear()
68
- {
69
- return $this->getCustomerDobPart('yyyy');
70
- }
71
-
72
- public function getCustomerDobMonth()
73
- {
74
- return $this->getCustomerDobPart('MM');
75
- }
76
-
77
- public function getCustomerDobDay()
78
- {
79
- return $this->getCustomerDobPart('dd');
80
- }
81
-
82
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Additional_Installment extends Mage_Core_Block_Template
34
+ {
35
+
36
+ protected function _construct()
37
+ {
38
+ parent::_construct();
39
+ $this->setTemplate('wirecard/checkoutseamless/additional/installment.phtml');
40
+ }
41
+
42
+ private function getCheckout()
43
+ {
44
+ return Mage::getSingleton('checkout/session');
45
+ }
46
+
47
+ private function getQuote()
48
+ {
49
+ return $this->getCheckout()->getQuote();
50
+ }
51
+
52
+ public function getCustomerDob()
53
+ {
54
+ $quote = $this->getQuote();
55
+ return $quote->getCustomerDob();
56
+ }
57
+
58
+ private function getCustomerDobPart($mask)
59
+ {
60
+ $dob = $this->getCustomerDob();
61
+ if ($dob) {
62
+ return Mage::app()->getLocale()->date($dob, null, null, false)->toString($mask);
63
+ }
64
+ return '';
65
+ }
66
+
67
+ public function getCustomerDobYear()
68
+ {
69
+ return $this->getCustomerDobPart('yyyy');
70
+ }
71
+
72
+ public function getCustomerDobMonth()
73
+ {
74
+ return $this->getCustomerDobPart('MM');
75
+ }
76
+
77
+ public function getCustomerDobDay()
78
+ {
79
+ return $this->getCustomerDobPart('dd');
80
+ }
81
+
82
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Additional/Invoice.php CHANGED
@@ -1,76 +1,76 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Additional_Invoice extends Mage_Core_Block_Template
34
- {
35
-
36
- protected function _construct()
37
- {
38
- parent::_construct();
39
- $this->setTemplate('wirecard/checkoutseamless/additional/invoice.phtml');
40
- }
41
-
42
- private function getCheckout()
43
- {
44
- return Mage::getSingleton('checkout/session');
45
- }
46
-
47
- private function getQuote()
48
- {
49
- return $this->getCheckout()->getQuote();
50
- }
51
-
52
- public function getCustomerDob() {
53
- $quote = $this->getQuote();
54
- return $quote->getCustomerDob();
55
- }
56
-
57
- private function getCustomerDobPart($mask) {
58
- $dob = $this->getCustomerDob();
59
- if($dob) {
60
- return Mage::app()->getLocale()->date($dob, null, null, false)->toString($mask);
61
- }
62
- return '';
63
- }
64
-
65
- public function getCustomerDobYear() {
66
- return $this->getCustomerDobPart('yyyy');
67
- }
68
-
69
- public function getCustomerDobMonth() {
70
- return $this->getCustomerDobPart('MM');
71
- }
72
-
73
- public function getCustomerDobDay() {
74
- return $this->getCustomerDobPart('dd');
75
- }
76
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Additional_Invoice extends Mage_Core_Block_Template
34
+ {
35
+
36
+ protected function _construct()
37
+ {
38
+ parent::_construct();
39
+ $this->setTemplate('wirecard/checkoutseamless/additional/invoice.phtml');
40
+ }
41
+
42
+ private function getCheckout()
43
+ {
44
+ return Mage::getSingleton('checkout/session');
45
+ }
46
+
47
+ private function getQuote()
48
+ {
49
+ return $this->getCheckout()->getQuote();
50
+ }
51
+
52
+ public function getCustomerDob() {
53
+ $quote = $this->getQuote();
54
+ return $quote->getCustomerDob();
55
+ }
56
+
57
+ private function getCustomerDobPart($mask) {
58
+ $dob = $this->getCustomerDob();
59
+ if($dob) {
60
+ return Mage::app()->getLocale()->date($dob, null, null, false)->toString($mask);
61
+ }
62
+ return '';
63
+ }
64
+
65
+ public function getCustomerDobYear() {
66
+ return $this->getCustomerDobPart('yyyy');
67
+ }
68
+
69
+ public function getCustomerDobMonth() {
70
+ return $this->getCustomerDobPart('MM');
71
+ }
72
+
73
+ public function getCustomerDobDay() {
74
+ return $this->getCustomerDobPart('dd');
75
+ }
76
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Additional/InvoiceB2b.php CHANGED
@@ -1,50 +1,50 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Additional_InvoiceB2b extends Mage_Core_Block_Template
34
- {
35
- protected function _construct()
36
- {
37
- parent::_construct();
38
- $this->setTemplate('wirecard/checkoutseamless/additional/invoiceb2b.phtml');
39
- }
40
-
41
- public function getCompanyTradeRegistrationNumber() {
42
- $customer = Mage::helper('customer')->getCustomer();
43
-
44
- if($customer->hasData('company_trade_reg_number')) {
45
- return Mage::helper('customer')->getCustomer()->getData('company_trade_reg_number');
46
- }
47
-
48
- return "";
49
- }
50
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Additional_InvoiceB2b extends Mage_Core_Block_Template
34
+ {
35
+ protected function _construct()
36
+ {
37
+ parent::_construct();
38
+ $this->setTemplate('wirecard/checkoutseamless/additional/invoiceb2b.phtml');
39
+ }
40
+
41
+ public function getCompanyTradeRegistrationNumber() {
42
+ $customer = Mage::helper('customer')->getCustomer();
43
+
44
+ if($customer->hasData('company_trade_reg_number')) {
45
+ return Mage::helper('customer')->getCustomer()->getData('company_trade_reg_number');
46
+ }
47
+
48
+ return "";
49
+ }
50
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Checkout.php CHANGED
@@ -1,73 +1,73 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Checkout extends Mage_Core_Block_Template
34
- {
35
- /**
36
- * Return checkout session instance
37
- *
38
- * @return Mage_Checkout_Model_Session
39
- */
40
- protected function _getCheckout()
41
- {
42
- return Mage::getSingleton('checkout/session');
43
- }
44
-
45
- /**
46
- * Return order instance
47
- *
48
- * @return Mage_Sales_Model_Order|null
49
- */
50
- protected function _getOrder()
51
- {
52
- if ($this->getOrder())
53
- {
54
- return $this->getOrder();
55
- }
56
- elseif ($this->_getCheckout()->getLastRealOrderId())
57
- {
58
- $orderIncrementId = $this->_getCheckout()->getLastRealOrderId();
59
- return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
60
- }
61
- else
62
- {
63
- return null;
64
- }
65
- }
66
-
67
- public function getIframeUrl()
68
- {
69
- $session = Mage::getSingleton('core/session');
70
- return $session->getWirecardCheckoutSeamlessRedirectUrl();
71
- }
72
- }
73
- ?>
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Checkout extends Mage_Core_Block_Template
34
+ {
35
+ /**
36
+ * Return checkout session instance
37
+ *
38
+ * @return Mage_Checkout_Model_Session
39
+ */
40
+ protected function _getCheckout()
41
+ {
42
+ return Mage::getSingleton('checkout/session');
43
+ }
44
+
45
+ /**
46
+ * Return order instance
47
+ *
48
+ * @return Mage_Sales_Model_Order|null
49
+ */
50
+ protected function _getOrder()
51
+ {
52
+ if ($this->getOrder())
53
+ {
54
+ return $this->getOrder();
55
+ }
56
+ elseif ($this->_getCheckout()->getLastRealOrderId())
57
+ {
58
+ $orderIncrementId = $this->_getCheckout()->getLastRealOrderId();
59
+ return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
60
+ }
61
+ else
62
+ {
63
+ return null;
64
+ }
65
+ }
66
+
67
+ public function getIframeUrl()
68
+ {
69
+ $session = Mage::getSingleton('core/session');
70
+ return $session->getWirecardCheckoutSeamlessRedirectUrl();
71
+ }
72
+ }
73
+ ?>
app/code/community/Wirecard/CheckoutSeamless/Block/Failure.php CHANGED
@@ -1,53 +1,53 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Failure extends Mage_Core_Block_Template
34
- {
35
- /**
36
- * Return Error message
37
- *
38
- * @return string
39
- */
40
- public function getErrorMessage ()
41
- {
42
- return Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessErrorMessage();
43
- }
44
-
45
- /**
46
- * Get continue shopping url
47
- */
48
- public function getContinueShoppingUrl()
49
- {
50
- return Mage::getUrl('checkout', array('_secure' => true));
51
- }
52
- }
53
- ?>
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Failure extends Mage_Core_Block_Template
34
+ {
35
+ /**
36
+ * Return Error message
37
+ *
38
+ * @return string
39
+ */
40
+ public function getErrorMessage ()
41
+ {
42
+ return Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessErrorMessage();
43
+ }
44
+
45
+ /**
46
+ * Get continue shopping url
47
+ */
48
+ public function getContinueShoppingUrl()
49
+ {
50
+ return Mage::getUrl('checkout', array('_secure' => true));
51
+ }
52
+ }
53
+ ?>
app/code/community/Wirecard/CheckoutSeamless/Block/Info.php CHANGED
@@ -1,52 +1,52 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Info extends Mage_Payment_Block_Info
34
- {
35
- protected function _construct()
36
- {
37
- parent::_construct();
38
- $this->setTemplate('wirecard/checkoutseamless/info.phtml');
39
- }
40
-
41
- public function getMethodCode()
42
- {
43
- return $this->getInfo()->getMethodInstance()->getCode();
44
- }
45
-
46
- public function toPdf()
47
- {
48
- $this->setTemplate('wirecard/checkoutseamless/pdf/info.phtml');
49
- return $this->toHtml();
50
- }
51
- }
52
  ?>
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Info extends Mage_Payment_Block_Info
34
+ {
35
+ protected function _construct()
36
+ {
37
+ parent::_construct();
38
+ $this->setTemplate('wirecard/checkoutseamless/info.phtml');
39
+ }
40
+
41
+ public function getMethodCode()
42
+ {
43
+ return $this->getInfo()->getMethodInstance()->getCode();
44
+ }
45
+
46
+ public function toPdf()
47
+ {
48
+ $this->setTemplate('wirecard/checkoutseamless/pdf/info.phtml');
49
+ return $this->toHtml();
50
+ }
51
+ }
52
  ?>
app/code/community/Wirecard/CheckoutSeamless/Block/Processing.php CHANGED
@@ -1,83 +1,83 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Processing extends Mage_Core_Block_Template
34
- {
35
- /**
36
- * Return checkout session instance
37
- *
38
- * @return Mage_Checkout_Model_Session
39
- */
40
- protected function _getCheckout()
41
- {
42
- return Mage::getSingleton('checkout/session');
43
- }
44
-
45
- /**
46
- * Return order instance
47
- *
48
- * @return Mage_Sales_Model_Order|null
49
- */
50
- protected function _getOrder()
51
- {
52
- if ($this->getOrder()) {
53
- return $this->getOrder();
54
- } elseif ($this->_getCheckout()->getLastRealOrderId()) {
55
- $orderIncrementId = $this->_getCheckout()->getLastRealOrderId();
56
- return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
57
- } else {
58
- return null;
59
- }
60
- }
61
-
62
-
63
- public function getFormData()
64
- {
65
- $params = array();
66
-
67
- $url = parse_url($this->_getOrder()->getPayment()->getMethodInstance()->getUrl());
68
- $url = explode('&', $url['query']);
69
- foreach ($url as $currentPair) {
70
- $currentPair = explode('=', $currentPair);
71
- $params[$currentPair[0]] = $currentPair[1];
72
- }
73
-
74
- return $params;
75
- }
76
-
77
- public function getFormAction()
78
- {
79
- $url = parse_url($this->_getOrder()->getPayment()->getMethodInstance()->getUrl());
80
-
81
- return $url['scheme'] . '://' . $url['host'] . $url['path'];
82
- }
83
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Processing extends Mage_Core_Block_Template
34
+ {
35
+ /**
36
+ * Return checkout session instance
37
+ *
38
+ * @return Mage_Checkout_Model_Session
39
+ */
40
+ protected function _getCheckout()
41
+ {
42
+ return Mage::getSingleton('checkout/session');
43
+ }
44
+
45
+ /**
46
+ * Return order instance
47
+ *
48
+ * @return Mage_Sales_Model_Order|null
49
+ */
50
+ protected function _getOrder()
51
+ {
52
+ if ($this->getOrder()) {
53
+ return $this->getOrder();
54
+ } elseif ($this->_getCheckout()->getLastRealOrderId()) {
55
+ $orderIncrementId = $this->_getCheckout()->getLastRealOrderId();
56
+ return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
57
+ } else {
58
+ return null;
59
+ }
60
+ }
61
+
62
+
63
+ public function getFormData()
64
+ {
65
+ $params = array();
66
+
67
+ $url = parse_url($this->_getOrder()->getPayment()->getMethodInstance()->getUrl());
68
+ $url = explode('&', $url['query']);
69
+ foreach ($url as $currentPair) {
70
+ $currentPair = explode('=', $currentPair);
71
+ $params[$currentPair[0]] = $currentPair[1];
72
+ }
73
+
74
+ return $params;
75
+ }
76
+
77
+ public function getFormAction()
78
+ {
79
+ $url = parse_url($this->_getOrder()->getPayment()->getMethodInstance()->getUrl());
80
+
81
+ return $url['scheme'] . '://' . $url['host'] . $url['path'];
82
+ }
83
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Return.php CHANGED
@@ -1,52 +1,52 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Return extends Mage_Core_Block_Template
34
- {
35
-
36
- public function getRedirectUrl()
37
- {
38
- $redirectURL = $this->_getCheckout()->getResponseRedirectUrl();
39
- return Mage::getUrl($redirectURL, array('_secure' => true));
40
- }
41
-
42
- /**
43
- * Return checkout session instance
44
- *
45
- * @return Mage_Checkout_Model_Session
46
- */
47
- protected function _getCheckout()
48
- {
49
- return Mage::getSingleton('checkout/session');
50
- }
51
-
52
- }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Return extends Mage_Core_Block_Template
34
+ {
35
+
36
+ public function getRedirectUrl()
37
+ {
38
+ $redirectURL = $this->_getCheckout()->getResponseRedirectUrl();
39
+ return Mage::getUrl($redirectURL, array('_secure' => true));
40
+ }
41
+
42
+ /**
43
+ * Return checkout session instance
44
+ *
45
+ * @return Mage_Checkout_Model_Session
46
+ */
47
+ protected function _getCheckout()
48
+ {
49
+ return Mage::getSingleton('checkout/session');
50
+ }
51
+
52
+ }
app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Base.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Seamless_Base extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
- {
35
-
36
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Seamless_Base extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
+ {
35
+
36
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Eps.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Seamless_Eps extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
- {
35
- protected function _construct()
36
- {
37
- parent::_construct();
38
- $this->setTemplate('wirecard/checkoutseamless/seamless/eps.phtml');
39
- }
40
-
41
- public function getFinancialInstitutions()
42
- {
43
- return WirecardCEE_QMore_PaymentType::getFinancialInstitutions(WirecardCEE_QMore_PaymentType::EPS);
44
- }
45
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Seamless_Eps extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
+ {
35
+ protected function _construct()
36
+ {
37
+ parent::_construct();
38
+ $this->setTemplate('wirecard/checkoutseamless/seamless/eps.phtml');
39
+ }
40
+
41
+ public function getFinancialInstitutions()
42
+ {
43
+ return WirecardCEE_QMore_PaymentType::getFinancialInstitutions(WirecardCEE_QMore_PaymentType::EPS);
44
+ }
45
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Ideal.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Seamless_Ideal extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
- {
35
- protected function _construct()
36
- {
37
- parent::_construct();
38
- $this->setTemplate('wirecard/checkoutseamless/seamless/ideal.phtml');
39
- }
40
-
41
- public function getFinancialInstitutions()
42
- {
43
- return WirecardCEE_QMore_PaymentType::getFinancialInstitutions(WirecardCEE_QMore_PaymentType::IDL);
44
- }
45
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Seamless_Ideal extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
+ {
35
+ protected function _construct()
36
+ {
37
+ parent::_construct();
38
+ $this->setTemplate('wirecard/checkoutseamless/seamless/ideal.phtml');
39
+ }
40
+
41
+ public function getFinancialInstitutions()
42
+ {
43
+ return WirecardCEE_QMore_PaymentType::getFinancialInstitutions(WirecardCEE_QMore_PaymentType::IDL);
44
+ }
45
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/SepaDd.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Seamless_SepaDd extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
- {
35
- protected function _construct()
36
- {
37
- parent::_construct();
38
- $this->setTemplate('wirecard/checkoutseamless/seamless/sepadd.phtml');
39
- }
40
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Seamless_SepaDd extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
+ {
35
+ protected function _construct()
36
+ {
37
+ parent::_construct();
38
+ $this->setTemplate('wirecard/checkoutseamless/seamless/sepadd.phtml');
39
+ }
40
  }
app/code/community/Wirecard/CheckoutSeamless/Block/Seamless/Trustpay.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Block_Seamless_Trustpay extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
- {
35
- protected function _construct()
36
- {
37
- parent::_construct();
38
- $this->setTemplate('wirecard/checkoutseamless/seamless/trustpay.phtml');
39
- }
40
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Block_Seamless_Trustpay extends Wirecard_CheckoutSeamless_Block_Seamless_Abstract
34
+ {
35
+ protected function _construct()
36
+ {
37
+ parent::_construct();
38
+ $this->setTemplate('wirecard/checkoutseamless/seamless/trustpay.phtml');
39
+ }
40
  }
app/code/community/Wirecard/CheckoutSeamless/Helper/Data.php CHANGED
@@ -1,251 +1,251 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Helper_Data extends Mage_Payment_Helper_Data
34
- {
35
-
36
- protected $_pluginVersion = '4.0.7';
37
- protected $_pluginName = 'Wirecard/CheckoutSeamless';
38
-
39
- /**
40
- * predefined test/demo accounts
41
- *
42
- * @var array
43
- */
44
- protected $_presets = array(
45
- 'demo' => array(
46
- 'settings/customer_id' => 'D200001',
47
- 'settings/shop_id' => 'seamless',
48
- 'settings/secret' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2',
49
- 'settings/backendpw' => 'jcv45z'
50
- ),
51
- 'test_no3d' => array(
52
- 'settings/customer_id' => 'D200411',
53
- 'settings/shop_id' => 'seamless',
54
- 'settings/secret' => 'CHCSH7UGHVVX2P7EHDHSY4T2S4CGYK4QBE4M5YUUG2ND5BEZWNRZW5EJYVJQ',
55
- 'settings/backendpw' => '2g4f9q2m'
56
- ),
57
- 'test_3d' => array(
58
- 'settings/customer_id' => 'D200411',
59
- 'settings/shop_id' => 'seamless3D',
60
- 'settings/secret' => 'DP4TMTPQQWFJW34647RM798E9A5X7E8ATP462Z4VGZK53YEJ3JWXS98B9P4F',
61
- 'settings/backendpw' => '2g4f9q2m'
62
- )
63
- );
64
-
65
- public function getConfigArray()
66
- {
67
- $cfg = Array('LANGUAGE' => $this->getLanguage());
68
- $cfg['CUSTOMER_ID'] = $this->getConfigData('settings/customer_id');
69
- $cfg['SHOP_ID'] = $this->getConfigData('settings/shop_id');
70
- $cfg['SECRET'] = $this->getConfigData('settings/secret');
71
-
72
- return $cfg;
73
- }
74
-
75
- /**
76
- * return config array to be used for client lib, backend ops
77
- *
78
- * @return array
79
- */
80
- public function getBackendConfigArray()
81
- {
82
- $cfg = $this->getConfigArray();
83
- $cfg['PASSWORD'] = $this->getConfigData('settings/backendpw');
84
-
85
- return $cfg;
86
- }
87
-
88
- public function getConfigData($field = null, $storeId = null)
89
- {
90
- $type = Mage::getStoreConfig('wirecard_checkoutseamless/settings/configuration', $storeId);
91
-
92
- if (isset($this->_presets[$type]) && isset($this->_presets[$type][$field])) {
93
- return $this->_presets[$type][$field];
94
- }
95
-
96
- $path = 'wirecard_checkoutseamless';
97
- if ($field !== null) {
98
- $path .= '/' . $field;
99
- }
100
-
101
- return Mage::getStoreConfig($path, $storeId);
102
- }
103
-
104
- /**
105
- * returns config preformated as string, used in support email
106
- *
107
- * @return string
108
- */
109
- public function getConfigString()
110
- {
111
- $ret = '';
112
- $exclude = array('secret', 'backendpw');
113
- foreach ($this->getConfigData() as $group => $fields) {
114
- foreach ($fields as $field => $value) {
115
- if (in_array($field, $exclude)) {
116
- continue;
117
- }
118
- if (strlen($ret)) {
119
- $ret .= "\n";
120
- }
121
- $ret .= sprintf("%s: %s", $field, $value);
122
- }
123
- }
124
-
125
- return $ret;
126
- }
127
-
128
- public function getLanguage()
129
- {
130
- $locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
131
- if (is_array($locale) && ! empty( $locale )) {
132
- $locale = $locale[0];
133
- } else {
134
- $locale = $this->getDefaultLocale();
135
- }
136
-
137
- return $locale;
138
- }
139
-
140
- public function getPluginVersion()
141
- {
142
- return WirecardCEE_QMore_FrontendClient::generatePluginVersion('Magento', Mage::getVersion(),
143
- $this->_pluginName, $this->_pluginVersion);
144
- }
145
-
146
- public function log($message, $level = null)
147
- {
148
- if ($level === null) {
149
- $level = Zend_Log::INFO;
150
- }
151
-
152
- Mage::log($message, $level, 'wirecard_checkoutseamless.log', true);
153
- }
154
-
155
- /**
156
- * @return bool|null|WirecardCEE_QMore_DataStorage_Response_Initiation
157
- */
158
- public function initDatastorage()
159
- {
160
- $dataStorageInit = new WirecardCEE_QMore_DataStorageClient($this->getConfigArray());
161
-
162
- $dataStorageInit->setReturnUrl(Mage::getUrl('wirecard_checkoutseamless/processing/storereturn',
163
- array('_secure' => true)));
164
- $dataStorageInit->setOrderIdent(Mage::getSingleton('checkout/session')->getQuote()->getId());
165
-
166
- $response = null;
167
- if ($this->getConfigData('ccard/pci3_dss_saq_a_enable')) {
168
- $dataStorageInit->setJavascriptScriptVersion('pci3');
169
-
170
- if (strlen(trim($this->getConfigData('ccard/iframe_css_url')))) {
171
- $dataStorageInit->setIframeCssUrl(trim($this->getConfigData('ccard/iframe_css_url')));
172
- }
173
-
174
- $dataStorageInit->setCreditCardCardholderNameField($this->getConfigData('ccard/showcardholder'));
175
- $dataStorageInit->setCreditCardShowCvcField($this->getConfigData('ccard/showcvc'));
176
- $dataStorageInit->setCreditCardShowIssueDateField($this->getConfigData('ccard/showissuedate'));
177
- $dataStorageInit->setCreditCardShowIssueNumberField($this->getConfigData('ccard/showissuenumber'));
178
- }
179
-
180
- $this->log(__METHOD__ . ':' . print_r($dataStorageInit->getRequestData(), true), Zend_Log::INFO);
181
-
182
- try {
183
- $response = $dataStorageInit->initiate();
184
- if ($response->getStatus() == WirecardCEE_QMore_DataStorage_Response_Initiation::STATE_SUCCESS) {
185
-
186
- Mage::getSingleton('checkout/session')->setWirecardCheckoutSeamlessStorageId($response->getStorageId());
187
- $this->log(__METHOD__ . ':storageid:' . $response->getStorageId(), Zend_Log::DEBUG);
188
-
189
- return $response;
190
-
191
- } else {
192
-
193
- $dsErrors = $response->getErrors();
194
-
195
- foreach ($dsErrors as $error) {
196
- $this->log(__METHOD__ . ':' . $error->getMessage());
197
- }
198
-
199
- return false;
200
- }
201
- } catch (Exception $e) {
202
-
203
- //communication with dataStorage failed. we choose a none dataStorage fallback
204
- $this->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
205
-
206
- return false;
207
- }
208
- }
209
-
210
- /**
211
- * @return bool|WirecardCEE_QMore_DataStorage_Response_Read
212
- */
213
- public function readDatastorage()
214
- {
215
- $session = Mage::getSingleton('checkout/session');
216
- /** @var Mage_Sales_Model_Order $order */
217
- $order = Mage::getModel('sales/order');
218
- $order->loadByIncrementId($session->getLastRealOrderId());
219
-
220
- $dataStorageRead = new WirecardCEE_QMore_DataStorageClient($this->getConfigArray());
221
- $dataStorageRead->setStorageId(Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessStorageId());
222
- $dataStorageRead->read();
223
-
224
- try {
225
-
226
- $response = $dataStorageRead->read();
227
-
228
- if ($response->getStatus() != WirecardCEE_QMore_DataStorage_Response_Read::STATE_FAILURE) {
229
-
230
- return $response;
231
-
232
- } else {
233
-
234
- $dsErrors = $response->getErrors();
235
-
236
- foreach ($dsErrors as $error) {
237
- $this->log(__METHOD__ . ':' . $error->getMessage(), Zend_Log::ERR);
238
- }
239
-
240
- return false;
241
- }
242
- } catch (Exception $e) {
243
-
244
- //communication with dataStorage failed. we choose a none dataStorage fallback
245
- Mage::logException($e);
246
-
247
- return false;
248
- }
249
- }
250
-
251
- }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Helper_Data extends Mage_Payment_Helper_Data
34
+ {
35
+
36
+ protected $_pluginVersion = '4.0.8';
37
+ protected $_pluginName = 'Wirecard/CheckoutSeamless';
38
+
39
+ /**
40
+ * predefined test/demo accounts
41
+ *
42
+ * @var array
43
+ */
44
+ protected $_presets = array(
45
+ 'demo' => array(
46
+ 'settings/customer_id' => 'D200001',
47
+ 'settings/shop_id' => 'seamless',
48
+ 'settings/secret' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2',
49
+ 'settings/backendpw' => 'jcv45z'
50
+ ),
51
+ 'test_no3d' => array(
52
+ 'settings/customer_id' => 'D200411',
53
+ 'settings/shop_id' => 'seamless',
54
+ 'settings/secret' => 'CHCSH7UGHVVX2P7EHDHSY4T2S4CGYK4QBE4M5YUUG2ND5BEZWNRZW5EJYVJQ',
55
+ 'settings/backendpw' => '2g4f9q2m'
56
+ ),
57
+ 'test_3d' => array(
58
+ 'settings/customer_id' => 'D200411',
59
+ 'settings/shop_id' => 'seamless3D',
60
+ 'settings/secret' => 'DP4TMTPQQWFJW34647RM798E9A5X7E8ATP462Z4VGZK53YEJ3JWXS98B9P4F',
61
+ 'settings/backendpw' => '2g4f9q2m'
62
+ )
63
+ );
64
+
65
+ public function getConfigArray()
66
+ {
67
+ $cfg = Array('LANGUAGE' => $this->getLanguage());
68
+ $cfg['CUSTOMER_ID'] = $this->getConfigData('settings/customer_id');
69
+ $cfg['SHOP_ID'] = $this->getConfigData('settings/shop_id');
70
+ $cfg['SECRET'] = $this->getConfigData('settings/secret');
71
+
72
+ return $cfg;
73
+ }
74
+
75
+ /**
76
+ * return config array to be used for client lib, backend ops
77
+ *
78
+ * @return array
79
+ */
80
+ public function getBackendConfigArray()
81
+ {
82
+ $cfg = $this->getConfigArray();
83
+ $cfg['PASSWORD'] = $this->getConfigData('settings/backendpw');
84
+
85
+ return $cfg;
86
+ }
87
+
88
+ public function getConfigData($field = null, $storeId = null)
89
+ {
90
+ $type = Mage::getStoreConfig('wirecard_checkoutseamless/settings/configuration', $storeId);
91
+
92
+ if (isset($this->_presets[$type]) && isset($this->_presets[$type][$field])) {
93
+ return $this->_presets[$type][$field];
94
+ }
95
+
96
+ $path = 'wirecard_checkoutseamless';
97
+ if ($field !== null) {
98
+ $path .= '/' . $field;
99
+ }
100
+
101
+ return Mage::getStoreConfig($path, $storeId);
102
+ }
103
+
104
+ /**
105
+ * returns config preformated as string, used in support email
106
+ *
107
+ * @return string
108
+ */
109
+ public function getConfigString()
110
+ {
111
+ $ret = '';
112
+ $exclude = array('secret', 'backendpw');
113
+ foreach ($this->getConfigData() as $group => $fields) {
114
+ foreach ($fields as $field => $value) {
115
+ if (in_array($field, $exclude)) {
116
+ continue;
117
+ }
118
+ if (strlen($ret)) {
119
+ $ret .= "\n";
120
+ }
121
+ $ret .= sprintf("%s: %s", $field, $value);
122
+ }
123
+ }
124
+
125
+ return $ret;
126
+ }
127
+
128
+ public function getLanguage()
129
+ {
130
+ $locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
131
+ if (is_array($locale) && ! empty( $locale )) {
132
+ $locale = $locale[0];
133
+ } else {
134
+ $locale = $this->getDefaultLocale();
135
+ }
136
+
137
+ return $locale;
138
+ }
139
+
140
+ public function getPluginVersion()
141
+ {
142
+ return WirecardCEE_QMore_FrontendClient::generatePluginVersion('Magento', Mage::getVersion(),
143
+ $this->_pluginName, $this->_pluginVersion);
144
+ }
145
+
146
+ public function log($message, $level = null)
147
+ {
148
+ if ($level === null) {
149
+ $level = Zend_Log::INFO;
150
+ }
151
+
152
+ Mage::log($message, $level, 'wirecard_checkoutseamless.log', true);
153
+ }
154
+
155
+ /**
156
+ * @return bool|null|WirecardCEE_QMore_DataStorage_Response_Initiation
157
+ */
158
+ public function initDatastorage()
159
+ {
160
+ $dataStorageInit = new WirecardCEE_QMore_DataStorageClient($this->getConfigArray());
161
+
162
+ $dataStorageInit->setReturnUrl(Mage::getUrl('wirecard_checkoutseamless/processing/storereturn',
163
+ array('_secure' => true)));
164
+ $dataStorageInit->setOrderIdent(Mage::getSingleton('checkout/session')->getQuote()->getId());
165
+
166
+ $response = null;
167
+ if ($this->getConfigData('ccard/pci3_dss_saq_a_enable')) {
168
+ $dataStorageInit->setJavascriptScriptVersion('pci3');
169
+
170
+ if (strlen(trim($this->getConfigData('ccard/iframe_css_url')))) {
171
+ $dataStorageInit->setIframeCssUrl(trim($this->getConfigData('ccard/iframe_css_url')));
172
+ }
173
+
174
+ $dataStorageInit->setCreditCardCardholderNameField($this->getConfigData('ccard/showcardholder'));
175
+ $dataStorageInit->setCreditCardShowCvcField($this->getConfigData('ccard/showcvc'));
176
+ $dataStorageInit->setCreditCardShowIssueDateField($this->getConfigData('ccard/showissuedate'));
177
+ $dataStorageInit->setCreditCardShowIssueNumberField($this->getConfigData('ccard/showissuenumber'));
178
+ }
179
+
180
+ $this->log(__METHOD__ . ':' . print_r($dataStorageInit->getRequestData(), true), Zend_Log::INFO);
181
+
182
+ try {
183
+ $response = $dataStorageInit->initiate();
184
+ if ($response->getStatus() == WirecardCEE_QMore_DataStorage_Response_Initiation::STATE_SUCCESS) {
185
+
186
+ Mage::getSingleton('checkout/session')->setWirecardCheckoutSeamlessStorageId($response->getStorageId());
187
+ $this->log(__METHOD__ . ':storageid:' . $response->getStorageId(), Zend_Log::DEBUG);
188
+
189
+ return $response;
190
+
191
+ } else {
192
+
193
+ $dsErrors = $response->getErrors();
194
+
195
+ foreach ($dsErrors as $error) {
196
+ $this->log(__METHOD__ . ':' . $error->getMessage());
197
+ }
198
+
199
+ return false;
200
+ }
201
+ } catch (Exception $e) {
202
+
203
+ //communication with dataStorage failed. we choose a none dataStorage fallback
204
+ $this->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
205
+
206
+ return false;
207
+ }
208
+ }
209
+
210
+ /**
211
+ * @return bool|WirecardCEE_QMore_DataStorage_Response_Read
212
+ */
213
+ public function readDatastorage()
214
+ {
215
+ $session = Mage::getSingleton('checkout/session');
216
+ /** @var Mage_Sales_Model_Order $order */
217
+ $order = Mage::getModel('sales/order');
218
+ $order->loadByIncrementId($session->getLastRealOrderId());
219
+
220
+ $dataStorageRead = new WirecardCEE_QMore_DataStorageClient($this->getConfigArray());
221
+ $dataStorageRead->setStorageId(Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessStorageId());
222
+ $dataStorageRead->read();
223
+
224
+ try {
225
+
226
+ $response = $dataStorageRead->read();
227
+
228
+ if ($response->getStatus() != WirecardCEE_QMore_DataStorage_Response_Read::STATE_FAILURE) {
229
+
230
+ return $response;
231
+
232
+ } else {
233
+
234
+ $dsErrors = $response->getErrors();
235
+
236
+ foreach ($dsErrors as $error) {
237
+ $this->log(__METHOD__ . ':' . $error->getMessage(), Zend_Log::ERR);
238
+ }
239
+
240
+ return false;
241
+ }
242
+ } catch (Exception $e) {
243
+
244
+ //communication with dataStorage failed. we choose a none dataStorage fallback
245
+ Mage::logException($e);
246
+
247
+ return false;
248
+ }
249
+ }
250
+
251
+ }
app/code/community/Wirecard/CheckoutSeamless/Model/Abstract.php CHANGED
@@ -1,497 +1,497 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- abstract class Wirecard_CheckoutSeamless_Model_Abstract extends Mage_Payment_Model_Method_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_abstract';
41
-
42
- protected $_isGateway = false;
43
- protected $_canAuthorize = true;
44
- protected $_canCapture = true;
45
- protected $_canCapturePartial = false;
46
- protected $_canRefund = false;
47
- protected $_canVoid = false;
48
- protected $_canUseInternal = false;
49
- protected $_canUseCheckout = true;
50
- protected $_canUseForMultishipping = false;
51
-
52
- protected $_paymentMethod = 'SELECT';
53
- protected $_defaultLocale = 'en';
54
-
55
- protected $_order;
56
- protected $_pluginVersion = '4.0.7';
57
- protected $_pluginName = 'Wirecard/CheckoutSeamless';
58
-
59
- protected $_formBlockType = 'wirecard_checkoutseamless/form';
60
- protected $_infoBlockType = 'wirecard_checkoutseamless/info';
61
-
62
- protected $_forceSendAdditionalData = false;
63
-
64
- /**
65
- * @var Mage_Sales_Model_Quote
66
- */
67
- protected $_quote = false;
68
-
69
- /**
70
- * translate method title shown in payment selection
71
- * the methode code is the key, if no transaltion found
72
- * use the title setting
73
- *
74
- * @return string
75
- */
76
- public function getTitle()
77
- {
78
- /** @var Wirecard_CheckoutPage_Helper_Data $helper */
79
- $helper = Mage::helper('wirecard_checkoutseamless');
80
-
81
- $translated = $helper->__($this->_paymentMethod);
82
- if ($translated == $this->_paymentMethod) {
83
- return parent::getTitle();
84
- }
85
-
86
- return $translated;
87
- }
88
-
89
- /**
90
- * Get order model
91
- *
92
- * @return Mage_Sales_Model_Order
93
- */
94
- public function getOrder()
95
- {
96
- if (!$this->_order) {
97
- $paymentInfo = $this->getInfoInstance();
98
- $this->_order = Mage::getModel('sales/order')
99
- ->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId());
100
- }
101
- return $this->_order;
102
- }
103
-
104
- public function getOrderPlaceRedirectUrl()
105
- {
106
- Mage::getSingleton('core/session')->unsWirecardCheckoutSeamlessRedirectUrl();
107
- return Mage::getUrl('wirecard_checkoutseamless/processing/checkout', array('_secure' => true));
108
- }
109
-
110
- public function capture(Varien_Object $payment, $amount)
111
- {
112
- $payment->setStatus(self::STATUS_APPROVED)
113
- ->setLastTransId($this->getTransactionId());
114
- return $this;
115
- }
116
-
117
- public function cancel(Varien_Object $payment)
118
- {
119
- $payment->setStatus(self::STATUS_DECLINED)
120
- ->setLastTransId($this->getTransactionId());
121
-
122
- return $this;
123
- }
124
-
125
- /**
126
- * Return payment method type string
127
- *
128
- * @return string
129
- */
130
- public function getPaymentMethodType()
131
- {
132
- return $this->_paymentMethod;
133
- }
134
-
135
- public function getFormCode()
136
- {
137
- return array_pop(explode('_', $this->_code));
138
- }
139
-
140
-
141
- public function initPayment($storageId, $orderIdent)
142
- {
143
- $order = $this->getOrder();
144
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
145
- $helper = Mage::helper('wirecard_checkoutseamless');
146
-
147
- $precision = 2;
148
-
149
- $returnUrl = Mage::getUrl('wirecard_checkoutseamless/processing/return', array('_secure' => true, '_nosid' => true));
150
-
151
- $init = new WirecardCEE_QMore_FrontendClient($helper->getConfigArray());
152
-
153
- $init->setPluginVersion($helper->getPluginVersion());
154
-
155
- $init->setConfirmUrl(Mage::getUrl('wirecard_checkoutseamless/processing/confirm', array('_secure' => true, '_nosid' => true)));
156
- $init->setOrderReference(sprintf('%010d', $this->getOrder()->getRealOrderId()));
157
-
158
- if (strlen($storageId))
159
- $init->setStorageId($storageId);
160
-
161
- if (strlen($orderIdent))
162
- $init->setOrderIdent($orderIdent);
163
-
164
- if ($helper->getConfigData('options/sendconfirmationemail'))
165
- $init->setConfirmMail(Mage::getStoreConfig('trans_email/ident_general/email'));
166
-
167
- if (strlen($this->getFinancialInstitution()))
168
- $init->setFinancialInstitution($this->getFinancialInstitution());
169
-
170
- $paymenttype = $this->_paymentMethod;
171
- $init->setAmount(round($this->getOrder()->getBaseGrandTotal(), 2))
172
- ->setCurrency($this->getOrder()->getBaseCurrencyCode())
173
- ->setPaymentType($paymenttype)
174
- ->setOrderDescription($this->getUserDescription())
175
- ->setSuccessUrl($returnUrl)
176
- ->setPendingUrl($returnUrl)
177
- ->setCancelUrl($returnUrl)
178
- ->setFailureUrl($returnUrl)
179
- ->setServiceUrl($helper->getConfigData('options/serviceurl'))
180
- ->setConsumerData($this->_getConsumerData());
181
-
182
- // XXX ToDo setWindowName
183
-
184
- $init->mage_orderId = $this->getOrder()->getRealOrderId();
185
-
186
- $init->generateCustomerStatement($helper->getConfigData('options/shopname'));
187
-
188
- if ($helper->getConfigData('options/sendbasketinformation')
189
- || ($this->_paymentMethod == WirecardCEE_Stdlib_PaymentTypeAbstract::INSTALLMENT && $this->getConfigData('provider') == 'ratepay')
190
- || ($this->_paymentMethod == WirecardCEE_Stdlib_PaymentTypeAbstract::INVOICE && $this->getConfigData('provider') == 'ratepay')
191
- ) {
192
- $basket = new WirecardCEE_Stdlib_Basket();
193
- $basket->setCurrency($this->getOrder()->getBaseCurrencyCode());
194
-
195
- foreach ($order->getAllVisibleItems() as $item) {
196
- /** @var Mage_Sales_Model_Order_Item $item */
197
- $bitem = new WirecardCEE_Stdlib_Basket_Item();
198
- $bitem->setDescription($item->getProduct()->getName());
199
- $bitem->setArticleNumber($item->getSku());
200
- $bitem->setUnitPrice(number_format($item->getPrice(), $precision, '.', ''));
201
- $bitem->setTax(number_format($item->getTaxAmount(), $precision, '.', ''));
202
- $basket->addItem($bitem, (int)$item->getQtyOrdered());
203
- $helper->log(print_r($bitem, true));
204
- }
205
- $bitem = new WirecardCEE_Stdlib_Basket_Item();
206
- $bitem->setArticleNumber('shipping');
207
- $bitem->setUnitPrice(number_format($order->getShippingAmount(), $precision, '.', ''));
208
- $bitem->setTax(number_format($order->getShippingTaxAmount(), $precision, '.', ''));
209
- $bitem->setDescription($order->getShippingDescription());
210
- $basket->addItem($bitem);
211
-
212
- foreach ($basket->__toArray() as $k => $v) {
213
- $init->$k = $v;
214
- }
215
- }
216
-
217
- $helper->log(__METHOD__ . ':' . print_r($init->getRequestData(), true), Zend_Log::INFO);
218
-
219
- try {
220
- $initResponse = $init->initiate();
221
- } catch (Exception $e) {
222
- $helper->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
223
- $message = $helper->__('An error occurred during the payment process');
224
- throw new Exception($message);
225
- }
226
-
227
- if ($initResponse->getStatus() == WirecardCEE_QMore_Response_Initiation::STATE_FAILURE) {
228
- $msg = array();
229
- foreach ($initResponse->getErrors() as $error) {
230
- $msg[] = $error->getConsumerMessage();
231
- }
232
-
233
- if (!count($msg)) {
234
- // dont show technical error to consumer
235
- $message = $helper->__('An error occurred during the payment process');
236
- }
237
- else {
238
- $message = implode("<br/>\n", $msg);
239
- }
240
-
241
- $helper->log(__METHOD__ . ':' . $message, Zend_Log::ERR);
242
-
243
- throw new Exception($message);
244
- }
245
-
246
- return $initResponse;
247
- }
248
-
249
- /**
250
- * Returns desription of customer - will be displayed in Wirecard backend
251
- *
252
- * @return string
253
- */
254
- protected function getUserDescription()
255
- {
256
- return sprintf('%s %s %s', $this->getOrder()->getCustomerEmail(), $this->getOrder()->getCustomerFirstname(),
257
- $this->getOrder()->getCustomerLastname());
258
- }
259
-
260
- /**
261
- * @return WirecardCEE_Stdlib_ConsumerData
262
- * @throws Zend_Controller_Request_Exception
263
- */
264
- protected function _getConsumerData()
265
- {
266
- $consumerData = new WirecardCEE_Stdlib_ConsumerData();
267
- $consumerData->setIpAddress(Mage::app()->getRequest()->getServer('REMOTE_ADDR'));
268
- $consumerData->setUserAgent(Mage::app()->getRequest()->getHeader('User-Agent'));
269
-
270
- $deliveryAddress = $this->getOrder()->getShippingAddress();
271
- $billingAddress = $this->getOrder()->getBillingAddress();
272
- $dob = $this->getCustomerDob();
273
-
274
- if ($this->_forceSendAdditionalData || $this->_getHelper()->getConfigData('options/sendadditionaldata')) {
275
-
276
- $consumerData->setEmail($this->getOrder()->getCustomerEmail());
277
- if ($dob !== false)
278
- $consumerData->setBirthDate($dob);
279
- $consumerData->addAddressInformation($this->_getAddress($billingAddress, 'billing'));
280
- $consumerData->addAddressInformation($this->_getAddress($deliveryAddress, 'shipping'));
281
- }
282
-
283
- return $consumerData;
284
- }
285
-
286
- /**
287
- * @param Mage_Sales_Model_Order_Address $source
288
- * @param string $type
289
- *
290
- * @return WirecardCEE_Stdlib_ConsumerData_Address
291
- */
292
- protected function _getAddress($source, $type = 'billing')
293
- {
294
- switch ($type) {
295
- case 'shipping':
296
- $address = new WirecardCEE_Stdlib_ConsumerData_Address(WirecardCEE_Stdlib_ConsumerData_Address::TYPE_SHIPPING);
297
- break;
298
-
299
- default:
300
- $address = new WirecardCEE_Stdlib_ConsumerData_Address(WirecardCEE_Stdlib_ConsumerData_Address::TYPE_BILLING);
301
- break;
302
- }
303
-
304
- $address->setFirstname($source->getFirstname());
305
- $address->setLastname($source->getLastname());
306
- $address->setAddress1($source->getStreet1());
307
- $address->setAddress2($source->getStreet2());
308
- $address->setZipCode($source->getPostcode());
309
- $address->setCity($source->getCity());
310
- $address->setCountry($source->getCountry());
311
- $address->setState($source->getRegionCode());
312
- $address->setPhone($source->getTelephone());
313
- $address->setFax($source->getFax());
314
-
315
- return $address;
316
- }
317
-
318
- /**
319
- *
320
- * Getter for the plugin version variable
321
- *
322
- * @return string The plugin version
323
- */
324
- public function getPluginVersion()
325
- {
326
- return $this->_pluginVersion;
327
- }
328
-
329
- /**
330
- *
331
- * Getter for the plugin name variable
332
- *
333
- * @return string The plugin name
334
- */
335
- public function getPluginName()
336
- {
337
- return $this->_pluginName;
338
- }
339
-
340
- public function getFinancialInstitution()
341
- {
342
- return null;
343
- }
344
-
345
- /**
346
- * getter for customers birthDate
347
- *
348
- * @return DateTime|boolean
349
- */
350
- public function getCustomerDob()
351
- {
352
- $order = $this->getOrder();
353
- $dob = $order->getCustomerDob();
354
- if ($dob) {
355
- return new DateTime($dob);
356
- }
357
- return false;
358
- }
359
-
360
- /**
361
- * Return checkout session object
362
- *
363
- * @return Mage_Checkout_Model_Session
364
- */
365
- private function _getCheckoutSession()
366
- {
367
- return Mage::getSingleton('checkout/session');
368
- }
369
-
370
- /**
371
- * Return checkout quote object
372
- *
373
- * @return Mage_Sales_Model_Quote
374
- */
375
- protected function _getQuote()
376
- {
377
- if (!$this->_quote) {
378
- $this->_quote = $this->_getCheckoutSession()->getQuote();
379
- }
380
- return $this->_quote;
381
- }
382
-
383
- /**
384
- * @return Wirecard_CheckoutSeamless_Helper_Data
385
- */
386
- protected function _getHelper()
387
- {
388
- return Mage::helper('wirecard_checkoutseamless');
389
- }
390
-
391
- /**
392
- * @param Mage_Sales_Model_Quote $quote
393
- *
394
- * @return bool
395
- */
396
- protected function compareAddresses($quote)
397
- {
398
- $billingAddress = $quote->getBillingAddress();
399
-
400
- $shippingAddress = $quote->getShippingAddress();
401
-
402
- if (!$shippingAddress->getSameAsBilling()) {
403
- if ($billingAddress->getCustomerAddressId() == null || $billingAddress->getCustomerAddressId() != $shippingAddress->getCustomerAddressId()) {
404
- if ( //new line because it's easier to remove this way
405
- $billingAddress->getName() != $shippingAddress->getName() ||
406
- $billingAddress->getCompany() != $shippingAddress->getCompany() ||
407
- $billingAddress->getCity() != $shippingAddress->getCity() ||
408
- $billingAddress->getPostcode() != $shippingAddress->getPostcode() ||
409
- $billingAddress->getCountryId() != $shippingAddress->getCountryId() ||
410
- $billingAddress->getTelephone() != $shippingAddress->getTelephone() ||
411
- $billingAddress->getFax() != $shippingAddress->getFax() ||
412
- $billingAddress->getEmail() != $shippingAddress->getEmail() ||
413
- $billingAddress->getCountry() != $shippingAddress->getCountry() ||
414
- $billingAddress->getRegion() != $shippingAddress->getRegion() ||
415
- $billingAddress->getStreet() != $shippingAddress->getStreet()
416
- ) {
417
- return false;
418
- }
419
- }
420
- }
421
-
422
- return true;
423
- }
424
-
425
- /**
426
- * @param Mage_Sales_Model_Quote $quote
427
- *
428
- * @return bool
429
- */
430
- protected function _isAvailablePayolution($quote)
431
- {
432
- $dob = $quote->getCustomerDob();
433
- //we only need to check the dob if it's set. Else we ask for dob on payment selection page.
434
- if ($dob) {
435
- $dobObject = new DateTime($dob);
436
- $currentYear = date('Y');
437
- $currentMonth = date('m');
438
- $currentDay = date('d');
439
- $ageCheckDate = ($currentYear - 17) . '-' . $currentMonth . '-' . $currentDay;
440
- $ageCheckObject = new DateTime($ageCheckDate);
441
- if ($ageCheckObject < $dobObject) {
442
- //customer is younger than 18 years. Installment not available
443
- return false;
444
- }
445
- }
446
-
447
- if ($quote->hasVirtualItems()) {
448
- return false;
449
- }
450
-
451
- if (!$this->compareAddresses($quote))
452
- return false;
453
-
454
- if ($quote->getQuoteCurrencyCode() != 'EUR') {
455
- return false;
456
- }
457
-
458
- return parent::isAvailable($quote);
459
- }
460
-
461
- /**
462
- * @param Mage_Sales_Model_Quote $quote
463
- *
464
- * @return bool
465
- */
466
- protected function _isAvailableRatePay($quote)
467
- {
468
- $currencies = explode(',', $this->getConfigData('currencies'));
469
- if (!in_array($quote->getQuoteCurrencyCode(), $currencies))
470
- return false;
471
-
472
- $dob = $quote->getCustomerDob();
473
- $minAge = (int)$this->getConfigData('min_age');
474
-
475
- //we only need to check the dob if it's set. Else we ask for dob on payment selection page.
476
- if ($dob) {
477
- $dobObject = new DateTime($dob);
478
- $currentYear = date('Y');
479
- $currentMonth = date('m');
480
- $currentDay = date('d');
481
- $ageCheckDate = ($currentYear - $minAge) . '-' . $currentMonth . '-' . $currentDay;
482
- $ageCheckObject = new DateTime($ageCheckDate);
483
- if ($ageCheckObject < $dobObject) {
484
- return false;
485
- }
486
- }
487
-
488
- if ($quote->hasVirtualItems()) {
489
- return false;
490
- }
491
-
492
- if (!$this->compareAddresses($quote))
493
- return false;
494
-
495
- return parent::isAvailable($quote);
496
- }
497
- }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ abstract class Wirecard_CheckoutSeamless_Model_Abstract extends Mage_Payment_Model_Method_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_abstract';
41
+
42
+ protected $_isGateway = false;
43
+ protected $_canAuthorize = true;
44
+ protected $_canCapture = true;
45
+ protected $_canCapturePartial = false;
46
+ protected $_canRefund = false;
47
+ protected $_canVoid = false;
48
+ protected $_canUseInternal = false;
49
+ protected $_canUseCheckout = true;
50
+ protected $_canUseForMultishipping = false;
51
+
52
+ protected $_paymentMethod = 'SELECT';
53
+ protected $_defaultLocale = 'en';
54
+
55
+ protected $_order;
56
+ protected $_pluginVersion = '4.0.8';
57
+ protected $_pluginName = 'Wirecard/CheckoutSeamless';
58
+
59
+ protected $_formBlockType = 'wirecard_checkoutseamless/form';
60
+ protected $_infoBlockType = 'wirecard_checkoutseamless/info';
61
+
62
+ protected $_forceSendAdditionalData = false;
63
+
64
+ /**
65
+ * @var Mage_Sales_Model_Quote
66
+ */
67
+ protected $_quote = false;
68
+
69
+ /**
70
+ * translate method title shown in payment selection
71
+ * the methode code is the key, if no transaltion found
72
+ * use the title setting
73
+ *
74
+ * @return string
75
+ */
76
+ public function getTitle()
77
+ {
78
+ /** @var Wirecard_CheckoutPage_Helper_Data $helper */
79
+ $helper = Mage::helper('wirecard_checkoutseamless');
80
+
81
+ $translated = $helper->__($this->_paymentMethod);
82
+ if ($translated == $this->_paymentMethod) {
83
+ return parent::getTitle();
84
+ }
85
+
86
+ return $translated;
87
+ }
88
+
89
+ /**
90
+ * Get order model
91
+ *
92
+ * @return Mage_Sales_Model_Order
93
+ */
94
+ public function getOrder()
95
+ {
96
+ if (!$this->_order) {
97
+ $paymentInfo = $this->getInfoInstance();
98
+ $this->_order = Mage::getModel('sales/order')
99
+ ->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId());
100
+ }
101
+ return $this->_order;
102
+ }
103
+
104
+ public function getOrderPlaceRedirectUrl()
105
+ {
106
+ Mage::getSingleton('core/session')->unsWirecardCheckoutSeamlessRedirectUrl();
107
+ return Mage::getUrl('wirecard_checkoutseamless/processing/checkout', array('_secure' => true));
108
+ }
109
+
110
+ public function capture(Varien_Object $payment, $amount)
111
+ {
112
+ $payment->setStatus(self::STATUS_APPROVED)
113
+ ->setLastTransId($this->getTransactionId());
114
+ return $this;
115
+ }
116
+
117
+ public function cancel(Varien_Object $payment)
118
+ {
119
+ $payment->setStatus(self::STATUS_DECLINED)
120
+ ->setLastTransId($this->getTransactionId());
121
+
122
+ return $this;
123
+ }
124
+
125
+ /**
126
+ * Return payment method type string
127
+ *
128
+ * @return string
129
+ */
130
+ public function getPaymentMethodType()
131
+ {
132
+ return $this->_paymentMethod;
133
+ }
134
+
135
+ public function getFormCode()
136
+ {
137
+ return array_pop(explode('_', $this->_code));
138
+ }
139
+
140
+
141
+ public function initPayment($storageId, $orderIdent)
142
+ {
143
+ $order = $this->getOrder();
144
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
145
+ $helper = Mage::helper('wirecard_checkoutseamless');
146
+
147
+ $precision = 2;
148
+
149
+ $returnUrl = Mage::getUrl('wirecard_checkoutseamless/processing/return', array('_secure' => true, '_nosid' => true));
150
+
151
+ $init = new WirecardCEE_QMore_FrontendClient($helper->getConfigArray());
152
+
153
+ $init->setPluginVersion($helper->getPluginVersion());
154
+
155
+ $init->setConfirmUrl(Mage::getUrl('wirecard_checkoutseamless/processing/confirm', array('_secure' => true, '_nosid' => true)));
156
+ $init->setOrderReference(sprintf('%010d', $this->getOrder()->getRealOrderId()));
157
+
158
+ if (strlen($storageId))
159
+ $init->setStorageId($storageId);
160
+
161
+ if (strlen($orderIdent))
162
+ $init->setOrderIdent($orderIdent);
163
+
164
+ if ($helper->getConfigData('options/sendconfirmationemail'))
165
+ $init->setConfirmMail(Mage::getStoreConfig('trans_email/ident_general/email'));
166
+
167
+ if (strlen($this->getFinancialInstitution()))
168
+ $init->setFinancialInstitution($this->getFinancialInstitution());
169
+
170
+ $paymenttype = $this->_paymentMethod;
171
+ $init->setAmount(round($this->getOrder()->getBaseGrandTotal(), 2))
172
+ ->setCurrency($this->getOrder()->getBaseCurrencyCode())
173
+ ->setPaymentType($paymenttype)
174
+ ->setOrderDescription($this->getUserDescription())
175
+ ->setSuccessUrl($returnUrl)
176
+ ->setPendingUrl($returnUrl)
177
+ ->setCancelUrl($returnUrl)
178
+ ->setFailureUrl($returnUrl)
179
+ ->setServiceUrl($helper->getConfigData('options/serviceurl'))
180
+ ->setConsumerData($this->_getConsumerData());
181
+
182
+ // XXX ToDo setWindowName
183
+
184
+ $init->mage_orderId = $this->getOrder()->getRealOrderId();
185
+
186
+ $init->generateCustomerStatement($helper->getConfigData('options/shopname'));
187
+
188
+ if ($helper->getConfigData('options/sendbasketinformation')
189
+ || ($this->_paymentMethod == WirecardCEE_Stdlib_PaymentTypeAbstract::INSTALLMENT && $this->getConfigData('provider') == 'ratepay')
190
+ || ($this->_paymentMethod == WirecardCEE_Stdlib_PaymentTypeAbstract::INVOICE && $this->getConfigData('provider') == 'ratepay')
191
+ ) {
192
+ $basket = new WirecardCEE_Stdlib_Basket();
193
+ $basket->setCurrency($this->getOrder()->getBaseCurrencyCode());
194
+
195
+ foreach ($order->getAllVisibleItems() as $item) {
196
+ /** @var Mage_Sales_Model_Order_Item $item */
197
+ $bitem = new WirecardCEE_Stdlib_Basket_Item();
198
+ $bitem->setDescription($item->getProduct()->getName());
199
+ $bitem->setArticleNumber($item->getSku());
200
+ $bitem->setUnitPrice(number_format($item->getPrice(), $precision, '.', ''));
201
+ $bitem->setTax(number_format($item->getTaxAmount(), $precision, '.', ''));
202
+ $basket->addItem($bitem, (int)$item->getQtyOrdered());
203
+ $helper->log(print_r($bitem, true));
204
+ }
205
+ $bitem = new WirecardCEE_Stdlib_Basket_Item();
206
+ $bitem->setArticleNumber('shipping');
207
+ $bitem->setUnitPrice(number_format($order->getShippingAmount(), $precision, '.', ''));
208
+ $bitem->setTax(number_format($order->getShippingTaxAmount(), $precision, '.', ''));
209
+ $bitem->setDescription($order->getShippingDescription());
210
+ $basket->addItem($bitem);
211
+
212
+ foreach ($basket->__toArray() as $k => $v) {
213
+ $init->$k = $v;
214
+ }
215
+ }
216
+
217
+ $helper->log(__METHOD__ . ':' . print_r($init->getRequestData(), true), Zend_Log::INFO);
218
+
219
+ try {
220
+ $initResponse = $init->initiate();
221
+ } catch (Exception $e) {
222
+ $helper->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
223
+ $message = $helper->__('An error occurred during the payment process');
224
+ throw new Exception($message);
225
+ }
226
+
227
+ if ($initResponse->getStatus() == WirecardCEE_QMore_Response_Initiation::STATE_FAILURE) {
228
+ $msg = array();
229
+ foreach ($initResponse->getErrors() as $error) {
230
+ $msg[] = $error->getConsumerMessage();
231
+ }
232
+
233
+ if (!count($msg)) {
234
+ // dont show technical error to consumer
235
+ $message = $helper->__('An error occurred during the payment process');
236
+ }
237
+ else {
238
+ $message = implode("<br/>\n", $msg);
239
+ }
240
+
241
+ $helper->log(__METHOD__ . ':' . $message, Zend_Log::ERR);
242
+
243
+ throw new Exception($message);
244
+ }
245
+
246
+ return $initResponse;
247
+ }
248
+
249
+ /**
250
+ * Returns desription of customer - will be displayed in Wirecard backend
251
+ *
252
+ * @return string
253
+ */
254
+ protected function getUserDescription()
255
+ {
256
+ return sprintf('%s %s %s', $this->getOrder()->getCustomerEmail(), $this->getOrder()->getCustomerFirstname(),
257
+ $this->getOrder()->getCustomerLastname());
258
+ }
259
+
260
+ /**
261
+ * @return WirecardCEE_Stdlib_ConsumerData
262
+ * @throws Zend_Controller_Request_Exception
263
+ */
264
+ protected function _getConsumerData()
265
+ {
266
+ $consumerData = new WirecardCEE_Stdlib_ConsumerData();
267
+ $consumerData->setIpAddress(Mage::app()->getRequest()->getServer('REMOTE_ADDR'));
268
+ $consumerData->setUserAgent(Mage::app()->getRequest()->getHeader('User-Agent'));
269
+
270
+ $deliveryAddress = $this->getOrder()->getShippingAddress();
271
+ $billingAddress = $this->getOrder()->getBillingAddress();
272
+ $dob = $this->getCustomerDob();
273
+
274
+ if ($this->_forceSendAdditionalData || $this->_getHelper()->getConfigData('options/sendadditionaldata')) {
275
+
276
+ $consumerData->setEmail($this->getOrder()->getCustomerEmail());
277
+ if ($dob !== false)
278
+ $consumerData->setBirthDate($dob);
279
+ $consumerData->addAddressInformation($this->_getAddress($billingAddress, 'billing'));
280
+ $consumerData->addAddressInformation($this->_getAddress($deliveryAddress, 'shipping'));
281
+ }
282
+
283
+ return $consumerData;
284
+ }
285
+
286
+ /**
287
+ * @param Mage_Sales_Model_Order_Address $source
288
+ * @param string $type
289
+ *
290
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
291
+ */
292
+ protected function _getAddress($source, $type = 'billing')
293
+ {
294
+ switch ($type) {
295
+ case 'shipping':
296
+ $address = new WirecardCEE_Stdlib_ConsumerData_Address(WirecardCEE_Stdlib_ConsumerData_Address::TYPE_SHIPPING);
297
+ break;
298
+
299
+ default:
300
+ $address = new WirecardCEE_Stdlib_ConsumerData_Address(WirecardCEE_Stdlib_ConsumerData_Address::TYPE_BILLING);
301
+ break;
302
+ }
303
+
304
+ $address->setFirstname($source->getFirstname());
305
+ $address->setLastname($source->getLastname());
306
+ $address->setAddress1($source->getStreet1());
307
+ $address->setAddress2($source->getStreet2());
308
+ $address->setZipCode($source->getPostcode());
309
+ $address->setCity($source->getCity());
310
+ $address->setCountry($source->getCountry());
311
+ $address->setState($source->getRegionCode());
312
+ $address->setPhone($source->getTelephone());
313
+ $address->setFax($source->getFax());
314
+
315
+ return $address;
316
+ }
317
+
318
+ /**
319
+ *
320
+ * Getter for the plugin version variable
321
+ *
322
+ * @return string The plugin version
323
+ */
324
+ public function getPluginVersion()
325
+ {
326
+ return $this->_pluginVersion;
327
+ }
328
+
329
+ /**
330
+ *
331
+ * Getter for the plugin name variable
332
+ *
333
+ * @return string The plugin name
334
+ */
335
+ public function getPluginName()
336
+ {
337
+ return $this->_pluginName;
338
+ }
339
+
340
+ public function getFinancialInstitution()
341
+ {
342
+ return null;
343
+ }
344
+
345
+ /**
346
+ * getter for customers birthDate
347
+ *
348
+ * @return DateTime|boolean
349
+ */
350
+ public function getCustomerDob()
351
+ {
352
+ $order = $this->getOrder();
353
+ $dob = $order->getCustomerDob();
354
+ if ($dob) {
355
+ return new DateTime($dob);
356
+ }
357
+ return false;
358
+ }
359
+
360
+ /**
361
+ * Return checkout session object
362
+ *
363
+ * @return Mage_Checkout_Model_Session
364
+ */
365
+ private function _getCheckoutSession()
366
+ {
367
+ return Mage::getSingleton('checkout/session');
368
+ }
369
+
370
+ /**
371
+ * Return checkout quote object
372
+ *
373
+ * @return Mage_Sales_Model_Quote
374
+ */
375
+ protected function _getQuote()
376
+ {
377
+ if (!$this->_quote) {
378
+ $this->_quote = $this->_getCheckoutSession()->getQuote();
379
+ }
380
+ return $this->_quote;
381
+ }
382
+
383
+ /**
384
+ * @return Wirecard_CheckoutSeamless_Helper_Data
385
+ */
386
+ protected function _getHelper()
387
+ {
388
+ return Mage::helper('wirecard_checkoutseamless');
389
+ }
390
+
391
+ /**
392
+ * @param Mage_Sales_Model_Quote $quote
393
+ *
394
+ * @return bool
395
+ */
396
+ protected function compareAddresses($quote)
397
+ {
398
+ $billingAddress = $quote->getBillingAddress();
399
+
400
+ $shippingAddress = $quote->getShippingAddress();
401
+
402
+ if (!$shippingAddress->getSameAsBilling()) {
403
+ if ($billingAddress->getCustomerAddressId() == null || $billingAddress->getCustomerAddressId() != $shippingAddress->getCustomerAddressId()) {
404
+ if ( //new line because it's easier to remove this way
405
+ $billingAddress->getName() != $shippingAddress->getName() ||
406
+ $billingAddress->getCompany() != $shippingAddress->getCompany() ||
407
+ $billingAddress->getCity() != $shippingAddress->getCity() ||
408
+ $billingAddress->getPostcode() != $shippingAddress->getPostcode() ||
409
+ $billingAddress->getCountryId() != $shippingAddress->getCountryId() ||
410
+ $billingAddress->getTelephone() != $shippingAddress->getTelephone() ||
411
+ $billingAddress->getFax() != $shippingAddress->getFax() ||
412
+ $billingAddress->getEmail() != $shippingAddress->getEmail() ||
413
+ $billingAddress->getCountry() != $shippingAddress->getCountry() ||
414
+ $billingAddress->getRegion() != $shippingAddress->getRegion() ||
415
+ $billingAddress->getStreet() != $shippingAddress->getStreet()
416
+ ) {
417
+ return false;
418
+ }
419
+ }
420
+ }
421
+
422
+ return true;
423
+ }
424
+
425
+ /**
426
+ * @param Mage_Sales_Model_Quote $quote
427
+ *
428
+ * @return bool
429
+ */
430
+ protected function _isAvailablePayolution($quote)
431
+ {
432
+ $dob = $quote->getCustomerDob();
433
+ //we only need to check the dob if it's set. Else we ask for dob on payment selection page.
434
+ if ($dob) {
435
+ $dobObject = new DateTime($dob);
436
+ $currentYear = date('Y');
437
+ $currentMonth = date('m');
438
+ $currentDay = date('d');
439
+ $ageCheckDate = ($currentYear - 17) . '-' . $currentMonth . '-' . $currentDay;
440
+ $ageCheckObject = new DateTime($ageCheckDate);
441
+ if ($ageCheckObject < $dobObject) {
442
+ //customer is younger than 18 years. Installment not available
443
+ return false;
444
+ }
445
+ }
446
+
447
+ if ($quote->hasVirtualItems()) {
448
+ return false;
449
+ }
450
+
451
+ if (!$this->compareAddresses($quote))
452
+ return false;
453
+
454
+ if ($quote->getQuoteCurrencyCode() != 'EUR') {
455
+ return false;
456
+ }
457
+
458
+ return parent::isAvailable($quote);
459
+ }
460
+
461
+ /**
462
+ * @param Mage_Sales_Model_Quote $quote
463
+ *
464
+ * @return bool
465
+ */
466
+ protected function _isAvailableRatePay($quote)
467
+ {
468
+ $currencies = explode(',', $this->getConfigData('currencies'));
469
+ if (!in_array($quote->getQuoteCurrencyCode(), $currencies))
470
+ return false;
471
+
472
+ $dob = $quote->getCustomerDob();
473
+ $minAge = (int)$this->getConfigData('min_age');
474
+
475
+ //we only need to check the dob if it's set. Else we ask for dob on payment selection page.
476
+ if ($dob) {
477
+ $dobObject = new DateTime($dob);
478
+ $currentYear = date('Y');
479
+ $currentMonth = date('m');
480
+ $currentDay = date('d');
481
+ $ageCheckDate = ($currentYear - $minAge) . '-' . $currentMonth . '-' . $currentDay;
482
+ $ageCheckObject = new DateTime($ageCheckDate);
483
+ if ($ageCheckObject < $dobObject) {
484
+ return false;
485
+ }
486
+ }
487
+
488
+ if ($quote->hasVirtualItems()) {
489
+ return false;
490
+ }
491
+
492
+ if (!$this->compareAddresses($quote))
493
+ return false;
494
+
495
+ return parent::isAvailable($quote);
496
+ }
497
+ }
app/code/community/Wirecard/CheckoutSeamless/Model/Admin/Support.php CHANGED
@@ -1,129 +1,129 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Admin_Support extends Mage_Core_Model_Abstract
34
- {
35
-
36
- public function sendEmail($postObject)
37
- {
38
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
39
- $helper = Mage::helper('wirecard_checkoutseamless');
40
-
41
- $mail = new Zend_Mail();
42
- $mail->setSubject('Support request via magento online shop');
43
-
44
- if (!Zend_Validate::is(trim($postObject->getData('to')), 'EmailAddress')) {
45
- Mage::getSingleton('core/session')->addError('Please enter a valid e-mail address.');
46
- return false;
47
- }
48
- $mail->addTo(trim($postObject->getData('to')));
49
-
50
- if (strlen(trim($postObject->getData('replyto')))) {
51
- if (!Zend_Validate::is(trim($postObject->getData('replyto')), 'EmailAddress')) {
52
- Mage::getSingleton('core/session')->addError('Please enter a valid e-mail address (reply to).');
53
- return false;
54
- }
55
- $mail->setReplyTo(trim($postObject->getData('replyto')));
56
- }
57
-
58
- $fromName = Mage::getStoreConfig('trans_email/ident_general/name');
59
- $fromEmail = Mage::getStoreConfig('trans_email/ident_general/email');
60
- if (!strlen($fromEmail)) {
61
- Mage::getSingleton('core/session')->addError('Please set your shop e-mail address!');
62
- return false;
63
- }
64
- $mail->setFrom($fromEmail, $fromName);
65
-
66
-
67
- $modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
68
- $modules = array_filter($modules, function ($e) { return !preg_match('/^Mage_/', $e); });
69
-
70
- $body = $postObject->getData('description');
71
-
72
- $payments = Mage::getSingleton('payment/config')->getActiveMethods();
73
-
74
- $foreign = array();
75
- $mine = array();
76
- foreach ($payments as $paymentCode => $paymentModel) {
77
-
78
- /** @var Mage_Payment_Model_Method_Abstract $paymentModel */
79
-
80
- $method = array(
81
- 'label' => $paymentModel->getTitle(),
82
- 'value' => $paymentCode,
83
- 'config' => Mage::getStoreConfig('payment/' . $paymentCode)
84
- );
85
-
86
- if (preg_match('/^wirecard_checkoutseamless_/', $paymentCode)) {
87
- $mine[$paymentCode] = $method;
88
- }
89
- else {
90
- $foreign[$paymentCode] = $method;
91
- }
92
- }
93
-
94
- $body .= sprintf("\n\n%s:\n\n", $helper->__('Configuration'));
95
- $body .= $helper->getConfigString();
96
-
97
- $body .= sprintf("\n\n%s:\n\n", $helper->__('Active payment methods'));
98
-
99
- foreach ($mine as $paymentCode => $payment) {
100
- $body .= sprintf("%s:\n", $payment['label']);
101
- foreach ($payment['config'] as $k => $v) {
102
- if ($k == 'model' || $k == 'title')
103
- continue;
104
- $body .= sprintf("%s:%s\n", $k, $v);
105
- }
106
- $body .= "\n";
107
- }
108
-
109
- $body .= sprintf("\n%s:\n\n", $helper->__('Foreign payment methods'));
110
- foreach ($foreign as $paymentCode => $payment) {
111
- $body .= sprintf("%s\n", $payment['label']);
112
- }
113
-
114
- $body .= sprintf("\n\n%s:\n\n", $helper->__('Installed Modules'));
115
- $body .= implode("\n", $modules);
116
-
117
- $mail->setBodyText($body);
118
-
119
- try {
120
- $mail->send();
121
- Mage::getSingleton('core/session')->addSuccess('Support request sent successfully!');
122
- } catch (Exception $e) {
123
- Mage::getSingleton('core/session')->addError('Unable to send email:' . $e->getMessage());
124
- return false;
125
- }
126
-
127
- return true;
128
- }
129
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Admin_Support extends Mage_Core_Model_Abstract
34
+ {
35
+
36
+ public function sendEmail($postObject)
37
+ {
38
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
39
+ $helper = Mage::helper('wirecard_checkoutseamless');
40
+
41
+ $mail = new Zend_Mail();
42
+ $mail->setSubject('Support request via magento online shop');
43
+
44
+ if (!Zend_Validate::is(trim($postObject->getData('to')), 'EmailAddress')) {
45
+ Mage::getSingleton('core/session')->addError('Please enter a valid e-mail address.');
46
+ return false;
47
+ }
48
+ $mail->addTo(trim($postObject->getData('to')));
49
+
50
+ if (strlen(trim($postObject->getData('replyto')))) {
51
+ if (!Zend_Validate::is(trim($postObject->getData('replyto')), 'EmailAddress')) {
52
+ Mage::getSingleton('core/session')->addError('Please enter a valid e-mail address (reply to).');
53
+ return false;
54
+ }
55
+ $mail->setReplyTo(trim($postObject->getData('replyto')));
56
+ }
57
+
58
+ $fromName = Mage::getStoreConfig('trans_email/ident_general/name');
59
+ $fromEmail = Mage::getStoreConfig('trans_email/ident_general/email');
60
+ if (!strlen($fromEmail)) {
61
+ Mage::getSingleton('core/session')->addError('Please set your shop e-mail address!');
62
+ return false;
63
+ }
64
+ $mail->setFrom($fromEmail, $fromName);
65
+
66
+
67
+ $modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
68
+ $modules = array_filter($modules, function ($e) { return !preg_match('/^Mage_/', $e); });
69
+
70
+ $body = $postObject->getData('description');
71
+
72
+ $payments = Mage::getSingleton('payment/config')->getActiveMethods();
73
+
74
+ $foreign = array();
75
+ $mine = array();
76
+ foreach ($payments as $paymentCode => $paymentModel) {
77
+
78
+ /** @var Mage_Payment_Model_Method_Abstract $paymentModel */
79
+
80
+ $method = array(
81
+ 'label' => $paymentModel->getTitle(),
82
+ 'value' => $paymentCode,
83
+ 'config' => Mage::getStoreConfig('payment/' . $paymentCode)
84
+ );
85
+
86
+ if (preg_match('/^wirecard_checkoutseamless_/', $paymentCode)) {
87
+ $mine[$paymentCode] = $method;
88
+ }
89
+ else {
90
+ $foreign[$paymentCode] = $method;
91
+ }
92
+ }
93
+
94
+ $body .= sprintf("\n\n%s:\n\n", $helper->__('Configuration'));
95
+ $body .= $helper->getConfigString();
96
+
97
+ $body .= sprintf("\n\n%s:\n\n", $helper->__('Active payment methods'));
98
+
99
+ foreach ($mine as $paymentCode => $payment) {
100
+ $body .= sprintf("%s:\n", $payment['label']);
101
+ foreach ($payment['config'] as $k => $v) {
102
+ if ($k == 'model' || $k == 'title')
103
+ continue;
104
+ $body .= sprintf("%s:%s\n", $k, $v);
105
+ }
106
+ $body .= "\n";
107
+ }
108
+
109
+ $body .= sprintf("\n%s:\n\n", $helper->__('Foreign payment methods'));
110
+ foreach ($foreign as $paymentCode => $payment) {
111
+ $body .= sprintf("%s\n", $payment['label']);
112
+ }
113
+
114
+ $body .= sprintf("\n\n%s:\n\n", $helper->__('Installed Modules'));
115
+ $body .= implode("\n", $modules);
116
+
117
+ $mail->setBodyText($body);
118
+
119
+ try {
120
+ $mail->send();
121
+ Mage::getSingleton('core/session')->addSuccess('Support request sent successfully!');
122
+ } catch (Exception $e) {
123
+ Mage::getSingleton('core/session')->addError('Unable to send email:' . $e->getMessage());
124
+ return false;
125
+ }
126
+
127
+ return true;
128
+ }
129
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Admin/Test.php CHANGED
@@ -1,68 +1,68 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Admin_Test extends Mage_Core_Model_Abstract
34
- {
35
-
36
- public function testconfig()
37
- {
38
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
39
- $helper = Mage::helper('wirecard_checkoutseamless');
40
- $returnUrl = Mage::getUrl('wirecard_checkoutseamless/processing/storereturn', array('_secure' => true, '_nosid' => true));
41
-
42
- $dataStorageInit = new WirecardCEE_QMore_DataStorageClient($helper->getConfigArray());
43
- $dataStorageInit->setReturnUrl($returnUrl);
44
- $dataStorageInit->setOrderIdent(session_id());
45
-
46
- try
47
- {
48
- $response = $dataStorageInit->initiate();
49
- if ($response->getStatus() != WirecardCEE_QMore_DataStorage_Response_Initiation::STATE_SUCCESS)
50
- {
51
- $msg = array();
52
- foreach ($response->getErrors() as $error)
53
- {
54
- $msg[] = $error->getConsumerMessage();
55
- }
56
- Mage::getSingleton('core/session')->addError(implode("<br/>\n", $msg));
57
- return false;
58
- }
59
- } catch (Exception $e)
60
- {
61
- Mage::getSingleton('core/session')->addError($e->getMessage());
62
- return false;
63
- }
64
-
65
- Mage::getSingleton('core/session')->addSuccess($helper->__('Configuration test ok'));
66
- return true;
67
- }
68
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Admin_Test extends Mage_Core_Model_Abstract
34
+ {
35
+
36
+ public function testconfig()
37
+ {
38
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
39
+ $helper = Mage::helper('wirecard_checkoutseamless');
40
+ $returnUrl = Mage::getUrl('wirecard_checkoutseamless/processing/storereturn', array('_secure' => true, '_nosid' => true));
41
+
42
+ $dataStorageInit = new WirecardCEE_QMore_DataStorageClient($helper->getConfigArray());
43
+ $dataStorageInit->setReturnUrl($returnUrl);
44
+ $dataStorageInit->setOrderIdent(session_id());
45
+
46
+ try
47
+ {
48
+ $response = $dataStorageInit->initiate();
49
+ if ($response->getStatus() != WirecardCEE_QMore_DataStorage_Response_Initiation::STATE_SUCCESS)
50
+ {
51
+ $msg = array();
52
+ foreach ($response->getErrors() as $error)
53
+ {
54
+ $msg[] = $error->getConsumerMessage();
55
+ }
56
+ Mage::getSingleton('core/session')->addError(implode("<br/>\n", $msg));
57
+ return false;
58
+ }
59
+ } catch (Exception $e)
60
+ {
61
+ Mage::getSingleton('core/session')->addError($e->getMessage());
62
+ return false;
63
+ }
64
+
65
+ Mage::getSingleton('core/session')->addSuccess($helper->__('Configuration test ok'));
66
+ return true;
67
+ }
68
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Bmc.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Bmc extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_bmc';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::BMC;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Bmc extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_bmc';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::BMC;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Cc.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Cc extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_cc';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Cc extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_cc';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/CcMoto.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_CcMoto extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_ccMoto';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD_MOTO;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_CcMoto extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_ccMoto';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD_MOTO;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Ekonto.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Ekonto extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_ekonto';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::EKONTO;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Ekonto extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_ekonto';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::EKONTO;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Epaybg.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Epaybg extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_epaybg';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::EPAYBG;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Epaybg extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_epaybg';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::EPAYBG;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Eps.php CHANGED
@@ -1,74 +1,74 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Eps extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_eps';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::EPS;
42
-
43
- /**
44
- * Assign data to info model instance
45
- *
46
- * @param mixed $data
47
- * @return Mage_Payment_Model_Info
48
- */
49
- public function assignData($data)
50
- {
51
- $result = parent::assignData($data);
52
- $key = 'financialInstitution';
53
- if (is_array($data)) {
54
- $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
55
- }
56
- elseif ($data instanceof Varien_Object) {
57
- $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
58
- }
59
- return $result;
60
- }
61
-
62
- public function getFinancialInstitution()
63
- {
64
- $additionalInformation = $this->getInfoInstance();
65
- if($additionalInformation->hasAdditionalInformation('financialInstitution'))
66
- {
67
- return $additionalInformation->getAdditionalInformation('financialInstitution');
68
- }
69
- else
70
- {
71
- return null;
72
- }
73
- }
74
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Eps extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_eps';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::EPS;
42
+
43
+ /**
44
+ * Assign data to info model instance
45
+ *
46
+ * @param mixed $data
47
+ * @return Mage_Payment_Model_Info
48
+ */
49
+ public function assignData($data)
50
+ {
51
+ $result = parent::assignData($data);
52
+ $key = 'financialInstitution';
53
+ if (is_array($data)) {
54
+ $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
55
+ }
56
+ elseif ($data instanceof Varien_Object) {
57
+ $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
58
+ }
59
+ return $result;
60
+ }
61
+
62
+ public function getFinancialInstitution()
63
+ {
64
+ $additionalInformation = $this->getInfoInstance();
65
+ if($additionalInformation->hasAdditionalInformation('financialInstitution'))
66
+ {
67
+ return $additionalInformation->getAdditionalInformation('financialInstitution');
68
+ }
69
+ else
70
+ {
71
+ return null;
72
+ }
73
+ }
74
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Giropay.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Giropay extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_giropay';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::GIROPAY;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Giropay extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_giropay';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::GIROPAY;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Ideal.php CHANGED
@@ -1,74 +1,74 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Ideal extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_ideal';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::IDL;
42
-
43
- /**
44
- * Assign data to info model instance
45
- *
46
- * @param mixed $data
47
- * @return Mage_Payment_Model_Info
48
- */
49
- public function assignData($data)
50
- {
51
- $result = parent::assignData($data);
52
- $key = 'financialInstitution';
53
- if (is_array($data)) {
54
- $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
55
- }
56
- elseif ($data instanceof Varien_Object) {
57
- $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
58
- }
59
- return $result;
60
- }
61
-
62
- public function getFinancialInstitution()
63
- {
64
- $additionalInformation = $this->getInfoInstance();
65
- if($additionalInformation->hasAdditionalInformation('financialInstitution'))
66
- {
67
- return $additionalInformation->getAdditionalInformation('financialInstitution');
68
- }
69
- else
70
- {
71
- return null;
72
- }
73
- }
74
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Ideal extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_ideal';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::IDL;
42
+
43
+ /**
44
+ * Assign data to info model instance
45
+ *
46
+ * @param mixed $data
47
+ * @return Mage_Payment_Model_Info
48
+ */
49
+ public function assignData($data)
50
+ {
51
+ $result = parent::assignData($data);
52
+ $key = 'financialInstitution';
53
+ if (is_array($data)) {
54
+ $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
55
+ }
56
+ elseif ($data instanceof Varien_Object) {
57
+ $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
58
+ }
59
+ return $result;
60
+ }
61
+
62
+ public function getFinancialInstitution()
63
+ {
64
+ $additionalInformation = $this->getInfoInstance();
65
+ if($additionalInformation->hasAdditionalInformation('financialInstitution'))
66
+ {
67
+ return $additionalInformation->getAdditionalInformation('financialInstitution');
68
+ }
69
+ else
70
+ {
71
+ return null;
72
+ }
73
+ }
74
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Installment.php CHANGED
@@ -1,105 +1,105 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Installment extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_installment';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::INSTALLMENT;
42
-
43
- protected $_forceSendAdditionalData = true;
44
-
45
- /**
46
- * Assign data to info model instance
47
- *
48
- * @param mixed $data
49
- *
50
- * @return Mage_Payment_Model_Info
51
- */
52
- public function assignData($data)
53
- {
54
- $result = parent::assignData($data);
55
- $key = 'wirecard_checkoutseamless_installment_dob';
56
- if (is_array($data)) {
57
- $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
58
- }
59
- elseif ($data instanceof Varien_Object) {
60
- $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
61
- }
62
- $this->getInfoInstance()->save();
63
- return $result;
64
- }
65
-
66
- /**
67
- * @see Wirecard_CheckoutSeamless_Model_Abstract::getCustomerDob()
68
- */
69
- public function getCustomerDob()
70
- {
71
- $additionalInfo = $this->getInfoInstance();
72
- if ($additionalInfo->hasAdditionalInformation('wirecard_checkoutseamless_installment_dob')) {
73
- $dob = $additionalInfo->getAdditionalInformation('wirecard_checkoutseamless_installment_dob');
74
- if ($dob) {
75
- return new DateTime($dob);
76
- }
77
- }
78
-
79
- return parent::getCustomerDob();
80
- }
81
-
82
- /**
83
- * @param Mage_Sales_Model_Quote|null $quote
84
- *
85
- * @return bool
86
- * @see Mage_Payment_Model_Method_Abstract::isAvailable()
87
- */
88
- public function isAvailable($quote = null)
89
- {
90
- //NOTE: NEVER return true in here. the parent check should do this!
91
- if ($quote == null) {
92
- $quote = $this->_getQuote();
93
- }
94
-
95
- if ($this->getConfigData('provider') == 'ratepay') {
96
- return $this->_isAvailableRatePay($quote);
97
- }
98
- elseif ($this->getConfigData('provider') == 'payolution') {
99
- return $this->_isAvailablePayolution($quote);
100
- }
101
-
102
- return false;
103
- }
104
-
105
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Installment extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_installment';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::INSTALLMENT;
42
+
43
+ protected $_forceSendAdditionalData = true;
44
+
45
+ /**
46
+ * Assign data to info model instance
47
+ *
48
+ * @param mixed $data
49
+ *
50
+ * @return Mage_Payment_Model_Info
51
+ */
52
+ public function assignData($data)
53
+ {
54
+ $result = parent::assignData($data);
55
+ $key = 'wirecard_checkoutseamless_installment_dob';
56
+ if (is_array($data)) {
57
+ $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
58
+ }
59
+ elseif ($data instanceof Varien_Object) {
60
+ $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
61
+ }
62
+ $this->getInfoInstance()->save();
63
+ return $result;
64
+ }
65
+
66
+ /**
67
+ * @see Wirecard_CheckoutSeamless_Model_Abstract::getCustomerDob()
68
+ */
69
+ public function getCustomerDob()
70
+ {
71
+ $additionalInfo = $this->getInfoInstance();
72
+ if ($additionalInfo->hasAdditionalInformation('wirecard_checkoutseamless_installment_dob')) {
73
+ $dob = $additionalInfo->getAdditionalInformation('wirecard_checkoutseamless_installment_dob');
74
+ if ($dob) {
75
+ return new DateTime($dob);
76
+ }
77
+ }
78
+
79
+ return parent::getCustomerDob();
80
+ }
81
+
82
+ /**
83
+ * @param Mage_Sales_Model_Quote|null $quote
84
+ *
85
+ * @return bool
86
+ * @see Mage_Payment_Model_Method_Abstract::isAvailable()
87
+ */
88
+ public function isAvailable($quote = null)
89
+ {
90
+ //NOTE: NEVER return true in here. the parent check should do this!
91
+ if ($quote == null) {
92
+ $quote = $this->_getQuote();
93
+ }
94
+
95
+ if ($this->getConfigData('provider') == 'ratepay') {
96
+ return $this->_isAvailableRatePay($quote);
97
+ }
98
+ elseif ($this->getConfigData('provider') == 'payolution') {
99
+ return $this->_isAvailablePayolution($quote);
100
+ }
101
+
102
+ return false;
103
+ }
104
+
105
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Invoice.php CHANGED
@@ -1,106 +1,106 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Invoice extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_invoice';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::INVOICE;
42
-
43
- protected $_forceSendAdditionalData = true;
44
-
45
- /**
46
- * Assign data to info model instance
47
- *
48
- * @param mixed $data
49
- *
50
- * @return Mage_Payment_Model_Info
51
- */
52
- public function assignData($data)
53
- {
54
- $result = parent::assignData($data);
55
- $key = 'wirecard_checkoutseamless_invoice_dob';
56
- if (is_array($data)) {
57
- $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
58
- }
59
- elseif ($data instanceof Varien_Object) {
60
- $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
61
- }
62
- $this->getInfoInstance()->save();
63
- return $result;
64
- }
65
-
66
- /**
67
- * @see Wirecard_CheckoutSeamless_Model_Abstract::getCustomerDob()
68
- */
69
- public function getCustomerDob()
70
- {
71
- $additionalInfo = $this->getInfoInstance();
72
- if ($additionalInfo->hasAdditionalInformation('wirecard_checkoutseamless_invoice_dob')) {
73
- $dob = $additionalInfo->getAdditionalInformation('wirecard_checkoutseamless_invoice_dob');
74
- if ($dob) {
75
- return new DateTime($dob);
76
- }
77
- }
78
-
79
- return parent::getCustomerDob();
80
- }
81
-
82
- /**
83
- * @param Mage_Sales_Model_Quote|null $quote
84
- *
85
- * @return bool
86
- * @see Mage_Payment_Model_Method_Abstract::isAvailable()
87
- */
88
- public function isAvailable($quote = null)
89
- {
90
- //NOTE: NEVER return true in here. the parent check should do this!
91
- if ($quote == null) {
92
- $quote = $this->_getQuote();
93
- }
94
-
95
- if ($this->getConfigData('provider') == 'ratepay') {
96
- return $this->_isAvailableRatePay($quote);
97
- }
98
- elseif ($this->getConfigData('provider') == 'payolution') {
99
- return $this->_isAvailablePayolution($quote);
100
- }
101
-
102
- return false;
103
- }
104
-
105
-
106
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Invoice extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_invoice';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::INVOICE;
42
+
43
+ protected $_forceSendAdditionalData = true;
44
+
45
+ /**
46
+ * Assign data to info model instance
47
+ *
48
+ * @param mixed $data
49
+ *
50
+ * @return Mage_Payment_Model_Info
51
+ */
52
+ public function assignData($data)
53
+ {
54
+ $result = parent::assignData($data);
55
+ $key = 'wirecard_checkoutseamless_invoice_dob';
56
+ if (is_array($data)) {
57
+ $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
58
+ }
59
+ elseif ($data instanceof Varien_Object) {
60
+ $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
61
+ }
62
+ $this->getInfoInstance()->save();
63
+ return $result;
64
+ }
65
+
66
+ /**
67
+ * @see Wirecard_CheckoutSeamless_Model_Abstract::getCustomerDob()
68
+ */
69
+ public function getCustomerDob()
70
+ {
71
+ $additionalInfo = $this->getInfoInstance();
72
+ if ($additionalInfo->hasAdditionalInformation('wirecard_checkoutseamless_invoice_dob')) {
73
+ $dob = $additionalInfo->getAdditionalInformation('wirecard_checkoutseamless_invoice_dob');
74
+ if ($dob) {
75
+ return new DateTime($dob);
76
+ }
77
+ }
78
+
79
+ return parent::getCustomerDob();
80
+ }
81
+
82
+ /**
83
+ * @param Mage_Sales_Model_Quote|null $quote
84
+ *
85
+ * @return bool
86
+ * @see Mage_Payment_Model_Method_Abstract::isAvailable()
87
+ */
88
+ public function isAvailable($quote = null)
89
+ {
90
+ //NOTE: NEVER return true in here. the parent check should do this!
91
+ if ($quote == null) {
92
+ $quote = $this->_getQuote();
93
+ }
94
+
95
+ if ($this->getConfigData('provider') == 'ratepay') {
96
+ return $this->_isAvailableRatePay($quote);
97
+ }
98
+ elseif ($this->getConfigData('provider') == 'payolution') {
99
+ return $this->_isAvailablePayolution($quote);
100
+ }
101
+
102
+ return false;
103
+ }
104
+
105
+
106
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Invoiceb2b.php CHANGED
@@ -1,161 +1,161 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Invoiceb2b extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_invoiceb2b';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::INVOICE;
42
-
43
- protected $_forceSendAdditionalData = true;
44
-
45
- /**
46
- * translate method title shown in payment selection
47
- * the methode code is the key, if no transaltion found
48
- * use the title setting
49
- *
50
- * @return string
51
- */
52
- public function getTitle()
53
- {
54
- /** @var Wirecard_CheckoutPage_Helper_Data $helper */
55
- $helper = Mage::helper('wirecard_checkoutseamless');
56
-
57
- $translated = $helper->__('INVOICEB2B');
58
- if ($translated == 'INVOICEB2B') {
59
- return parent::getTitle();
60
- }
61
-
62
- return $translated;
63
- }
64
-
65
- /**
66
- * @param Mage_Sales_Model_Quote|null $quote
67
- * @return bool
68
- * @see Mage_Payment_Model_Method_Abstract::isAvailable()
69
- */
70
- public function isAvailable($quote = null)
71
- {
72
- //NOTE: NEVER return true in here. the parent check should do this!
73
- if($quote == null)
74
- {
75
- $quote = $this->_getQuote();
76
- }
77
-
78
- if($quote->hasVirtualItems())
79
- {
80
- return false;
81
- }
82
-
83
- if (!$this->compareAddresses($quote))
84
- return false;
85
-
86
- if($quote->getQuoteCurrencyCode() != 'EUR')
87
- {
88
- return false;
89
- }
90
-
91
- $billingAddress = $quote->getBillingAddress();
92
- if (strlen($billingAddress->getCompany()))
93
- return true;
94
-
95
- $vat_id = $billingAddress->getData('vat_id');
96
- if (!strlen($vat_id))
97
- return false;
98
-
99
- return parent::isAvailable($quote);
100
- }
101
-
102
- /**
103
- * Assign data to info model instance
104
- *
105
- * @param mixed $data
106
- * @return Mage_Payment_Model_Info
107
- */
108
- public function assignData($data)
109
- {
110
- $result = parent::assignData($data);
111
- $key = 'wirecard_checkoutseamless_invoiceb2b_company_trade_reg_number';
112
- if (is_array($data)) {
113
- $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
114
- }
115
- elseif ($data instanceof Varien_Object) {
116
- $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
117
- }
118
-
119
- $this->getInfoInstance()->save();
120
- return $result;
121
- }
122
-
123
- /**
124
- * @return array|mixed|null|string
125
- */
126
- public function getCompanyTradeRegistrationNumber() {
127
- $additionalInfo = $this->getInfoInstance();
128
- $field = 'company_trade_reg_number';
129
-
130
- if($additionalInfo->hasAdditionalInformation('wirecard_checkoutseamless_invoiceb2b_company_trade_reg_number'))
131
- {
132
- $userCtrn = $additionalInfo->getAdditionalInformation('wirecard_checkoutseamless_invoiceb2b_company_trade_reg_number');
133
- if (Mage::getSingleton('customer/session')->getId() !== null) {
134
- $customer = Mage::getModel('customer/customer')->load(Mage::getSingleton('customer/session')->getId());
135
- $customer->setData($field, $userCtrn)->getResource()->saveAttribute($customer, $field);
136
- }
137
- return $userCtrn;
138
- }
139
- else
140
- {
141
- return "";
142
- }
143
- }
144
-
145
- protected function _getConsumerData()
146
- {
147
- $consumerData = parent::_getConsumerData();
148
-
149
- $billingAddress = $this->getOrder()->getBillingAddress();
150
-
151
- $consumerData->setCompanyName($billingAddress->getCompany());
152
-
153
- if (strlen($billingAddress->getData('vat_id')))
154
- $consumerData->setCompanyVatId($billingAddress->getData('vat_id'));
155
-
156
- if (strlen($this->getCompanyTradeRegistrationNumber()))
157
- $consumerData->setCompanyTradeRegistryNumber($this->getCompanyTradeRegistrationNumber());
158
-
159
- return $consumerData;
160
- }
161
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Invoiceb2b extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_invoiceb2b';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::INVOICE;
42
+
43
+ protected $_forceSendAdditionalData = true;
44
+
45
+ /**
46
+ * translate method title shown in payment selection
47
+ * the methode code is the key, if no transaltion found
48
+ * use the title setting
49
+ *
50
+ * @return string
51
+ */
52
+ public function getTitle()
53
+ {
54
+ /** @var Wirecard_CheckoutPage_Helper_Data $helper */
55
+ $helper = Mage::helper('wirecard_checkoutseamless');
56
+
57
+ $translated = $helper->__('INVOICEB2B');
58
+ if ($translated == 'INVOICEB2B') {
59
+ return parent::getTitle();
60
+ }
61
+
62
+ return $translated;
63
+ }
64
+
65
+ /**
66
+ * @param Mage_Sales_Model_Quote|null $quote
67
+ * @return bool
68
+ * @see Mage_Payment_Model_Method_Abstract::isAvailable()
69
+ */
70
+ public function isAvailable($quote = null)
71
+ {
72
+ //NOTE: NEVER return true in here. the parent check should do this!
73
+ if($quote == null)
74
+ {
75
+ $quote = $this->_getQuote();
76
+ }
77
+
78
+ if($quote->hasVirtualItems())
79
+ {
80
+ return false;
81
+ }
82
+
83
+ if (!$this->compareAddresses($quote))
84
+ return false;
85
+
86
+ if($quote->getQuoteCurrencyCode() != 'EUR')
87
+ {
88
+ return false;
89
+ }
90
+
91
+ $billingAddress = $quote->getBillingAddress();
92
+ if (!strlen($billingAddress->getCompany()))
93
+ return false;
94
+
95
+ $vat_id = $billingAddress->getData('vat_id');
96
+ if (!strlen($vat_id))
97
+ return false;
98
+
99
+ return parent::isAvailable($quote);
100
+ }
101
+
102
+ /**
103
+ * Assign data to info model instance
104
+ *
105
+ * @param mixed $data
106
+ * @return Mage_Payment_Model_Info
107
+ */
108
+ public function assignData($data)
109
+ {
110
+ $result = parent::assignData($data);
111
+ $key = 'wirecard_checkoutseamless_invoiceb2b_company_trade_reg_number';
112
+ if (is_array($data)) {
113
+ $this->getInfoInstance()->setAdditionalInformation($key, isset($data[$key]) ? $data[$key] : null);
114
+ }
115
+ elseif ($data instanceof Varien_Object) {
116
+ $this->getInfoInstance()->setAdditionalInformation($key, $data->getData($key));
117
+ }
118
+
119
+ $this->getInfoInstance()->save();
120
+ return $result;
121
+ }
122
+
123
+ /**
124
+ * @return array|mixed|null|string
125
+ */
126
+ public function getCompanyTradeRegistrationNumber() {
127
+ $additionalInfo = $this->getInfoInstance();
128
+ $field = 'company_trade_reg_number';
129
+
130
+ if($additionalInfo->hasAdditionalInformation('wirecard_checkoutseamless_invoiceb2b_company_trade_reg_number'))
131
+ {
132
+ $userCtrn = $additionalInfo->getAdditionalInformation('wirecard_checkoutseamless_invoiceb2b_company_trade_reg_number');
133
+ if (Mage::getSingleton('customer/session')->getId() !== null) {
134
+ $customer = Mage::getModel('customer/customer')->load(Mage::getSingleton('customer/session')->getId());
135
+ $customer->setData($field, $userCtrn)->getResource()->saveAttribute($customer, $field);
136
+ }
137
+ return $userCtrn;
138
+ }
139
+ else
140
+ {
141
+ return "";
142
+ }
143
+ }
144
+
145
+ protected function _getConsumerData()
146
+ {
147
+ $consumerData = parent::_getConsumerData();
148
+
149
+ $billingAddress = $this->getOrder()->getBillingAddress();
150
+
151
+ $consumerData->setCompanyName($billingAddress->getCompany());
152
+
153
+ if (strlen($billingAddress->getData('vat_id')))
154
+ $consumerData->setCompanyVatId($billingAddress->getData('vat_id'));
155
+
156
+ if (strlen($this->getCompanyTradeRegistrationNumber()))
157
+ $consumerData->setCompanyTradeRegistryNumber($this->getCompanyTradeRegistrationNumber());
158
+
159
+ return $consumerData;
160
+ }
161
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Moneta.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Moneta extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_moneta';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::MONETA;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Moneta extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_moneta';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::MONETA;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Mpass.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Mpass extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_mpass';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::MPASS;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Mpass extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_mpass';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::MPASS;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/P24.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_P24 extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_p24';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::P24;
42
-
43
- protected $_forceSendAdditionalData = true;
44
-
45
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_P24 extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_p24';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::P24;
42
+
43
+ protected $_forceSendAdditionalData = true;
44
+
45
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Paybox.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Paybox extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_paybox';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::PBX;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Paybox extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_paybox';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::PBX;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Paypal.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Paypal extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_paypal';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::PAYPAL;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Paypal extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_paypal';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::PAYPAL;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Paysafecard.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Paysafecard extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_paysafecard';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::PSC;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Paysafecard extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_paysafecard';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::PSC;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Poli.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
- class Wirecard_CheckoutSeamless_Model_Poli extends Wirecard_CheckoutSeamless_Model_Abstract
33
- {
34
- /**
35
- * unique internal payment method identifier
36
- *
37
- * @var string [a-z0-9_]
38
- **/
39
- protected $_code = 'wirecard_checkoutseamless_poli';
40
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::POLI;
41
-
42
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+ class Wirecard_CheckoutSeamless_Model_Poli extends Wirecard_CheckoutSeamless_Model_Abstract
33
+ {
34
+ /**
35
+ * unique internal payment method identifier
36
+ *
37
+ * @var string [a-z0-9_]
38
+ **/
39
+ protected $_code = 'wirecard_checkoutseamless_poli';
40
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::POLI;
41
+
42
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Quick.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Quick extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_quick';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::QUICK;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Quick extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_quick';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::QUICK;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Sepadd.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Sepadd extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_sepadd';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SEPADD;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Sepadd extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_sepadd';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SEPADD;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Skrilldirect.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Skrilldirect extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_skrilldirect';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SKRILLDIRECT;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Skrilldirect extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_skrilldirect';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SKRILLDIRECT;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Skrillwallet.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Skrillwallet extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_skrillwallet';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SKRILLWALLET;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Skrillwallet extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_skrillwallet';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SKRILLWALLET;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Sofortbanking.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Sofortbanking extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_sofortbanking';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SOFORTUEBERWEISUNG;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Sofortbanking extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_sofortbanking';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::SOFORTUEBERWEISUNG;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/Configurations.php CHANGED
@@ -1,49 +1,49 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_System_Config_Configurations
34
- {
35
- public function toOptionArray()
36
- {
37
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
38
- $helper = Mage::helper('wirecard_checkoutseamless');
39
-
40
- $themes = array(
41
- array('value' => 'prod', 'label' => $helper->__('Production')),
42
- array('value' => 'demo', 'label' => $helper->__('Demo')),
43
- array('value' => 'test_no3d', 'label' => $helper->__('Test without 3-D Secure')),
44
- array('value' => 'test_3d', 'label' => $helper->__('Test with 3-D Secure'))
45
- );
46
-
47
- return $themes;
48
- }
49
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_System_Config_Configurations
34
+ {
35
+ public function toOptionArray()
36
+ {
37
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
38
+ $helper = Mage::helper('wirecard_checkoutseamless');
39
+
40
+ $themes = array(
41
+ array('value' => 'prod', 'label' => $helper->__('Production')),
42
+ array('value' => 'demo', 'label' => $helper->__('Demo')),
43
+ array('value' => 'test_no3d', 'label' => $helper->__('Test without 3-D Secure')),
44
+ array('value' => 'test_3d', 'label' => $helper->__('Test with 3-D Secure'))
45
+ );
46
+
47
+ return $themes;
48
+ }
49
  }
app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/InstallmentProviders.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_System_Config_InstallmentProviders
34
- {
35
- public function toOptionArray()
36
- {
37
- $themes = array(
38
- array('value' => 'payolution', 'label' => 'payolution'),
39
- array('value' => 'ratepay', 'label' => 'RatePay'),
40
- array('value' => 'ratepay', 'label' => 'Wirecard'),
41
- );
42
-
43
- return $themes;
44
- }
45
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_System_Config_InstallmentProviders
34
+ {
35
+ public function toOptionArray()
36
+ {
37
+ $themes = array(
38
+ array('value' => 'payolution', 'label' => 'payolution'),
39
+ array('value' => 'ratepay', 'label' => 'RatePay'),
40
+ array('value' => 'ratepay', 'label' => 'Wirecard'),
41
+ );
42
+
43
+ return $themes;
44
+ }
45
  }
app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/InvoiceProviders.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_System_Config_InvoiceProviders
34
- {
35
- public function toOptionArray()
36
- {
37
- $themes = array(
38
- array('value' => 'payolution', 'label' => 'payolution'),
39
- array('value' => 'ratepay', 'label' => 'RatePay'),
40
- array('value' => 'ratepay', 'label' => 'Wirecard'),
41
- );
42
-
43
- return $themes;
44
- }
45
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_System_Config_InvoiceProviders
34
+ {
35
+ public function toOptionArray()
36
+ {
37
+ $themes = array(
38
+ array('value' => 'payolution', 'label' => 'payolution'),
39
+ array('value' => 'ratepay', 'label' => 'RatePay'),
40
+ array('value' => 'ratepay', 'label' => 'Wirecard'),
41
+ );
42
+
43
+ return $themes;
44
+ }
45
  }
app/code/community/Wirecard/CheckoutSeamless/Model/System/Config/Order/Status.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_System_Config_Order_Status
34
- extends Mage_Adminhtml_Model_System_Config_Source_Order_Status
35
- {
36
- protected $_stateStatuses = array(
37
- Mage_Sales_Model_Order::STATE_NEW,
38
- Mage_Sales_Model_Order::STATE_PROCESSING,
39
- Mage_Sales_Model_Order::STATE_COMPLETE,
40
- Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW,
41
- );
42
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_System_Config_Order_Status
34
+ extends Mage_Adminhtml_Model_System_Config_Source_Order_Status
35
+ {
36
+ protected $_stateStatuses = array(
37
+ Mage_Sales_Model_Order::STATE_NEW,
38
+ Mage_Sales_Model_Order::STATE_PROCESSING,
39
+ Mage_Sales_Model_Order::STATE_COMPLETE,
40
+ Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW,
41
+ );
42
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Tatrapay.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Tatrapay extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_tatrapay';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::TATRAPAY;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Tatrapay extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_tatrapay';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::TATRAPAY;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Trustly.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Trustly extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_trustly';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::TRUSTLY;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Trustly extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_trustly';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::TRUSTLY;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Trustpay.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Trustpay extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_trustpay';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::TRUSTPAY;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Trustpay extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_trustpay';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::TRUSTPAY;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/Model/Voucher.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_Model_Voucher extends Wirecard_CheckoutSeamless_Model_Abstract
34
- {
35
- /**
36
- * unique internal payment method identifier
37
- *
38
- * @var string [a-z0-9_]
39
- **/
40
- protected $_code = 'wirecard_checkoutseamless_voucher';
41
- protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::VOUCHER;
42
-
43
  }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_Model_Voucher extends Wirecard_CheckoutSeamless_Model_Abstract
34
+ {
35
+ /**
36
+ * unique internal payment method identifier
37
+ *
38
+ * @var string [a-z0-9_]
39
+ **/
40
+ protected $_code = 'wirecard_checkoutseamless_voucher';
41
+ protected $_paymentMethod = WirecardCEE_Stdlib_PaymentTypeAbstract::VOUCHER;
42
+
43
  }
app/code/community/Wirecard/CheckoutSeamless/controllers/ProcessingController.php CHANGED
@@ -1,396 +1,396 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- class Wirecard_CheckoutSeamless_ProcessingController extends Mage_Core_Controller_Front_Action
34
- {
35
- protected $paymentInst;
36
-
37
- /** @var Mage_Sales_Model_Order */
38
- protected $order;
39
-
40
- /**
41
- * Get singleton of Checkout Session Model
42
- *
43
- * @return Mage_Checkout_Model_Session
44
- */
45
- protected function getCheckout()
46
- {
47
- return Mage::getSingleton('checkout/session');
48
- }
49
-
50
- /**
51
- * does nothing, checkout is always done within iframe
52
- */
53
- public function checkoutAction()
54
- {
55
-
56
- }
57
-
58
- /**
59
- * return redirecturl, which will be used as src for the iframe
60
- */
61
- public function getRedirectUrlAction()
62
- {
63
- $ret = Array('url' => Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessRedirectUrl());
64
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
65
- $helper = Mage::helper('wirecard_checkoutseamless');
66
- $helper->log(__METHOD__ . ':' . Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessRedirectUrl());
67
- $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($ret));
68
- }
69
-
70
- /**
71
- * Store anonymized Payment Data from Seamless Checkout in the Session
72
- */
73
- public function saveSessInfoAction()
74
- {
75
- $postData = $this->getRequest()->getPost();
76
-
77
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
78
- $helper = Mage::helper('wirecard_checkoutseamless');
79
-
80
- if (!empty($postData) && isset($postData['payment']) && !empty($postData['payment'])) {
81
- $payment = $postData['payment'];
82
- if (!$helper->getConfigData('ccard/pci3_dss_saq_a_enable')) {
83
- if (!empty($payment['cc_owner']) && !empty($payment['cc_type'])
84
- && !empty($payment['cc_number']) && !empty($payment['cc_exp_month']) && !empty($payment['cc_exp_year'])
85
- ) {
86
- Mage::getSingleton('core/session')->setWirecardCheckoutSeamlessPaymentInfo($payment);
87
- }
88
- }
89
- }
90
-
91
- return;
92
- }
93
-
94
- /**
95
- * Read paymentinformation from datastorage
96
- */
97
- public function readDatastorageAction()
98
- {
99
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
100
- $helper = Mage::helper('wirecard_checkoutseamless');
101
- $payment = $this->getRequest()->getPost();
102
-
103
- $ret = new \stdClass();
104
- $ret->status = WirecardCEE_QMore_DataStorage_Response_Read::STATE_NOT_EXISTING;
105
- $ret->paymentInformaton = Array();
106
-
107
- if (!empty($payment) && isset($payment['payment']) && !empty($payment['payment'])) {
108
- $payment = $payment['payment'];
109
-
110
- if ($payment['method'] == 'wirecard_checkoutseamless_cc' || $payment['method'] == 'wirecard_checkoutseamless_ccMoto') {
111
-
112
- $readResponse = $helper->readDatastorage();
113
- if ($readResponse) {
114
- $ret->status = $readResponse->getStatus();
115
- $ret->paymentInformaton = $readResponse->getPaymentInformation();
116
- }
117
-
118
- }
119
- }
120
-
121
- print json_encode($ret);
122
-
123
- }
124
-
125
-
126
- /**
127
- * Delete the anonymized Wirecard Checkout Page Session Data stored from Seamless Checkout
128
- */
129
- public function deleteSessInfoAction()
130
- {
131
- if ($this->getRequest()->isPost()) {
132
- Mage::getSingleton('core/session')->unsWirecardCheckoutSeamlessPaymentInfo();
133
- }
134
- return;
135
- }
136
-
137
- /**
138
- * The controller action used for older browsers to return datastorage parameters in an iFrame.
139
- */
140
- public function storereturnAction()
141
- {
142
- $this->loadLayout();
143
- $this->renderLayout();
144
- }
145
-
146
- /**
147
- * Wirecard Checkout Seamless return action
148
- */
149
- public function returnAction()
150
- {
151
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
152
- $helper = Mage::helper('wirecard_checkoutseamless');
153
- try {
154
- if (!$this->getRequest()->isGet())
155
- throw new Exception('Not a GET message');
156
-
157
- $session = $this->getCheckout();
158
- $session->setWirecardCheckoutSeamlessRedirectUrl(null);
159
-
160
- /** @var Mage_Sales_Model_Order $order */
161
- $order = Mage::getModel('sales/order');
162
- $order->load($session->getLastOrderId());
163
- if (!$order->getId())
164
- throw new Exception('Order not found');
165
-
166
- // confirm request has not been processed
167
- if (!$order->getPayment()->getAdditionalInformation('confirmProcessed')) {
168
- $msg = $helper->__('An internal error occurred during the payment process!');
169
- $helper->log(__METHOD__ . ':Confirm via server2server request is not working, check your firewall!');
170
- $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__($msg))->save();
171
- $order->cancel();
172
- $payment = $order->getPayment();
173
- $payment->setAdditionalInformation('consumerMessage', $msg);
174
- $order->save();
175
- }
176
-
177
- // the customer has canceled the payment. show cancel message.
178
- if ($order->isCanceled()) {
179
- $quoteId = $session->getLastQuoteId();
180
- if ($quoteId) {
181
- $quote = Mage::getModel('sales/quote')->load($quoteId);
182
- if ($quote->getId()) {
183
- $quote->setIsActive(true)->save();
184
- $session->setQuoteId($quoteId);
185
- }
186
- }
187
- $consumerMessage = $order->getPayment()->getAdditionalInformation('consumerMessage');
188
- if (!strlen($consumerMessage)) {
189
- //fallback message if no consumerMessage has been set
190
- $consumerMessage = $helper->__('Order has been canceled.');
191
- }
192
- throw new Exception($helper->__($consumerMessage));
193
- }
194
-
195
- // get sure order status has changed since redirect
196
- if ($order->getStatus() == Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW)
197
- throw new Exception($helper->__('Sorry, your payment has not confirmed by the payment provider.'));
198
-
199
- if ($order->getStatus() == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT) {
200
- $msg = $helper->__('Your order will be processed as soon as we get the payment confirmation from you bank.');
201
- Mage::getSingleton('checkout/session')->addNotice($msg);
202
- }
203
-
204
- $this->getCheckout()->setLastSuccessQuoteId($session->getLastQuoteId());
205
- $this->getCheckout()->setResponseRedirectUrl('checkout/onepage/success');
206
- } catch (Exception $e) {
207
- $helper->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
208
- $this->getCheckout()->addNotice($e->getMessage());
209
- $this->getCheckout()->setResponseRedirectUrl('checkout/cart/');
210
- }
211
-
212
- $this->loadLayout();
213
- $this->renderLayout();
214
- }
215
-
216
- /**
217
- * Process transaction confirm message
218
- */
219
- public function confirmAction()
220
- {
221
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
222
- $helper = Mage::helper('wirecard_checkoutseamless');
223
- try {
224
-
225
- if (!$this->getRequest()->isPost())
226
- throw new Exception('Not a POST message');
227
-
228
- $data = $this->getRequest()->getPost();
229
-
230
- $helper->log(__METHOD__ . ':' . print_r($data, true));
231
-
232
- if (!isset($data['mage_orderId']))
233
- throw new Exception('Magent OrderId is missing');
234
-
235
- $return = WirecardCEE_QMore_ReturnFactory::getInstance($data, $helper->getConfigData('settings/secret'));
236
- if (!$return->validate())
237
- throw new Exception('Validation error: invalid response');
238
-
239
- /** @var Mage_Sales_Model_Order $order */
240
- $order = Mage::getModel('sales/order');
241
- $order->loadByIncrementId($data['mage_orderId']);
242
- if (!$order->getId())
243
- throw new Exception('Order not found with Id:' . $data['mage_orderId']);
244
-
245
- /** @var Wirecard_CheckoutSeamless_Model_Abstract $paymentInst */
246
- $paymentInst = $order->getPayment()->getMethodInstance();
247
- $paymentInst->setResponse($data);
248
-
249
- switch ($return->getPaymentState()) {
250
- case WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS:
251
- case WirecardCEE_QMore_ReturnFactory::STATE_PENDING:
252
- $this->_confirmOrder($order, $return);
253
- break;
254
-
255
- case WirecardCEE_QMore_ReturnFactory::STATE_CANCEL:
256
- /** @var WirecardCEE_QMore_Return_Cancel $return */
257
- $this->_cancelOrder($order);
258
- break;
259
-
260
- case WirecardCEE_QMore_ReturnFactory::STATE_FAILURE:
261
- /** @var WirecardCEE_QMore_Return_Failure $return */
262
- if (!$this->_succeeded($order)) {
263
- $msg = array();
264
- foreach ($return->getErrors() as $error) {
265
- $msg[] = $error->getConsumerMessage();
266
- }
267
-
268
- if (!count($msg)) {
269
- // dont show technical error to consumer
270
- $message = $helper->__('An error occured during the payment process');
271
- }
272
- else {
273
- $message = implode("<br/>\n", $msg);
274
- }
275
-
276
- $payment = $order->getPayment();
277
- $additionalInformation = Array('confirmProcessed' => true, 'consumerMessage' => $message);
278
- $payment->setAdditionalInformation($additionalInformation);
279
- $payment->setAdditionalData(serialize($additionalInformation));
280
- $payment->save();
281
-
282
- $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__('An error occured during the payment process'))->save();
283
- $order->cancel();
284
- }
285
- break;
286
-
287
- default:
288
- throw new Exception('Unhandled Wirecard Checkout Seamless payment state:' . $return->getPaymentState());
289
- }
290
-
291
- $order->save();
292
-
293
- die(WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString());
294
-
295
- } catch (Exception $e) {
296
- $helper->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
297
-
298
- die(WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString($e->getMessage()));
299
- }
300
- }
301
-
302
- /**
303
- * check if order already has been successfully processed.
304
- *
305
- * @param $order Mage_Sales_Model_Order
306
- *
307
- * @return bool
308
- */
309
- protected function _succeeded($order)
310
- {
311
- $history = $order->getAllStatusHistory();
312
- $paymentInst = $order->getPayment()->getMethodInstance();
313
- if ($paymentInst) {
314
- foreach ($history AS $entry) {
315
- if ($entry->getStatus() == Mage_Sales_Model_Order::STATE_PROCESSING) {
316
- return true;
317
- }
318
- }
319
- }
320
- return false;
321
- }
322
-
323
- /**
324
- * Cancel an order
325
- *
326
- * @param Mage_Sales_Model_Order $order
327
- */
328
- protected function _cancelOrder($order)
329
- {
330
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
331
- $helper = Mage::helper('wirecard_checkoutseamless');
332
-
333
- if (!$this->_succeeded($order)) {
334
- $payment = $order->getPayment();
335
- $additionalInformation = Array('confirmProcessed' => true);
336
- $payment->setAdditionalInformation($additionalInformation);
337
- $payment->setAdditionalData(serialize($additionalInformation));
338
- $payment->save();
339
-
340
- if ($order->canUnhold()) {
341
- $order->unhold();
342
- }
343
- $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__('Customer canceled the payment process'))->save();
344
- $order->cancel();
345
- }
346
- }
347
-
348
- /**
349
- * Confirm the payment of an order
350
- *
351
- * @param Mage_Sales_Model_Order $order
352
- * @param WirecardCEE_Stdlib_Return_ReturnAbstract $return
353
- */
354
- protected function _confirmOrder($order, $return)
355
- {
356
- /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
357
- $helper = Mage::helper('wirecard_checkoutseamless');
358
-
359
- if (!$this->_succeeded($order)) {
360
- if ($return->getPaymentState() == WirecardCEE_QMore_ReturnFactory::STATE_PENDING) {
361
- $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__('The payment authorization is pending.'))->save();
362
- }
363
- else {
364
- $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true, $helper->__('The amount has been authorized and captured by Wirecard Checkout Seamless.'))->save();
365
- // invoice payment
366
- if ($order->canInvoice()) {
367
-
368
- $invoice = $order->prepareInvoice();
369
- $invoice->register()->capture();
370
- Mage::getModel('core/resource_transaction')
371
- ->addObject($invoice)
372
- ->addObject($invoice->getOrder())
373
- ->save();
374
- }
375
- // send new order email to customer
376
- $order->sendNewOrderEmail();
377
- }
378
- }
379
- $payment = $order->getPayment();
380
- $additionalInformation = Array();
381
-
382
- foreach ($return->getReturned() as $fieldName => $fieldValue) {
383
- $additionalInformation[htmlentities($fieldName)] = htmlentities($fieldValue);
384
- }
385
-
386
- // need to remember whether confirm request was processed
387
- // check this within returnAction
388
- // could be if confirm request has bee blocked (firewall)
389
- $additionalInformation['confirmProcessed'] = true;
390
-
391
- $payment->setAdditionalInformation($additionalInformation);
392
- $payment->setAdditionalData(serialize($additionalInformation));
393
- $payment->save();
394
- }
395
-
396
- }
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ class Wirecard_CheckoutSeamless_ProcessingController extends Mage_Core_Controller_Front_Action
34
+ {
35
+ protected $paymentInst;
36
+
37
+ /** @var Mage_Sales_Model_Order */
38
+ protected $order;
39
+
40
+ /**
41
+ * Get singleton of Checkout Session Model
42
+ *
43
+ * @return Mage_Checkout_Model_Session
44
+ */
45
+ protected function getCheckout()
46
+ {
47
+ return Mage::getSingleton('checkout/session');
48
+ }
49
+
50
+ /**
51
+ * does nothing, checkout is always done within iframe
52
+ */
53
+ public function checkoutAction()
54
+ {
55
+
56
+ }
57
+
58
+ /**
59
+ * return redirecturl, which will be used as src for the iframe
60
+ */
61
+ public function getRedirectUrlAction()
62
+ {
63
+ $ret = Array('url' => Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessRedirectUrl());
64
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
65
+ $helper = Mage::helper('wirecard_checkoutseamless');
66
+ $helper->log(__METHOD__ . ':' . Mage::getSingleton('checkout/session')->getWirecardCheckoutSeamlessRedirectUrl());
67
+ $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($ret));
68
+ }
69
+
70
+ /**
71
+ * Store anonymized Payment Data from Seamless Checkout in the Session
72
+ */
73
+ public function saveSessInfoAction()
74
+ {
75
+ $postData = $this->getRequest()->getPost();
76
+
77
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
78
+ $helper = Mage::helper('wirecard_checkoutseamless');
79
+
80
+ if (!empty($postData) && isset($postData['payment']) && !empty($postData['payment'])) {
81
+ $payment = $postData['payment'];
82
+ if (!$helper->getConfigData('ccard/pci3_dss_saq_a_enable')) {
83
+ if (!empty($payment['cc_owner']) && !empty($payment['cc_type'])
84
+ && !empty($payment['cc_number']) && !empty($payment['cc_exp_month']) && !empty($payment['cc_exp_year'])
85
+ ) {
86
+ Mage::getSingleton('core/session')->setWirecardCheckoutSeamlessPaymentInfo($payment);
87
+ }
88
+ }
89
+ }
90
+
91
+ return;
92
+ }
93
+
94
+ /**
95
+ * Read paymentinformation from datastorage
96
+ */
97
+ public function readDatastorageAction()
98
+ {
99
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
100
+ $helper = Mage::helper('wirecard_checkoutseamless');
101
+ $payment = $this->getRequest()->getPost();
102
+
103
+ $ret = new \stdClass();
104
+ $ret->status = WirecardCEE_QMore_DataStorage_Response_Read::STATE_NOT_EXISTING;
105
+ $ret->paymentInformaton = Array();
106
+
107
+ if (!empty($payment) && isset($payment['payment']) && !empty($payment['payment'])) {
108
+ $payment = $payment['payment'];
109
+
110
+ if ($payment['method'] == 'wirecard_checkoutseamless_cc' || $payment['method'] == 'wirecard_checkoutseamless_ccMoto') {
111
+
112
+ $readResponse = $helper->readDatastorage();
113
+ if ($readResponse) {
114
+ $ret->status = $readResponse->getStatus();
115
+ $ret->paymentInformaton = $readResponse->getPaymentInformation();
116
+ }
117
+
118
+ }
119
+ }
120
+
121
+ print json_encode($ret);
122
+
123
+ }
124
+
125
+
126
+ /**
127
+ * Delete the anonymized Wirecard Checkout Page Session Data stored from Seamless Checkout
128
+ */
129
+ public function deleteSessInfoAction()
130
+ {
131
+ if ($this->getRequest()->isPost()) {
132
+ Mage::getSingleton('core/session')->unsWirecardCheckoutSeamlessPaymentInfo();
133
+ }
134
+ return;
135
+ }
136
+
137
+ /**
138
+ * The controller action used for older browsers to return datastorage parameters in an iFrame.
139
+ */
140
+ public function storereturnAction()
141
+ {
142
+ $this->loadLayout();
143
+ $this->renderLayout();
144
+ }
145
+
146
+ /**
147
+ * Wirecard Checkout Seamless return action
148
+ */
149
+ public function returnAction()
150
+ {
151
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
152
+ $helper = Mage::helper('wirecard_checkoutseamless');
153
+ try {
154
+ if (!$this->getRequest()->isGet())
155
+ throw new Exception('Not a GET message');
156
+
157
+ $session = $this->getCheckout();
158
+ $session->setWirecardCheckoutSeamlessRedirectUrl(null);
159
+
160
+ /** @var Mage_Sales_Model_Order $order */
161
+ $order = Mage::getModel('sales/order');
162
+ $order->load($session->getLastOrderId());
163
+ if (!$order->getId())
164
+ throw new Exception('Order not found');
165
+
166
+ // confirm request has not been processed
167
+ if (!$order->getPayment()->getAdditionalInformation('confirmProcessed')) {
168
+ $msg = $helper->__('An internal error occurred during the payment process!');
169
+ $helper->log(__METHOD__ . ':Confirm via server2server request is not working, check your firewall!');
170
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__($msg))->save();
171
+ $order->cancel();
172
+ $payment = $order->getPayment();
173
+ $payment->setAdditionalInformation('consumerMessage', $msg);
174
+ $order->save();
175
+ }
176
+
177
+ // the customer has canceled the payment. show cancel message.
178
+ if ($order->isCanceled()) {
179
+ $quoteId = $session->getLastQuoteId();
180
+ if ($quoteId) {
181
+ $quote = Mage::getModel('sales/quote')->load($quoteId);
182
+ if ($quote->getId()) {
183
+ $quote->setIsActive(true)->save();
184
+ $session->setQuoteId($quoteId);
185
+ }
186
+ }
187
+ $consumerMessage = $order->getPayment()->getAdditionalInformation('consumerMessage');
188
+ if (!strlen($consumerMessage)) {
189
+ //fallback message if no consumerMessage has been set
190
+ $consumerMessage = $helper->__('Order has been canceled.');
191
+ }
192
+ throw new Exception($helper->__($consumerMessage));
193
+ }
194
+
195
+ // get sure order status has changed since redirect
196
+ if ($order->getStatus() == Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW)
197
+ throw new Exception($helper->__('Sorry, your payment has not confirmed by the payment provider.'));
198
+
199
+ if ($order->getStatus() == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT) {
200
+ $msg = $helper->__('Your order will be processed as soon as we get the payment confirmation from you bank.');
201
+ Mage::getSingleton('checkout/session')->addNotice($msg);
202
+ }
203
+
204
+ $this->getCheckout()->setLastSuccessQuoteId($session->getLastQuoteId());
205
+ $this->getCheckout()->setResponseRedirectUrl('checkout/onepage/success');
206
+ } catch (Exception $e) {
207
+ $helper->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
208
+ $this->getCheckout()->addNotice($e->getMessage());
209
+ $this->getCheckout()->setResponseRedirectUrl('checkout/cart/');
210
+ }
211
+
212
+ $this->loadLayout();
213
+ $this->renderLayout();
214
+ }
215
+
216
+ /**
217
+ * Process transaction confirm message
218
+ */
219
+ public function confirmAction()
220
+ {
221
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
222
+ $helper = Mage::helper('wirecard_checkoutseamless');
223
+ try {
224
+
225
+ if (!$this->getRequest()->isPost())
226
+ throw new Exception('Not a POST message');
227
+
228
+ $data = $this->getRequest()->getPost();
229
+
230
+ $helper->log(__METHOD__ . ':' . print_r($data, true));
231
+
232
+ if (!isset($data['mage_orderId']))
233
+ throw new Exception('Magent OrderId is missing');
234
+
235
+ $return = WirecardCEE_QMore_ReturnFactory::getInstance($data, $helper->getConfigData('settings/secret'));
236
+ if (!$return->validate())
237
+ throw new Exception('Validation error: invalid response');
238
+
239
+ /** @var Mage_Sales_Model_Order $order */
240
+ $order = Mage::getModel('sales/order');
241
+ $order->loadByIncrementId($data['mage_orderId']);
242
+ if (!$order->getId())
243
+ throw new Exception('Order not found with Id:' . $data['mage_orderId']);
244
+
245
+ /** @var Wirecard_CheckoutSeamless_Model_Abstract $paymentInst */
246
+ $paymentInst = $order->getPayment()->getMethodInstance();
247
+ $paymentInst->setResponse($data);
248
+
249
+ switch ($return->getPaymentState()) {
250
+ case WirecardCEE_QMore_ReturnFactory::STATE_SUCCESS:
251
+ case WirecardCEE_QMore_ReturnFactory::STATE_PENDING:
252
+ $this->_confirmOrder($order, $return);
253
+ break;
254
+
255
+ case WirecardCEE_QMore_ReturnFactory::STATE_CANCEL:
256
+ /** @var WirecardCEE_QMore_Return_Cancel $return */
257
+ $this->_cancelOrder($order);
258
+ break;
259
+
260
+ case WirecardCEE_QMore_ReturnFactory::STATE_FAILURE:
261
+ /** @var WirecardCEE_QMore_Return_Failure $return */
262
+ if (!$this->_succeeded($order)) {
263
+ $msg = array();
264
+ foreach ($return->getErrors() as $error) {
265
+ $msg[] = $error->getConsumerMessage();
266
+ }
267
+
268
+ if (!count($msg)) {
269
+ // dont show technical error to consumer
270
+ $message = $helper->__('An error occured during the payment process');
271
+ }
272
+ else {
273
+ $message = implode("<br/>\n", $msg);
274
+ }
275
+
276
+ $payment = $order->getPayment();
277
+ $additionalInformation = Array('confirmProcessed' => true, 'consumerMessage' => $message);
278
+ $payment->setAdditionalInformation($additionalInformation);
279
+ $payment->setAdditionalData(serialize($additionalInformation));
280
+ $payment->save();
281
+
282
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__('An error occured during the payment process'))->save();
283
+ $order->cancel();
284
+ }
285
+ break;
286
+
287
+ default:
288
+ throw new Exception('Unhandled Wirecard Checkout Seamless payment state:' . $return->getPaymentState());
289
+ }
290
+
291
+ $order->save();
292
+
293
+ die(WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString());
294
+
295
+ } catch (Exception $e) {
296
+ $helper->log(__METHOD__ . ':' . $e->getMessage(), Zend_Log::ERR);
297
+
298
+ die(WirecardCEE_QMore_ReturnFactory::generateConfirmResponseString($e->getMessage()));
299
+ }
300
+ }
301
+
302
+ /**
303
+ * check if order already has been successfully processed.
304
+ *
305
+ * @param $order Mage_Sales_Model_Order
306
+ *
307
+ * @return bool
308
+ */
309
+ protected function _succeeded($order)
310
+ {
311
+ $history = $order->getAllStatusHistory();
312
+ $paymentInst = $order->getPayment()->getMethodInstance();
313
+ if ($paymentInst) {
314
+ foreach ($history AS $entry) {
315
+ if ($entry->getStatus() == Mage_Sales_Model_Order::STATE_PROCESSING) {
316
+ return true;
317
+ }
318
+ }
319
+ }
320
+ return false;
321
+ }
322
+
323
+ /**
324
+ * Cancel an order
325
+ *
326
+ * @param Mage_Sales_Model_Order $order
327
+ */
328
+ protected function _cancelOrder($order)
329
+ {
330
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
331
+ $helper = Mage::helper('wirecard_checkoutseamless');
332
+
333
+ if (!$this->_succeeded($order)) {
334
+ $payment = $order->getPayment();
335
+ $additionalInformation = Array('confirmProcessed' => true);
336
+ $payment->setAdditionalInformation($additionalInformation);
337
+ $payment->setAdditionalData(serialize($additionalInformation));
338
+ $payment->save();
339
+
340
+ if ($order->canUnhold()) {
341
+ $order->unhold();
342
+ }
343
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__('Customer canceled the payment process'))->save();
344
+ $order->cancel();
345
+ }
346
+ }
347
+
348
+ /**
349
+ * Confirm the payment of an order
350
+ *
351
+ * @param Mage_Sales_Model_Order $order
352
+ * @param WirecardCEE_Stdlib_Return_ReturnAbstract $return
353
+ */
354
+ protected function _confirmOrder($order, $return)
355
+ {
356
+ /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */
357
+ $helper = Mage::helper('wirecard_checkoutseamless');
358
+
359
+ if (!$this->_succeeded($order)) {
360
+ if ($return->getPaymentState() == WirecardCEE_QMore_ReturnFactory::STATE_PENDING) {
361
+ $order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true, $helper->__('The payment authorization is pending.'))->save();
362
+ }
363
+ else {
364
+ $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true, $helper->__('The amount has been authorized and captured by Wirecard Checkout Seamless.'))->save();
365
+ // invoice payment
366
+ if ($order->canInvoice()) {
367
+
368
+ $invoice = $order->prepareInvoice();
369
+ $invoice->register()->capture();
370
+ Mage::getModel('core/resource_transaction')
371
+ ->addObject($invoice)
372
+ ->addObject($invoice->getOrder())
373
+ ->save();
374
+ }
375
+ // send new order email to customer
376
+ $order->sendNewOrderEmail();
377
+ }
378
+ }
379
+ $payment = $order->getPayment();
380
+ $additionalInformation = Array();
381
+
382
+ foreach ($return->getReturned() as $fieldName => $fieldValue) {
383
+ $additionalInformation[htmlentities($fieldName)] = htmlentities($fieldValue);
384
+ }
385
+
386
+ // need to remember whether confirm request was processed
387
+ // check this within returnAction
388
+ // could be if confirm request has bee blocked (firewall)
389
+ $additionalInformation['confirmProcessed'] = true;
390
+
391
+ $payment->setAdditionalInformation($additionalInformation);
392
+ $payment->setAdditionalData(serialize($additionalInformation));
393
+ $payment->save();
394
+ }
395
+
396
+ }
app/code/community/Wirecard/CheckoutSeamless/etc/config.xml CHANGED
@@ -1,345 +1,345 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Shop System Plugins - Terms of Use
5
- *
6
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
7
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
8
- * products and services.
9
- *
10
- * They have been tested and approved for full functionality in the standard configuration
11
- * (status on delivery) of the corresponding shop system. They are under General Public
12
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
13
- * the same terms.
14
- *
15
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
16
- * occurring when used in an enhanced, customized shop system configuration.
17
- *
18
- * Operation in an enhanced, customized configuration is at your own risk and requires a
19
- * comprehensive test phase by the user of the plugin.
20
- *
21
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
22
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
23
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
24
- * for customized shop systems or installed plugins of other vendors of plugins within the same
25
- * shop system.
26
- *
27
- * Customers are responsible for testing the plugin's functionality before starting productive
28
- * operation.
29
- *
30
- * By installing the plugin into the shop system the customer agrees to these terms of use.
31
- * Please do not use the plugin if you do not agree to these terms of use!
32
- */
33
- -->
34
- <config>
35
- <modules>
36
- <wirecard_checkoutseamless>
37
- <version>4.0.7</version>
38
- </wirecard_checkoutseamless>
39
- </modules>
40
- <global>
41
- <models>
42
- <wirecard_checkoutseamless>
43
- <class>Wirecard_CheckoutSeamless_Model</class>
44
- </wirecard_checkoutseamless>
45
- </models>
46
- <helpers>
47
- <wirecard_checkoutseamless>
48
- <class>Wirecard_CheckoutSeamless_Helper</class>
49
- </wirecard_checkoutseamless>
50
- </helpers>
51
- <resources>
52
- <wirecard_checkoutseamless_setup>
53
- <setup>
54
- <module>Wirecard_CheckoutSeamless</module>
55
- <class>Mage_Eav_Model_Entity_Setup</class>
56
- </setup>
57
- <connection>
58
- <use>core_setup</use>
59
- </connection>
60
- </wirecard_checkoutseamless_setup>
61
- <wirecard_checkoutseamless_write>
62
- <connection>
63
- <use>core_write</use>
64
- </connection>
65
- </wirecard_checkoutseamless_write>
66
- <wirecard_checkoutseamless_read>
67
- <connection>
68
- <use>core_read</use>
69
- </connection>
70
- </wirecard_checkoutseamless_read>
71
- </resources>
72
- <blocks>
73
- <wirecard_checkoutseamless>
74
- <class>Wirecard_CheckoutSeamless_Block</class>
75
- </wirecard_checkoutseamless>
76
- </blocks>
77
-
78
- <events>
79
- <sales_order_payment_place_end>
80
- <observers>
81
- <wirecard_checkoutseamless>
82
- <model>wirecard_checkoutseamless/observer</model>
83
- <method>salesOrderPaymentPlaceEnd</method>
84
- <type>singleton</type>
85
- </wirecard_checkoutseamless>
86
- </observers>
87
- </sales_order_payment_place_end>
88
-
89
- <controller_front_init_before>
90
- <observers>
91
- <wirecard_checkoutseamless>
92
- <class>Wirecard_CheckoutSeamless_Model_Autoloader</class>
93
- <method>addAutoloader</method>
94
- <type>singleton</type>
95
- </wirecard_checkoutseamless>
96
- </observers>
97
- </controller_front_init_before>
98
- </events>
99
- </global>
100
- <frontend>
101
- <routers>
102
- <wirecard_checkoutseamless>
103
- <use>standard</use>
104
- <args>
105
- <module>Wirecard_CheckoutSeamless</module>
106
- <frontName>wirecard_checkoutseamless</frontName>
107
- </args>
108
- </wirecard_checkoutseamless>
109
- </routers>
110
- <translate>
111
- <modules>
112
- <wirecard_checkoutseamless>
113
- <files>
114
- <default>Wirecard_CheckoutSeamless.csv</default>
115
- </files>
116
- </wirecard_checkoutseamless>
117
- </modules>
118
- </translate>
119
- <layout>
120
- <updates>
121
- <wirecard_checkoutseamless>
122
- <file>wirecard_checkoutseamless.xml</file>
123
- </wirecard_checkoutseamless>
124
- </updates>
125
- </layout>
126
- </frontend>
127
- <admin>
128
- <routers>
129
- <adminhtml>
130
- <args>
131
- <modules>
132
- <wirecardcheckoutpage after="Mage_Adminhtml">Wirecard_CheckoutSeamless_Admin</wirecardcheckoutpage>
133
- </modules>
134
- </args>
135
- </adminhtml>
136
- </routers>
137
- </admin>
138
- <adminhtml>
139
- <translate>
140
- <modules>
141
- <wirecard_checkoutseamless>
142
- <files>
143
- <default>wirecard_checkoutseamless.csv</default>
144
- </files>
145
- </wirecard_checkoutseamless>
146
- </modules>
147
- </translate>
148
- </adminhtml>
149
- <default>
150
- <wirecard_checkoutseamless>
151
- <settings>
152
- <configuration>demo</configuration>
153
- <customer_id>D200001</customer_id>
154
- <shop_id>seamless</shop_id>
155
- <secret>B8AKTPWBRMNBV455FG6M2DANE99WU2</secret>
156
- <backendpw>jcv45z</backendpw>
157
- </settings>
158
- <options>
159
- <serviceurl>about-magento-demo-store</serviceurl>
160
- <mobiledetect>1</mobiledetect>
161
- <maxretries>-1</maxretries>
162
- </options>
163
- <ccard>
164
- <showcardholder>1</showcardholder>
165
- <showcvc>1</showcvc>
166
- </ccard>
167
- </wirecard_checkoutseamless>
168
- <payment>
169
- <wirecard_checkoutseamless_cc>
170
- <active>1</active>
171
- <model>wirecard_checkoutseamless/cc</model>
172
- <title>Wirecard Checkout Seamless Credit Card / Maestro SecureCode</title>
173
- <allowspecific>0</allowspecific>
174
- </wirecard_checkoutseamless_cc>
175
- <wirecard_checkoutseamless_ccMoto>
176
- <active>0</active>
177
- <model>wirecard_checkoutseamless/ccMoto</model>
178
- <title>Wirecard Checkout Seamless CreditCard MoTo</title>
179
- <allowspecific>0</allowspecific>
180
- </wirecard_checkoutseamless_ccMoto>
181
- <wirecard_checkoutseamless_eps>
182
- <active>1</active>
183
- <model>wirecard_checkoutseamless/eps</model>
184
- <title>Wirecard Checkout Seamless eps Online Bank Transfer</title>
185
- <allowspecific>0</allowspecific>
186
- </wirecard_checkoutseamless_eps>
187
- <wirecard_checkoutseamless_ideal>
188
- <active>1</active>
189
- <model>wirecard_checkoutseamless/ideal</model>
190
- <title>Wirecard Checkout Seamless iDEAL</title>
191
- <allowspecific>0</allowspecific>
192
- </wirecard_checkoutseamless_ideal>
193
- <wirecard_checkoutseamless_giropay>
194
- <active>1</active>
195
- <model>wirecard_checkoutseamless/giropay</model>
196
- <title>Wirecard Checkout Seamless giropay</title>
197
- <allowspecific>0</allowspecific>
198
- </wirecard_checkoutseamless_giropay>
199
- <wirecard_checkoutseamless_tatrapay>
200
- <active>1</active>
201
- <model>wirecard_checkoutseamless/tatrapay</model>
202
- <title>Wirecard Checkout Seamless TatraPay</title>
203
- <allowspecific>0</allowspecific>
204
- </wirecard_checkoutseamless_tatrapay>
205
- <wirecard_checkoutseamless_sofortbanking>
206
- <active>1</active>
207
- <model>wirecard_checkoutseamless/sofortbanking</model>
208
- <title>Wirecard Checkout Seamless SOFORT Banking</title>
209
- <allowspecific>0</allowspecific>
210
- </wirecard_checkoutseamless_sofortbanking>
211
- <wirecard_checkoutseamless_skrilldirect>
212
- <active>1</active>
213
- <model>wirecard_checkoutseamless/skrilldirect</model>
214
- <title>Wirecard Checkout Seamless Skrill Direct</title>
215
- <allowspecific>0</allowspecific>
216
- </wirecard_checkoutseamless_skrilldirect>
217
- <wirecard_checkoutseamless_skrillwallet>
218
- <active>1</active>
219
- <model>wirecard_checkoutseamless/skrillwallet</model>
220
- <title>Wirecard Checkout Seamless Skrill Digital Wallet</title>
221
- <allowspecific>0</allowspecific>
222
- </wirecard_checkoutseamless_skrillwallet>
223
- <wirecard_checkoutseamless_mpass>
224
- <active>1</active>
225
- <model>wirecard_checkoutseamless/mpass</model>
226
- <title>Wirecard Checkout Seamless mpass</title>
227
- <allowspecific>0</allowspecific>
228
- </wirecard_checkoutseamless_mpass>
229
- <wirecard_checkoutseamless_bmc>
230
- <active>1</active>
231
- <model>wirecard_checkoutseamless/bmc</model>
232
- <title>Wirecard Checkout Seamless BanContact/Mister Cash</title>
233
- <allowspecific>0</allowspecific>
234
- </wirecard_checkoutseamless_bmc>
235
- <wirecard_checkoutseamless_p24>
236
- <active>1</active>
237
- <model>wirecard_checkoutseamless/p24</model>
238
- <title>Wirecard Checkout Seamless Przelewy24</title>
239
- <allowspecific>0</allowspecific>
240
- </wirecard_checkoutseamless_p24>
241
- <wirecard_checkoutseamless_poli>
242
- <active>1</active>
243
- <model>wirecard_checkoutseamless/poli</model>
244
- <title>Wirecard Checkout Seamless POLi</title>
245
- <allowspecific>0</allowspecific>
246
- </wirecard_checkoutseamless_poli>
247
- <wirecard_checkoutseamless_moneta>
248
- <active>1</active>
249
- <model>wirecard_checkoutseamless/moneta</model>
250
- <title>Wirecard Checkout Seamless moneta.ru</title>
251
- <allowspecific>0</allowspecific>
252
- </wirecard_checkoutseamless_moneta>
253
- <wirecard_checkoutseamless_ekonto>
254
- <active>1</active>
255
- <model>wirecard_checkoutseamless/ekonto</model>
256
- <title>Wirecard Checkout Seamless eKonto</title>
257
- <allowspecific>0</allowspecific>
258
- </wirecard_checkoutseamless_ekonto>
259
- <wirecard_checkoutseamless_trustly>
260
- <active>1</active>
261
- <model>wirecard_checkoutseamless/trustly</model>
262
- <title>Wirecard Checkout Seamless Trustly</title>
263
- <allowspecific>0</allowspecific>
264
- </wirecard_checkoutseamless_trustly>
265
- <wirecard_checkoutseamless_paybox>
266
- <active>1</active>
267
- <model>wirecard_checkoutseamless/paybox</model>
268
- <title>Wirecard Checkout Seamless paybox</title>
269
- <allowspecific>0</allowspecific>
270
- </wirecard_checkoutseamless_paybox>
271
- <wirecard_checkoutseamless_paysafecard>
272
- <active>1</active>
273
- <model>wirecard_checkoutseamless/paysafecard</model>
274
- <title>Wirecard Checkout Seamless paysafecard</title>
275
- <allowspecific>0</allowspecific>
276
- </wirecard_checkoutseamless_paysafecard>
277
- <wirecard_checkoutseamless_quick>
278
- <active>1</active>
279
- <model>wirecard_checkoutseamless/quick</model>
280
- <title>Wirecard Checkout Seamless @Quick</title>
281
- <allowspecific>0</allowspecific>
282
- </wirecard_checkoutseamless_quick>
283
- <wirecard_checkoutseamless_paypal>
284
- <active>1</active>
285
- <model>wirecard_checkoutseamless/paypal</model>
286
- <title>Wirecard Checkout Seamless PayPal</title>
287
- <allowspecific>0</allowspecific>
288
- </wirecard_checkoutseamless_paypal>
289
- <wirecard_checkoutseamless_epaybg>
290
- <active>1</active>
291
- <model>wirecard_checkoutseamless/epaybg</model>
292
- <title>Wirecard Checkout Seamless epay.bg</title>
293
- <allowspecific>0</allowspecific>
294
- </wirecard_checkoutseamless_epaybg>
295
- <wirecard_checkoutseamless_sepadd>
296
- <active>1</active>
297
- <model>wirecard_checkoutseamless/sepadd</model>
298
- <title>Wirecard Checkout Seamless SEPA Direct Debit</title>
299
- <allowspecific>0</allowspecific>
300
- </wirecard_checkoutseamless_sepadd>
301
- <wirecard_checkoutseamless_invoice>
302
- <active>1</active>
303
- <provider>payolution</provider>
304
- <model>wirecard_checkoutseamless/invoice</model>
305
- <title>Wirecard Checkout Seamless Invoice</title>
306
- <allowspecific>0</allowspecific>
307
- <min_order_total>10</min_order_total>
308
- <max_order_total>3500</max_order_total>
309
- <payolution_terms>0</payolution_terms>
310
- </wirecard_checkoutseamless_invoice>
311
- <wirecard_checkoutseamless_invoiceb2b>
312
- <active>1</active>
313
- <provider>payolution</provider>
314
- <model>wirecard_checkoutseamless/invoiceb2b</model>
315
- <title>Wirecard Checkout Seamless Invoice B2B</title>
316
- <allowspecific>0</allowspecific>
317
- <min_order_total>25</min_order_total>
318
- <max_order_total>3500</max_order_total>
319
- </wirecard_checkoutseamless_invoiceb2b>
320
- <wirecard_checkoutseamless_installment>
321
- <active>1</active>
322
- <provider>payolution</provider>
323
- <model>wirecard_checkoutseamless/installment</model>
324
- <title>Wirecard Checkout Seamless Installment</title>
325
- <allowspecific>0</allowspecific>
326
- <min_order_total>150</min_order_total>
327
- <max_order_total>3500</max_order_total>
328
- <payolution_terms>0</payolution_terms>
329
- </wirecard_checkoutseamless_installment>
330
- <wirecard_checkoutseamless_voucher>
331
- <active>1</active>
332
- <model>wirecard_checkoutseamless/voucher</model>
333
- <title>Wirecard Checkout Seamless My Voucher</title>
334
- <allowspecific>0</allowspecific>
335
- </wirecard_checkoutseamless_voucher>
336
- <wirecard_checkoutseamless_trustpay>
337
- <active>1</active>
338
- <model>wirecard_checkoutseamless/trustpay</model>
339
- <title>Wirecard Checkout Seamless TrustPay</title>
340
- <allowspecific>0</allowspecific>
341
- </wirecard_checkoutseamless_trustpay>
342
-
343
- </payment>
344
- </default>
345
- </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Shop System Plugins - Terms of Use
5
+ *
6
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
7
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
8
+ * products and services.
9
+ *
10
+ * They have been tested and approved for full functionality in the standard configuration
11
+ * (status on delivery) of the corresponding shop system. They are under General Public
12
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
13
+ * the same terms.
14
+ *
15
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
16
+ * occurring when used in an enhanced, customized shop system configuration.
17
+ *
18
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
19
+ * comprehensive test phase by the user of the plugin.
20
+ *
21
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
22
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
23
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
24
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
25
+ * shop system.
26
+ *
27
+ * Customers are responsible for testing the plugin's functionality before starting productive
28
+ * operation.
29
+ *
30
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
31
+ * Please do not use the plugin if you do not agree to these terms of use!
32
+ */
33
+ -->
34
+ <config>
35
+ <modules>
36
+ <wirecard_checkoutseamless>
37
+ <version>4.0.8</version>
38
+ </wirecard_checkoutseamless>
39
+ </modules>
40
+ <global>
41
+ <models>
42
+ <wirecard_checkoutseamless>
43
+ <class>Wirecard_CheckoutSeamless_Model</class>
44
+ </wirecard_checkoutseamless>
45
+ </models>
46
+ <helpers>
47
+ <wirecard_checkoutseamless>
48
+ <class>Wirecard_CheckoutSeamless_Helper</class>
49
+ </wirecard_checkoutseamless>
50
+ </helpers>
51
+ <resources>
52
+ <wirecard_checkoutseamless_setup>
53
+ <setup>
54
+ <module>Wirecard_CheckoutSeamless</module>
55
+ <class>Mage_Eav_Model_Entity_Setup</class>
56
+ </setup>
57
+ <connection>
58
+ <use>core_setup</use>
59
+ </connection>
60
+ </wirecard_checkoutseamless_setup>
61
+ <wirecard_checkoutseamless_write>
62
+ <connection>
63
+ <use>core_write</use>
64
+ </connection>
65
+ </wirecard_checkoutseamless_write>
66
+ <wirecard_checkoutseamless_read>
67
+ <connection>
68
+ <use>core_read</use>
69
+ </connection>
70
+ </wirecard_checkoutseamless_read>
71
+ </resources>
72
+ <blocks>
73
+ <wirecard_checkoutseamless>
74
+ <class>Wirecard_CheckoutSeamless_Block</class>
75
+ </wirecard_checkoutseamless>
76
+ </blocks>
77
+
78
+ <events>
79
+ <sales_order_payment_place_end>
80
+ <observers>
81
+ <wirecard_checkoutseamless>
82
+ <model>wirecard_checkoutseamless/observer</model>
83
+ <method>salesOrderPaymentPlaceEnd</method>
84
+ <type>singleton</type>
85
+ </wirecard_checkoutseamless>
86
+ </observers>
87
+ </sales_order_payment_place_end>
88
+
89
+ <controller_front_init_before>
90
+ <observers>
91
+ <wirecard_checkoutseamless>
92
+ <class>Wirecard_CheckoutSeamless_Model_Autoloader</class>
93
+ <method>addAutoloader</method>
94
+ <type>singleton</type>
95
+ </wirecard_checkoutseamless>
96
+ </observers>
97
+ </controller_front_init_before>
98
+ </events>
99
+ </global>
100
+ <frontend>
101
+ <routers>
102
+ <wirecard_checkoutseamless>
103
+ <use>standard</use>
104
+ <args>
105
+ <module>Wirecard_CheckoutSeamless</module>
106
+ <frontName>wirecard_checkoutseamless</frontName>
107
+ </args>
108
+ </wirecard_checkoutseamless>
109
+ </routers>
110
+ <translate>
111
+ <modules>
112
+ <wirecard_checkoutseamless>
113
+ <files>
114
+ <default>Wirecard_CheckoutSeamless.csv</default>
115
+ </files>
116
+ </wirecard_checkoutseamless>
117
+ </modules>
118
+ </translate>
119
+ <layout>
120
+ <updates>
121
+ <wirecard_checkoutseamless>
122
+ <file>wirecard_checkoutseamless.xml</file>
123
+ </wirecard_checkoutseamless>
124
+ </updates>
125
+ </layout>
126
+ </frontend>
127
+ <admin>
128
+ <routers>
129
+ <adminhtml>
130
+ <args>
131
+ <modules>
132
+ <wirecardcheckoutpage after="Mage_Adminhtml">Wirecard_CheckoutSeamless_Admin</wirecardcheckoutpage>
133
+ </modules>
134
+ </args>
135
+ </adminhtml>
136
+ </routers>
137
+ </admin>
138
+ <adminhtml>
139
+ <translate>
140
+ <modules>
141
+ <wirecard_checkoutseamless>
142
+ <files>
143
+ <default>wirecard_checkoutseamless.csv</default>
144
+ </files>
145
+ </wirecard_checkoutseamless>
146
+ </modules>
147
+ </translate>
148
+ </adminhtml>
149
+ <default>
150
+ <wirecard_checkoutseamless>
151
+ <settings>
152
+ <configuration>demo</configuration>
153
+ <customer_id>D200001</customer_id>
154
+ <shop_id>seamless</shop_id>
155
+ <secret>B8AKTPWBRMNBV455FG6M2DANE99WU2</secret>
156
+ <backendpw>jcv45z</backendpw>
157
+ </settings>
158
+ <options>
159
+ <serviceurl>about-magento-demo-store</serviceurl>
160
+ <mobiledetect>1</mobiledetect>
161
+ <maxretries>-1</maxretries>
162
+ </options>
163
+ <ccard>
164
+ <showcardholder>1</showcardholder>
165
+ <showcvc>1</showcvc>
166
+ </ccard>
167
+ </wirecard_checkoutseamless>
168
+ <payment>
169
+ <wirecard_checkoutseamless_cc>
170
+ <active>1</active>
171
+ <model>wirecard_checkoutseamless/cc</model>
172
+ <title>Wirecard Checkout Seamless Credit Card / Maestro SecureCode</title>
173
+ <allowspecific>0</allowspecific>
174
+ </wirecard_checkoutseamless_cc>
175
+ <wirecard_checkoutseamless_ccMoto>
176
+ <active>0</active>
177
+ <model>wirecard_checkoutseamless/ccMoto</model>
178
+ <title>Wirecard Checkout Seamless CreditCard MoTo</title>
179
+ <allowspecific>0</allowspecific>
180
+ </wirecard_checkoutseamless_ccMoto>
181
+ <wirecard_checkoutseamless_eps>
182
+ <active>1</active>
183
+ <model>wirecard_checkoutseamless/eps</model>
184
+ <title>Wirecard Checkout Seamless eps Online Bank Transfer</title>
185
+ <allowspecific>0</allowspecific>
186
+ </wirecard_checkoutseamless_eps>
187
+ <wirecard_checkoutseamless_ideal>
188
+ <active>1</active>
189
+ <model>wirecard_checkoutseamless/ideal</model>
190
+ <title>Wirecard Checkout Seamless iDEAL</title>
191
+ <allowspecific>0</allowspecific>
192
+ </wirecard_checkoutseamless_ideal>
193
+ <wirecard_checkoutseamless_giropay>
194
+ <active>1</active>
195
+ <model>wirecard_checkoutseamless/giropay</model>
196
+ <title>Wirecard Checkout Seamless giropay</title>
197
+ <allowspecific>0</allowspecific>
198
+ </wirecard_checkoutseamless_giropay>
199
+ <wirecard_checkoutseamless_tatrapay>
200
+ <active>1</active>
201
+ <model>wirecard_checkoutseamless/tatrapay</model>
202
+ <title>Wirecard Checkout Seamless TatraPay</title>
203
+ <allowspecific>0</allowspecific>
204
+ </wirecard_checkoutseamless_tatrapay>
205
+ <wirecard_checkoutseamless_sofortbanking>
206
+ <active>1</active>
207
+ <model>wirecard_checkoutseamless/sofortbanking</model>
208
+ <title>Wirecard Checkout Seamless SOFORT Banking</title>
209
+ <allowspecific>0</allowspecific>
210
+ </wirecard_checkoutseamless_sofortbanking>
211
+ <wirecard_checkoutseamless_skrilldirect>
212
+ <active>1</active>
213
+ <model>wirecard_checkoutseamless/skrilldirect</model>
214
+ <title>Wirecard Checkout Seamless Skrill Direct</title>
215
+ <allowspecific>0</allowspecific>
216
+ </wirecard_checkoutseamless_skrilldirect>
217
+ <wirecard_checkoutseamless_skrillwallet>
218
+ <active>1</active>
219
+ <model>wirecard_checkoutseamless/skrillwallet</model>
220
+ <title>Wirecard Checkout Seamless Skrill Digital Wallet</title>
221
+ <allowspecific>0</allowspecific>
222
+ </wirecard_checkoutseamless_skrillwallet>
223
+ <wirecard_checkoutseamless_mpass>
224
+ <active>1</active>
225
+ <model>wirecard_checkoutseamless/mpass</model>
226
+ <title>Wirecard Checkout Seamless mpass</title>
227
+ <allowspecific>0</allowspecific>
228
+ </wirecard_checkoutseamless_mpass>
229
+ <wirecard_checkoutseamless_bmc>
230
+ <active>1</active>
231
+ <model>wirecard_checkoutseamless/bmc</model>
232
+ <title>Wirecard Checkout Seamless BanContact/Mister Cash</title>
233
+ <allowspecific>0</allowspecific>
234
+ </wirecard_checkoutseamless_bmc>
235
+ <wirecard_checkoutseamless_p24>
236
+ <active>1</active>
237
+ <model>wirecard_checkoutseamless/p24</model>
238
+ <title>Wirecard Checkout Seamless Przelewy24</title>
239
+ <allowspecific>0</allowspecific>
240
+ </wirecard_checkoutseamless_p24>
241
+ <wirecard_checkoutseamless_poli>
242
+ <active>1</active>
243
+ <model>wirecard_checkoutseamless/poli</model>
244
+ <title>Wirecard Checkout Seamless POLi</title>
245
+ <allowspecific>0</allowspecific>
246
+ </wirecard_checkoutseamless_poli>
247
+ <wirecard_checkoutseamless_moneta>
248
+ <active>1</active>
249
+ <model>wirecard_checkoutseamless/moneta</model>
250
+ <title>Wirecard Checkout Seamless moneta.ru</title>
251
+ <allowspecific>0</allowspecific>
252
+ </wirecard_checkoutseamless_moneta>
253
+ <wirecard_checkoutseamless_ekonto>
254
+ <active>1</active>
255
+ <model>wirecard_checkoutseamless/ekonto</model>
256
+ <title>Wirecard Checkout Seamless eKonto</title>
257
+ <allowspecific>0</allowspecific>
258
+ </wirecard_checkoutseamless_ekonto>
259
+ <wirecard_checkoutseamless_trustly>
260
+ <active>1</active>
261
+ <model>wirecard_checkoutseamless/trustly</model>
262
+ <title>Wirecard Checkout Seamless Trustly</title>
263
+ <allowspecific>0</allowspecific>
264
+ </wirecard_checkoutseamless_trustly>
265
+ <wirecard_checkoutseamless_paybox>
266
+ <active>1</active>
267
+ <model>wirecard_checkoutseamless/paybox</model>
268
+ <title>Wirecard Checkout Seamless paybox</title>
269
+ <allowspecific>0</allowspecific>
270
+ </wirecard_checkoutseamless_paybox>
271
+ <wirecard_checkoutseamless_paysafecard>
272
+ <active>1</active>
273
+ <model>wirecard_checkoutseamless/paysafecard</model>
274
+ <title>Wirecard Checkout Seamless paysafecard</title>
275
+ <allowspecific>0</allowspecific>
276
+ </wirecard_checkoutseamless_paysafecard>
277
+ <wirecard_checkoutseamless_quick>
278
+ <active>1</active>
279
+ <model>wirecard_checkoutseamless/quick</model>
280
+ <title>Wirecard Checkout Seamless @Quick</title>
281
+ <allowspecific>0</allowspecific>
282
+ </wirecard_checkoutseamless_quick>
283
+ <wirecard_checkoutseamless_paypal>
284
+ <active>1</active>
285
+ <model>wirecard_checkoutseamless/paypal</model>
286
+ <title>Wirecard Checkout Seamless PayPal</title>
287
+ <allowspecific>0</allowspecific>
288
+ </wirecard_checkoutseamless_paypal>
289
+ <wirecard_checkoutseamless_epaybg>
290
+ <active>1</active>
291
+ <model>wirecard_checkoutseamless/epaybg</model>
292
+ <title>Wirecard Checkout Seamless epay.bg</title>
293
+ <allowspecific>0</allowspecific>
294
+ </wirecard_checkoutseamless_epaybg>
295
+ <wirecard_checkoutseamless_sepadd>
296
+ <active>1</active>
297
+ <model>wirecard_checkoutseamless/sepadd</model>
298
+ <title>Wirecard Checkout Seamless SEPA Direct Debit</title>
299
+ <allowspecific>0</allowspecific>
300
+ </wirecard_checkoutseamless_sepadd>
301
+ <wirecard_checkoutseamless_invoice>
302
+ <active>1</active>
303
+ <provider>payolution</provider>
304
+ <model>wirecard_checkoutseamless/invoice</model>
305
+ <title>Wirecard Checkout Seamless Invoice</title>
306
+ <allowspecific>0</allowspecific>
307
+ <min_order_total>10</min_order_total>
308
+ <max_order_total>3500</max_order_total>
309
+ <payolution_terms>0</payolution_terms>
310
+ </wirecard_checkoutseamless_invoice>
311
+ <wirecard_checkoutseamless_invoiceb2b>
312
+ <active>1</active>
313
+ <provider>payolution</provider>
314
+ <model>wirecard_checkoutseamless/invoiceb2b</model>
315
+ <title>Wirecard Checkout Seamless Invoice B2B</title>
316
+ <allowspecific>0</allowspecific>
317
+ <min_order_total>25</min_order_total>
318
+ <max_order_total>3500</max_order_total>
319
+ </wirecard_checkoutseamless_invoiceb2b>
320
+ <wirecard_checkoutseamless_installment>
321
+ <active>1</active>
322
+ <provider>payolution</provider>
323
+ <model>wirecard_checkoutseamless/installment</model>
324
+ <title>Wirecard Checkout Seamless Installment</title>
325
+ <allowspecific>0</allowspecific>
326
+ <min_order_total>150</min_order_total>
327
+ <max_order_total>3500</max_order_total>
328
+ <payolution_terms>0</payolution_terms>
329
+ </wirecard_checkoutseamless_installment>
330
+ <wirecard_checkoutseamless_voucher>
331
+ <active>1</active>
332
+ <model>wirecard_checkoutseamless/voucher</model>
333
+ <title>Wirecard Checkout Seamless My Voucher</title>
334
+ <allowspecific>0</allowspecific>
335
+ </wirecard_checkoutseamless_voucher>
336
+ <wirecard_checkoutseamless_trustpay>
337
+ <active>1</active>
338
+ <model>wirecard_checkoutseamless/trustpay</model>
339
+ <title>Wirecard Checkout Seamless TrustPay</title>
340
+ <allowspecific>0</allowspecific>
341
+ </wirecard_checkoutseamless_trustpay>
342
+
343
+ </payment>
344
+ </default>
345
+ </config>
app/code/community/Wirecard/CheckoutSeamless/etc/system.xml CHANGED
@@ -1,2382 +1,2382 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Shop System Plugins - Terms of Use
5
- *
6
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
7
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
8
- * products and services.
9
- *
10
- * They have been tested and approved for full functionality in the standard configuration
11
- * (status on delivery) of the corresponding shop system. They are under General Public
12
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
13
- * the same terms.
14
- *
15
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
16
- * occurring when used in an enhanced, customized shop system configuration.
17
- *
18
- * Operation in an enhanced, customized configuration is at your own risk and requires a
19
- * comprehensive test phase by the user of the plugin.
20
- *
21
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
22
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
23
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
24
- * for customized shop systems or installed plugins of other vendors of plugins within the same
25
- * shop system.
26
- *
27
- * Customers are responsible for testing the plugin's functionality before starting productive
28
- * operation.
29
- *
30
- * By installing the plugin into the shop system the customer agrees to these terms of use.
31
- * Please do not use the plugin if you do not agree to these terms of use!
32
- */
33
- -->
34
- <config>
35
- <sections>
36
- <wirecard_checkoutseamless translate="label" module="wirecard_checkoutseamless">
37
- <label>Wirecard Checkout Seamless</label>
38
- <tab>sales</tab>
39
- <frontend_type>text</frontend_type>
40
- <sort_order>900</sort_order>
41
- <show_in_default>1</show_in_default>
42
- <show_in_website>1</show_in_website>
43
- <show_in_store>1</show_in_store>
44
- <groups>
45
- <settings translate="label">
46
- <label>Basic data</label>
47
- <frontend_type>text</frontend_type>
48
- <sort_order>100</sort_order>
49
- <show_in_default>1</show_in_default>
50
- <show_in_website>1</show_in_website>
51
- <show_in_store>1</show_in_store>
52
- <comment>
53
- <![CDATA[
54
- <div style="padding:10px;margin-bottom:7px;">
55
- <img src="/skin/adminhtml/default/default/images/wirecard/wirecard-seamless-logo.png" alt="Wirecard" /><br /><h3>Your Full Service Payment Provider - Comprehensive solutions from one single source</h3>Wirecard is one of the world's leading providers of outsourcing and white label solutions for electronic payment transactions.<br /><br /> As independent provider of payment solutions, we accompany our customers along the entire business development. Our payment solutions are perfectly tailored to suit e-Commerce requirements and have made us Austria's leading payment service provider. Customization, competence, and commitment. <br /><br /> <a href="https://www.wirecard.at/" target="_blank">www.wirecard.at</a>
56
- </div><div style="clear:both;"></div>
57
- ]]>
58
- </comment>
59
- <fields>
60
- <configuration translate="label,comment">
61
- <label>Configuration</label>
62
- <frontend_type>select</frontend_type>
63
- <source_model>Wirecard_CheckoutSeamless_Model_System_Config_Configurations</source_model>
64
- <sort_order>10</sort_order>
65
- <show_in_default>1</show_in_default>
66
- <show_in_website>1</show_in_website>
67
- <show_in_store>1</show_in_store>
68
- <comment>For integration, select predefined configuration settings or "production" for live systems.</comment>
69
- </configuration>
70
- <customer_id translate="label,comment">
71
- <label>Customer ID</label>
72
- <frontend_type>text</frontend_type>
73
- <sort_order>20</sort_order>
74
- <show_in_default>1</show_in_default>
75
- <show_in_website>1</show_in_website>
76
- <show_in_store>1</show_in_store>
77
- <comment><![CDATA[
78
- Customer number you received from Wirecard (customerId, i.e. D2#####). <a href="https://guides.wirecard.at/request_parameters#customerid" target="_blank">More information.</a>
79
- ]]>
80
- </comment>
81
- </customer_id>
82
- <shop_id translate="label,comment">
83
- <label>Shop ID</label>
84
- <frontend_type>text</frontend_type>
85
- <sort_order>30</sort_order>
86
- <show_in_default>1</show_in_default>
87
- <show_in_website>1</show_in_website>
88
- <show_in_store>1</show_in_store>
89
- <comment>
90
- <![CDATA[
91
- Shop identifier in case of more than one shop. <a href="https://guides.wirecard.at/request_parameters#shopid" target="_blank">More information.</a>
92
- ]]>
93
- </comment>
94
- </shop_id>
95
- <secret translate="label,comment">
96
- <label>Secret</label>
97
- <frontend_type>text</frontend_type>
98
- <sort_order>40</sort_order>
99
- <show_in_default>1</show_in_default>
100
- <show_in_website>1</show_in_website>
101
- <show_in_store>1</show_in_store>
102
- <comment>
103
- <![CDATA[
104
- String which you received from Wirecard for signing and validating data to prove their authenticity. <a href="https://guides.wirecard.at/security:start#secret_and_fingerprint" target="_blank">More information.</a>
105
- ]]>
106
- </comment>
107
- </secret>
108
- <backendpw translate="label,comment">
109
- <label>Back-end password</label>
110
- <frontend_type>text</frontend_type>
111
- <sort_order>40</sort_order>
112
- <show_in_default>1</show_in_default>
113
- <show_in_website>1</show_in_website>
114
- <show_in_store>1</show_in_store>
115
- <comment>
116
- <![CDATA[
117
- Password for back-end operations (Toolkit). <a href="https://guides.wirecard.at/back-end_operations:technical_wcs:start#password" target="_blank">More information.</a>
118
- ]]>
119
- </comment>
120
- </backendpw>
121
- <register translate="label">
122
- <label></label>
123
- <frontend_type>button</frontend_type>
124
- <frontend_model>Wirecard_CheckoutSeamless_Block_Admin_Buttons</frontend_model>
125
- <sort_order>60</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
- </register>
130
- </fields>
131
- </settings>
132
- <options translate="label">
133
- <label>Options</label>
134
- <frontend_type>text</frontend_type>
135
- <sort_order>200</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
- <fields>
140
- <serviceurl translate="label,comment">
141
- <label>URL to imprint page</label>
142
- <frontend_type>text</frontend_type>
143
- <validate>validate-url</validate>
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
- <comment>
149
- <![CDATA[
150
- URL on the payment page which leads to the imprint page of the online shop. <a href="https://guides.wirecard.at/request_parameters#serviceurl" target="_blank">More information.</a>
151
- ]]>
152
- </comment>
153
- </serviceurl>
154
- <shopname translate="label,comment">
155
- <label>Shop prefix in posting text</label>
156
- <frontend_type>text</frontend_type>
157
- <sort_order>20</sort_order>
158
- <show_in_default>1</show_in_default>
159
- <show_in_website>1</show_in_website>
160
- <show_in_store>1</show_in_store>
161
- <comment>
162
- Reference to your online shop on your consumer's invoice, limited to 9 characters.
163
- </comment>
164
- </shopname>
165
- <sendadditionaldata translate="label,comment">
166
- <label>Forward consumer data</label>
167
- <frontend_type>select</frontend_type>
168
- <source_model>adminhtml/system_config_source_yesno</source_model>
169
- <sort_order>30</sort_order>
170
- <show_in_default>1</show_in_default>
171
- <show_in_website>1</show_in_website>
172
- <show_in_store>1</show_in_store>
173
- <comment><![CDATA[
174
- Forwarding shipping and billing data about your consumer to the respective financial service provider.
175
- ]]>
176
- </comment>
177
- </sendadditionaldata>
178
- <sendconfirmationemail translate="label,comment">
179
- <label>Notification e-mail</label>
180
- <frontend_type>select</frontend_type>
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
- <comment><![CDATA[
187
- Receiving notification by e-mail regarding the orders of your consumers if an error occurred in the communication between Wirecard and your online shop. <a href="https://guides.wirecard.at/request_parameters#confirmMail" target="_blank">More information</a>. Please contact our <a href="https://guides.wirecard.at/sales" target="_blank">sales teams</a> to activate this feature.
188
- ]]>
189
- </comment>
190
- </sendconfirmationemail>
191
- <autodeposit translate="label,comment">
192
- <label>Automated deposit</label>
193
- <frontend_type>select</frontend_type>
194
- <source_model>adminhtml/system_config_source_yesno</source_model>
195
- <sort_order>50</sort_order>
196
- <show_in_default>1</show_in_default>
197
- <show_in_website>1</show_in_website>
198
- <show_in_store>1</show_in_store>
199
- <comment><![CDATA[
200
- Enabling an automated deposit of payments. <a href="https://guides.wirecard.at/request_parameters#autodeposit" target="_blank">More information</a>. Please contact our <a href="https://guides.wirecard.at/sales" target="_blank">sales teams</a> to activate this feature.
201
- ]]>
202
- </comment>
203
- </autodeposit>
204
- <sendbasketinformation translate="label,comment">
205
- <label>Forward basket information</label>
206
- <frontend_type>select</frontend_type>
207
- <source_model>adminhtml/system_config_source_yesno</source_model>
208
- <sort_order>60</sort_order>
209
- <show_in_default>1</show_in_default>
210
- <show_in_website>1</show_in_website>
211
- <show_in_store>1</show_in_store>
212
- <comment><![CDATA[
213
- Forwarding basket data to the respective financial service provider.
214
- ]]>
215
- </comment>
216
- </sendbasketinformation>
217
- <payolution_terms translate="label,comment">
218
- <label>payolution terms</label>
219
- <frontend_type>select</frontend_type>
220
- <source_model>adminhtml/system_config_source_enabledisable</source_model>
221
- <sort_order>90</sort_order>
222
- <show_in_default>1</show_in_default>
223
- <show_in_website>1</show_in_website>
224
- <show_in_store>1</show_in_store>
225
- <comment>
226
- <![CDATA[
227
- Consumer must accept payolution terms during the checkout process. <a href="https://guides.wirecard.at/payment_methods:payolution:start" target="_blank">More information.</a>
228
- ]]>
229
- </comment>
230
- </payolution_terms>
231
- <payolution_mid translate="label,comment">
232
- <label>payolution mID</label>
233
- <frontend_type>text</frontend_type>
234
- <sort_order>100</sort_order>
235
- <show_in_default>1</show_in_default>
236
- <show_in_website>1</show_in_website>
237
- <show_in_store>1</show_in_store>
238
- <comment>
239
- <![CDATA[
240
- Your payolution merchant ID, non-base64-encoded.
241
- ]]>
242
- </comment>
243
- </payolution_mid>
244
- </fields>
245
- </options>
246
- <ccard translate="label">
247
- <label>Credit card options</label>
248
- <frontend_type>text</frontend_type>
249
- <sort_order>300</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
- <fields>
254
- <pci3_dss_saq_a_enable translate="label,comment">
255
- <label>SAQ A compliance</label>
256
- <frontend_type>select</frontend_type>
257
- <source_model>adminhtml/system_config_source_yesno</source_model>
258
- <sort_order>10</sort_order>
259
- <show_in_default>1</show_in_default>
260
- <show_in_website>1</show_in_website>
261
- <show_in_store>1</show_in_store>
262
- <comment><![CDATA[
263
- Selecting "NO", the stringent SAQ A-EP is applicable. Selecting "YES", Wirecard Checkout Seamless is integrated with the "PCI DSS SAQ A Compliance" feature and SAQ A is applicable. <a href="https://guides.wirecard.at/wcs:pci3_fallback:start" target="_blank">More information.</a>
264
- ]]>
265
- </comment>
266
- </pci3_dss_saq_a_enable>
267
- <iframe_css_url translate="label,comment">
268
- <label>Iframe CSS-URL</label>
269
- <frontend_type>text</frontend_type>
270
- <validate>validate-url</validate>
271
- <sort_order>20</sort_order>
272
- <show_in_default>1</show_in_default>
273
- <show_in_website>1</show_in_website>
274
- <show_in_store>1</show_in_store>
275
- <comment><![CDATA[
276
- Entry of a full URL to a CSS file in order to customize the iframe input fields when the "PCI DSS SAQ A Compliance" feature is used. <a href="https://guides.wirecard.at/wcs:pci3_fallback:start#customization_via_css" target="_blank">More information.</a>
277
- e.g. https://magento.example.com/skin/frontend/base/default/css/wirecard/checkoutseamless/seamlessiframe.css
278
- ]]>
279
- </comment>
280
- </iframe_css_url>
281
- <showcardholder translate="label,comment">
282
- <label>Display card holder field</label>
283
- <frontend_type>select</frontend_type>
284
- <source_model>adminhtml/system_config_source_yesno</source_model>
285
- <sort_order>30</sort_order>
286
- <show_in_default>1</show_in_default>
287
- <show_in_website>1</show_in_website>
288
- <show_in_store>1</show_in_store>
289
- <comment><![CDATA[
290
- Display input field to enter the card holder name in your credit card form during the checkout process.
291
- ]]>
292
- </comment>
293
- </showcardholder>
294
- <showcvc translate="label,comment">
295
- <label>Display CVC field</label>
296
- <frontend_type>select</frontend_type>
297
- <source_model>adminhtml/system_config_source_yesno</source_model>
298
- <sort_order>40</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
- <comment><![CDATA[
303
- Display input field to enter the CVC in your credit card form during the checkout process.
304
- ]]>
305
- </comment>
306
- </showcvc>
307
- <showissuedate translate="label,comment">
308
- <label>Display issue date field</label>
309
- <frontend_type>select</frontend_type>
310
- <source_model>adminhtml/system_config_source_yesno</source_model>
311
- <sort_order>50</sort_order>
312
- <show_in_default>1</show_in_default>
313
- <show_in_website>1</show_in_website>
314
- <show_in_store>1</show_in_store>
315
- <comment><![CDATA[
316
- Display input field to enter the credit card issue date in your credit card form during the checkout process. Some credit cards do not have an issue date.
317
- ]]>
318
- </comment>
319
- </showissuedate>
320
- <showissuenumber translate="label,comment">
321
- <label>Display issue number field</label>
322
- <frontend_type>select</frontend_type>
323
- <source_model>adminhtml/system_config_source_yesno</source_model>
324
- <sort_order>60</sort_order>
325
- <show_in_default>1</show_in_default>
326
- <show_in_website>1</show_in_website>
327
- <show_in_store>1</show_in_store>
328
- <comment><![CDATA[
329
- Display input field to enter the credit card issue number in your credit card form during the checkout process. Some credit cards do not have an issue number.
330
- ]]>
331
- </comment>
332
- </showissuenumber>
333
- </fields>
334
- </ccard>
335
- </groups>
336
- </wirecard_checkoutseamless>
337
- </sections>
338
- <sections>
339
- <payment>
340
- <groups>
341
- <wirecard_checkoutseamless_cc translate="label" module="wirecard_checkoutseamless">
342
- <label>Wirecard Checkout Seamless Credit Card / Maestro SecureCode</label>
343
- <frontend_type>text</frontend_type>
344
- <sort_order>5020</sort_order>
345
- <show_in_default>1</show_in_default>
346
- <show_in_website>1</show_in_website>
347
- <show_in_store>1</show_in_store>
348
- <fields>
349
- <active translate="label">
350
- <label>Enabled</label>
351
- <frontend_type>select</frontend_type>
352
- <source_model>adminhtml/system_config_source_yesno</source_model>
353
- <sort_order>20</sort_order>
354
- <show_in_default>1</show_in_default>
355
- <show_in_website>1</show_in_website>
356
- <show_in_store>1</show_in_store>
357
- </active>
358
- <sort_order translate="label">
359
- <label>Sorting order number</label>
360
- <frontend_type>text</frontend_type>
361
- <sort_order>30</sort_order>
362
- <show_in_default>1</show_in_default>
363
- <show_in_website>1</show_in_website>
364
- <show_in_store>1</show_in_store>
365
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
366
- </sort_order>
367
- <title translate="label">
368
- <label>Name for payment method</label>
369
- <frontend_type>text</frontend_type>
370
- <sort_order>40</sort_order>
371
- <show_in_default>1</show_in_default>
372
- <show_in_website>1</show_in_website>
373
- <show_in_store>1</show_in_store>
374
- <comment>The name for the payment method to be displayed in the online shop.</comment>
375
- </title>
376
- <allowspecific translate="label">
377
- <label>Payment method available for</label>
378
- <frontend_type>allowspecific</frontend_type>
379
- <sort_order>70</sort_order>
380
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
381
- </source_model>
382
- <show_in_default>1</show_in_default>
383
- <show_in_website>1</show_in_website>
384
- <show_in_store>1</show_in_store>
385
- </allowspecific>
386
- <specificcountry translate="label">
387
- <label>Specific countries</label>
388
- <frontend_type>multiselect</frontend_type>
389
- <sort_order>80</sort_order>
390
- <source_model>adminhtml/system_config_source_country
391
- </source_model>
392
- <show_in_default>1</show_in_default>
393
- <show_in_website>1</show_in_website>
394
- <show_in_store>1</show_in_store>
395
- </specificcountry>
396
- <min_order_total translate="label">
397
- <label>Minimum order total</label>
398
- <frontend_type>text</frontend_type>
399
- <sort_order>90</sort_order>
400
- <show_in_default>1</show_in_default>
401
- <show_in_website>1</show_in_website>
402
- <show_in_store>1</show_in_store>
403
- </min_order_total>
404
- <max_order_total translate="label">
405
- <label>Maximum order total</label>
406
- <frontend_type>text</frontend_type>
407
- <sort_order>100</sort_order>
408
- <show_in_default>1</show_in_default>
409
- <show_in_website>1</show_in_website>
410
- <show_in_store>0</show_in_store>
411
- </max_order_total>
412
- </fields>
413
- </wirecard_checkoutseamless_cc>
414
- <wirecard_checkoutseamless_ccMoto translate="label" module="wirecard_checkoutseamless">
415
- <label>Wirecard Checkout Seamless Credit Card MoTo</label>
416
- <frontend_type>text</frontend_type>
417
- <sort_order>5030</sort_order>
418
- <show_in_default>1</show_in_default>
419
- <show_in_website>1</show_in_website>
420
- <show_in_store>1</show_in_store>
421
- <fields>
422
- <active translate="label">
423
- <label>Enabled</label>
424
- <frontend_type>select</frontend_type>
425
- <source_model>adminhtml/system_config_source_yesno</source_model>
426
- <sort_order>20</sort_order>
427
- <show_in_default>1</show_in_default>
428
- <show_in_website>1</show_in_website>
429
- <show_in_store>1</show_in_store>
430
- </active>
431
- <sort_order translate="label">
432
- <label>Sorting order number</label>
433
- <frontend_type>text</frontend_type>
434
- <sort_order>30</sort_order>
435
- <show_in_default>1</show_in_default>
436
- <show_in_website>1</show_in_website>
437
- <show_in_store>1</show_in_store>
438
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
439
- </sort_order>
440
- <title translate="label">
441
- <label>Name for payment method</label>
442
- <frontend_type>text</frontend_type>
443
- <sort_order>40</sort_order>
444
- <show_in_default>1</show_in_default>
445
- <show_in_website>1</show_in_website>
446
- <show_in_store>1</show_in_store>
447
- <comment>The name for the payment method to be displayed in the online shop.</comment>
448
- </title>
449
- <allowspecific translate="label">
450
- <label>Payment method available for</label>
451
- <frontend_type>allowspecific</frontend_type>
452
- <sort_order>70</sort_order>
453
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
454
- </source_model>
455
- <show_in_default>1</show_in_default>
456
- <show_in_website>1</show_in_website>
457
- <show_in_store>1</show_in_store>
458
- </allowspecific>
459
- <specificcountry translate="label">
460
- <label>Specific countries</label>
461
- <frontend_type>multiselect</frontend_type>
462
- <sort_order>80</sort_order>
463
- <source_model>adminhtml/system_config_source_country
464
- </source_model>
465
- <show_in_default>1</show_in_default>
466
- <show_in_website>1</show_in_website>
467
- <show_in_store>1</show_in_store>
468
- </specificcountry>
469
- <min_order_total translate="label">
470
- <label>Minimum order total</label>
471
- <frontend_type>text</frontend_type>
472
- <sort_order>90</sort_order>
473
- <show_in_default>1</show_in_default>
474
- <show_in_website>1</show_in_website>
475
- <show_in_store>1</show_in_store>
476
- </min_order_total>
477
- <max_order_total translate="label">
478
- <label>Maximum order total</label>
479
- <frontend_type>text</frontend_type>
480
- <sort_order>100</sort_order>
481
- <show_in_default>1</show_in_default>
482
- <show_in_website>1</show_in_website>
483
- <show_in_store>0</show_in_store>
484
- </max_order_total>
485
- </fields>
486
- </wirecard_checkoutseamless_ccMoto>
487
- <wirecard_checkoutseamless_eps translate="label" module="wirecard_checkoutseamless">
488
- <label>Wirecard Checkout Seamless eps Online Bank Transfer</label>
489
- <frontend_type>text</frontend_type>
490
- <sort_order>5040</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
- <fields>
495
- <active translate="label">
496
- <label>Enabled</label>
497
- <frontend_type>select</frontend_type>
498
- <source_model>adminhtml/system_config_source_yesno</source_model>
499
- <sort_order>20</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
- </active>
504
- <sort_order translate="label">
505
- <label>Sorting order number</label>
506
- <frontend_type>text</frontend_type>
507
- <sort_order>30</sort_order>
508
- <show_in_default>1</show_in_default>
509
- <show_in_website>1</show_in_website>
510
- <show_in_store>1</show_in_store>
511
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
512
- </sort_order>
513
- <title translate="label">
514
- <label>Name for payment method</label>
515
- <frontend_type>text</frontend_type>
516
- <sort_order>40</sort_order>
517
- <show_in_default>1</show_in_default>
518
- <show_in_website>1</show_in_website>
519
- <show_in_store>1</show_in_store>
520
- <comment>The name for the payment method to be displayed in the online shop.</comment>
521
- </title>
522
- <allowspecific translate="label">
523
- <label>Payment method available for</label>
524
- <frontend_type>allowspecific</frontend_type>
525
- <sort_order>70</sort_order>
526
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
527
- </source_model>
528
- <show_in_default>1</show_in_default>
529
- <show_in_website>1</show_in_website>
530
- <show_in_store>1</show_in_store>
531
- </allowspecific>
532
- <specificcountry translate="label">
533
- <label>Specific countries</label>
534
- <frontend_type>multiselect</frontend_type>
535
- <sort_order>80</sort_order>
536
- <source_model>adminhtml/system_config_source_country
537
- </source_model>
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
- </specificcountry>
542
- <min_order_total translate="label">
543
- <label>Minimum order total</label>
544
- <frontend_type>text</frontend_type>
545
- <sort_order>90</sort_order>
546
- <show_in_default>1</show_in_default>
547
- <show_in_website>1</show_in_website>
548
- <show_in_store>1</show_in_store>
549
- </min_order_total>
550
- <max_order_total translate="label">
551
- <label>Maximum order total</label>
552
- <frontend_type>text</frontend_type>
553
- <sort_order>100</sort_order>
554
- <show_in_default>1</show_in_default>
555
- <show_in_website>1</show_in_website>
556
- <show_in_store>0</show_in_store>
557
- </max_order_total>
558
- </fields>
559
- </wirecard_checkoutseamless_eps>
560
- <wirecard_checkoutseamless_ideal translate="label" module="wirecard_checkoutseamless">
561
- <label>Wirecard Checkout Seamless iDEAL</label>
562
- <frontend_type>text</frontend_type>
563
- <sort_order>5050</sort_order>
564
- <show_in_default>1</show_in_default>
565
- <show_in_website>1</show_in_website>
566
- <show_in_store>1</show_in_store>
567
- <fields>
568
- <active translate="label">
569
- <label>Enabled</label>
570
- <frontend_type>select</frontend_type>
571
- <source_model>adminhtml/system_config_source_yesno</source_model>
572
- <sort_order>20</sort_order>
573
- <show_in_default>1</show_in_default>
574
- <show_in_website>1</show_in_website>
575
- <show_in_store>1</show_in_store>
576
- </active>
577
- <sort_order translate="label">
578
- <label>Sorting order number</label>
579
- <frontend_type>text</frontend_type>
580
- <sort_order>30</sort_order>
581
- <show_in_default>1</show_in_default>
582
- <show_in_website>1</show_in_website>
583
- <show_in_store>1</show_in_store>
584
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
585
- </sort_order>
586
- <title translate="label">
587
- <label>Name for payment method</label>
588
- <frontend_type>text</frontend_type>
589
- <sort_order>40</sort_order>
590
- <show_in_default>1</show_in_default>
591
- <show_in_website>1</show_in_website>
592
- <show_in_store>1</show_in_store>
593
- <comment>The name for the payment method to be displayed in the online shop.</comment>
594
- </title>
595
- <allowspecific translate="label">
596
- <label>Payment method available for</label>
597
- <frontend_type>allowspecific</frontend_type>
598
- <sort_order>70</sort_order>
599
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
600
- </source_model>
601
- <show_in_default>1</show_in_default>
602
- <show_in_website>1</show_in_website>
603
- <show_in_store>1</show_in_store>
604
- </allowspecific>
605
- <specificcountry translate="label">
606
- <label>Specific countries</label>
607
- <frontend_type>multiselect</frontend_type>
608
- <sort_order>80</sort_order>
609
- <source_model>adminhtml/system_config_source_country
610
- </source_model>
611
- <show_in_default>1</show_in_default>
612
- <show_in_website>1</show_in_website>
613
- <show_in_store>1</show_in_store>
614
- </specificcountry>
615
- <min_order_total translate="label">
616
- <label>Minimum order total</label>
617
- <frontend_type>text</frontend_type>
618
- <sort_order>90</sort_order>
619
- <show_in_default>1</show_in_default>
620
- <show_in_website>1</show_in_website>
621
- <show_in_store>1</show_in_store>
622
- </min_order_total>
623
- <max_order_total translate="label">
624
- <label>Maximum order total</label>
625
- <frontend_type>text</frontend_type>
626
- <sort_order>100</sort_order>
627
- <show_in_default>1</show_in_default>
628
- <show_in_website>1</show_in_website>
629
- <show_in_store>0</show_in_store>
630
- </max_order_total>
631
- </fields>
632
- </wirecard_checkoutseamless_ideal>
633
- <wirecard_checkoutseamless_giropay translate="label" module="wirecard_checkoutseamless">
634
- <label>Wirecard Checkout Seamless giropay</label>
635
- <frontend_type>text</frontend_type>
636
- <sort_order>5060</sort_order>
637
- <show_in_default>1</show_in_default>
638
- <show_in_website>1</show_in_website>
639
- <show_in_store>1</show_in_store>
640
- <fields>
641
- <active translate="label">
642
- <label>Enabled</label>
643
- <frontend_type>select</frontend_type>
644
- <source_model>adminhtml/system_config_source_yesno</source_model>
645
- <sort_order>20</sort_order>
646
- <show_in_default>1</show_in_default>
647
- <show_in_website>1</show_in_website>
648
- <show_in_store>1</show_in_store>
649
- </active>
650
- <sort_order translate="label">
651
- <label>Sorting order number</label>
652
- <frontend_type>text</frontend_type>
653
- <sort_order>30</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
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
658
- </sort_order>
659
- <title translate="label">
660
- <label>Name for payment method</label>
661
- <frontend_type>text</frontend_type>
662
- <sort_order>40</sort_order>
663
- <show_in_default>1</show_in_default>
664
- <show_in_website>1</show_in_website>
665
- <show_in_store>1</show_in_store>
666
- <comment>The name for the payment method to be displayed in the online shop.</comment>
667
- </title>
668
- <allowspecific translate="label">
669
- <label>Payment method available for</label>
670
- <frontend_type>allowspecific</frontend_type>
671
- <sort_order>70</sort_order>
672
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
673
- </source_model>
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
- </allowspecific>
678
- <specificcountry translate="label">
679
- <label>Specific countries</label>
680
- <frontend_type>multiselect</frontend_type>
681
- <sort_order>80</sort_order>
682
- <source_model>adminhtml/system_config_source_country
683
- </source_model>
684
- <show_in_default>1</show_in_default>
685
- <show_in_website>1</show_in_website>
686
- <show_in_store>1</show_in_store>
687
- </specificcountry>
688
- <min_order_total translate="label">
689
- <label>Minimum order total</label>
690
- <frontend_type>text</frontend_type>
691
- <sort_order>90</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
- </min_order_total>
696
- <max_order_total translate="label">
697
- <label>Maximum order total</label>
698
- <frontend_type>text</frontend_type>
699
- <sort_order>100</sort_order>
700
- <show_in_default>1</show_in_default>
701
- <show_in_website>1</show_in_website>
702
- <show_in_store>0</show_in_store>
703
- </max_order_total>
704
- </fields>
705
- </wirecard_checkoutseamless_giropay>
706
- <wirecard_checkoutseamless_tatrapay translate="label" module="wirecard_checkoutseamless">
707
- <label>Wirecard Checkout Seamless TatraPay</label>
708
- <frontend_type>text</frontend_type>
709
- <sort_order>5070</sort_order>
710
- <show_in_default>1</show_in_default>
711
- <show_in_website>1</show_in_website>
712
- <show_in_store>1</show_in_store>
713
- <fields>
714
- <active translate="label">
715
- <label>Enabled</label>
716
- <frontend_type>select</frontend_type>
717
- <source_model>adminhtml/system_config_source_yesno</source_model>
718
- <sort_order>20</sort_order>
719
- <show_in_default>1</show_in_default>
720
- <show_in_website>1</show_in_website>
721
- <show_in_store>1</show_in_store>
722
- </active>
723
- <sort_order translate="label">
724
- <label>Sorting order number</label>
725
- <frontend_type>text</frontend_type>
726
- <sort_order>30</sort_order>
727
- <show_in_default>1</show_in_default>
728
- <show_in_website>1</show_in_website>
729
- <show_in_store>1</show_in_store>
730
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
731
- </sort_order>
732
- <title translate="label">
733
- <label>Name for payment method</label>
734
- <frontend_type>text</frontend_type>
735
- <sort_order>40</sort_order>
736
- <show_in_default>1</show_in_default>
737
- <show_in_website>1</show_in_website>
738
- <show_in_store>1</show_in_store>
739
- <comment>The name for the payment method to be displayed in the online shop.</comment>
740
- </title>
741
- <allowspecific translate="label">
742
- <label>Payment method available for</label>
743
- <frontend_type>allowspecific</frontend_type>
744
- <sort_order>70</sort_order>
745
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
746
- </source_model>
747
- <show_in_default>1</show_in_default>
748
- <show_in_website>1</show_in_website>
749
- <show_in_store>1</show_in_store>
750
- </allowspecific>
751
- <specificcountry translate="label">
752
- <label>Specific countries</label>
753
- <frontend_type>multiselect</frontend_type>
754
- <sort_order>80</sort_order>
755
- <source_model>adminhtml/system_config_source_country
756
- </source_model>
757
- <show_in_default>1</show_in_default>
758
- <show_in_website>1</show_in_website>
759
- <show_in_store>1</show_in_store>
760
- </specificcountry>
761
- <min_order_total translate="label">
762
- <label>Minimum order total</label>
763
- <frontend_type>text</frontend_type>
764
- <sort_order>90</sort_order>
765
- <show_in_default>1</show_in_default>
766
- <show_in_website>1</show_in_website>
767
- <show_in_store>1</show_in_store>
768
- </min_order_total>
769
- <max_order_total translate="label">
770
- <label>Maximum order total</label>
771
- <frontend_type>text</frontend_type>
772
- <sort_order>100</sort_order>
773
- <show_in_default>1</show_in_default>
774
- <show_in_website>1</show_in_website>
775
- <show_in_store>0</show_in_store>
776
- </max_order_total>
777
- </fields>
778
- </wirecard_checkoutseamless_tatrapay>
779
- <wirecard_checkoutseamless_sofortbanking translate="label" module="wirecard_checkoutseamless">
780
- <label>Wirecard Checkout Seamless SOFORT Banking (PIN/TAN)</label>
781
- <frontend_type>text</frontend_type>
782
- <sort_order>5080</sort_order>
783
- <show_in_default>1</show_in_default>
784
- <show_in_website>1</show_in_website>
785
- <show_in_store>1</show_in_store>
786
- <fields>
787
- <active translate="label">
788
- <label>Enabled</label>
789
- <frontend_type>select</frontend_type>
790
- <source_model>adminhtml/system_config_source_yesno</source_model>
791
- <sort_order>20</sort_order>
792
- <show_in_default>1</show_in_default>
793
- <show_in_website>1</show_in_website>
794
- <show_in_store>1</show_in_store>
795
- </active>
796
- <sort_order translate="label">
797
- <label>Sorting order number</label>
798
- <frontend_type>text</frontend_type>
799
- <sort_order>30</sort_order>
800
- <show_in_default>1</show_in_default>
801
- <show_in_website>1</show_in_website>
802
- <show_in_store>1</show_in_store>
803
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
804
- </sort_order>
805
- <title translate="label">
806
- <label>Name for payment method</label>
807
- <frontend_type>text</frontend_type>
808
- <sort_order>40</sort_order>
809
- <show_in_default>1</show_in_default>
810
- <show_in_website>1</show_in_website>
811
- <show_in_store>1</show_in_store>
812
- <comment>The name for the payment method to be displayed in the online shop.</comment>
813
- </title>
814
- <allowspecific translate="label">
815
- <label>Payment method available for</label>
816
- <frontend_type>allowspecific</frontend_type>
817
- <sort_order>70</sort_order>
818
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
819
- </source_model>
820
- <show_in_default>1</show_in_default>
821
- <show_in_website>1</show_in_website>
822
- <show_in_store>1</show_in_store>
823
- </allowspecific>
824
- <specificcountry translate="label">
825
- <label>Specific countries</label>
826
- <frontend_type>multiselect</frontend_type>
827
- <sort_order>80</sort_order>
828
- <source_model>adminhtml/system_config_source_country
829
- </source_model>
830
- <show_in_default>1</show_in_default>
831
- <show_in_website>1</show_in_website>
832
- <show_in_store>1</show_in_store>
833
- </specificcountry>
834
- <min_order_total translate="label">
835
- <label>Minimum order total</label>
836
- <frontend_type>text</frontend_type>
837
- <sort_order>90</sort_order>
838
- <show_in_default>1</show_in_default>
839
- <show_in_website>1</show_in_website>
840
- <show_in_store>1</show_in_store>
841
- </min_order_total>
842
- <max_order_total translate="label">
843
- <label>Maximum order total</label>
844
- <frontend_type>text</frontend_type>
845
- <sort_order>100</sort_order>
846
- <show_in_default>1</show_in_default>
847
- <show_in_website>1</show_in_website>
848
- <show_in_store>0</show_in_store>
849
- </max_order_total>
850
- </fields>
851
- </wirecard_checkoutseamless_sofortbanking>
852
- <wirecard_checkoutseamless_skrilldirect translate="label" module="wirecard_checkoutseamless">
853
- <label>Wirecard Checkout Seamless Skrill Direct</label>
854
- <frontend_type>text</frontend_type>
855
- <sort_order>5090</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
- <fields>
860
- <active translate="label">
861
- <label>Enabled</label>
862
- <frontend_type>select</frontend_type>
863
- <source_model>adminhtml/system_config_source_yesno</source_model>
864
- <sort_order>20</sort_order>
865
- <show_in_default>1</show_in_default>
866
- <show_in_website>1</show_in_website>
867
- <show_in_store>1</show_in_store>
868
- </active>
869
- <sort_order translate="label">
870
- <label>Sorting order number</label>
871
- <frontend_type>text</frontend_type>
872
- <sort_order>30</sort_order>
873
- <show_in_default>1</show_in_default>
874
- <show_in_website>1</show_in_website>
875
- <show_in_store>1</show_in_store>
876
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
877
- </sort_order>
878
- <title translate="label">
879
- <label>Name for payment method</label>
880
- <frontend_type>text</frontend_type>
881
- <sort_order>40</sort_order>
882
- <show_in_default>1</show_in_default>
883
- <show_in_website>1</show_in_website>
884
- <show_in_store>1</show_in_store>
885
- <comment>The name for the payment method to be displayed in the online shop.</comment>
886
- </title>
887
- <allowspecific translate="label">
888
- <label>Payment method available for</label>
889
- <frontend_type>allowspecific</frontend_type>
890
- <sort_order>70</sort_order>
891
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
892
- </source_model>
893
- <show_in_default>1</show_in_default>
894
- <show_in_website>1</show_in_website>
895
- <show_in_store>1</show_in_store>
896
- </allowspecific>
897
- <specificcountry translate="label">
898
- <label>Specific countries</label>
899
- <frontend_type>multiselect</frontend_type>
900
- <sort_order>80</sort_order>
901
- <source_model>adminhtml/system_config_source_country
902
- </source_model>
903
- <show_in_default>1</show_in_default>
904
- <show_in_website>1</show_in_website>
905
- <show_in_store>1</show_in_store>
906
- </specificcountry>
907
- <min_order_total translate="label">
908
- <label>Minimum order total</label>
909
- <frontend_type>text</frontend_type>
910
- <sort_order>90</sort_order>
911
- <show_in_default>1</show_in_default>
912
- <show_in_website>1</show_in_website>
913
- <show_in_store>1</show_in_store>
914
- </min_order_total>
915
- <max_order_total translate="label">
916
- <label>Maximum order total</label>
917
- <frontend_type>text</frontend_type>
918
- <sort_order>100</sort_order>
919
- <show_in_default>1</show_in_default>
920
- <show_in_website>1</show_in_website>
921
- <show_in_store>0</show_in_store>
922
- </max_order_total>
923
- </fields>
924
- </wirecard_checkoutseamless_skrilldirect>
925
- <wirecard_checkoutseamless_skrillwallet translate="label" module="wirecard_checkoutseamless">
926
- <label>Wirecard Checkout Seamless Skrill Digital Wallet</label>
927
- <frontend_type>text</frontend_type>
928
- <sort_order>5100</sort_order>
929
- <show_in_default>1</show_in_default>
930
- <show_in_website>1</show_in_website>
931
- <show_in_store>1</show_in_store>
932
- <fields>
933
- <active translate="label">
934
- <label>Enabled</label>
935
- <frontend_type>select</frontend_type>
936
- <source_model>adminhtml/system_config_source_yesno</source_model>
937
- <sort_order>20</sort_order>
938
- <show_in_default>1</show_in_default>
939
- <show_in_website>1</show_in_website>
940
- <show_in_store>1</show_in_store>
941
- </active>
942
- <sort_order translate="label">
943
- <label>Sorting order number</label>
944
- <frontend_type>text</frontend_type>
945
- <sort_order>30</sort_order>
946
- <show_in_default>1</show_in_default>
947
- <show_in_website>1</show_in_website>
948
- <show_in_store>1</show_in_store>
949
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
950
- </sort_order>
951
- <title translate="label">
952
- <label>Name for payment method</label>
953
- <frontend_type>text</frontend_type>
954
- <sort_order>40</sort_order>
955
- <show_in_default>1</show_in_default>
956
- <show_in_website>1</show_in_website>
957
- <show_in_store>1</show_in_store>
958
- <comment>The name for the payment method to be displayed in the online shop.</comment>
959
- </title>
960
- <allowspecific translate="label">
961
- <label>Payment method available for</label>
962
- <frontend_type>allowspecific</frontend_type>
963
- <sort_order>70</sort_order>
964
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
965
- </source_model>
966
- <show_in_default>1</show_in_default>
967
- <show_in_website>1</show_in_website>
968
- <show_in_store>1</show_in_store>
969
- </allowspecific>
970
- <specificcountry translate="label">
971
- <label>Specific countries</label>
972
- <frontend_type>multiselect</frontend_type>
973
- <sort_order>80</sort_order>
974
- <source_model>adminhtml/system_config_source_country
975
- </source_model>
976
- <show_in_default>1</show_in_default>
977
- <show_in_website>1</show_in_website>
978
- <show_in_store>1</show_in_store>
979
- </specificcountry>
980
- <min_order_total translate="label">
981
- <label>Minimum order total</label>
982
- <frontend_type>text</frontend_type>
983
- <sort_order>90</sort_order>
984
- <show_in_default>1</show_in_default>
985
- <show_in_website>1</show_in_website>
986
- <show_in_store>1</show_in_store>
987
- </min_order_total>
988
- <max_order_total translate="label">
989
- <label>Maximum order total</label>
990
- <frontend_type>text</frontend_type>
991
- <sort_order>100</sort_order>
992
- <show_in_default>1</show_in_default>
993
- <show_in_website>1</show_in_website>
994
- <show_in_store>0</show_in_store>
995
- </max_order_total>
996
- </fields>
997
- </wirecard_checkoutseamless_skrillwallet>
998
- <wirecard_checkoutseamless_mpass translate="label" module="wirecard_checkoutseamless">
999
- <label>Wirecard Checkout Seamless mpass</label>
1000
- <frontend_type>text</frontend_type>
1001
- <sort_order>5110</sort_order>
1002
- <show_in_default>1</show_in_default>
1003
- <show_in_website>1</show_in_website>
1004
- <show_in_store>1</show_in_store>
1005
- <fields>
1006
- <active translate="label">
1007
- <label>Enabled</label>
1008
- <frontend_type>select</frontend_type>
1009
- <source_model>adminhtml/system_config_source_yesno</source_model>
1010
- <sort_order>20</sort_order>
1011
- <show_in_default>1</show_in_default>
1012
- <show_in_website>1</show_in_website>
1013
- <show_in_store>1</show_in_store>
1014
- </active>
1015
- <sort_order translate="label">
1016
- <label>Sorting order number</label>
1017
- <frontend_type>text</frontend_type>
1018
- <sort_order>30</sort_order>
1019
- <show_in_default>1</show_in_default>
1020
- <show_in_website>1</show_in_website>
1021
- <show_in_store>1</show_in_store>
1022
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1023
- </sort_order>
1024
- <title translate="label">
1025
- <label>Name for payment method</label>
1026
- <frontend_type>text</frontend_type>
1027
- <sort_order>40</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>The name for the payment method to be displayed in the online shop.</comment>
1032
- </title>
1033
- <allowspecific translate="label">
1034
- <label>Payment method available for</label>
1035
- <frontend_type>allowspecific</frontend_type>
1036
- <sort_order>70</sort_order>
1037
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1038
- </source_model>
1039
- <show_in_default>1</show_in_default>
1040
- <show_in_website>1</show_in_website>
1041
- <show_in_store>1</show_in_store>
1042
- </allowspecific>
1043
- <specificcountry translate="label">
1044
- <label>Specific countries</label>
1045
- <frontend_type>multiselect</frontend_type>
1046
- <sort_order>80</sort_order>
1047
- <source_model>adminhtml/system_config_source_country
1048
- </source_model>
1049
- <show_in_default>1</show_in_default>
1050
- <show_in_website>1</show_in_website>
1051
- <show_in_store>1</show_in_store>
1052
- </specificcountry>
1053
- <min_order_total translate="label">
1054
- <label>Minimum order total</label>
1055
- <frontend_type>text</frontend_type>
1056
- <sort_order>90</sort_order>
1057
- <show_in_default>1</show_in_default>
1058
- <show_in_website>1</show_in_website>
1059
- <show_in_store>1</show_in_store>
1060
- </min_order_total>
1061
- <max_order_total translate="label">
1062
- <label>Maximum order total</label>
1063
- <frontend_type>text</frontend_type>
1064
- <sort_order>100</sort_order>
1065
- <show_in_default>1</show_in_default>
1066
- <show_in_website>1</show_in_website>
1067
- <show_in_store>0</show_in_store>
1068
- </max_order_total>
1069
- </fields>
1070
- </wirecard_checkoutseamless_mpass>
1071
- <wirecard_checkoutseamless_bmc translate="label" module="wirecard_checkoutseamless">
1072
- <label>Wirecard Checkout Seamless BanContact/Mister Cash</label>
1073
- <frontend_type>text</frontend_type>
1074
- <sort_order>5120</sort_order>
1075
- <show_in_default>1</show_in_default>
1076
- <show_in_website>1</show_in_website>
1077
- <show_in_store>1</show_in_store>
1078
- <fields>
1079
- <active translate="label">
1080
- <label>Enabled</label>
1081
- <frontend_type>select</frontend_type>
1082
- <source_model>adminhtml/system_config_source_yesno</source_model>
1083
- <sort_order>20</sort_order>
1084
- <show_in_default>1</show_in_default>
1085
- <show_in_website>1</show_in_website>
1086
- <show_in_store>1</show_in_store>
1087
- </active>
1088
- <sort_order translate="label">
1089
- <label>Sorting order number</label>
1090
- <frontend_type>text</frontend_type>
1091
- <sort_order>30</sort_order>
1092
- <show_in_default>1</show_in_default>
1093
- <show_in_website>1</show_in_website>
1094
- <show_in_store>1</show_in_store>
1095
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1096
- </sort_order>
1097
- <title translate="label">
1098
- <label>Name for payment method</label>
1099
- <frontend_type>text</frontend_type>
1100
- <sort_order>40</sort_order>
1101
- <show_in_default>1</show_in_default>
1102
- <show_in_website>1</show_in_website>
1103
- <show_in_store>1</show_in_store>
1104
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1105
- </title>
1106
- <allowspecific translate="label">
1107
- <label>Payment method available for</label>
1108
- <frontend_type>allowspecific</frontend_type>
1109
- <sort_order>70</sort_order>
1110
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1111
- </source_model>
1112
- <show_in_default>1</show_in_default>
1113
- <show_in_website>1</show_in_website>
1114
- <show_in_store>1</show_in_store>
1115
- </allowspecific>
1116
- <specificcountry translate="label">
1117
- <label>Specific countries</label>
1118
- <frontend_type>multiselect</frontend_type>
1119
- <sort_order>80</sort_order>
1120
- <source_model>adminhtml/system_config_source_country
1121
- </source_model>
1122
- <show_in_default>1</show_in_default>
1123
- <show_in_website>1</show_in_website>
1124
- <show_in_store>1</show_in_store>
1125
- </specificcountry>
1126
- <min_order_total translate="label">
1127
- <label>Minimum order total</label>
1128
- <frontend_type>text</frontend_type>
1129
- <sort_order>90</sort_order>
1130
- <show_in_default>1</show_in_default>
1131
- <show_in_website>1</show_in_website>
1132
- <show_in_store>1</show_in_store>
1133
- </min_order_total>
1134
- <max_order_total translate="label">
1135
- <label>Maximum order total</label>
1136
- <frontend_type>text</frontend_type>
1137
- <sort_order>100</sort_order>
1138
- <show_in_default>1</show_in_default>
1139
- <show_in_website>1</show_in_website>
1140
- <show_in_store>0</show_in_store>
1141
- </max_order_total>
1142
- </fields>
1143
- </wirecard_checkoutseamless_bmc>
1144
- <wirecard_checkoutseamless_p24 translate="label" module="wirecard_checkoutseamless">
1145
- <label>Wirecard Checkout Seamless Przelewy24</label>
1146
- <frontend_type>text</frontend_type>
1147
- <sort_order>5130</sort_order>
1148
- <show_in_default>1</show_in_default>
1149
- <show_in_website>1</show_in_website>
1150
- <show_in_store>1</show_in_store>
1151
- <fields>
1152
- <active translate="label">
1153
- <label>Enabled</label>
1154
- <frontend_type>select</frontend_type>
1155
- <source_model>adminhtml/system_config_source_yesno</source_model>
1156
- <sort_order>20</sort_order>
1157
- <show_in_default>1</show_in_default>
1158
- <show_in_website>1</show_in_website>
1159
- <show_in_store>1</show_in_store>
1160
- </active>
1161
- <sort_order translate="label">
1162
- <label>Sorting order number</label>
1163
- <frontend_type>text</frontend_type>
1164
- <sort_order>30</sort_order>
1165
- <show_in_default>1</show_in_default>
1166
- <show_in_website>1</show_in_website>
1167
- <show_in_store>1</show_in_store>
1168
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1169
- </sort_order>
1170
- <title translate="label">
1171
- <label>Name for payment method</label>
1172
- <frontend_type>text</frontend_type>
1173
- <sort_order>40</sort_order>
1174
- <show_in_default>1</show_in_default>
1175
- <show_in_website>1</show_in_website>
1176
- <show_in_store>1</show_in_store>
1177
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1178
- </title>
1179
- <allowspecific translate="label">
1180
- <label>Payment method available for</label>
1181
- <frontend_type>allowspecific</frontend_type>
1182
- <sort_order>70</sort_order>
1183
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1184
- </source_model>
1185
- <show_in_default>1</show_in_default>
1186
- <show_in_website>1</show_in_website>
1187
- <show_in_store>1</show_in_store>
1188
- </allowspecific>
1189
- <specificcountry translate="label">
1190
- <label>Specific countries</label>
1191
- <frontend_type>multiselect</frontend_type>
1192
- <sort_order>80</sort_order>
1193
- <source_model>adminhtml/system_config_source_country
1194
- </source_model>
1195
- <show_in_default>1</show_in_default>
1196
- <show_in_website>1</show_in_website>
1197
- <show_in_store>1</show_in_store>
1198
- </specificcountry>
1199
- <min_order_total translate="label">
1200
- <label>Minimum order total</label>
1201
- <frontend_type>text</frontend_type>
1202
- <sort_order>90</sort_order>
1203
- <show_in_default>1</show_in_default>
1204
- <show_in_website>1</show_in_website>
1205
- <show_in_store>1</show_in_store>
1206
- </min_order_total>
1207
- <max_order_total translate="label">
1208
- <label>Maximum order total</label>
1209
- <frontend_type>text</frontend_type>
1210
- <sort_order>100</sort_order>
1211
- <show_in_default>1</show_in_default>
1212
- <show_in_website>1</show_in_website>
1213
- <show_in_store>0</show_in_store>
1214
- </max_order_total>
1215
- </fields>
1216
- </wirecard_checkoutseamless_p24>
1217
- <wirecard_checkoutseamless_poli translate="label" module="wirecard_checkoutseamless">
1218
- <label>Wirecard Checkout Seamless POLi</label>
1219
- <frontend_type>text</frontend_type>
1220
- <sort_order>5140</sort_order>
1221
- <show_in_default>1</show_in_default>
1222
- <show_in_website>1</show_in_website>
1223
- <show_in_store>1</show_in_store>
1224
- <fields>
1225
- <active translate="label">
1226
- <label>Enabled</label>
1227
- <frontend_type>select</frontend_type>
1228
- <source_model>adminhtml/system_config_source_yesno</source_model>
1229
- <sort_order>20</sort_order>
1230
- <show_in_default>1</show_in_default>
1231
- <show_in_website>1</show_in_website>
1232
- <show_in_store>1</show_in_store>
1233
- </active>
1234
- <sort_order translate="label">
1235
- <label>Sorting order number</label>
1236
- <frontend_type>text</frontend_type>
1237
- <sort_order>30</sort_order>
1238
- <show_in_default>1</show_in_default>
1239
- <show_in_website>1</show_in_website>
1240
- <show_in_store>1</show_in_store>
1241
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1242
- </sort_order>
1243
- <title translate="label">
1244
- <label>Name for payment method</label>
1245
- <frontend_type>text</frontend_type>
1246
- <sort_order>40</sort_order>
1247
- <show_in_default>1</show_in_default>
1248
- <show_in_website>1</show_in_website>
1249
- <show_in_store>1</show_in_store>
1250
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1251
- </title>
1252
- <allowspecific translate="label">
1253
- <label>Payment method available for</label>
1254
- <frontend_type>allowspecific</frontend_type>
1255
- <sort_order>70</sort_order>
1256
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1257
- </source_model>
1258
- <show_in_default>1</show_in_default>
1259
- <show_in_website>1</show_in_website>
1260
- <show_in_store>1</show_in_store>
1261
- </allowspecific>
1262
- <specificcountry translate="label">
1263
- <label>Specific countries</label>
1264
- <frontend_type>multiselect</frontend_type>
1265
- <sort_order>80</sort_order>
1266
- <source_model>adminhtml/system_config_source_country
1267
- </source_model>
1268
- <show_in_default>1</show_in_default>
1269
- <show_in_website>1</show_in_website>
1270
- <show_in_store>1</show_in_store>
1271
- </specificcountry>
1272
- <min_order_total translate="label">
1273
- <label>Minimum order total</label>
1274
- <frontend_type>text</frontend_type>
1275
- <sort_order>90</sort_order>
1276
- <show_in_default>1</show_in_default>
1277
- <show_in_website>1</show_in_website>
1278
- <show_in_store>1</show_in_store>
1279
- </min_order_total>
1280
- <max_order_total translate="label">
1281
- <label>Maximum order total</label>
1282
- <frontend_type>text</frontend_type>
1283
- <sort_order>100</sort_order>
1284
- <show_in_default>1</show_in_default>
1285
- <show_in_website>1</show_in_website>
1286
- <show_in_store>0</show_in_store>
1287
- </max_order_total>
1288
- </fields>
1289
- </wirecard_checkoutseamless_poli>
1290
- <wirecard_checkoutseamless_moneta translate="label" module="wirecard_checkoutseamless">
1291
- <label>Wirecard Checkout Seamless moneta.ru</label>
1292
- <frontend_type>text</frontend_type>
1293
- <sort_order>5150</sort_order>
1294
- <show_in_default>1</show_in_default>
1295
- <show_in_website>1</show_in_website>
1296
- <show_in_store>1</show_in_store>
1297
- <fields>
1298
- <active translate="label">
1299
- <label>Enabled</label>
1300
- <frontend_type>select</frontend_type>
1301
- <source_model>adminhtml/system_config_source_yesno</source_model>
1302
- <sort_order>20</sort_order>
1303
- <show_in_default>1</show_in_default>
1304
- <show_in_website>1</show_in_website>
1305
- <show_in_store>1</show_in_store>
1306
- </active>
1307
- <sort_order translate="label">
1308
- <label>Sorting order number</label>
1309
- <frontend_type>text</frontend_type>
1310
- <sort_order>30</sort_order>
1311
- <show_in_default>1</show_in_default>
1312
- <show_in_website>1</show_in_website>
1313
- <show_in_store>1</show_in_store>
1314
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1315
- </sort_order>
1316
- <title translate="label">
1317
- <label>Name for payment method</label>
1318
- <frontend_type>text</frontend_type>
1319
- <sort_order>40</sort_order>
1320
- <show_in_default>1</show_in_default>
1321
- <show_in_website>1</show_in_website>
1322
- <show_in_store>1</show_in_store>
1323
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1324
- </title>
1325
- <allowspecific translate="label">
1326
- <label>Payment method available for</label>
1327
- <frontend_type>allowspecific</frontend_type>
1328
- <sort_order>70</sort_order>
1329
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1330
- </source_model>
1331
- <show_in_default>1</show_in_default>
1332
- <show_in_website>1</show_in_website>
1333
- <show_in_store>1</show_in_store>
1334
- </allowspecific>
1335
- <specificcountry translate="label">
1336
- <label>Specific countries</label>
1337
- <frontend_type>multiselect</frontend_type>
1338
- <sort_order>80</sort_order>
1339
- <source_model>adminhtml/system_config_source_country
1340
- </source_model>
1341
- <show_in_default>1</show_in_default>
1342
- <show_in_website>1</show_in_website>
1343
- <show_in_store>1</show_in_store>
1344
- </specificcountry>
1345
- <min_order_total translate="label">
1346
- <label>Minimum order total</label>
1347
- <frontend_type>text</frontend_type>
1348
- <sort_order>90</sort_order>
1349
- <show_in_default>1</show_in_default>
1350
- <show_in_website>1</show_in_website>
1351
- <show_in_store>1</show_in_store>
1352
- </min_order_total>
1353
- <max_order_total translate="label">
1354
- <label>Maximum order total</label>
1355
- <frontend_type>text</frontend_type>
1356
- <sort_order>100</sort_order>
1357
- <show_in_default>1</show_in_default>
1358
- <show_in_website>1</show_in_website>
1359
- <show_in_store>0</show_in_store>
1360
- </max_order_total>
1361
- </fields>
1362
- </wirecard_checkoutseamless_moneta>
1363
- <wirecard_checkoutseamless_ekonto translate="label" module="wirecard_checkoutseamless">
1364
- <label>Wirecard Checkout Seamless eKonto</label>
1365
- <frontend_type>text</frontend_type>
1366
- <sort_order>5160</sort_order>
1367
- <show_in_default>1</show_in_default>
1368
- <show_in_website>1</show_in_website>
1369
- <show_in_store>1</show_in_store>
1370
- <fields>
1371
- <active translate="label">
1372
- <label>Enabled</label>
1373
- <frontend_type>select</frontend_type>
1374
- <source_model>adminhtml/system_config_source_yesno</source_model>
1375
- <sort_order>20</sort_order>
1376
- <show_in_default>1</show_in_default>
1377
- <show_in_website>1</show_in_website>
1378
- <show_in_store>1</show_in_store>
1379
- </active>
1380
- <sort_order translate="label">
1381
- <label>Sorting order number</label>
1382
- <frontend_type>text</frontend_type>
1383
- <sort_order>30</sort_order>
1384
- <show_in_default>1</show_in_default>
1385
- <show_in_website>1</show_in_website>
1386
- <show_in_store>1</show_in_store>
1387
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1388
- </sort_order>
1389
- <title translate="label">
1390
- <label>Name for payment method</label>
1391
- <frontend_type>text</frontend_type>
1392
- <sort_order>40</sort_order>
1393
- <show_in_default>1</show_in_default>
1394
- <show_in_website>1</show_in_website>
1395
- <show_in_store>1</show_in_store>
1396
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1397
- </title>
1398
- <allowspecific translate="label">
1399
- <label>Payment method available for</label>
1400
- <frontend_type>allowspecific</frontend_type>
1401
- <sort_order>70</sort_order>
1402
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1403
- </source_model>
1404
- <show_in_default>1</show_in_default>
1405
- <show_in_website>1</show_in_website>
1406
- <show_in_store>1</show_in_store>
1407
- </allowspecific>
1408
- <specificcountry translate="label">
1409
- <label>Specific countries</label>
1410
- <frontend_type>multiselect</frontend_type>
1411
- <sort_order>80</sort_order>
1412
- <source_model>adminhtml/system_config_source_country
1413
- </source_model>
1414
- <show_in_default>1</show_in_default>
1415
- <show_in_website>1</show_in_website>
1416
- <show_in_store>1</show_in_store>
1417
- </specificcountry>
1418
- <min_order_total translate="label">
1419
- <label>Minimum order total</label>
1420
- <frontend_type>text</frontend_type>
1421
- <sort_order>90</sort_order>
1422
- <show_in_default>1</show_in_default>
1423
- <show_in_website>1</show_in_website>
1424
- <show_in_store>1</show_in_store>
1425
- </min_order_total>
1426
- <max_order_total translate="label">
1427
- <label>Maximum order total</label>
1428
- <frontend_type>text</frontend_type>
1429
- <sort_order>100</sort_order>
1430
- <show_in_default>1</show_in_default>
1431
- <show_in_website>1</show_in_website>
1432
- <show_in_store>0</show_in_store>
1433
- </max_order_total>
1434
- </fields>
1435
- </wirecard_checkoutseamless_ekonto>
1436
- <wirecard_checkoutseamless_trustly translate="label" module="wirecard_checkoutseamless">
1437
- <label>Wirecard Checkout Seamless Trustly</label>
1438
- <frontend_type>text</frontend_type>
1439
- <sort_order>5170</sort_order>
1440
- <show_in_default>1</show_in_default>
1441
- <show_in_website>1</show_in_website>
1442
- <show_in_store>1</show_in_store>
1443
- <fields>
1444
- <active translate="label">
1445
- <label>Enabled</label>
1446
- <frontend_type>select</frontend_type>
1447
- <source_model>adminhtml/system_config_source_yesno</source_model>
1448
- <sort_order>20</sort_order>
1449
- <show_in_default>1</show_in_default>
1450
- <show_in_website>1</show_in_website>
1451
- <show_in_store>1</show_in_store>
1452
- </active>
1453
- <sort_order translate="label">
1454
- <label>Sorting order number</label>
1455
- <frontend_type>text</frontend_type>
1456
- <sort_order>30</sort_order>
1457
- <show_in_default>1</show_in_default>
1458
- <show_in_website>1</show_in_website>
1459
- <show_in_store>1</show_in_store>
1460
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1461
- </sort_order>
1462
- <title translate="label">
1463
- <label>Name for payment method</label>
1464
- <frontend_type>text</frontend_type>
1465
- <sort_order>40</sort_order>
1466
- <show_in_default>1</show_in_default>
1467
- <show_in_website>1</show_in_website>
1468
- <show_in_store>1</show_in_store>
1469
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1470
- </title>
1471
- <allowspecific translate="label">
1472
- <label>Payment method available for</label>
1473
- <frontend_type>allowspecific</frontend_type>
1474
- <sort_order>70</sort_order>
1475
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1476
- </source_model>
1477
- <show_in_default>1</show_in_default>
1478
- <show_in_website>1</show_in_website>
1479
- <show_in_store>1</show_in_store>
1480
- </allowspecific>
1481
- <specificcountry translate="label">
1482
- <label>Specific countries</label>
1483
- <frontend_type>multiselect</frontend_type>
1484
- <sort_order>80</sort_order>
1485
- <source_model>adminhtml/system_config_source_country
1486
- </source_model>
1487
- <show_in_default>1</show_in_default>
1488
- <show_in_website>1</show_in_website>
1489
- <show_in_store>1</show_in_store>
1490
- </specificcountry>
1491
- <min_order_total translate="label">
1492
- <label>Minimum order total</label>
1493
- <frontend_type>text</frontend_type>
1494
- <sort_order>90</sort_order>
1495
- <show_in_default>1</show_in_default>
1496
- <show_in_website>1</show_in_website>
1497
- <show_in_store>1</show_in_store>
1498
- </min_order_total>
1499
- <max_order_total translate="label">
1500
- <label>Maximum order total</label>
1501
- <frontend_type>text</frontend_type>
1502
- <sort_order>100</sort_order>
1503
- <show_in_default>1</show_in_default>
1504
- <show_in_website>1</show_in_website>
1505
- <show_in_store>0</show_in_store>
1506
- </max_order_total>
1507
- </fields>
1508
- </wirecard_checkoutseamless_trustly>
1509
- <wirecard_checkoutseamless_paybox translate="label" module="wirecard_checkoutseamless">
1510
- <label>Wirecard Checkout Seamless paybox</label>
1511
- <frontend_type>text</frontend_type>
1512
- <sort_order>5180</sort_order>
1513
- <show_in_default>1</show_in_default>
1514
- <show_in_website>1</show_in_website>
1515
- <show_in_store>1</show_in_store>
1516
- <fields>
1517
- <active translate="label">
1518
- <label>Enabled</label>
1519
- <frontend_type>select</frontend_type>
1520
- <source_model>adminhtml/system_config_source_yesno</source_model>
1521
- <sort_order>20</sort_order>
1522
- <show_in_default>1</show_in_default>
1523
- <show_in_website>1</show_in_website>
1524
- <show_in_store>1</show_in_store>
1525
- </active>
1526
- <sort_order translate="label">
1527
- <label>Sorting order number</label>
1528
- <frontend_type>text</frontend_type>
1529
- <sort_order>30</sort_order>
1530
- <show_in_default>1</show_in_default>
1531
- <show_in_website>1</show_in_website>
1532
- <show_in_store>1</show_in_store>
1533
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1534
- </sort_order>
1535
- <title translate="label">
1536
- <label>Name for payment method</label>
1537
- <frontend_type>text</frontend_type>
1538
- <sort_order>40</sort_order>
1539
- <show_in_default>1</show_in_default>
1540
- <show_in_website>1</show_in_website>
1541
- <show_in_store>1</show_in_store>
1542
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1543
- </title>
1544
- <allowspecific translate="label">
1545
- <label>Payment method available for</label>
1546
- <frontend_type>allowspecific</frontend_type>
1547
- <sort_order>70</sort_order>
1548
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1549
- </source_model>
1550
- <show_in_default>1</show_in_default>
1551
- <show_in_website>1</show_in_website>
1552
- <show_in_store>1</show_in_store>
1553
- </allowspecific>
1554
- <specificcountry translate="label">
1555
- <label>Specific countries</label>
1556
- <frontend_type>multiselect</frontend_type>
1557
- <sort_order>80</sort_order>
1558
- <source_model>adminhtml/system_config_source_country
1559
- </source_model>
1560
- <show_in_default>1</show_in_default>
1561
- <show_in_website>1</show_in_website>
1562
- <show_in_store>1</show_in_store>
1563
- </specificcountry>
1564
- <min_order_total translate="label">
1565
- <label>Minimum order total</label>
1566
- <frontend_type>text</frontend_type>
1567
- <sort_order>90</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
- </min_order_total>
1572
- <max_order_total translate="label">
1573
- <label>Maximum order total</label>
1574
- <frontend_type>text</frontend_type>
1575
- <sort_order>100</sort_order>
1576
- <show_in_default>1</show_in_default>
1577
- <show_in_website>1</show_in_website>
1578
- <show_in_store>0</show_in_store>
1579
- </max_order_total>
1580
- </fields>
1581
- </wirecard_checkoutseamless_paybox>
1582
- <wirecard_checkoutseamless_paysafecard translate="label" module="wirecard_checkoutseamless">
1583
- <label>Wirecard Checkout Seamless paysafecard</label>
1584
- <frontend_type>text</frontend_type>
1585
- <sort_order>5190</sort_order>
1586
- <show_in_default>1</show_in_default>
1587
- <show_in_website>1</show_in_website>
1588
- <show_in_store>1</show_in_store>
1589
- <fields>
1590
- <active translate="label">
1591
- <label>Enabled</label>
1592
- <frontend_type>select</frontend_type>
1593
- <source_model>adminhtml/system_config_source_yesno</source_model>
1594
- <sort_order>20</sort_order>
1595
- <show_in_default>1</show_in_default>
1596
- <show_in_website>1</show_in_website>
1597
- <show_in_store>1</show_in_store>
1598
- </active>
1599
- <sort_order translate="label">
1600
- <label>Sorting order number</label>
1601
- <frontend_type>text</frontend_type>
1602
- <sort_order>30</sort_order>
1603
- <show_in_default>1</show_in_default>
1604
- <show_in_website>1</show_in_website>
1605
- <show_in_store>1</show_in_store>
1606
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1607
- </sort_order>
1608
- <title translate="label">
1609
- <label>Name for payment method</label>
1610
- <frontend_type>text</frontend_type>
1611
- <sort_order>40</sort_order>
1612
- <show_in_default>1</show_in_default>
1613
- <show_in_website>1</show_in_website>
1614
- <show_in_store>1</show_in_store>
1615
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1616
- </title>
1617
- <allowspecific translate="label">
1618
- <label>Payment method available for</label>
1619
- <frontend_type>allowspecific</frontend_type>
1620
- <sort_order>70</sort_order>
1621
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1622
- </source_model>
1623
- <show_in_default>1</show_in_default>
1624
- <show_in_website>1</show_in_website>
1625
- <show_in_store>1</show_in_store>
1626
- </allowspecific>
1627
- <specificcountry translate="label">
1628
- <label>Specific countries</label>
1629
- <frontend_type>multiselect</frontend_type>
1630
- <sort_order>80</sort_order>
1631
- <source_model>adminhtml/system_config_source_country
1632
- </source_model>
1633
- <show_in_default>1</show_in_default>
1634
- <show_in_website>1</show_in_website>
1635
- <show_in_store>1</show_in_store>
1636
- </specificcountry>
1637
- <min_order_total translate="label">
1638
- <label>Minimum order total</label>
1639
- <frontend_type>text</frontend_type>
1640
- <sort_order>90</sort_order>
1641
- <show_in_default>1</show_in_default>
1642
- <show_in_website>1</show_in_website>
1643
- <show_in_store>1</show_in_store>
1644
- </min_order_total>
1645
- <max_order_total translate="label">
1646
- <label>Maximum order total</label>
1647
- <frontend_type>text</frontend_type>
1648
- <sort_order>100</sort_order>
1649
- <show_in_default>1</show_in_default>
1650
- <show_in_website>1</show_in_website>
1651
- <show_in_store>0</show_in_store>
1652
- </max_order_total>
1653
- </fields>
1654
- </wirecard_checkoutseamless_paysafecard>
1655
- <wirecard_checkoutseamless_quick translate="label" module="wirecard_checkoutseamless">
1656
- <label>Wirecard Checkout Seamless @Quick</label>
1657
- <frontend_type>text</frontend_type>
1658
- <sort_order>5200</sort_order>
1659
- <show_in_default>1</show_in_default>
1660
- <show_in_website>1</show_in_website>
1661
- <show_in_store>1</show_in_store>
1662
- <fields>
1663
- <active translate="label">
1664
- <label>Enabled</label>
1665
- <frontend_type>select</frontend_type>
1666
- <source_model>adminhtml/system_config_source_yesno</source_model>
1667
- <sort_order>20</sort_order>
1668
- <show_in_default>1</show_in_default>
1669
- <show_in_website>1</show_in_website>
1670
- <show_in_store>1</show_in_store>
1671
- </active>
1672
- <sort_order translate="label">
1673
- <label>Sorting order number</label>
1674
- <frontend_type>text</frontend_type>
1675
- <sort_order>30</sort_order>
1676
- <show_in_default>1</show_in_default>
1677
- <show_in_website>1</show_in_website>
1678
- <show_in_store>1</show_in_store>
1679
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1680
- </sort_order>
1681
- <title translate="label">
1682
- <label>Name for payment method</label>
1683
- <frontend_type>text</frontend_type>
1684
- <sort_order>40</sort_order>
1685
- <show_in_default>1</show_in_default>
1686
- <show_in_website>1</show_in_website>
1687
- <show_in_store>1</show_in_store>
1688
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1689
- </title>
1690
- <allowspecific translate="label">
1691
- <label>Payment method available for</label>
1692
- <frontend_type>allowspecific</frontend_type>
1693
- <sort_order>70</sort_order>
1694
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1695
- </source_model>
1696
- <show_in_default>1</show_in_default>
1697
- <show_in_website>1</show_in_website>
1698
- <show_in_store>1</show_in_store>
1699
- </allowspecific>
1700
- <specificcountry translate="label">
1701
- <label>Specific countries</label>
1702
- <frontend_type>multiselect</frontend_type>
1703
- <sort_order>80</sort_order>
1704
- <source_model>adminhtml/system_config_source_country
1705
- </source_model>
1706
- <show_in_default>1</show_in_default>
1707
- <show_in_website>1</show_in_website>
1708
- <show_in_store>1</show_in_store>
1709
- </specificcountry>
1710
- <min_order_total translate="label">
1711
- <label>Minimum order total</label>
1712
- <frontend_type>text</frontend_type>
1713
- <sort_order>90</sort_order>
1714
- <show_in_default>1</show_in_default>
1715
- <show_in_website>1</show_in_website>
1716
- <show_in_store>1</show_in_store>
1717
- </min_order_total>
1718
- <max_order_total translate="label">
1719
- <label>Maximum order total</label>
1720
- <frontend_type>text</frontend_type>
1721
- <sort_order>100</sort_order>
1722
- <show_in_default>1</show_in_default>
1723
- <show_in_website>1</show_in_website>
1724
- <show_in_store>0</show_in_store>
1725
- </max_order_total>
1726
- </fields>
1727
- </wirecard_checkoutseamless_quick>
1728
- <wirecard_checkoutseamless_paypal translate="label" module="wirecard_checkoutseamless">
1729
- <label>Wirecard Checkout Seamless PayPal</label>
1730
- <frontend_type>text</frontend_type>
1731
- <sort_order>5210</sort_order>
1732
- <show_in_default>1</show_in_default>
1733
- <show_in_website>1</show_in_website>
1734
- <show_in_store>1</show_in_store>
1735
- <fields>
1736
- <active translate="label">
1737
- <label>Enabled</label>
1738
- <frontend_type>select</frontend_type>
1739
- <source_model>adminhtml/system_config_source_yesno</source_model>
1740
- <sort_order>20</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
- </active>
1745
- <sort_order translate="label">
1746
- <label>Sorting order number</label>
1747
- <frontend_type>text</frontend_type>
1748
- <sort_order>30</sort_order>
1749
- <show_in_default>1</show_in_default>
1750
- <show_in_website>1</show_in_website>
1751
- <show_in_store>1</show_in_store>
1752
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1753
- </sort_order>
1754
- <title translate="label">
1755
- <label>Name for payment method</label>
1756
- <frontend_type>text</frontend_type>
1757
- <sort_order>40</sort_order>
1758
- <show_in_default>1</show_in_default>
1759
- <show_in_website>1</show_in_website>
1760
- <show_in_store>1</show_in_store>
1761
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1762
- </title>
1763
- <allowspecific translate="label">
1764
- <label>Payment method available for</label>
1765
- <frontend_type>allowspecific</frontend_type>
1766
- <sort_order>70</sort_order>
1767
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1768
- </source_model>
1769
- <show_in_default>1</show_in_default>
1770
- <show_in_website>1</show_in_website>
1771
- <show_in_store>1</show_in_store>
1772
- </allowspecific>
1773
- <specificcountry translate="label">
1774
- <label>Specific countries</label>
1775
- <frontend_type>multiselect</frontend_type>
1776
- <sort_order>80</sort_order>
1777
- <source_model>adminhtml/system_config_source_country
1778
- </source_model>
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
- </specificcountry>
1783
- <min_order_total translate="label">
1784
- <label>Minimum order total</label>
1785
- <frontend_type>text</frontend_type>
1786
- <sort_order>90</sort_order>
1787
- <show_in_default>1</show_in_default>
1788
- <show_in_website>1</show_in_website>
1789
- <show_in_store>1</show_in_store>
1790
- </min_order_total>
1791
- <max_order_total translate="label">
1792
- <label>Maximum order total</label>
1793
- <frontend_type>text</frontend_type>
1794
- <sort_order>100</sort_order>
1795
- <show_in_default>1</show_in_default>
1796
- <show_in_website>1</show_in_website>
1797
- <show_in_store>0</show_in_store>
1798
- </max_order_total>
1799
- </fields>
1800
- </wirecard_checkoutseamless_paypal>
1801
- <wirecard_checkoutseamless_epaybg translate="label" module="wirecard_checkoutseamless">
1802
- <label>Wirecard Checkout Seamless epay.bg</label>
1803
- <frontend_type>text</frontend_type>
1804
- <sort_order>5220</sort_order>
1805
- <show_in_default>1</show_in_default>
1806
- <show_in_website>1</show_in_website>
1807
- <show_in_store>1</show_in_store>
1808
- <fields>
1809
- <active translate="label">
1810
- <label>Enabled</label>
1811
- <frontend_type>select</frontend_type>
1812
- <source_model>adminhtml/system_config_source_yesno</source_model>
1813
- <sort_order>20</sort_order>
1814
- <show_in_default>1</show_in_default>
1815
- <show_in_website>1</show_in_website>
1816
- <show_in_store>1</show_in_store>
1817
- </active>
1818
- <sort_order translate="label">
1819
- <label>Sorting order number</label>
1820
- <frontend_type>text</frontend_type>
1821
- <sort_order>30</sort_order>
1822
- <show_in_default>1</show_in_default>
1823
- <show_in_website>1</show_in_website>
1824
- <show_in_store>1</show_in_store>
1825
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1826
- </sort_order>
1827
- <title translate="label">
1828
- <label>Name for payment method</label>
1829
- <frontend_type>text</frontend_type>
1830
- <sort_order>40</sort_order>
1831
- <show_in_default>1</show_in_default>
1832
- <show_in_website>1</show_in_website>
1833
- <show_in_store>1</show_in_store>
1834
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1835
- </title>
1836
- <allowspecific translate="label">
1837
- <label>Payment method available for</label>
1838
- <frontend_type>allowspecific</frontend_type>
1839
- <sort_order>70</sort_order>
1840
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1841
- </source_model>
1842
- <show_in_default>1</show_in_default>
1843
- <show_in_website>1</show_in_website>
1844
- <show_in_store>1</show_in_store>
1845
- </allowspecific>
1846
- <specificcountry translate="label">
1847
- <label>Specific countries</label>
1848
- <frontend_type>multiselect</frontend_type>
1849
- <sort_order>80</sort_order>
1850
- <source_model>adminhtml/system_config_source_country
1851
- </source_model>
1852
- <show_in_default>1</show_in_default>
1853
- <show_in_website>1</show_in_website>
1854
- <show_in_store>1</show_in_store>
1855
- </specificcountry>
1856
- <min_order_total translate="label">
1857
- <label>Minimum order total</label>
1858
- <frontend_type>text</frontend_type>
1859
- <sort_order>90</sort_order>
1860
- <show_in_default>1</show_in_default>
1861
- <show_in_website>1</show_in_website>
1862
- <show_in_store>1</show_in_store>
1863
- </min_order_total>
1864
- <max_order_total translate="label">
1865
- <label>Maximum order total</label>
1866
- <frontend_type>text</frontend_type>
1867
- <sort_order>100</sort_order>
1868
- <show_in_default>1</show_in_default>
1869
- <show_in_website>1</show_in_website>
1870
- <show_in_store>0</show_in_store>
1871
- </max_order_total>
1872
- </fields>
1873
- </wirecard_checkoutseamless_epaybg>
1874
- <wirecard_checkoutseamless_sepadd translate="label" module="wirecard_checkoutseamless">
1875
- <label>Wirecard Checkout Seamless SEPA Direct Debit</label>
1876
- <frontend_type>text</frontend_type>
1877
- <sort_order>5230</sort_order>
1878
- <show_in_default>1</show_in_default>
1879
- <show_in_website>1</show_in_website>
1880
- <show_in_store>1</show_in_store>
1881
- <fields>
1882
- <active translate="label">
1883
- <label>Enabled</label>
1884
- <frontend_type>select</frontend_type>
1885
- <source_model>adminhtml/system_config_source_yesno</source_model>
1886
- <sort_order>20</sort_order>
1887
- <show_in_default>1</show_in_default>
1888
- <show_in_website>1</show_in_website>
1889
- <show_in_store>1</show_in_store>
1890
- </active>
1891
- <sort_order translate="label">
1892
- <label>Sorting order number</label>
1893
- <frontend_type>text</frontend_type>
1894
- <sort_order>30</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>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1899
- </sort_order>
1900
- <title translate="label">
1901
- <label>Name for payment method</label>
1902
- <frontend_type>text</frontend_type>
1903
- <sort_order>40</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>The name for the payment method to be displayed in the online shop.</comment>
1908
- </title>
1909
- <allowspecific translate="label">
1910
- <label>Payment method available for</label>
1911
- <frontend_type>allowspecific</frontend_type>
1912
- <sort_order>70</sort_order>
1913
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1914
- </source_model>
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
- </allowspecific>
1919
- <specificcountry translate="label">
1920
- <label>Specific countries</label>
1921
- <frontend_type>multiselect</frontend_type>
1922
- <sort_order>80</sort_order>
1923
- <source_model>adminhtml/system_config_source_country
1924
- </source_model>
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
- </specificcountry>
1929
- <min_order_total translate="label">
1930
- <label>Minimum order total</label>
1931
- <frontend_type>text</frontend_type>
1932
- <sort_order>90</sort_order>
1933
- <show_in_default>1</show_in_default>
1934
- <show_in_website>1</show_in_website>
1935
- <show_in_store>1</show_in_store>
1936
- </min_order_total>
1937
- <max_order_total translate="label">
1938
- <label>Maximum order total</label>
1939
- <frontend_type>text</frontend_type>
1940
- <sort_order>100</sort_order>
1941
- <show_in_default>1</show_in_default>
1942
- <show_in_website>1</show_in_website>
1943
- <show_in_store>0</show_in_store>
1944
- </max_order_total>
1945
- </fields>
1946
- </wirecard_checkoutseamless_sepadd>
1947
- <wirecard_checkoutseamless_invoice translate="label" module="wirecard_checkoutseamless">
1948
- <label>Wirecard Checkout Seamless Invoice</label>
1949
- <frontend_type>text</frontend_type>
1950
- <sort_order>5240</sort_order>
1951
- <show_in_default>1</show_in_default>
1952
- <show_in_website>1</show_in_website>
1953
- <show_in_store>1</show_in_store>
1954
- <fields>
1955
- <active translate="label">
1956
- <label>Enabled</label>
1957
- <frontend_type>select</frontend_type>
1958
- <source_model>adminhtml/system_config_source_yesno</source_model>
1959
- <sort_order>20</sort_order>
1960
- <show_in_default>1</show_in_default>
1961
- <show_in_website>1</show_in_website>
1962
- <show_in_store>1</show_in_store>
1963
- </active>
1964
- <provider translate="label">
1965
- <label>Financial service provider</label>
1966
- <frontend_type>select</frontend_type>
1967
- <source_model>Wirecard_CheckoutSeamless_Model_System_Config_InvoiceProviders</source_model>
1968
- <sort_order>22</sort_order>
1969
- <show_in_default>1</show_in_default>
1970
- <show_in_website>1</show_in_website>
1971
- <show_in_store>1</show_in_store>
1972
- </provider>
1973
- <sort_order translate="label">
1974
- <label>Sorting order number</label>
1975
- <frontend_type>text</frontend_type>
1976
- <sort_order>30</sort_order>
1977
- <show_in_default>1</show_in_default>
1978
- <show_in_website>1</show_in_website>
1979
- <show_in_store>1</show_in_store>
1980
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1981
- </sort_order>
1982
- <title translate="label">
1983
- <label>Name for payment method</label>
1984
- <frontend_type>text</frontend_type>
1985
- <sort_order>40</sort_order>
1986
- <show_in_default>1</show_in_default>
1987
- <show_in_website>1</show_in_website>
1988
- <show_in_store>1</show_in_store>
1989
- <comment>The name for the payment method to be displayed in the online shop.</comment>
1990
- </title>
1991
- <allowspecific translate="label">
1992
- <label>Payment method available for</label>
1993
- <frontend_type>allowspecific</frontend_type>
1994
- <sort_order>70</sort_order>
1995
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
1996
- </source_model>
1997
- <show_in_default>1</show_in_default>
1998
- <show_in_website>1</show_in_website>
1999
- <show_in_store>1</show_in_store>
2000
- </allowspecific>
2001
- <specificcountry translate="label">
2002
- <label>Specific countries</label>
2003
- <frontend_type>multiselect</frontend_type>
2004
- <sort_order>80</sort_order>
2005
- <source_model>adminhtml/system_config_source_country
2006
- </source_model>
2007
- <show_in_default>1</show_in_default>
2008
- <show_in_website>1</show_in_website>
2009
- <show_in_store>1</show_in_store>
2010
- </specificcountry>
2011
- <min_order_total translate="label">
2012
- <label>Minimum order total</label>
2013
- <frontend_type>text</frontend_type>
2014
- <sort_order>90</sort_order>
2015
- <show_in_default>1</show_in_default>
2016
- <show_in_website>1</show_in_website>
2017
- <show_in_store>1</show_in_store>
2018
- </min_order_total>
2019
- <max_order_total translate="label">
2020
- <label>Maximum order total</label>
2021
- <frontend_type>text</frontend_type>
2022
- <sort_order>100</sort_order>
2023
- <show_in_default>1</show_in_default>
2024
- <show_in_website>1</show_in_website>
2025
- <show_in_store>1</show_in_store>
2026
- </max_order_total>
2027
- <currencies translate="label,comment">
2028
- <label>Supported currencies</label>
2029
- <frontend_type>multiselect</frontend_type>
2030
- <source_model>adminhtml/system_config_source_currency</source_model>
2031
- <sort_order>110</sort_order>
2032
- <show_in_default>1</show_in_default>
2033
- <show_in_website>1</show_in_website>
2034
- <show_in_store>1</show_in_store>
2035
- <comment>Only applicable for RatePay.</comment>
2036
- </currencies>
2037
- <min_age translate="label,comment">
2038
- <label>Minimum age</label>
2039
- <frontend_type>text</frontend_type>
2040
- <validate>validate-not-negative-number</validate>
2041
- <sort_order>120</sort_order>
2042
- <show_in_default>1</show_in_default>
2043
- <show_in_website>1</show_in_website>
2044
- <show_in_store>1</show_in_store>
2045
- <comment>Only applicable for RatePay.</comment>
2046
- </min_age>
2047
- </fields>
2048
- </wirecard_checkoutseamless_invoice>
2049
- <wirecard_checkoutseamless_invoiceb2b translate="label" module="wirecard_checkoutseamless">
2050
- <label>Wirecard Checkout Seamless Invoice B2B</label>
2051
- <frontend_type>text</frontend_type>
2052
- <sort_order>5250</sort_order>
2053
- <show_in_default>1</show_in_default>
2054
- <show_in_website>1</show_in_website>
2055
- <show_in_store>1</show_in_store>
2056
- <fields>
2057
- <active translate="label">
2058
- <label>Enabled</label>
2059
- <frontend_type>select</frontend_type>
2060
- <source_model>adminhtml/system_config_source_yesno</source_model>
2061
- <sort_order>20</sort_order>
2062
- <show_in_default>1</show_in_default>
2063
- <show_in_website>1</show_in_website>
2064
- <show_in_store>1</show_in_store>
2065
- </active>
2066
- <provider translate="label">
2067
- <label>Financial service provider</label>
2068
- <frontend_type>select</frontend_type>
2069
- <source_model>Wirecard_CheckoutSeamless_Model_System_Config_InvoiceProviders</source_model>
2070
- <sort_order>22</sort_order>
2071
- <show_in_default>1</show_in_default>
2072
- <show_in_website>1</show_in_website>
2073
- <show_in_store>1</show_in_store>
2074
- </provider>
2075
- <sort_order translate="label">
2076
- <label>Sorting order number</label>
2077
- <frontend_type>text</frontend_type>
2078
- <sort_order>30</sort_order>
2079
- <show_in_default>1</show_in_default>
2080
- <show_in_website>1</show_in_website>
2081
- <show_in_store>1</show_in_store>
2082
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2083
- </sort_order>
2084
- <title translate="label">
2085
- <label>Name for payment method</label>
2086
- <frontend_type>text</frontend_type>
2087
- <sort_order>40</sort_order>
2088
- <show_in_default>1</show_in_default>
2089
- <show_in_website>1</show_in_website>
2090
- <show_in_store>1</show_in_store>
2091
- <comment>The name for the payment method to be displayed in the online shop.</comment>
2092
- </title>
2093
- <allowspecific translate="label">
2094
- <label>Payment method available for</label>
2095
- <frontend_type>allowspecific</frontend_type>
2096
- <sort_order>70</sort_order>
2097
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
2098
- </source_model>
2099
- <show_in_default>1</show_in_default>
2100
- <show_in_website>1</show_in_website>
2101
- <show_in_store>1</show_in_store>
2102
- </allowspecific>
2103
- <specificcountry translate="label">
2104
- <label>Specific countries</label>
2105
- <frontend_type>multiselect</frontend_type>
2106
- <sort_order>80</sort_order>
2107
- <source_model>adminhtml/system_config_source_country
2108
- </source_model>
2109
- <show_in_default>1</show_in_default>
2110
- <show_in_website>1</show_in_website>
2111
- <show_in_store>1</show_in_store>
2112
- </specificcountry>
2113
- <min_order_total translate="label">
2114
- <label>Minimum order total</label>
2115
- <frontend_type>text</frontend_type>
2116
- <sort_order>90</sort_order>
2117
- <show_in_default>1</show_in_default>
2118
- <show_in_website>1</show_in_website>
2119
- <show_in_store>1</show_in_store>
2120
- </min_order_total>
2121
- <max_order_total translate="label">
2122
- <label>Maximum order total</label>
2123
- <frontend_type>text</frontend_type>
2124
- <sort_order>100</sort_order>
2125
- <show_in_default>1</show_in_default>
2126
- <show_in_website>1</show_in_website>
2127
- <show_in_store>0</show_in_store>
2128
- </max_order_total>
2129
- </fields>
2130
- </wirecard_checkoutseamless_invoiceb2b>
2131
- <wirecard_checkoutseamless_installment translate="label" module="wirecard_checkoutseamless">
2132
- <label>Wirecard Checkout Seamless Installment</label>
2133
- <frontend_type>text</frontend_type>
2134
- <sort_order>5260</sort_order>
2135
- <show_in_default>1</show_in_default>
2136
- <show_in_website>1</show_in_website>
2137
- <show_in_store>1</show_in_store>
2138
- <fields>
2139
- <active translate="label">
2140
- <label>Enabled</label>
2141
- <frontend_type>select</frontend_type>
2142
- <source_model>adminhtml/system_config_source_yesno</source_model>
2143
- <sort_order>20</sort_order>
2144
- <show_in_default>1</show_in_default>
2145
- <show_in_website>1</show_in_website>
2146
- <show_in_store>1</show_in_store>
2147
- </active>
2148
- <provider translate="label">
2149
- <label>Financial service provider</label>
2150
- <frontend_type>select</frontend_type>
2151
- <source_model>Wirecard_CheckoutSeamless_Model_System_Config_InstallmentProviders</source_model>
2152
- <sort_order>22</sort_order>
2153
- <show_in_default>1</show_in_default>
2154
- <show_in_website>1</show_in_website>
2155
- <show_in_store>1</show_in_store>
2156
- </provider>
2157
- <sort_order translate="label">
2158
- <label>Sorting order number</label>
2159
- <frontend_type>text</frontend_type>
2160
- <sort_order>30</sort_order>
2161
- <show_in_default>1</show_in_default>
2162
- <show_in_website>1</show_in_website>
2163
- <show_in_store>1</show_in_store>
2164
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2165
- </sort_order>
2166
- <title translate="label">
2167
- <label>Name for payment method</label>
2168
- <frontend_type>text</frontend_type>
2169
- <sort_order>40</sort_order>
2170
- <show_in_default>1</show_in_default>
2171
- <show_in_website>1</show_in_website>
2172
- <show_in_store>1</show_in_store>
2173
- <comment>The name for the payment method to be displayed in the online shop.</comment>
2174
- </title>
2175
- <allowspecific translate="label">
2176
- <label>Payment method available for</label>
2177
- <frontend_type>allowspecific</frontend_type>
2178
- <sort_order>70</sort_order>
2179
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
2180
- </source_model>
2181
- <show_in_default>1</show_in_default>
2182
- <show_in_website>1</show_in_website>
2183
- <show_in_store>1</show_in_store>
2184
- </allowspecific>
2185
- <specificcountry translate="label">
2186
- <label>Specific countries</label>
2187
- <frontend_type>multiselect</frontend_type>
2188
- <sort_order>80</sort_order>
2189
- <source_model>adminhtml/system_config_source_country
2190
- </source_model>
2191
- <show_in_default>1</show_in_default>
2192
- <show_in_website>1</show_in_website>
2193
- <show_in_store>1</show_in_store>
2194
- </specificcountry>
2195
- <min_order_total translate="label">
2196
- <label>Minimum order total</label>
2197
- <frontend_type>text</frontend_type>
2198
- <sort_order>90</sort_order>
2199
- <show_in_default>1</show_in_default>
2200
- <show_in_website>1</show_in_website>
2201
- <show_in_store>1</show_in_store>
2202
- </min_order_total>
2203
- <max_order_total translate="label">
2204
- <label>Maximum order total</label>
2205
- <frontend_type>text</frontend_type>
2206
- <sort_order>100</sort_order>
2207
- <show_in_default>1</show_in_default>
2208
- <show_in_website>1</show_in_website>
2209
- <show_in_store>0</show_in_store>
2210
- </max_order_total>
2211
- <currencies translate="label,comment">
2212
- <label>Supported currencies</label>
2213
- <frontend_type>multiselect</frontend_type>
2214
- <source_model>adminhtml/system_config_source_currency</source_model>
2215
- <sort_order>110</sort_order>
2216
- <show_in_default>1</show_in_default>
2217
- <show_in_website>1</show_in_website>
2218
- <show_in_store>1</show_in_store>
2219
- <comment>Only applicable for RatePay.</comment>
2220
- </currencies>
2221
- <min_age translate="label,comment">
2222
- <label>Minimum age</label>
2223
- <frontend_type>text</frontend_type>
2224
- <validate>validate-not-negative-number</validate>
2225
- <sort_order>120</sort_order>
2226
- <show_in_default>1</show_in_default>
2227
- <show_in_website>1</show_in_website>
2228
- <show_in_store>1</show_in_store>
2229
- <comment>Only applicable for RatePay.</comment>
2230
- </min_age>
2231
- </fields>
2232
- </wirecard_checkoutseamless_installment>
2233
- <wirecard_checkoutseamless_voucher translate="label" module="wirecard_checkoutseamless">
2234
- <label>Wirecard Checkout Seamless My Voucher</label>
2235
- <frontend_type>text</frontend_type>
2236
- <sort_order>5270</sort_order>
2237
- <show_in_default>1</show_in_default>
2238
- <show_in_website>1</show_in_website>
2239
- <show_in_store>1</show_in_store>
2240
- <fields>
2241
- <active translate="label">
2242
- <label>Enabled</label>
2243
- <frontend_type>select</frontend_type>
2244
- <source_model>adminhtml/system_config_source_yesno</source_model>
2245
- <sort_order>20</sort_order>
2246
- <show_in_default>1</show_in_default>
2247
- <show_in_website>1</show_in_website>
2248
- <show_in_store>1</show_in_store>
2249
- </active>
2250
- <sort_order translate="label">
2251
- <label>Sorting order number</label>
2252
- <frontend_type>text</frontend_type>
2253
- <sort_order>30</sort_order>
2254
- <show_in_default>1</show_in_default>
2255
- <show_in_website>1</show_in_website>
2256
- <show_in_store>1</show_in_store>
2257
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2258
- </sort_order>
2259
- <title translate="label">
2260
- <label>Name for payment method</label>
2261
- <frontend_type>text</frontend_type>
2262
- <sort_order>40</sort_order>
2263
- <show_in_default>1</show_in_default>
2264
- <show_in_website>1</show_in_website>
2265
- <show_in_store>1</show_in_store>
2266
- <comment>The name for the payment method to be displayed in the online shop.</comment>
2267
- </title>
2268
- <allowspecific translate="label">
2269
- <label>Payment method available for</label>
2270
- <frontend_type>allowspecific</frontend_type>
2271
- <sort_order>70</sort_order>
2272
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
2273
- </source_model>
2274
- <show_in_default>1</show_in_default>
2275
- <show_in_website>1</show_in_website>
2276
- <show_in_store>1</show_in_store>
2277
- </allowspecific>
2278
- <specificcountry translate="label">
2279
- <label>Specific countries</label>
2280
- <frontend_type>multiselect</frontend_type>
2281
- <sort_order>80</sort_order>
2282
- <source_model>adminhtml/system_config_source_country
2283
- </source_model>
2284
- <show_in_default>1</show_in_default>
2285
- <show_in_website>1</show_in_website>
2286
- <show_in_store>1</show_in_store>
2287
- </specificcountry>
2288
- <min_order_total translate="label">
2289
- <label>Minimum order total</label>
2290
- <frontend_type>text</frontend_type>
2291
- <sort_order>90</sort_order>
2292
- <show_in_default>1</show_in_default>
2293
- <show_in_website>1</show_in_website>
2294
- <show_in_store>1</show_in_store>
2295
- </min_order_total>
2296
- <max_order_total translate="label">
2297
- <label>Maximum order total</label>
2298
- <frontend_type>text</frontend_type>
2299
- <sort_order>100</sort_order>
2300
- <show_in_default>1</show_in_default>
2301
- <show_in_website>1</show_in_website>
2302
- <show_in_store>0</show_in_store>
2303
- </max_order_total>
2304
- </fields>
2305
- </wirecard_checkoutseamless_voucher>
2306
- <wirecard_checkoutseamless_trustpay translate="label" module="wirecard_checkoutseamless">
2307
- <label>Wirecard Checkout Seamless TrustPay</label>
2308
- <frontend_type>text</frontend_type>
2309
- <sort_order>5280</sort_order>
2310
- <show_in_default>1</show_in_default>
2311
- <show_in_website>1</show_in_website>
2312
- <show_in_store>1</show_in_store>
2313
- <fields>
2314
- <active translate="label">
2315
- <label>Enabled</label>
2316
- <frontend_type>select</frontend_type>
2317
- <source_model>adminhtml/system_config_source_yesno</source_model>
2318
- <sort_order>20</sort_order>
2319
- <show_in_default>1</show_in_default>
2320
- <show_in_website>1</show_in_website>
2321
- <show_in_store>1</show_in_store>
2322
- </active>
2323
- <sort_order translate="label">
2324
- <label>Sorting order number</label>
2325
- <frontend_type>text</frontend_type>
2326
- <sort_order>30</sort_order>
2327
- <show_in_default>1</show_in_default>
2328
- <show_in_website>1</show_in_website>
2329
- <show_in_store>1</show_in_store>
2330
- <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2331
- </sort_order>
2332
- <title translate="label">
2333
- <label>Name for payment method</label>
2334
- <frontend_type>text</frontend_type>
2335
- <sort_order>40</sort_order>
2336
- <show_in_default>1</show_in_default>
2337
- <show_in_website>1</show_in_website>
2338
- <show_in_store>1</show_in_store>
2339
- <comment>The name for the payment method to be displayed in the online shop.</comment>
2340
- </title>
2341
- <allowspecific translate="label">
2342
- <label>Payment method available for</label>
2343
- <frontend_type>allowspecific</frontend_type>
2344
- <sort_order>70</sort_order>
2345
- <source_model>adminhtml/system_config_source_payment_allspecificcountries
2346
- </source_model>
2347
- <show_in_default>1</show_in_default>
2348
- <show_in_website>1</show_in_website>
2349
- <show_in_store>1</show_in_store>
2350
- </allowspecific>
2351
- <specificcountry translate="label">
2352
- <label>Specific countries</label>
2353
- <frontend_type>multiselect</frontend_type>
2354
- <sort_order>80</sort_order>
2355
- <source_model>adminhtml/system_config_source_country
2356
- </source_model>
2357
- <show_in_default>1</show_in_default>
2358
- <show_in_website>1</show_in_website>
2359
- <show_in_store>1</show_in_store>
2360
- </specificcountry>
2361
- <min_order_total translate="label">
2362
- <label>Minimum order total</label>
2363
- <frontend_type>text</frontend_type>
2364
- <sort_order>90</sort_order>
2365
- <show_in_default>1</show_in_default>
2366
- <show_in_website>1</show_in_website>
2367
- <show_in_store>1</show_in_store>
2368
- </min_order_total>
2369
- <max_order_total translate="label">
2370
- <label>Maximum order total</label>
2371
- <frontend_type>text</frontend_type>
2372
- <sort_order>100</sort_order>
2373
- <show_in_default>1</show_in_default>
2374
- <show_in_website>1</show_in_website>
2375
- <show_in_store>0</show_in_store>
2376
- </max_order_total>
2377
- </fields>
2378
- </wirecard_checkoutseamless_trustpay>
2379
- </groups>
2380
- </payment>
2381
- </sections>
2382
  </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Shop System Plugins - Terms of Use
5
+ *
6
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
7
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
8
+ * products and services.
9
+ *
10
+ * They have been tested and approved for full functionality in the standard configuration
11
+ * (status on delivery) of the corresponding shop system. They are under General Public
12
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
13
+ * the same terms.
14
+ *
15
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
16
+ * occurring when used in an enhanced, customized shop system configuration.
17
+ *
18
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
19
+ * comprehensive test phase by the user of the plugin.
20
+ *
21
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
22
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
23
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
24
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
25
+ * shop system.
26
+ *
27
+ * Customers are responsible for testing the plugin's functionality before starting productive
28
+ * operation.
29
+ *
30
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
31
+ * Please do not use the plugin if you do not agree to these terms of use!
32
+ */
33
+ -->
34
+ <config>
35
+ <sections>
36
+ <wirecard_checkoutseamless translate="label" module="wirecard_checkoutseamless">
37
+ <label>Wirecard Checkout Seamless</label>
38
+ <tab>sales</tab>
39
+ <frontend_type>text</frontend_type>
40
+ <sort_order>900</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ <groups>
45
+ <settings translate="label">
46
+ <label>Basic data</label>
47
+ <frontend_type>text</frontend_type>
48
+ <sort_order>100</sort_order>
49
+ <show_in_default>1</show_in_default>
50
+ <show_in_website>1</show_in_website>
51
+ <show_in_store>1</show_in_store>
52
+ <comment>
53
+ <![CDATA[
54
+ <div style="padding:10px;margin-bottom:7px;">
55
+ <img src="/skin/adminhtml/default/default/images/wirecard/wirecard-seamless-logo.png" alt="Wirecard" /><br /><h3>Your Full Service Payment Provider - Comprehensive solutions from one single source</h3>Wirecard is one of the world's leading providers of outsourcing and white label solutions for electronic payment transactions.<br /><br /> As independent provider of payment solutions, we accompany our customers along the entire business development. Our payment solutions are perfectly tailored to suit e-Commerce requirements and have made us Austria's leading payment service provider. Customization, competence, and commitment. <br /><br /> <a href="https://www.wirecard.at/" target="_blank">www.wirecard.at</a>
56
+ </div><div style="clear:both;"></div>
57
+ ]]>
58
+ </comment>
59
+ <fields>
60
+ <configuration translate="label,comment">
61
+ <label>Configuration</label>
62
+ <frontend_type>select</frontend_type>
63
+ <source_model>Wirecard_CheckoutSeamless_Model_System_Config_Configurations</source_model>
64
+ <sort_order>10</sort_order>
65
+ <show_in_default>1</show_in_default>
66
+ <show_in_website>1</show_in_website>
67
+ <show_in_store>1</show_in_store>
68
+ <comment>For integration, select predefined configuration settings or "production" for live systems.</comment>
69
+ </configuration>
70
+ <customer_id translate="label,comment">
71
+ <label>Customer ID</label>
72
+ <frontend_type>text</frontend_type>
73
+ <sort_order>20</sort_order>
74
+ <show_in_default>1</show_in_default>
75
+ <show_in_website>1</show_in_website>
76
+ <show_in_store>1</show_in_store>
77
+ <comment><![CDATA[
78
+ Customer number you received from Wirecard (customerId, i.e. D2#####). <a href="https://guides.wirecard.at/request_parameters#customerid" target="_blank">More information.</a>
79
+ ]]>
80
+ </comment>
81
+ </customer_id>
82
+ <shop_id translate="label,comment">
83
+ <label>Shop ID</label>
84
+ <frontend_type>text</frontend_type>
85
+ <sort_order>30</sort_order>
86
+ <show_in_default>1</show_in_default>
87
+ <show_in_website>1</show_in_website>
88
+ <show_in_store>1</show_in_store>
89
+ <comment>
90
+ <![CDATA[
91
+ Shop identifier in case of more than one shop. <a href="https://guides.wirecard.at/request_parameters#shopid" target="_blank">More information.</a>
92
+ ]]>
93
+ </comment>
94
+ </shop_id>
95
+ <secret translate="label,comment">
96
+ <label>Secret</label>
97
+ <frontend_type>text</frontend_type>
98
+ <sort_order>40</sort_order>
99
+ <show_in_default>1</show_in_default>
100
+ <show_in_website>1</show_in_website>
101
+ <show_in_store>1</show_in_store>
102
+ <comment>
103
+ <![CDATA[
104
+ String which you received from Wirecard for signing and validating data to prove their authenticity. <a href="https://guides.wirecard.at/security:start#secret_and_fingerprint" target="_blank">More information.</a>
105
+ ]]>
106
+ </comment>
107
+ </secret>
108
+ <backendpw translate="label,comment">
109
+ <label>Back-end password</label>
110
+ <frontend_type>text</frontend_type>
111
+ <sort_order>40</sort_order>
112
+ <show_in_default>1</show_in_default>
113
+ <show_in_website>1</show_in_website>
114
+ <show_in_store>1</show_in_store>
115
+ <comment>
116
+ <![CDATA[
117
+ Password for back-end operations (Toolkit). <a href="https://guides.wirecard.at/back-end_operations:technical_wcs:start#password" target="_blank">More information.</a>
118
+ ]]>
119
+ </comment>
120
+ </backendpw>
121
+ <register translate="label">
122
+ <label></label>
123
+ <frontend_type>button</frontend_type>
124
+ <frontend_model>Wirecard_CheckoutSeamless_Block_Admin_Buttons</frontend_model>
125
+ <sort_order>60</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
+ </register>
130
+ </fields>
131
+ </settings>
132
+ <options translate="label">
133
+ <label>Options</label>
134
+ <frontend_type>text</frontend_type>
135
+ <sort_order>200</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
+ <fields>
140
+ <serviceurl translate="label,comment">
141
+ <label>URL to imprint page</label>
142
+ <frontend_type>text</frontend_type>
143
+ <validate>validate-url</validate>
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
+ <comment>
149
+ <![CDATA[
150
+ URL on the payment page which leads to the imprint page of the online shop. <a href="https://guides.wirecard.at/request_parameters#serviceurl" target="_blank">More information.</a>
151
+ ]]>
152
+ </comment>
153
+ </serviceurl>
154
+ <shopname translate="label,comment">
155
+ <label>Shop prefix in posting text</label>
156
+ <frontend_type>text</frontend_type>
157
+ <sort_order>20</sort_order>
158
+ <show_in_default>1</show_in_default>
159
+ <show_in_website>1</show_in_website>
160
+ <show_in_store>1</show_in_store>
161
+ <comment>
162
+ Reference to your online shop on your consumer's invoice, limited to 9 characters.
163
+ </comment>
164
+ </shopname>
165
+ <sendadditionaldata translate="label,comment">
166
+ <label>Forward consumer data</label>
167
+ <frontend_type>select</frontend_type>
168
+ <source_model>adminhtml/system_config_source_yesno</source_model>
169
+ <sort_order>30</sort_order>
170
+ <show_in_default>1</show_in_default>
171
+ <show_in_website>1</show_in_website>
172
+ <show_in_store>1</show_in_store>
173
+ <comment><![CDATA[
174
+ Forwarding shipping and billing data about your consumer to the respective financial service provider.
175
+ ]]>
176
+ </comment>
177
+ </sendadditionaldata>
178
+ <sendconfirmationemail translate="label,comment">
179
+ <label>Notification e-mail</label>
180
+ <frontend_type>select</frontend_type>
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
+ <comment><![CDATA[
187
+ Receiving notification by e-mail regarding the orders of your consumers if an error occurred in the communication between Wirecard and your online shop. <a href="https://guides.wirecard.at/request_parameters#confirmMail" target="_blank">More information</a>. Please contact our <a href="https://guides.wirecard.at/sales" target="_blank">sales teams</a> to activate this feature.
188
+ ]]>
189
+ </comment>
190
+ </sendconfirmationemail>
191
+ <autodeposit translate="label,comment">
192
+ <label>Automated deposit</label>
193
+ <frontend_type>select</frontend_type>
194
+ <source_model>adminhtml/system_config_source_yesno</source_model>
195
+ <sort_order>50</sort_order>
196
+ <show_in_default>1</show_in_default>
197
+ <show_in_website>1</show_in_website>
198
+ <show_in_store>1</show_in_store>
199
+ <comment><![CDATA[
200
+ Enabling an automated deposit of payments. <a href="https://guides.wirecard.at/request_parameters#autodeposit" target="_blank">More information</a>. Please contact our <a href="https://guides.wirecard.at/sales" target="_blank">sales teams</a> to activate this feature.
201
+ ]]>
202
+ </comment>
203
+ </autodeposit>
204
+ <sendbasketinformation translate="label,comment">
205
+ <label>Forward basket information</label>
206
+ <frontend_type>select</frontend_type>
207
+ <source_model>adminhtml/system_config_source_yesno</source_model>
208
+ <sort_order>60</sort_order>
209
+ <show_in_default>1</show_in_default>
210
+ <show_in_website>1</show_in_website>
211
+ <show_in_store>1</show_in_store>
212
+ <comment><![CDATA[
213
+ Forwarding basket data to the respective financial service provider.
214
+ ]]>
215
+ </comment>
216
+ </sendbasketinformation>
217
+ <payolution_terms translate="label,comment">
218
+ <label>payolution terms</label>
219
+ <frontend_type>select</frontend_type>
220
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
221
+ <sort_order>90</sort_order>
222
+ <show_in_default>1</show_in_default>
223
+ <show_in_website>1</show_in_website>
224
+ <show_in_store>1</show_in_store>
225
+ <comment>
226
+ <![CDATA[
227
+ Consumer must accept payolution terms during the checkout process. <a href="https://guides.wirecard.at/payment_methods:payolution:start" target="_blank">More information.</a>
228
+ ]]>
229
+ </comment>
230
+ </payolution_terms>
231
+ <payolution_mid translate="label,comment">
232
+ <label>payolution mID</label>
233
+ <frontend_type>text</frontend_type>
234
+ <sort_order>100</sort_order>
235
+ <show_in_default>1</show_in_default>
236
+ <show_in_website>1</show_in_website>
237
+ <show_in_store>1</show_in_store>
238
+ <comment>
239
+ <![CDATA[
240
+ Your payolution merchant ID, non-base64-encoded.
241
+ ]]>
242
+ </comment>
243
+ </payolution_mid>
244
+ </fields>
245
+ </options>
246
+ <ccard translate="label">
247
+ <label>Credit card options</label>
248
+ <frontend_type>text</frontend_type>
249
+ <sort_order>300</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
+ <fields>
254
+ <pci3_dss_saq_a_enable translate="label,comment">
255
+ <label>SAQ A compliance</label>
256
+ <frontend_type>select</frontend_type>
257
+ <source_model>adminhtml/system_config_source_yesno</source_model>
258
+ <sort_order>10</sort_order>
259
+ <show_in_default>1</show_in_default>
260
+ <show_in_website>1</show_in_website>
261
+ <show_in_store>1</show_in_store>
262
+ <comment><![CDATA[
263
+ Selecting "NO", the stringent SAQ A-EP is applicable. Selecting "YES", Wirecard Checkout Seamless is integrated with the "PCI DSS SAQ A Compliance" feature and SAQ A is applicable. <a href="https://guides.wirecard.at/wcs:pci3_fallback:start" target="_blank">More information.</a>
264
+ ]]>
265
+ </comment>
266
+ </pci3_dss_saq_a_enable>
267
+ <iframe_css_url translate="label,comment">
268
+ <label>Iframe CSS-URL</label>
269
+ <frontend_type>text</frontend_type>
270
+ <validate>validate-url</validate>
271
+ <sort_order>20</sort_order>
272
+ <show_in_default>1</show_in_default>
273
+ <show_in_website>1</show_in_website>
274
+ <show_in_store>1</show_in_store>
275
+ <comment><![CDATA[
276
+ Entry of a full URL to a CSS file in order to customize the iframe input fields when the "PCI DSS SAQ A Compliance" feature is used. <a href="https://guides.wirecard.at/wcs:pci3_fallback:start#customization_via_css" target="_blank">More information.</a>
277
+ e.g. https://magento.example.com/skin/frontend/base/default/css/wirecard/checkoutseamless/seamlessiframe.css
278
+ ]]>
279
+ </comment>
280
+ </iframe_css_url>
281
+ <showcardholder translate="label,comment">
282
+ <label>Display card holder field</label>
283
+ <frontend_type>select</frontend_type>
284
+ <source_model>adminhtml/system_config_source_yesno</source_model>
285
+ <sort_order>30</sort_order>
286
+ <show_in_default>1</show_in_default>
287
+ <show_in_website>1</show_in_website>
288
+ <show_in_store>1</show_in_store>
289
+ <comment><![CDATA[
290
+ Display input field to enter the card holder name in your credit card form during the checkout process.
291
+ ]]>
292
+ </comment>
293
+ </showcardholder>
294
+ <showcvc translate="label,comment">
295
+ <label>Display CVC field</label>
296
+ <frontend_type>select</frontend_type>
297
+ <source_model>adminhtml/system_config_source_yesno</source_model>
298
+ <sort_order>40</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
+ <comment><![CDATA[
303
+ Display input field to enter the CVC in your credit card form during the checkout process.
304
+ ]]>
305
+ </comment>
306
+ </showcvc>
307
+ <showissuedate translate="label,comment">
308
+ <label>Display issue date field</label>
309
+ <frontend_type>select</frontend_type>
310
+ <source_model>adminhtml/system_config_source_yesno</source_model>
311
+ <sort_order>50</sort_order>
312
+ <show_in_default>1</show_in_default>
313
+ <show_in_website>1</show_in_website>
314
+ <show_in_store>1</show_in_store>
315
+ <comment><![CDATA[
316
+ Display input field to enter the credit card issue date in your credit card form during the checkout process. Some credit cards do not have an issue date.
317
+ ]]>
318
+ </comment>
319
+ </showissuedate>
320
+ <showissuenumber translate="label,comment">
321
+ <label>Display issue number field</label>
322
+ <frontend_type>select</frontend_type>
323
+ <source_model>adminhtml/system_config_source_yesno</source_model>
324
+ <sort_order>60</sort_order>
325
+ <show_in_default>1</show_in_default>
326
+ <show_in_website>1</show_in_website>
327
+ <show_in_store>1</show_in_store>
328
+ <comment><![CDATA[
329
+ Display input field to enter the credit card issue number in your credit card form during the checkout process. Some credit cards do not have an issue number.
330
+ ]]>
331
+ </comment>
332
+ </showissuenumber>
333
+ </fields>
334
+ </ccard>
335
+ </groups>
336
+ </wirecard_checkoutseamless>
337
+ </sections>
338
+ <sections>
339
+ <payment>
340
+ <groups>
341
+ <wirecard_checkoutseamless_cc translate="label" module="wirecard_checkoutseamless">
342
+ <label>Wirecard Checkout Seamless Credit Card / Maestro SecureCode</label>
343
+ <frontend_type>text</frontend_type>
344
+ <sort_order>5020</sort_order>
345
+ <show_in_default>1</show_in_default>
346
+ <show_in_website>1</show_in_website>
347
+ <show_in_store>1</show_in_store>
348
+ <fields>
349
+ <active translate="label">
350
+ <label>Enabled</label>
351
+ <frontend_type>select</frontend_type>
352
+ <source_model>adminhtml/system_config_source_yesno</source_model>
353
+ <sort_order>20</sort_order>
354
+ <show_in_default>1</show_in_default>
355
+ <show_in_website>1</show_in_website>
356
+ <show_in_store>1</show_in_store>
357
+ </active>
358
+ <sort_order translate="label">
359
+ <label>Sorting order number</label>
360
+ <frontend_type>text</frontend_type>
361
+ <sort_order>30</sort_order>
362
+ <show_in_default>1</show_in_default>
363
+ <show_in_website>1</show_in_website>
364
+ <show_in_store>1</show_in_store>
365
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
366
+ </sort_order>
367
+ <title translate="label">
368
+ <label>Name for payment method</label>
369
+ <frontend_type>text</frontend_type>
370
+ <sort_order>40</sort_order>
371
+ <show_in_default>1</show_in_default>
372
+ <show_in_website>1</show_in_website>
373
+ <show_in_store>1</show_in_store>
374
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
375
+ </title>
376
+ <allowspecific translate="label">
377
+ <label>Payment method available for</label>
378
+ <frontend_type>allowspecific</frontend_type>
379
+ <sort_order>70</sort_order>
380
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
381
+ </source_model>
382
+ <show_in_default>1</show_in_default>
383
+ <show_in_website>1</show_in_website>
384
+ <show_in_store>1</show_in_store>
385
+ </allowspecific>
386
+ <specificcountry translate="label">
387
+ <label>Specific countries</label>
388
+ <frontend_type>multiselect</frontend_type>
389
+ <sort_order>80</sort_order>
390
+ <source_model>adminhtml/system_config_source_country
391
+ </source_model>
392
+ <show_in_default>1</show_in_default>
393
+ <show_in_website>1</show_in_website>
394
+ <show_in_store>1</show_in_store>
395
+ </specificcountry>
396
+ <min_order_total translate="label">
397
+ <label>Minimum order total</label>
398
+ <frontend_type>text</frontend_type>
399
+ <sort_order>90</sort_order>
400
+ <show_in_default>1</show_in_default>
401
+ <show_in_website>1</show_in_website>
402
+ <show_in_store>1</show_in_store>
403
+ </min_order_total>
404
+ <max_order_total translate="label">
405
+ <label>Maximum order total</label>
406
+ <frontend_type>text</frontend_type>
407
+ <sort_order>100</sort_order>
408
+ <show_in_default>1</show_in_default>
409
+ <show_in_website>1</show_in_website>
410
+ <show_in_store>0</show_in_store>
411
+ </max_order_total>
412
+ </fields>
413
+ </wirecard_checkoutseamless_cc>
414
+ <wirecard_checkoutseamless_ccMoto translate="label" module="wirecard_checkoutseamless">
415
+ <label>Wirecard Checkout Seamless Credit Card MoTo</label>
416
+ <frontend_type>text</frontend_type>
417
+ <sort_order>5030</sort_order>
418
+ <show_in_default>1</show_in_default>
419
+ <show_in_website>1</show_in_website>
420
+ <show_in_store>1</show_in_store>
421
+ <fields>
422
+ <active translate="label">
423
+ <label>Enabled</label>
424
+ <frontend_type>select</frontend_type>
425
+ <source_model>adminhtml/system_config_source_yesno</source_model>
426
+ <sort_order>20</sort_order>
427
+ <show_in_default>1</show_in_default>
428
+ <show_in_website>1</show_in_website>
429
+ <show_in_store>1</show_in_store>
430
+ </active>
431
+ <sort_order translate="label">
432
+ <label>Sorting order number</label>
433
+ <frontend_type>text</frontend_type>
434
+ <sort_order>30</sort_order>
435
+ <show_in_default>1</show_in_default>
436
+ <show_in_website>1</show_in_website>
437
+ <show_in_store>1</show_in_store>
438
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
439
+ </sort_order>
440
+ <title translate="label">
441
+ <label>Name for payment method</label>
442
+ <frontend_type>text</frontend_type>
443
+ <sort_order>40</sort_order>
444
+ <show_in_default>1</show_in_default>
445
+ <show_in_website>1</show_in_website>
446
+ <show_in_store>1</show_in_store>
447
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
448
+ </title>
449
+ <allowspecific translate="label">
450
+ <label>Payment method available for</label>
451
+ <frontend_type>allowspecific</frontend_type>
452
+ <sort_order>70</sort_order>
453
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
454
+ </source_model>
455
+ <show_in_default>1</show_in_default>
456
+ <show_in_website>1</show_in_website>
457
+ <show_in_store>1</show_in_store>
458
+ </allowspecific>
459
+ <specificcountry translate="label">
460
+ <label>Specific countries</label>
461
+ <frontend_type>multiselect</frontend_type>
462
+ <sort_order>80</sort_order>
463
+ <source_model>adminhtml/system_config_source_country
464
+ </source_model>
465
+ <show_in_default>1</show_in_default>
466
+ <show_in_website>1</show_in_website>
467
+ <show_in_store>1</show_in_store>
468
+ </specificcountry>
469
+ <min_order_total translate="label">
470
+ <label>Minimum order total</label>
471
+ <frontend_type>text</frontend_type>
472
+ <sort_order>90</sort_order>
473
+ <show_in_default>1</show_in_default>
474
+ <show_in_website>1</show_in_website>
475
+ <show_in_store>1</show_in_store>
476
+ </min_order_total>
477
+ <max_order_total translate="label">
478
+ <label>Maximum order total</label>
479
+ <frontend_type>text</frontend_type>
480
+ <sort_order>100</sort_order>
481
+ <show_in_default>1</show_in_default>
482
+ <show_in_website>1</show_in_website>
483
+ <show_in_store>0</show_in_store>
484
+ </max_order_total>
485
+ </fields>
486
+ </wirecard_checkoutseamless_ccMoto>
487
+ <wirecard_checkoutseamless_eps translate="label" module="wirecard_checkoutseamless">
488
+ <label>Wirecard Checkout Seamless eps Online Bank Transfer</label>
489
+ <frontend_type>text</frontend_type>
490
+ <sort_order>5040</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
+ <fields>
495
+ <active translate="label">
496
+ <label>Enabled</label>
497
+ <frontend_type>select</frontend_type>
498
+ <source_model>adminhtml/system_config_source_yesno</source_model>
499
+ <sort_order>20</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
+ </active>
504
+ <sort_order translate="label">
505
+ <label>Sorting order number</label>
506
+ <frontend_type>text</frontend_type>
507
+ <sort_order>30</sort_order>
508
+ <show_in_default>1</show_in_default>
509
+ <show_in_website>1</show_in_website>
510
+ <show_in_store>1</show_in_store>
511
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
512
+ </sort_order>
513
+ <title translate="label">
514
+ <label>Name for payment method</label>
515
+ <frontend_type>text</frontend_type>
516
+ <sort_order>40</sort_order>
517
+ <show_in_default>1</show_in_default>
518
+ <show_in_website>1</show_in_website>
519
+ <show_in_store>1</show_in_store>
520
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
521
+ </title>
522
+ <allowspecific translate="label">
523
+ <label>Payment method available for</label>
524
+ <frontend_type>allowspecific</frontend_type>
525
+ <sort_order>70</sort_order>
526
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
527
+ </source_model>
528
+ <show_in_default>1</show_in_default>
529
+ <show_in_website>1</show_in_website>
530
+ <show_in_store>1</show_in_store>
531
+ </allowspecific>
532
+ <specificcountry translate="label">
533
+ <label>Specific countries</label>
534
+ <frontend_type>multiselect</frontend_type>
535
+ <sort_order>80</sort_order>
536
+ <source_model>adminhtml/system_config_source_country
537
+ </source_model>
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
+ </specificcountry>
542
+ <min_order_total translate="label">
543
+ <label>Minimum order total</label>
544
+ <frontend_type>text</frontend_type>
545
+ <sort_order>90</sort_order>
546
+ <show_in_default>1</show_in_default>
547
+ <show_in_website>1</show_in_website>
548
+ <show_in_store>1</show_in_store>
549
+ </min_order_total>
550
+ <max_order_total translate="label">
551
+ <label>Maximum order total</label>
552
+ <frontend_type>text</frontend_type>
553
+ <sort_order>100</sort_order>
554
+ <show_in_default>1</show_in_default>
555
+ <show_in_website>1</show_in_website>
556
+ <show_in_store>0</show_in_store>
557
+ </max_order_total>
558
+ </fields>
559
+ </wirecard_checkoutseamless_eps>
560
+ <wirecard_checkoutseamless_ideal translate="label" module="wirecard_checkoutseamless">
561
+ <label>Wirecard Checkout Seamless iDEAL</label>
562
+ <frontend_type>text</frontend_type>
563
+ <sort_order>5050</sort_order>
564
+ <show_in_default>1</show_in_default>
565
+ <show_in_website>1</show_in_website>
566
+ <show_in_store>1</show_in_store>
567
+ <fields>
568
+ <active translate="label">
569
+ <label>Enabled</label>
570
+ <frontend_type>select</frontend_type>
571
+ <source_model>adminhtml/system_config_source_yesno</source_model>
572
+ <sort_order>20</sort_order>
573
+ <show_in_default>1</show_in_default>
574
+ <show_in_website>1</show_in_website>
575
+ <show_in_store>1</show_in_store>
576
+ </active>
577
+ <sort_order translate="label">
578
+ <label>Sorting order number</label>
579
+ <frontend_type>text</frontend_type>
580
+ <sort_order>30</sort_order>
581
+ <show_in_default>1</show_in_default>
582
+ <show_in_website>1</show_in_website>
583
+ <show_in_store>1</show_in_store>
584
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
585
+ </sort_order>
586
+ <title translate="label">
587
+ <label>Name for payment method</label>
588
+ <frontend_type>text</frontend_type>
589
+ <sort_order>40</sort_order>
590
+ <show_in_default>1</show_in_default>
591
+ <show_in_website>1</show_in_website>
592
+ <show_in_store>1</show_in_store>
593
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
594
+ </title>
595
+ <allowspecific translate="label">
596
+ <label>Payment method available for</label>
597
+ <frontend_type>allowspecific</frontend_type>
598
+ <sort_order>70</sort_order>
599
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
600
+ </source_model>
601
+ <show_in_default>1</show_in_default>
602
+ <show_in_website>1</show_in_website>
603
+ <show_in_store>1</show_in_store>
604
+ </allowspecific>
605
+ <specificcountry translate="label">
606
+ <label>Specific countries</label>
607
+ <frontend_type>multiselect</frontend_type>
608
+ <sort_order>80</sort_order>
609
+ <source_model>adminhtml/system_config_source_country
610
+ </source_model>
611
+ <show_in_default>1</show_in_default>
612
+ <show_in_website>1</show_in_website>
613
+ <show_in_store>1</show_in_store>
614
+ </specificcountry>
615
+ <min_order_total translate="label">
616
+ <label>Minimum order total</label>
617
+ <frontend_type>text</frontend_type>
618
+ <sort_order>90</sort_order>
619
+ <show_in_default>1</show_in_default>
620
+ <show_in_website>1</show_in_website>
621
+ <show_in_store>1</show_in_store>
622
+ </min_order_total>
623
+ <max_order_total translate="label">
624
+ <label>Maximum order total</label>
625
+ <frontend_type>text</frontend_type>
626
+ <sort_order>100</sort_order>
627
+ <show_in_default>1</show_in_default>
628
+ <show_in_website>1</show_in_website>
629
+ <show_in_store>0</show_in_store>
630
+ </max_order_total>
631
+ </fields>
632
+ </wirecard_checkoutseamless_ideal>
633
+ <wirecard_checkoutseamless_giropay translate="label" module="wirecard_checkoutseamless">
634
+ <label>Wirecard Checkout Seamless giropay</label>
635
+ <frontend_type>text</frontend_type>
636
+ <sort_order>5060</sort_order>
637
+ <show_in_default>1</show_in_default>
638
+ <show_in_website>1</show_in_website>
639
+ <show_in_store>1</show_in_store>
640
+ <fields>
641
+ <active translate="label">
642
+ <label>Enabled</label>
643
+ <frontend_type>select</frontend_type>
644
+ <source_model>adminhtml/system_config_source_yesno</source_model>
645
+ <sort_order>20</sort_order>
646
+ <show_in_default>1</show_in_default>
647
+ <show_in_website>1</show_in_website>
648
+ <show_in_store>1</show_in_store>
649
+ </active>
650
+ <sort_order translate="label">
651
+ <label>Sorting order number</label>
652
+ <frontend_type>text</frontend_type>
653
+ <sort_order>30</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
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
658
+ </sort_order>
659
+ <title translate="label">
660
+ <label>Name for payment method</label>
661
+ <frontend_type>text</frontend_type>
662
+ <sort_order>40</sort_order>
663
+ <show_in_default>1</show_in_default>
664
+ <show_in_website>1</show_in_website>
665
+ <show_in_store>1</show_in_store>
666
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
667
+ </title>
668
+ <allowspecific translate="label">
669
+ <label>Payment method available for</label>
670
+ <frontend_type>allowspecific</frontend_type>
671
+ <sort_order>70</sort_order>
672
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
673
+ </source_model>
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
+ </allowspecific>
678
+ <specificcountry translate="label">
679
+ <label>Specific countries</label>
680
+ <frontend_type>multiselect</frontend_type>
681
+ <sort_order>80</sort_order>
682
+ <source_model>adminhtml/system_config_source_country
683
+ </source_model>
684
+ <show_in_default>1</show_in_default>
685
+ <show_in_website>1</show_in_website>
686
+ <show_in_store>1</show_in_store>
687
+ </specificcountry>
688
+ <min_order_total translate="label">
689
+ <label>Minimum order total</label>
690
+ <frontend_type>text</frontend_type>
691
+ <sort_order>90</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
+ </min_order_total>
696
+ <max_order_total translate="label">
697
+ <label>Maximum order total</label>
698
+ <frontend_type>text</frontend_type>
699
+ <sort_order>100</sort_order>
700
+ <show_in_default>1</show_in_default>
701
+ <show_in_website>1</show_in_website>
702
+ <show_in_store>0</show_in_store>
703
+ </max_order_total>
704
+ </fields>
705
+ </wirecard_checkoutseamless_giropay>
706
+ <wirecard_checkoutseamless_tatrapay translate="label" module="wirecard_checkoutseamless">
707
+ <label>Wirecard Checkout Seamless TatraPay</label>
708
+ <frontend_type>text</frontend_type>
709
+ <sort_order>5070</sort_order>
710
+ <show_in_default>1</show_in_default>
711
+ <show_in_website>1</show_in_website>
712
+ <show_in_store>1</show_in_store>
713
+ <fields>
714
+ <active translate="label">
715
+ <label>Enabled</label>
716
+ <frontend_type>select</frontend_type>
717
+ <source_model>adminhtml/system_config_source_yesno</source_model>
718
+ <sort_order>20</sort_order>
719
+ <show_in_default>1</show_in_default>
720
+ <show_in_website>1</show_in_website>
721
+ <show_in_store>1</show_in_store>
722
+ </active>
723
+ <sort_order translate="label">
724
+ <label>Sorting order number</label>
725
+ <frontend_type>text</frontend_type>
726
+ <sort_order>30</sort_order>
727
+ <show_in_default>1</show_in_default>
728
+ <show_in_website>1</show_in_website>
729
+ <show_in_store>1</show_in_store>
730
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
731
+ </sort_order>
732
+ <title translate="label">
733
+ <label>Name for payment method</label>
734
+ <frontend_type>text</frontend_type>
735
+ <sort_order>40</sort_order>
736
+ <show_in_default>1</show_in_default>
737
+ <show_in_website>1</show_in_website>
738
+ <show_in_store>1</show_in_store>
739
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
740
+ </title>
741
+ <allowspecific translate="label">
742
+ <label>Payment method available for</label>
743
+ <frontend_type>allowspecific</frontend_type>
744
+ <sort_order>70</sort_order>
745
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
746
+ </source_model>
747
+ <show_in_default>1</show_in_default>
748
+ <show_in_website>1</show_in_website>
749
+ <show_in_store>1</show_in_store>
750
+ </allowspecific>
751
+ <specificcountry translate="label">
752
+ <label>Specific countries</label>
753
+ <frontend_type>multiselect</frontend_type>
754
+ <sort_order>80</sort_order>
755
+ <source_model>adminhtml/system_config_source_country
756
+ </source_model>
757
+ <show_in_default>1</show_in_default>
758
+ <show_in_website>1</show_in_website>
759
+ <show_in_store>1</show_in_store>
760
+ </specificcountry>
761
+ <min_order_total translate="label">
762
+ <label>Minimum order total</label>
763
+ <frontend_type>text</frontend_type>
764
+ <sort_order>90</sort_order>
765
+ <show_in_default>1</show_in_default>
766
+ <show_in_website>1</show_in_website>
767
+ <show_in_store>1</show_in_store>
768
+ </min_order_total>
769
+ <max_order_total translate="label">
770
+ <label>Maximum order total</label>
771
+ <frontend_type>text</frontend_type>
772
+ <sort_order>100</sort_order>
773
+ <show_in_default>1</show_in_default>
774
+ <show_in_website>1</show_in_website>
775
+ <show_in_store>0</show_in_store>
776
+ </max_order_total>
777
+ </fields>
778
+ </wirecard_checkoutseamless_tatrapay>
779
+ <wirecard_checkoutseamless_sofortbanking translate="label" module="wirecard_checkoutseamless">
780
+ <label>Wirecard Checkout Seamless SOFORT Banking (PIN/TAN)</label>
781
+ <frontend_type>text</frontend_type>
782
+ <sort_order>5080</sort_order>
783
+ <show_in_default>1</show_in_default>
784
+ <show_in_website>1</show_in_website>
785
+ <show_in_store>1</show_in_store>
786
+ <fields>
787
+ <active translate="label">
788
+ <label>Enabled</label>
789
+ <frontend_type>select</frontend_type>
790
+ <source_model>adminhtml/system_config_source_yesno</source_model>
791
+ <sort_order>20</sort_order>
792
+ <show_in_default>1</show_in_default>
793
+ <show_in_website>1</show_in_website>
794
+ <show_in_store>1</show_in_store>
795
+ </active>
796
+ <sort_order translate="label">
797
+ <label>Sorting order number</label>
798
+ <frontend_type>text</frontend_type>
799
+ <sort_order>30</sort_order>
800
+ <show_in_default>1</show_in_default>
801
+ <show_in_website>1</show_in_website>
802
+ <show_in_store>1</show_in_store>
803
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
804
+ </sort_order>
805
+ <title translate="label">
806
+ <label>Name for payment method</label>
807
+ <frontend_type>text</frontend_type>
808
+ <sort_order>40</sort_order>
809
+ <show_in_default>1</show_in_default>
810
+ <show_in_website>1</show_in_website>
811
+ <show_in_store>1</show_in_store>
812
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
813
+ </title>
814
+ <allowspecific translate="label">
815
+ <label>Payment method available for</label>
816
+ <frontend_type>allowspecific</frontend_type>
817
+ <sort_order>70</sort_order>
818
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
819
+ </source_model>
820
+ <show_in_default>1</show_in_default>
821
+ <show_in_website>1</show_in_website>
822
+ <show_in_store>1</show_in_store>
823
+ </allowspecific>
824
+ <specificcountry translate="label">
825
+ <label>Specific countries</label>
826
+ <frontend_type>multiselect</frontend_type>
827
+ <sort_order>80</sort_order>
828
+ <source_model>adminhtml/system_config_source_country
829
+ </source_model>
830
+ <show_in_default>1</show_in_default>
831
+ <show_in_website>1</show_in_website>
832
+ <show_in_store>1</show_in_store>
833
+ </specificcountry>
834
+ <min_order_total translate="label">
835
+ <label>Minimum order total</label>
836
+ <frontend_type>text</frontend_type>
837
+ <sort_order>90</sort_order>
838
+ <show_in_default>1</show_in_default>
839
+ <show_in_website>1</show_in_website>
840
+ <show_in_store>1</show_in_store>
841
+ </min_order_total>
842
+ <max_order_total translate="label">
843
+ <label>Maximum order total</label>
844
+ <frontend_type>text</frontend_type>
845
+ <sort_order>100</sort_order>
846
+ <show_in_default>1</show_in_default>
847
+ <show_in_website>1</show_in_website>
848
+ <show_in_store>0</show_in_store>
849
+ </max_order_total>
850
+ </fields>
851
+ </wirecard_checkoutseamless_sofortbanking>
852
+ <wirecard_checkoutseamless_skrilldirect translate="label" module="wirecard_checkoutseamless">
853
+ <label>Wirecard Checkout Seamless Skrill Direct</label>
854
+ <frontend_type>text</frontend_type>
855
+ <sort_order>5090</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
+ <fields>
860
+ <active translate="label">
861
+ <label>Enabled</label>
862
+ <frontend_type>select</frontend_type>
863
+ <source_model>adminhtml/system_config_source_yesno</source_model>
864
+ <sort_order>20</sort_order>
865
+ <show_in_default>1</show_in_default>
866
+ <show_in_website>1</show_in_website>
867
+ <show_in_store>1</show_in_store>
868
+ </active>
869
+ <sort_order translate="label">
870
+ <label>Sorting order number</label>
871
+ <frontend_type>text</frontend_type>
872
+ <sort_order>30</sort_order>
873
+ <show_in_default>1</show_in_default>
874
+ <show_in_website>1</show_in_website>
875
+ <show_in_store>1</show_in_store>
876
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
877
+ </sort_order>
878
+ <title translate="label">
879
+ <label>Name for payment method</label>
880
+ <frontend_type>text</frontend_type>
881
+ <sort_order>40</sort_order>
882
+ <show_in_default>1</show_in_default>
883
+ <show_in_website>1</show_in_website>
884
+ <show_in_store>1</show_in_store>
885
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
886
+ </title>
887
+ <allowspecific translate="label">
888
+ <label>Payment method available for</label>
889
+ <frontend_type>allowspecific</frontend_type>
890
+ <sort_order>70</sort_order>
891
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
892
+ </source_model>
893
+ <show_in_default>1</show_in_default>
894
+ <show_in_website>1</show_in_website>
895
+ <show_in_store>1</show_in_store>
896
+ </allowspecific>
897
+ <specificcountry translate="label">
898
+ <label>Specific countries</label>
899
+ <frontend_type>multiselect</frontend_type>
900
+ <sort_order>80</sort_order>
901
+ <source_model>adminhtml/system_config_source_country
902
+ </source_model>
903
+ <show_in_default>1</show_in_default>
904
+ <show_in_website>1</show_in_website>
905
+ <show_in_store>1</show_in_store>
906
+ </specificcountry>
907
+ <min_order_total translate="label">
908
+ <label>Minimum order total</label>
909
+ <frontend_type>text</frontend_type>
910
+ <sort_order>90</sort_order>
911
+ <show_in_default>1</show_in_default>
912
+ <show_in_website>1</show_in_website>
913
+ <show_in_store>1</show_in_store>
914
+ </min_order_total>
915
+ <max_order_total translate="label">
916
+ <label>Maximum order total</label>
917
+ <frontend_type>text</frontend_type>
918
+ <sort_order>100</sort_order>
919
+ <show_in_default>1</show_in_default>
920
+ <show_in_website>1</show_in_website>
921
+ <show_in_store>0</show_in_store>
922
+ </max_order_total>
923
+ </fields>
924
+ </wirecard_checkoutseamless_skrilldirect>
925
+ <wirecard_checkoutseamless_skrillwallet translate="label" module="wirecard_checkoutseamless">
926
+ <label>Wirecard Checkout Seamless Skrill Digital Wallet</label>
927
+ <frontend_type>text</frontend_type>
928
+ <sort_order>5100</sort_order>
929
+ <show_in_default>1</show_in_default>
930
+ <show_in_website>1</show_in_website>
931
+ <show_in_store>1</show_in_store>
932
+ <fields>
933
+ <active translate="label">
934
+ <label>Enabled</label>
935
+ <frontend_type>select</frontend_type>
936
+ <source_model>adminhtml/system_config_source_yesno</source_model>
937
+ <sort_order>20</sort_order>
938
+ <show_in_default>1</show_in_default>
939
+ <show_in_website>1</show_in_website>
940
+ <show_in_store>1</show_in_store>
941
+ </active>
942
+ <sort_order translate="label">
943
+ <label>Sorting order number</label>
944
+ <frontend_type>text</frontend_type>
945
+ <sort_order>30</sort_order>
946
+ <show_in_default>1</show_in_default>
947
+ <show_in_website>1</show_in_website>
948
+ <show_in_store>1</show_in_store>
949
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
950
+ </sort_order>
951
+ <title translate="label">
952
+ <label>Name for payment method</label>
953
+ <frontend_type>text</frontend_type>
954
+ <sort_order>40</sort_order>
955
+ <show_in_default>1</show_in_default>
956
+ <show_in_website>1</show_in_website>
957
+ <show_in_store>1</show_in_store>
958
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
959
+ </title>
960
+ <allowspecific translate="label">
961
+ <label>Payment method available for</label>
962
+ <frontend_type>allowspecific</frontend_type>
963
+ <sort_order>70</sort_order>
964
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
965
+ </source_model>
966
+ <show_in_default>1</show_in_default>
967
+ <show_in_website>1</show_in_website>
968
+ <show_in_store>1</show_in_store>
969
+ </allowspecific>
970
+ <specificcountry translate="label">
971
+ <label>Specific countries</label>
972
+ <frontend_type>multiselect</frontend_type>
973
+ <sort_order>80</sort_order>
974
+ <source_model>adminhtml/system_config_source_country
975
+ </source_model>
976
+ <show_in_default>1</show_in_default>
977
+ <show_in_website>1</show_in_website>
978
+ <show_in_store>1</show_in_store>
979
+ </specificcountry>
980
+ <min_order_total translate="label">
981
+ <label>Minimum order total</label>
982
+ <frontend_type>text</frontend_type>
983
+ <sort_order>90</sort_order>
984
+ <show_in_default>1</show_in_default>
985
+ <show_in_website>1</show_in_website>
986
+ <show_in_store>1</show_in_store>
987
+ </min_order_total>
988
+ <max_order_total translate="label">
989
+ <label>Maximum order total</label>
990
+ <frontend_type>text</frontend_type>
991
+ <sort_order>100</sort_order>
992
+ <show_in_default>1</show_in_default>
993
+ <show_in_website>1</show_in_website>
994
+ <show_in_store>0</show_in_store>
995
+ </max_order_total>
996
+ </fields>
997
+ </wirecard_checkoutseamless_skrillwallet>
998
+ <wirecard_checkoutseamless_mpass translate="label" module="wirecard_checkoutseamless">
999
+ <label>Wirecard Checkout Seamless mpass</label>
1000
+ <frontend_type>text</frontend_type>
1001
+ <sort_order>5110</sort_order>
1002
+ <show_in_default>1</show_in_default>
1003
+ <show_in_website>1</show_in_website>
1004
+ <show_in_store>1</show_in_store>
1005
+ <fields>
1006
+ <active translate="label">
1007
+ <label>Enabled</label>
1008
+ <frontend_type>select</frontend_type>
1009
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1010
+ <sort_order>20</sort_order>
1011
+ <show_in_default>1</show_in_default>
1012
+ <show_in_website>1</show_in_website>
1013
+ <show_in_store>1</show_in_store>
1014
+ </active>
1015
+ <sort_order translate="label">
1016
+ <label>Sorting order number</label>
1017
+ <frontend_type>text</frontend_type>
1018
+ <sort_order>30</sort_order>
1019
+ <show_in_default>1</show_in_default>
1020
+ <show_in_website>1</show_in_website>
1021
+ <show_in_store>1</show_in_store>
1022
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1023
+ </sort_order>
1024
+ <title translate="label">
1025
+ <label>Name for payment method</label>
1026
+ <frontend_type>text</frontend_type>
1027
+ <sort_order>40</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>The name for the payment method to be displayed in the online shop.</comment>
1032
+ </title>
1033
+ <allowspecific translate="label">
1034
+ <label>Payment method available for</label>
1035
+ <frontend_type>allowspecific</frontend_type>
1036
+ <sort_order>70</sort_order>
1037
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1038
+ </source_model>
1039
+ <show_in_default>1</show_in_default>
1040
+ <show_in_website>1</show_in_website>
1041
+ <show_in_store>1</show_in_store>
1042
+ </allowspecific>
1043
+ <specificcountry translate="label">
1044
+ <label>Specific countries</label>
1045
+ <frontend_type>multiselect</frontend_type>
1046
+ <sort_order>80</sort_order>
1047
+ <source_model>adminhtml/system_config_source_country
1048
+ </source_model>
1049
+ <show_in_default>1</show_in_default>
1050
+ <show_in_website>1</show_in_website>
1051
+ <show_in_store>1</show_in_store>
1052
+ </specificcountry>
1053
+ <min_order_total translate="label">
1054
+ <label>Minimum order total</label>
1055
+ <frontend_type>text</frontend_type>
1056
+ <sort_order>90</sort_order>
1057
+ <show_in_default>1</show_in_default>
1058
+ <show_in_website>1</show_in_website>
1059
+ <show_in_store>1</show_in_store>
1060
+ </min_order_total>
1061
+ <max_order_total translate="label">
1062
+ <label>Maximum order total</label>
1063
+ <frontend_type>text</frontend_type>
1064
+ <sort_order>100</sort_order>
1065
+ <show_in_default>1</show_in_default>
1066
+ <show_in_website>1</show_in_website>
1067
+ <show_in_store>0</show_in_store>
1068
+ </max_order_total>
1069
+ </fields>
1070
+ </wirecard_checkoutseamless_mpass>
1071
+ <wirecard_checkoutseamless_bmc translate="label" module="wirecard_checkoutseamless">
1072
+ <label>Wirecard Checkout Seamless BanContact/Mister Cash</label>
1073
+ <frontend_type>text</frontend_type>
1074
+ <sort_order>5120</sort_order>
1075
+ <show_in_default>1</show_in_default>
1076
+ <show_in_website>1</show_in_website>
1077
+ <show_in_store>1</show_in_store>
1078
+ <fields>
1079
+ <active translate="label">
1080
+ <label>Enabled</label>
1081
+ <frontend_type>select</frontend_type>
1082
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1083
+ <sort_order>20</sort_order>
1084
+ <show_in_default>1</show_in_default>
1085
+ <show_in_website>1</show_in_website>
1086
+ <show_in_store>1</show_in_store>
1087
+ </active>
1088
+ <sort_order translate="label">
1089
+ <label>Sorting order number</label>
1090
+ <frontend_type>text</frontend_type>
1091
+ <sort_order>30</sort_order>
1092
+ <show_in_default>1</show_in_default>
1093
+ <show_in_website>1</show_in_website>
1094
+ <show_in_store>1</show_in_store>
1095
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1096
+ </sort_order>
1097
+ <title translate="label">
1098
+ <label>Name for payment method</label>
1099
+ <frontend_type>text</frontend_type>
1100
+ <sort_order>40</sort_order>
1101
+ <show_in_default>1</show_in_default>
1102
+ <show_in_website>1</show_in_website>
1103
+ <show_in_store>1</show_in_store>
1104
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1105
+ </title>
1106
+ <allowspecific translate="label">
1107
+ <label>Payment method available for</label>
1108
+ <frontend_type>allowspecific</frontend_type>
1109
+ <sort_order>70</sort_order>
1110
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1111
+ </source_model>
1112
+ <show_in_default>1</show_in_default>
1113
+ <show_in_website>1</show_in_website>
1114
+ <show_in_store>1</show_in_store>
1115
+ </allowspecific>
1116
+ <specificcountry translate="label">
1117
+ <label>Specific countries</label>
1118
+ <frontend_type>multiselect</frontend_type>
1119
+ <sort_order>80</sort_order>
1120
+ <source_model>adminhtml/system_config_source_country
1121
+ </source_model>
1122
+ <show_in_default>1</show_in_default>
1123
+ <show_in_website>1</show_in_website>
1124
+ <show_in_store>1</show_in_store>
1125
+ </specificcountry>
1126
+ <min_order_total translate="label">
1127
+ <label>Minimum order total</label>
1128
+ <frontend_type>text</frontend_type>
1129
+ <sort_order>90</sort_order>
1130
+ <show_in_default>1</show_in_default>
1131
+ <show_in_website>1</show_in_website>
1132
+ <show_in_store>1</show_in_store>
1133
+ </min_order_total>
1134
+ <max_order_total translate="label">
1135
+ <label>Maximum order total</label>
1136
+ <frontend_type>text</frontend_type>
1137
+ <sort_order>100</sort_order>
1138
+ <show_in_default>1</show_in_default>
1139
+ <show_in_website>1</show_in_website>
1140
+ <show_in_store>0</show_in_store>
1141
+ </max_order_total>
1142
+ </fields>
1143
+ </wirecard_checkoutseamless_bmc>
1144
+ <wirecard_checkoutseamless_p24 translate="label" module="wirecard_checkoutseamless">
1145
+ <label>Wirecard Checkout Seamless Przelewy24</label>
1146
+ <frontend_type>text</frontend_type>
1147
+ <sort_order>5130</sort_order>
1148
+ <show_in_default>1</show_in_default>
1149
+ <show_in_website>1</show_in_website>
1150
+ <show_in_store>1</show_in_store>
1151
+ <fields>
1152
+ <active translate="label">
1153
+ <label>Enabled</label>
1154
+ <frontend_type>select</frontend_type>
1155
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1156
+ <sort_order>20</sort_order>
1157
+ <show_in_default>1</show_in_default>
1158
+ <show_in_website>1</show_in_website>
1159
+ <show_in_store>1</show_in_store>
1160
+ </active>
1161
+ <sort_order translate="label">
1162
+ <label>Sorting order number</label>
1163
+ <frontend_type>text</frontend_type>
1164
+ <sort_order>30</sort_order>
1165
+ <show_in_default>1</show_in_default>
1166
+ <show_in_website>1</show_in_website>
1167
+ <show_in_store>1</show_in_store>
1168
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1169
+ </sort_order>
1170
+ <title translate="label">
1171
+ <label>Name for payment method</label>
1172
+ <frontend_type>text</frontend_type>
1173
+ <sort_order>40</sort_order>
1174
+ <show_in_default>1</show_in_default>
1175
+ <show_in_website>1</show_in_website>
1176
+ <show_in_store>1</show_in_store>
1177
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1178
+ </title>
1179
+ <allowspecific translate="label">
1180
+ <label>Payment method available for</label>
1181
+ <frontend_type>allowspecific</frontend_type>
1182
+ <sort_order>70</sort_order>
1183
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1184
+ </source_model>
1185
+ <show_in_default>1</show_in_default>
1186
+ <show_in_website>1</show_in_website>
1187
+ <show_in_store>1</show_in_store>
1188
+ </allowspecific>
1189
+ <specificcountry translate="label">
1190
+ <label>Specific countries</label>
1191
+ <frontend_type>multiselect</frontend_type>
1192
+ <sort_order>80</sort_order>
1193
+ <source_model>adminhtml/system_config_source_country
1194
+ </source_model>
1195
+ <show_in_default>1</show_in_default>
1196
+ <show_in_website>1</show_in_website>
1197
+ <show_in_store>1</show_in_store>
1198
+ </specificcountry>
1199
+ <min_order_total translate="label">
1200
+ <label>Minimum order total</label>
1201
+ <frontend_type>text</frontend_type>
1202
+ <sort_order>90</sort_order>
1203
+ <show_in_default>1</show_in_default>
1204
+ <show_in_website>1</show_in_website>
1205
+ <show_in_store>1</show_in_store>
1206
+ </min_order_total>
1207
+ <max_order_total translate="label">
1208
+ <label>Maximum order total</label>
1209
+ <frontend_type>text</frontend_type>
1210
+ <sort_order>100</sort_order>
1211
+ <show_in_default>1</show_in_default>
1212
+ <show_in_website>1</show_in_website>
1213
+ <show_in_store>0</show_in_store>
1214
+ </max_order_total>
1215
+ </fields>
1216
+ </wirecard_checkoutseamless_p24>
1217
+ <wirecard_checkoutseamless_poli translate="label" module="wirecard_checkoutseamless">
1218
+ <label>Wirecard Checkout Seamless POLi</label>
1219
+ <frontend_type>text</frontend_type>
1220
+ <sort_order>5140</sort_order>
1221
+ <show_in_default>1</show_in_default>
1222
+ <show_in_website>1</show_in_website>
1223
+ <show_in_store>1</show_in_store>
1224
+ <fields>
1225
+ <active translate="label">
1226
+ <label>Enabled</label>
1227
+ <frontend_type>select</frontend_type>
1228
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1229
+ <sort_order>20</sort_order>
1230
+ <show_in_default>1</show_in_default>
1231
+ <show_in_website>1</show_in_website>
1232
+ <show_in_store>1</show_in_store>
1233
+ </active>
1234
+ <sort_order translate="label">
1235
+ <label>Sorting order number</label>
1236
+ <frontend_type>text</frontend_type>
1237
+ <sort_order>30</sort_order>
1238
+ <show_in_default>1</show_in_default>
1239
+ <show_in_website>1</show_in_website>
1240
+ <show_in_store>1</show_in_store>
1241
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1242
+ </sort_order>
1243
+ <title translate="label">
1244
+ <label>Name for payment method</label>
1245
+ <frontend_type>text</frontend_type>
1246
+ <sort_order>40</sort_order>
1247
+ <show_in_default>1</show_in_default>
1248
+ <show_in_website>1</show_in_website>
1249
+ <show_in_store>1</show_in_store>
1250
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1251
+ </title>
1252
+ <allowspecific translate="label">
1253
+ <label>Payment method available for</label>
1254
+ <frontend_type>allowspecific</frontend_type>
1255
+ <sort_order>70</sort_order>
1256
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1257
+ </source_model>
1258
+ <show_in_default>1</show_in_default>
1259
+ <show_in_website>1</show_in_website>
1260
+ <show_in_store>1</show_in_store>
1261
+ </allowspecific>
1262
+ <specificcountry translate="label">
1263
+ <label>Specific countries</label>
1264
+ <frontend_type>multiselect</frontend_type>
1265
+ <sort_order>80</sort_order>
1266
+ <source_model>adminhtml/system_config_source_country
1267
+ </source_model>
1268
+ <show_in_default>1</show_in_default>
1269
+ <show_in_website>1</show_in_website>
1270
+ <show_in_store>1</show_in_store>
1271
+ </specificcountry>
1272
+ <min_order_total translate="label">
1273
+ <label>Minimum order total</label>
1274
+ <frontend_type>text</frontend_type>
1275
+ <sort_order>90</sort_order>
1276
+ <show_in_default>1</show_in_default>
1277
+ <show_in_website>1</show_in_website>
1278
+ <show_in_store>1</show_in_store>
1279
+ </min_order_total>
1280
+ <max_order_total translate="label">
1281
+ <label>Maximum order total</label>
1282
+ <frontend_type>text</frontend_type>
1283
+ <sort_order>100</sort_order>
1284
+ <show_in_default>1</show_in_default>
1285
+ <show_in_website>1</show_in_website>
1286
+ <show_in_store>0</show_in_store>
1287
+ </max_order_total>
1288
+ </fields>
1289
+ </wirecard_checkoutseamless_poli>
1290
+ <wirecard_checkoutseamless_moneta translate="label" module="wirecard_checkoutseamless">
1291
+ <label>Wirecard Checkout Seamless moneta.ru</label>
1292
+ <frontend_type>text</frontend_type>
1293
+ <sort_order>5150</sort_order>
1294
+ <show_in_default>1</show_in_default>
1295
+ <show_in_website>1</show_in_website>
1296
+ <show_in_store>1</show_in_store>
1297
+ <fields>
1298
+ <active translate="label">
1299
+ <label>Enabled</label>
1300
+ <frontend_type>select</frontend_type>
1301
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1302
+ <sort_order>20</sort_order>
1303
+ <show_in_default>1</show_in_default>
1304
+ <show_in_website>1</show_in_website>
1305
+ <show_in_store>1</show_in_store>
1306
+ </active>
1307
+ <sort_order translate="label">
1308
+ <label>Sorting order number</label>
1309
+ <frontend_type>text</frontend_type>
1310
+ <sort_order>30</sort_order>
1311
+ <show_in_default>1</show_in_default>
1312
+ <show_in_website>1</show_in_website>
1313
+ <show_in_store>1</show_in_store>
1314
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1315
+ </sort_order>
1316
+ <title translate="label">
1317
+ <label>Name for payment method</label>
1318
+ <frontend_type>text</frontend_type>
1319
+ <sort_order>40</sort_order>
1320
+ <show_in_default>1</show_in_default>
1321
+ <show_in_website>1</show_in_website>
1322
+ <show_in_store>1</show_in_store>
1323
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1324
+ </title>
1325
+ <allowspecific translate="label">
1326
+ <label>Payment method available for</label>
1327
+ <frontend_type>allowspecific</frontend_type>
1328
+ <sort_order>70</sort_order>
1329
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1330
+ </source_model>
1331
+ <show_in_default>1</show_in_default>
1332
+ <show_in_website>1</show_in_website>
1333
+ <show_in_store>1</show_in_store>
1334
+ </allowspecific>
1335
+ <specificcountry translate="label">
1336
+ <label>Specific countries</label>
1337
+ <frontend_type>multiselect</frontend_type>
1338
+ <sort_order>80</sort_order>
1339
+ <source_model>adminhtml/system_config_source_country
1340
+ </source_model>
1341
+ <show_in_default>1</show_in_default>
1342
+ <show_in_website>1</show_in_website>
1343
+ <show_in_store>1</show_in_store>
1344
+ </specificcountry>
1345
+ <min_order_total translate="label">
1346
+ <label>Minimum order total</label>
1347
+ <frontend_type>text</frontend_type>
1348
+ <sort_order>90</sort_order>
1349
+ <show_in_default>1</show_in_default>
1350
+ <show_in_website>1</show_in_website>
1351
+ <show_in_store>1</show_in_store>
1352
+ </min_order_total>
1353
+ <max_order_total translate="label">
1354
+ <label>Maximum order total</label>
1355
+ <frontend_type>text</frontend_type>
1356
+ <sort_order>100</sort_order>
1357
+ <show_in_default>1</show_in_default>
1358
+ <show_in_website>1</show_in_website>
1359
+ <show_in_store>0</show_in_store>
1360
+ </max_order_total>
1361
+ </fields>
1362
+ </wirecard_checkoutseamless_moneta>
1363
+ <wirecard_checkoutseamless_ekonto translate="label" module="wirecard_checkoutseamless">
1364
+ <label>Wirecard Checkout Seamless eKonto</label>
1365
+ <frontend_type>text</frontend_type>
1366
+ <sort_order>5160</sort_order>
1367
+ <show_in_default>1</show_in_default>
1368
+ <show_in_website>1</show_in_website>
1369
+ <show_in_store>1</show_in_store>
1370
+ <fields>
1371
+ <active translate="label">
1372
+ <label>Enabled</label>
1373
+ <frontend_type>select</frontend_type>
1374
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1375
+ <sort_order>20</sort_order>
1376
+ <show_in_default>1</show_in_default>
1377
+ <show_in_website>1</show_in_website>
1378
+ <show_in_store>1</show_in_store>
1379
+ </active>
1380
+ <sort_order translate="label">
1381
+ <label>Sorting order number</label>
1382
+ <frontend_type>text</frontend_type>
1383
+ <sort_order>30</sort_order>
1384
+ <show_in_default>1</show_in_default>
1385
+ <show_in_website>1</show_in_website>
1386
+ <show_in_store>1</show_in_store>
1387
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1388
+ </sort_order>
1389
+ <title translate="label">
1390
+ <label>Name for payment method</label>
1391
+ <frontend_type>text</frontend_type>
1392
+ <sort_order>40</sort_order>
1393
+ <show_in_default>1</show_in_default>
1394
+ <show_in_website>1</show_in_website>
1395
+ <show_in_store>1</show_in_store>
1396
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1397
+ </title>
1398
+ <allowspecific translate="label">
1399
+ <label>Payment method available for</label>
1400
+ <frontend_type>allowspecific</frontend_type>
1401
+ <sort_order>70</sort_order>
1402
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1403
+ </source_model>
1404
+ <show_in_default>1</show_in_default>
1405
+ <show_in_website>1</show_in_website>
1406
+ <show_in_store>1</show_in_store>
1407
+ </allowspecific>
1408
+ <specificcountry translate="label">
1409
+ <label>Specific countries</label>
1410
+ <frontend_type>multiselect</frontend_type>
1411
+ <sort_order>80</sort_order>
1412
+ <source_model>adminhtml/system_config_source_country
1413
+ </source_model>
1414
+ <show_in_default>1</show_in_default>
1415
+ <show_in_website>1</show_in_website>
1416
+ <show_in_store>1</show_in_store>
1417
+ </specificcountry>
1418
+ <min_order_total translate="label">
1419
+ <label>Minimum order total</label>
1420
+ <frontend_type>text</frontend_type>
1421
+ <sort_order>90</sort_order>
1422
+ <show_in_default>1</show_in_default>
1423
+ <show_in_website>1</show_in_website>
1424
+ <show_in_store>1</show_in_store>
1425
+ </min_order_total>
1426
+ <max_order_total translate="label">
1427
+ <label>Maximum order total</label>
1428
+ <frontend_type>text</frontend_type>
1429
+ <sort_order>100</sort_order>
1430
+ <show_in_default>1</show_in_default>
1431
+ <show_in_website>1</show_in_website>
1432
+ <show_in_store>0</show_in_store>
1433
+ </max_order_total>
1434
+ </fields>
1435
+ </wirecard_checkoutseamless_ekonto>
1436
+ <wirecard_checkoutseamless_trustly translate="label" module="wirecard_checkoutseamless">
1437
+ <label>Wirecard Checkout Seamless Trustly</label>
1438
+ <frontend_type>text</frontend_type>
1439
+ <sort_order>5170</sort_order>
1440
+ <show_in_default>1</show_in_default>
1441
+ <show_in_website>1</show_in_website>
1442
+ <show_in_store>1</show_in_store>
1443
+ <fields>
1444
+ <active translate="label">
1445
+ <label>Enabled</label>
1446
+ <frontend_type>select</frontend_type>
1447
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1448
+ <sort_order>20</sort_order>
1449
+ <show_in_default>1</show_in_default>
1450
+ <show_in_website>1</show_in_website>
1451
+ <show_in_store>1</show_in_store>
1452
+ </active>
1453
+ <sort_order translate="label">
1454
+ <label>Sorting order number</label>
1455
+ <frontend_type>text</frontend_type>
1456
+ <sort_order>30</sort_order>
1457
+ <show_in_default>1</show_in_default>
1458
+ <show_in_website>1</show_in_website>
1459
+ <show_in_store>1</show_in_store>
1460
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1461
+ </sort_order>
1462
+ <title translate="label">
1463
+ <label>Name for payment method</label>
1464
+ <frontend_type>text</frontend_type>
1465
+ <sort_order>40</sort_order>
1466
+ <show_in_default>1</show_in_default>
1467
+ <show_in_website>1</show_in_website>
1468
+ <show_in_store>1</show_in_store>
1469
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1470
+ </title>
1471
+ <allowspecific translate="label">
1472
+ <label>Payment method available for</label>
1473
+ <frontend_type>allowspecific</frontend_type>
1474
+ <sort_order>70</sort_order>
1475
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1476
+ </source_model>
1477
+ <show_in_default>1</show_in_default>
1478
+ <show_in_website>1</show_in_website>
1479
+ <show_in_store>1</show_in_store>
1480
+ </allowspecific>
1481
+ <specificcountry translate="label">
1482
+ <label>Specific countries</label>
1483
+ <frontend_type>multiselect</frontend_type>
1484
+ <sort_order>80</sort_order>
1485
+ <source_model>adminhtml/system_config_source_country
1486
+ </source_model>
1487
+ <show_in_default>1</show_in_default>
1488
+ <show_in_website>1</show_in_website>
1489
+ <show_in_store>1</show_in_store>
1490
+ </specificcountry>
1491
+ <min_order_total translate="label">
1492
+ <label>Minimum order total</label>
1493
+ <frontend_type>text</frontend_type>
1494
+ <sort_order>90</sort_order>
1495
+ <show_in_default>1</show_in_default>
1496
+ <show_in_website>1</show_in_website>
1497
+ <show_in_store>1</show_in_store>
1498
+ </min_order_total>
1499
+ <max_order_total translate="label">
1500
+ <label>Maximum order total</label>
1501
+ <frontend_type>text</frontend_type>
1502
+ <sort_order>100</sort_order>
1503
+ <show_in_default>1</show_in_default>
1504
+ <show_in_website>1</show_in_website>
1505
+ <show_in_store>0</show_in_store>
1506
+ </max_order_total>
1507
+ </fields>
1508
+ </wirecard_checkoutseamless_trustly>
1509
+ <wirecard_checkoutseamless_paybox translate="label" module="wirecard_checkoutseamless">
1510
+ <label>Wirecard Checkout Seamless paybox</label>
1511
+ <frontend_type>text</frontend_type>
1512
+ <sort_order>5180</sort_order>
1513
+ <show_in_default>1</show_in_default>
1514
+ <show_in_website>1</show_in_website>
1515
+ <show_in_store>1</show_in_store>
1516
+ <fields>
1517
+ <active translate="label">
1518
+ <label>Enabled</label>
1519
+ <frontend_type>select</frontend_type>
1520
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1521
+ <sort_order>20</sort_order>
1522
+ <show_in_default>1</show_in_default>
1523
+ <show_in_website>1</show_in_website>
1524
+ <show_in_store>1</show_in_store>
1525
+ </active>
1526
+ <sort_order translate="label">
1527
+ <label>Sorting order number</label>
1528
+ <frontend_type>text</frontend_type>
1529
+ <sort_order>30</sort_order>
1530
+ <show_in_default>1</show_in_default>
1531
+ <show_in_website>1</show_in_website>
1532
+ <show_in_store>1</show_in_store>
1533
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1534
+ </sort_order>
1535
+ <title translate="label">
1536
+ <label>Name for payment method</label>
1537
+ <frontend_type>text</frontend_type>
1538
+ <sort_order>40</sort_order>
1539
+ <show_in_default>1</show_in_default>
1540
+ <show_in_website>1</show_in_website>
1541
+ <show_in_store>1</show_in_store>
1542
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1543
+ </title>
1544
+ <allowspecific translate="label">
1545
+ <label>Payment method available for</label>
1546
+ <frontend_type>allowspecific</frontend_type>
1547
+ <sort_order>70</sort_order>
1548
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1549
+ </source_model>
1550
+ <show_in_default>1</show_in_default>
1551
+ <show_in_website>1</show_in_website>
1552
+ <show_in_store>1</show_in_store>
1553
+ </allowspecific>
1554
+ <specificcountry translate="label">
1555
+ <label>Specific countries</label>
1556
+ <frontend_type>multiselect</frontend_type>
1557
+ <sort_order>80</sort_order>
1558
+ <source_model>adminhtml/system_config_source_country
1559
+ </source_model>
1560
+ <show_in_default>1</show_in_default>
1561
+ <show_in_website>1</show_in_website>
1562
+ <show_in_store>1</show_in_store>
1563
+ </specificcountry>
1564
+ <min_order_total translate="label">
1565
+ <label>Minimum order total</label>
1566
+ <frontend_type>text</frontend_type>
1567
+ <sort_order>90</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
+ </min_order_total>
1572
+ <max_order_total translate="label">
1573
+ <label>Maximum order total</label>
1574
+ <frontend_type>text</frontend_type>
1575
+ <sort_order>100</sort_order>
1576
+ <show_in_default>1</show_in_default>
1577
+ <show_in_website>1</show_in_website>
1578
+ <show_in_store>0</show_in_store>
1579
+ </max_order_total>
1580
+ </fields>
1581
+ </wirecard_checkoutseamless_paybox>
1582
+ <wirecard_checkoutseamless_paysafecard translate="label" module="wirecard_checkoutseamless">
1583
+ <label>Wirecard Checkout Seamless paysafecard</label>
1584
+ <frontend_type>text</frontend_type>
1585
+ <sort_order>5190</sort_order>
1586
+ <show_in_default>1</show_in_default>
1587
+ <show_in_website>1</show_in_website>
1588
+ <show_in_store>1</show_in_store>
1589
+ <fields>
1590
+ <active translate="label">
1591
+ <label>Enabled</label>
1592
+ <frontend_type>select</frontend_type>
1593
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1594
+ <sort_order>20</sort_order>
1595
+ <show_in_default>1</show_in_default>
1596
+ <show_in_website>1</show_in_website>
1597
+ <show_in_store>1</show_in_store>
1598
+ </active>
1599
+ <sort_order translate="label">
1600
+ <label>Sorting order number</label>
1601
+ <frontend_type>text</frontend_type>
1602
+ <sort_order>30</sort_order>
1603
+ <show_in_default>1</show_in_default>
1604
+ <show_in_website>1</show_in_website>
1605
+ <show_in_store>1</show_in_store>
1606
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1607
+ </sort_order>
1608
+ <title translate="label">
1609
+ <label>Name for payment method</label>
1610
+ <frontend_type>text</frontend_type>
1611
+ <sort_order>40</sort_order>
1612
+ <show_in_default>1</show_in_default>
1613
+ <show_in_website>1</show_in_website>
1614
+ <show_in_store>1</show_in_store>
1615
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1616
+ </title>
1617
+ <allowspecific translate="label">
1618
+ <label>Payment method available for</label>
1619
+ <frontend_type>allowspecific</frontend_type>
1620
+ <sort_order>70</sort_order>
1621
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1622
+ </source_model>
1623
+ <show_in_default>1</show_in_default>
1624
+ <show_in_website>1</show_in_website>
1625
+ <show_in_store>1</show_in_store>
1626
+ </allowspecific>
1627
+ <specificcountry translate="label">
1628
+ <label>Specific countries</label>
1629
+ <frontend_type>multiselect</frontend_type>
1630
+ <sort_order>80</sort_order>
1631
+ <source_model>adminhtml/system_config_source_country
1632
+ </source_model>
1633
+ <show_in_default>1</show_in_default>
1634
+ <show_in_website>1</show_in_website>
1635
+ <show_in_store>1</show_in_store>
1636
+ </specificcountry>
1637
+ <min_order_total translate="label">
1638
+ <label>Minimum order total</label>
1639
+ <frontend_type>text</frontend_type>
1640
+ <sort_order>90</sort_order>
1641
+ <show_in_default>1</show_in_default>
1642
+ <show_in_website>1</show_in_website>
1643
+ <show_in_store>1</show_in_store>
1644
+ </min_order_total>
1645
+ <max_order_total translate="label">
1646
+ <label>Maximum order total</label>
1647
+ <frontend_type>text</frontend_type>
1648
+ <sort_order>100</sort_order>
1649
+ <show_in_default>1</show_in_default>
1650
+ <show_in_website>1</show_in_website>
1651
+ <show_in_store>0</show_in_store>
1652
+ </max_order_total>
1653
+ </fields>
1654
+ </wirecard_checkoutseamless_paysafecard>
1655
+ <wirecard_checkoutseamless_quick translate="label" module="wirecard_checkoutseamless">
1656
+ <label>Wirecard Checkout Seamless @Quick</label>
1657
+ <frontend_type>text</frontend_type>
1658
+ <sort_order>5200</sort_order>
1659
+ <show_in_default>1</show_in_default>
1660
+ <show_in_website>1</show_in_website>
1661
+ <show_in_store>1</show_in_store>
1662
+ <fields>
1663
+ <active translate="label">
1664
+ <label>Enabled</label>
1665
+ <frontend_type>select</frontend_type>
1666
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1667
+ <sort_order>20</sort_order>
1668
+ <show_in_default>1</show_in_default>
1669
+ <show_in_website>1</show_in_website>
1670
+ <show_in_store>1</show_in_store>
1671
+ </active>
1672
+ <sort_order translate="label">
1673
+ <label>Sorting order number</label>
1674
+ <frontend_type>text</frontend_type>
1675
+ <sort_order>30</sort_order>
1676
+ <show_in_default>1</show_in_default>
1677
+ <show_in_website>1</show_in_website>
1678
+ <show_in_store>1</show_in_store>
1679
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1680
+ </sort_order>
1681
+ <title translate="label">
1682
+ <label>Name for payment method</label>
1683
+ <frontend_type>text</frontend_type>
1684
+ <sort_order>40</sort_order>
1685
+ <show_in_default>1</show_in_default>
1686
+ <show_in_website>1</show_in_website>
1687
+ <show_in_store>1</show_in_store>
1688
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1689
+ </title>
1690
+ <allowspecific translate="label">
1691
+ <label>Payment method available for</label>
1692
+ <frontend_type>allowspecific</frontend_type>
1693
+ <sort_order>70</sort_order>
1694
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1695
+ </source_model>
1696
+ <show_in_default>1</show_in_default>
1697
+ <show_in_website>1</show_in_website>
1698
+ <show_in_store>1</show_in_store>
1699
+ </allowspecific>
1700
+ <specificcountry translate="label">
1701
+ <label>Specific countries</label>
1702
+ <frontend_type>multiselect</frontend_type>
1703
+ <sort_order>80</sort_order>
1704
+ <source_model>adminhtml/system_config_source_country
1705
+ </source_model>
1706
+ <show_in_default>1</show_in_default>
1707
+ <show_in_website>1</show_in_website>
1708
+ <show_in_store>1</show_in_store>
1709
+ </specificcountry>
1710
+ <min_order_total translate="label">
1711
+ <label>Minimum order total</label>
1712
+ <frontend_type>text</frontend_type>
1713
+ <sort_order>90</sort_order>
1714
+ <show_in_default>1</show_in_default>
1715
+ <show_in_website>1</show_in_website>
1716
+ <show_in_store>1</show_in_store>
1717
+ </min_order_total>
1718
+ <max_order_total translate="label">
1719
+ <label>Maximum order total</label>
1720
+ <frontend_type>text</frontend_type>
1721
+ <sort_order>100</sort_order>
1722
+ <show_in_default>1</show_in_default>
1723
+ <show_in_website>1</show_in_website>
1724
+ <show_in_store>0</show_in_store>
1725
+ </max_order_total>
1726
+ </fields>
1727
+ </wirecard_checkoutseamless_quick>
1728
+ <wirecard_checkoutseamless_paypal translate="label" module="wirecard_checkoutseamless">
1729
+ <label>Wirecard Checkout Seamless PayPal</label>
1730
+ <frontend_type>text</frontend_type>
1731
+ <sort_order>5210</sort_order>
1732
+ <show_in_default>1</show_in_default>
1733
+ <show_in_website>1</show_in_website>
1734
+ <show_in_store>1</show_in_store>
1735
+ <fields>
1736
+ <active translate="label">
1737
+ <label>Enabled</label>
1738
+ <frontend_type>select</frontend_type>
1739
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1740
+ <sort_order>20</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
+ </active>
1745
+ <sort_order translate="label">
1746
+ <label>Sorting order number</label>
1747
+ <frontend_type>text</frontend_type>
1748
+ <sort_order>30</sort_order>
1749
+ <show_in_default>1</show_in_default>
1750
+ <show_in_website>1</show_in_website>
1751
+ <show_in_store>1</show_in_store>
1752
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1753
+ </sort_order>
1754
+ <title translate="label">
1755
+ <label>Name for payment method</label>
1756
+ <frontend_type>text</frontend_type>
1757
+ <sort_order>40</sort_order>
1758
+ <show_in_default>1</show_in_default>
1759
+ <show_in_website>1</show_in_website>
1760
+ <show_in_store>1</show_in_store>
1761
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1762
+ </title>
1763
+ <allowspecific translate="label">
1764
+ <label>Payment method available for</label>
1765
+ <frontend_type>allowspecific</frontend_type>
1766
+ <sort_order>70</sort_order>
1767
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1768
+ </source_model>
1769
+ <show_in_default>1</show_in_default>
1770
+ <show_in_website>1</show_in_website>
1771
+ <show_in_store>1</show_in_store>
1772
+ </allowspecific>
1773
+ <specificcountry translate="label">
1774
+ <label>Specific countries</label>
1775
+ <frontend_type>multiselect</frontend_type>
1776
+ <sort_order>80</sort_order>
1777
+ <source_model>adminhtml/system_config_source_country
1778
+ </source_model>
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
+ </specificcountry>
1783
+ <min_order_total translate="label">
1784
+ <label>Minimum order total</label>
1785
+ <frontend_type>text</frontend_type>
1786
+ <sort_order>90</sort_order>
1787
+ <show_in_default>1</show_in_default>
1788
+ <show_in_website>1</show_in_website>
1789
+ <show_in_store>1</show_in_store>
1790
+ </min_order_total>
1791
+ <max_order_total translate="label">
1792
+ <label>Maximum order total</label>
1793
+ <frontend_type>text</frontend_type>
1794
+ <sort_order>100</sort_order>
1795
+ <show_in_default>1</show_in_default>
1796
+ <show_in_website>1</show_in_website>
1797
+ <show_in_store>0</show_in_store>
1798
+ </max_order_total>
1799
+ </fields>
1800
+ </wirecard_checkoutseamless_paypal>
1801
+ <wirecard_checkoutseamless_epaybg translate="label" module="wirecard_checkoutseamless">
1802
+ <label>Wirecard Checkout Seamless epay.bg</label>
1803
+ <frontend_type>text</frontend_type>
1804
+ <sort_order>5220</sort_order>
1805
+ <show_in_default>1</show_in_default>
1806
+ <show_in_website>1</show_in_website>
1807
+ <show_in_store>1</show_in_store>
1808
+ <fields>
1809
+ <active translate="label">
1810
+ <label>Enabled</label>
1811
+ <frontend_type>select</frontend_type>
1812
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1813
+ <sort_order>20</sort_order>
1814
+ <show_in_default>1</show_in_default>
1815
+ <show_in_website>1</show_in_website>
1816
+ <show_in_store>1</show_in_store>
1817
+ </active>
1818
+ <sort_order translate="label">
1819
+ <label>Sorting order number</label>
1820
+ <frontend_type>text</frontend_type>
1821
+ <sort_order>30</sort_order>
1822
+ <show_in_default>1</show_in_default>
1823
+ <show_in_website>1</show_in_website>
1824
+ <show_in_store>1</show_in_store>
1825
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1826
+ </sort_order>
1827
+ <title translate="label">
1828
+ <label>Name for payment method</label>
1829
+ <frontend_type>text</frontend_type>
1830
+ <sort_order>40</sort_order>
1831
+ <show_in_default>1</show_in_default>
1832
+ <show_in_website>1</show_in_website>
1833
+ <show_in_store>1</show_in_store>
1834
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1835
+ </title>
1836
+ <allowspecific translate="label">
1837
+ <label>Payment method available for</label>
1838
+ <frontend_type>allowspecific</frontend_type>
1839
+ <sort_order>70</sort_order>
1840
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1841
+ </source_model>
1842
+ <show_in_default>1</show_in_default>
1843
+ <show_in_website>1</show_in_website>
1844
+ <show_in_store>1</show_in_store>
1845
+ </allowspecific>
1846
+ <specificcountry translate="label">
1847
+ <label>Specific countries</label>
1848
+ <frontend_type>multiselect</frontend_type>
1849
+ <sort_order>80</sort_order>
1850
+ <source_model>adminhtml/system_config_source_country
1851
+ </source_model>
1852
+ <show_in_default>1</show_in_default>
1853
+ <show_in_website>1</show_in_website>
1854
+ <show_in_store>1</show_in_store>
1855
+ </specificcountry>
1856
+ <min_order_total translate="label">
1857
+ <label>Minimum order total</label>
1858
+ <frontend_type>text</frontend_type>
1859
+ <sort_order>90</sort_order>
1860
+ <show_in_default>1</show_in_default>
1861
+ <show_in_website>1</show_in_website>
1862
+ <show_in_store>1</show_in_store>
1863
+ </min_order_total>
1864
+ <max_order_total translate="label">
1865
+ <label>Maximum order total</label>
1866
+ <frontend_type>text</frontend_type>
1867
+ <sort_order>100</sort_order>
1868
+ <show_in_default>1</show_in_default>
1869
+ <show_in_website>1</show_in_website>
1870
+ <show_in_store>0</show_in_store>
1871
+ </max_order_total>
1872
+ </fields>
1873
+ </wirecard_checkoutseamless_epaybg>
1874
+ <wirecard_checkoutseamless_sepadd translate="label" module="wirecard_checkoutseamless">
1875
+ <label>Wirecard Checkout Seamless SEPA Direct Debit</label>
1876
+ <frontend_type>text</frontend_type>
1877
+ <sort_order>5230</sort_order>
1878
+ <show_in_default>1</show_in_default>
1879
+ <show_in_website>1</show_in_website>
1880
+ <show_in_store>1</show_in_store>
1881
+ <fields>
1882
+ <active translate="label">
1883
+ <label>Enabled</label>
1884
+ <frontend_type>select</frontend_type>
1885
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1886
+ <sort_order>20</sort_order>
1887
+ <show_in_default>1</show_in_default>
1888
+ <show_in_website>1</show_in_website>
1889
+ <show_in_store>1</show_in_store>
1890
+ </active>
1891
+ <sort_order translate="label">
1892
+ <label>Sorting order number</label>
1893
+ <frontend_type>text</frontend_type>
1894
+ <sort_order>30</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>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1899
+ </sort_order>
1900
+ <title translate="label">
1901
+ <label>Name for payment method</label>
1902
+ <frontend_type>text</frontend_type>
1903
+ <sort_order>40</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>The name for the payment method to be displayed in the online shop.</comment>
1908
+ </title>
1909
+ <allowspecific translate="label">
1910
+ <label>Payment method available for</label>
1911
+ <frontend_type>allowspecific</frontend_type>
1912
+ <sort_order>70</sort_order>
1913
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1914
+ </source_model>
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
+ </allowspecific>
1919
+ <specificcountry translate="label">
1920
+ <label>Specific countries</label>
1921
+ <frontend_type>multiselect</frontend_type>
1922
+ <sort_order>80</sort_order>
1923
+ <source_model>adminhtml/system_config_source_country
1924
+ </source_model>
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
+ </specificcountry>
1929
+ <min_order_total translate="label">
1930
+ <label>Minimum order total</label>
1931
+ <frontend_type>text</frontend_type>
1932
+ <sort_order>90</sort_order>
1933
+ <show_in_default>1</show_in_default>
1934
+ <show_in_website>1</show_in_website>
1935
+ <show_in_store>1</show_in_store>
1936
+ </min_order_total>
1937
+ <max_order_total translate="label">
1938
+ <label>Maximum order total</label>
1939
+ <frontend_type>text</frontend_type>
1940
+ <sort_order>100</sort_order>
1941
+ <show_in_default>1</show_in_default>
1942
+ <show_in_website>1</show_in_website>
1943
+ <show_in_store>0</show_in_store>
1944
+ </max_order_total>
1945
+ </fields>
1946
+ </wirecard_checkoutseamless_sepadd>
1947
+ <wirecard_checkoutseamless_invoice translate="label" module="wirecard_checkoutseamless">
1948
+ <label>Wirecard Checkout Seamless Invoice</label>
1949
+ <frontend_type>text</frontend_type>
1950
+ <sort_order>5240</sort_order>
1951
+ <show_in_default>1</show_in_default>
1952
+ <show_in_website>1</show_in_website>
1953
+ <show_in_store>1</show_in_store>
1954
+ <fields>
1955
+ <active translate="label">
1956
+ <label>Enabled</label>
1957
+ <frontend_type>select</frontend_type>
1958
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1959
+ <sort_order>20</sort_order>
1960
+ <show_in_default>1</show_in_default>
1961
+ <show_in_website>1</show_in_website>
1962
+ <show_in_store>1</show_in_store>
1963
+ </active>
1964
+ <provider translate="label">
1965
+ <label>Financial service provider</label>
1966
+ <frontend_type>select</frontend_type>
1967
+ <source_model>Wirecard_CheckoutSeamless_Model_System_Config_InvoiceProviders</source_model>
1968
+ <sort_order>22</sort_order>
1969
+ <show_in_default>1</show_in_default>
1970
+ <show_in_website>1</show_in_website>
1971
+ <show_in_store>1</show_in_store>
1972
+ </provider>
1973
+ <sort_order translate="label">
1974
+ <label>Sorting order number</label>
1975
+ <frontend_type>text</frontend_type>
1976
+ <sort_order>30</sort_order>
1977
+ <show_in_default>1</show_in_default>
1978
+ <show_in_website>1</show_in_website>
1979
+ <show_in_store>1</show_in_store>
1980
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
1981
+ </sort_order>
1982
+ <title translate="label">
1983
+ <label>Name for payment method</label>
1984
+ <frontend_type>text</frontend_type>
1985
+ <sort_order>40</sort_order>
1986
+ <show_in_default>1</show_in_default>
1987
+ <show_in_website>1</show_in_website>
1988
+ <show_in_store>1</show_in_store>
1989
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
1990
+ </title>
1991
+ <allowspecific translate="label">
1992
+ <label>Payment method available for</label>
1993
+ <frontend_type>allowspecific</frontend_type>
1994
+ <sort_order>70</sort_order>
1995
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
1996
+ </source_model>
1997
+ <show_in_default>1</show_in_default>
1998
+ <show_in_website>1</show_in_website>
1999
+ <show_in_store>1</show_in_store>
2000
+ </allowspecific>
2001
+ <specificcountry translate="label">
2002
+ <label>Specific countries</label>
2003
+ <frontend_type>multiselect</frontend_type>
2004
+ <sort_order>80</sort_order>
2005
+ <source_model>adminhtml/system_config_source_country
2006
+ </source_model>
2007
+ <show_in_default>1</show_in_default>
2008
+ <show_in_website>1</show_in_website>
2009
+ <show_in_store>1</show_in_store>
2010
+ </specificcountry>
2011
+ <min_order_total translate="label">
2012
+ <label>Minimum order total</label>
2013
+ <frontend_type>text</frontend_type>
2014
+ <sort_order>90</sort_order>
2015
+ <show_in_default>1</show_in_default>
2016
+ <show_in_website>1</show_in_website>
2017
+ <show_in_store>1</show_in_store>
2018
+ </min_order_total>
2019
+ <max_order_total translate="label">
2020
+ <label>Maximum order total</label>
2021
+ <frontend_type>text</frontend_type>
2022
+ <sort_order>100</sort_order>
2023
+ <show_in_default>1</show_in_default>
2024
+ <show_in_website>1</show_in_website>
2025
+ <show_in_store>1</show_in_store>
2026
+ </max_order_total>
2027
+ <currencies translate="label,comment">
2028
+ <label>Supported currencies</label>
2029
+ <frontend_type>multiselect</frontend_type>
2030
+ <source_model>adminhtml/system_config_source_currency</source_model>
2031
+ <sort_order>110</sort_order>
2032
+ <show_in_default>1</show_in_default>
2033
+ <show_in_website>1</show_in_website>
2034
+ <show_in_store>1</show_in_store>
2035
+ <comment>Only applicable for RatePay.</comment>
2036
+ </currencies>
2037
+ <min_age translate="label,comment">
2038
+ <label>Minimum age</label>
2039
+ <frontend_type>text</frontend_type>
2040
+ <validate>validate-not-negative-number</validate>
2041
+ <sort_order>120</sort_order>
2042
+ <show_in_default>1</show_in_default>
2043
+ <show_in_website>1</show_in_website>
2044
+ <show_in_store>1</show_in_store>
2045
+ <comment>Only applicable for RatePay.</comment>
2046
+ </min_age>
2047
+ </fields>
2048
+ </wirecard_checkoutseamless_invoice>
2049
+ <wirecard_checkoutseamless_invoiceb2b translate="label" module="wirecard_checkoutseamless">
2050
+ <label>Wirecard Checkout Seamless Invoice B2B</label>
2051
+ <frontend_type>text</frontend_type>
2052
+ <sort_order>5250</sort_order>
2053
+ <show_in_default>1</show_in_default>
2054
+ <show_in_website>1</show_in_website>
2055
+ <show_in_store>1</show_in_store>
2056
+ <fields>
2057
+ <active translate="label">
2058
+ <label>Enabled</label>
2059
+ <frontend_type>select</frontend_type>
2060
+ <source_model>adminhtml/system_config_source_yesno</source_model>
2061
+ <sort_order>20</sort_order>
2062
+ <show_in_default>1</show_in_default>
2063
+ <show_in_website>1</show_in_website>
2064
+ <show_in_store>1</show_in_store>
2065
+ </active>
2066
+ <provider translate="label">
2067
+ <label>Financial service provider</label>
2068
+ <frontend_type>select</frontend_type>
2069
+ <source_model>Wirecard_CheckoutSeamless_Model_System_Config_InvoiceProviders</source_model>
2070
+ <sort_order>22</sort_order>
2071
+ <show_in_default>1</show_in_default>
2072
+ <show_in_website>1</show_in_website>
2073
+ <show_in_store>1</show_in_store>
2074
+ </provider>
2075
+ <sort_order translate="label">
2076
+ <label>Sorting order number</label>
2077
+ <frontend_type>text</frontend_type>
2078
+ <sort_order>30</sort_order>
2079
+ <show_in_default>1</show_in_default>
2080
+ <show_in_website>1</show_in_website>
2081
+ <show_in_store>1</show_in_store>
2082
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2083
+ </sort_order>
2084
+ <title translate="label">
2085
+ <label>Name for payment method</label>
2086
+ <frontend_type>text</frontend_type>
2087
+ <sort_order>40</sort_order>
2088
+ <show_in_default>1</show_in_default>
2089
+ <show_in_website>1</show_in_website>
2090
+ <show_in_store>1</show_in_store>
2091
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
2092
+ </title>
2093
+ <allowspecific translate="label">
2094
+ <label>Payment method available for</label>
2095
+ <frontend_type>allowspecific</frontend_type>
2096
+ <sort_order>70</sort_order>
2097
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
2098
+ </source_model>
2099
+ <show_in_default>1</show_in_default>
2100
+ <show_in_website>1</show_in_website>
2101
+ <show_in_store>1</show_in_store>
2102
+ </allowspecific>
2103
+ <specificcountry translate="label">
2104
+ <label>Specific countries</label>
2105
+ <frontend_type>multiselect</frontend_type>
2106
+ <sort_order>80</sort_order>
2107
+ <source_model>adminhtml/system_config_source_country
2108
+ </source_model>
2109
+ <show_in_default>1</show_in_default>
2110
+ <show_in_website>1</show_in_website>
2111
+ <show_in_store>1</show_in_store>
2112
+ </specificcountry>
2113
+ <min_order_total translate="label">
2114
+ <label>Minimum order total</label>
2115
+ <frontend_type>text</frontend_type>
2116
+ <sort_order>90</sort_order>
2117
+ <show_in_default>1</show_in_default>
2118
+ <show_in_website>1</show_in_website>
2119
+ <show_in_store>1</show_in_store>
2120
+ </min_order_total>
2121
+ <max_order_total translate="label">
2122
+ <label>Maximum order total</label>
2123
+ <frontend_type>text</frontend_type>
2124
+ <sort_order>100</sort_order>
2125
+ <show_in_default>1</show_in_default>
2126
+ <show_in_website>1</show_in_website>
2127
+ <show_in_store>0</show_in_store>
2128
+ </max_order_total>
2129
+ </fields>
2130
+ </wirecard_checkoutseamless_invoiceb2b>
2131
+ <wirecard_checkoutseamless_installment translate="label" module="wirecard_checkoutseamless">
2132
+ <label>Wirecard Checkout Seamless Installment</label>
2133
+ <frontend_type>text</frontend_type>
2134
+ <sort_order>5260</sort_order>
2135
+ <show_in_default>1</show_in_default>
2136
+ <show_in_website>1</show_in_website>
2137
+ <show_in_store>1</show_in_store>
2138
+ <fields>
2139
+ <active translate="label">
2140
+ <label>Enabled</label>
2141
+ <frontend_type>select</frontend_type>
2142
+ <source_model>adminhtml/system_config_source_yesno</source_model>
2143
+ <sort_order>20</sort_order>
2144
+ <show_in_default>1</show_in_default>
2145
+ <show_in_website>1</show_in_website>
2146
+ <show_in_store>1</show_in_store>
2147
+ </active>
2148
+ <provider translate="label">
2149
+ <label>Financial service provider</label>
2150
+ <frontend_type>select</frontend_type>
2151
+ <source_model>Wirecard_CheckoutSeamless_Model_System_Config_InstallmentProviders</source_model>
2152
+ <sort_order>22</sort_order>
2153
+ <show_in_default>1</show_in_default>
2154
+ <show_in_website>1</show_in_website>
2155
+ <show_in_store>1</show_in_store>
2156
+ </provider>
2157
+ <sort_order translate="label">
2158
+ <label>Sorting order number</label>
2159
+ <frontend_type>text</frontend_type>
2160
+ <sort_order>30</sort_order>
2161
+ <show_in_default>1</show_in_default>
2162
+ <show_in_website>1</show_in_website>
2163
+ <show_in_store>1</show_in_store>
2164
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2165
+ </sort_order>
2166
+ <title translate="label">
2167
+ <label>Name for payment method</label>
2168
+ <frontend_type>text</frontend_type>
2169
+ <sort_order>40</sort_order>
2170
+ <show_in_default>1</show_in_default>
2171
+ <show_in_website>1</show_in_website>
2172
+ <show_in_store>1</show_in_store>
2173
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
2174
+ </title>
2175
+ <allowspecific translate="label">
2176
+ <label>Payment method available for</label>
2177
+ <frontend_type>allowspecific</frontend_type>
2178
+ <sort_order>70</sort_order>
2179
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
2180
+ </source_model>
2181
+ <show_in_default>1</show_in_default>
2182
+ <show_in_website>1</show_in_website>
2183
+ <show_in_store>1</show_in_store>
2184
+ </allowspecific>
2185
+ <specificcountry translate="label">
2186
+ <label>Specific countries</label>
2187
+ <frontend_type>multiselect</frontend_type>
2188
+ <sort_order>80</sort_order>
2189
+ <source_model>adminhtml/system_config_source_country
2190
+ </source_model>
2191
+ <show_in_default>1</show_in_default>
2192
+ <show_in_website>1</show_in_website>
2193
+ <show_in_store>1</show_in_store>
2194
+ </specificcountry>
2195
+ <min_order_total translate="label">
2196
+ <label>Minimum order total</label>
2197
+ <frontend_type>text</frontend_type>
2198
+ <sort_order>90</sort_order>
2199
+ <show_in_default>1</show_in_default>
2200
+ <show_in_website>1</show_in_website>
2201
+ <show_in_store>1</show_in_store>
2202
+ </min_order_total>
2203
+ <max_order_total translate="label">
2204
+ <label>Maximum order total</label>
2205
+ <frontend_type>text</frontend_type>
2206
+ <sort_order>100</sort_order>
2207
+ <show_in_default>1</show_in_default>
2208
+ <show_in_website>1</show_in_website>
2209
+ <show_in_store>0</show_in_store>
2210
+ </max_order_total>
2211
+ <currencies translate="label,comment">
2212
+ <label>Supported currencies</label>
2213
+ <frontend_type>multiselect</frontend_type>
2214
+ <source_model>adminhtml/system_config_source_currency</source_model>
2215
+ <sort_order>110</sort_order>
2216
+ <show_in_default>1</show_in_default>
2217
+ <show_in_website>1</show_in_website>
2218
+ <show_in_store>1</show_in_store>
2219
+ <comment>Only applicable for RatePay.</comment>
2220
+ </currencies>
2221
+ <min_age translate="label,comment">
2222
+ <label>Minimum age</label>
2223
+ <frontend_type>text</frontend_type>
2224
+ <validate>validate-not-negative-number</validate>
2225
+ <sort_order>120</sort_order>
2226
+ <show_in_default>1</show_in_default>
2227
+ <show_in_website>1</show_in_website>
2228
+ <show_in_store>1</show_in_store>
2229
+ <comment>Only applicable for RatePay.</comment>
2230
+ </min_age>
2231
+ </fields>
2232
+ </wirecard_checkoutseamless_installment>
2233
+ <wirecard_checkoutseamless_voucher translate="label" module="wirecard_checkoutseamless">
2234
+ <label>Wirecard Checkout Seamless My Voucher</label>
2235
+ <frontend_type>text</frontend_type>
2236
+ <sort_order>5270</sort_order>
2237
+ <show_in_default>1</show_in_default>
2238
+ <show_in_website>1</show_in_website>
2239
+ <show_in_store>1</show_in_store>
2240
+ <fields>
2241
+ <active translate="label">
2242
+ <label>Enabled</label>
2243
+ <frontend_type>select</frontend_type>
2244
+ <source_model>adminhtml/system_config_source_yesno</source_model>
2245
+ <sort_order>20</sort_order>
2246
+ <show_in_default>1</show_in_default>
2247
+ <show_in_website>1</show_in_website>
2248
+ <show_in_store>1</show_in_store>
2249
+ </active>
2250
+ <sort_order translate="label">
2251
+ <label>Sorting order number</label>
2252
+ <frontend_type>text</frontend_type>
2253
+ <sort_order>30</sort_order>
2254
+ <show_in_default>1</show_in_default>
2255
+ <show_in_website>1</show_in_website>
2256
+ <show_in_store>1</show_in_store>
2257
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2258
+ </sort_order>
2259
+ <title translate="label">
2260
+ <label>Name for payment method</label>
2261
+ <frontend_type>text</frontend_type>
2262
+ <sort_order>40</sort_order>
2263
+ <show_in_default>1</show_in_default>
2264
+ <show_in_website>1</show_in_website>
2265
+ <show_in_store>1</show_in_store>
2266
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
2267
+ </title>
2268
+ <allowspecific translate="label">
2269
+ <label>Payment method available for</label>
2270
+ <frontend_type>allowspecific</frontend_type>
2271
+ <sort_order>70</sort_order>
2272
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
2273
+ </source_model>
2274
+ <show_in_default>1</show_in_default>
2275
+ <show_in_website>1</show_in_website>
2276
+ <show_in_store>1</show_in_store>
2277
+ </allowspecific>
2278
+ <specificcountry translate="label">
2279
+ <label>Specific countries</label>
2280
+ <frontend_type>multiselect</frontend_type>
2281
+ <sort_order>80</sort_order>
2282
+ <source_model>adminhtml/system_config_source_country
2283
+ </source_model>
2284
+ <show_in_default>1</show_in_default>
2285
+ <show_in_website>1</show_in_website>
2286
+ <show_in_store>1</show_in_store>
2287
+ </specificcountry>
2288
+ <min_order_total translate="label">
2289
+ <label>Minimum order total</label>
2290
+ <frontend_type>text</frontend_type>
2291
+ <sort_order>90</sort_order>
2292
+ <show_in_default>1</show_in_default>
2293
+ <show_in_website>1</show_in_website>
2294
+ <show_in_store>1</show_in_store>
2295
+ </min_order_total>
2296
+ <max_order_total translate="label">
2297
+ <label>Maximum order total</label>
2298
+ <frontend_type>text</frontend_type>
2299
+ <sort_order>100</sort_order>
2300
+ <show_in_default>1</show_in_default>
2301
+ <show_in_website>1</show_in_website>
2302
+ <show_in_store>0</show_in_store>
2303
+ </max_order_total>
2304
+ </fields>
2305
+ </wirecard_checkoutseamless_voucher>
2306
+ <wirecard_checkoutseamless_trustpay translate="label" module="wirecard_checkoutseamless">
2307
+ <label>Wirecard Checkout Seamless TrustPay</label>
2308
+ <frontend_type>text</frontend_type>
2309
+ <sort_order>5280</sort_order>
2310
+ <show_in_default>1</show_in_default>
2311
+ <show_in_website>1</show_in_website>
2312
+ <show_in_store>1</show_in_store>
2313
+ <fields>
2314
+ <active translate="label">
2315
+ <label>Enabled</label>
2316
+ <frontend_type>select</frontend_type>
2317
+ <source_model>adminhtml/system_config_source_yesno</source_model>
2318
+ <sort_order>20</sort_order>
2319
+ <show_in_default>1</show_in_default>
2320
+ <show_in_website>1</show_in_website>
2321
+ <show_in_store>1</show_in_store>
2322
+ </active>
2323
+ <sort_order translate="label">
2324
+ <label>Sorting order number</label>
2325
+ <frontend_type>text</frontend_type>
2326
+ <sort_order>30</sort_order>
2327
+ <show_in_default>1</show_in_default>
2328
+ <show_in_website>1</show_in_website>
2329
+ <show_in_store>1</show_in_store>
2330
+ <comment>This payment method will be displayed depending on the sorting order numbers of other payment methods.</comment>
2331
+ </sort_order>
2332
+ <title translate="label">
2333
+ <label>Name for payment method</label>
2334
+ <frontend_type>text</frontend_type>
2335
+ <sort_order>40</sort_order>
2336
+ <show_in_default>1</show_in_default>
2337
+ <show_in_website>1</show_in_website>
2338
+ <show_in_store>1</show_in_store>
2339
+ <comment>The name for the payment method to be displayed in the online shop.</comment>
2340
+ </title>
2341
+ <allowspecific translate="label">
2342
+ <label>Payment method available for</label>
2343
+ <frontend_type>allowspecific</frontend_type>
2344
+ <sort_order>70</sort_order>
2345
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries
2346
+ </source_model>
2347
+ <show_in_default>1</show_in_default>
2348
+ <show_in_website>1</show_in_website>
2349
+ <show_in_store>1</show_in_store>
2350
+ </allowspecific>
2351
+ <specificcountry translate="label">
2352
+ <label>Specific countries</label>
2353
+ <frontend_type>multiselect</frontend_type>
2354
+ <sort_order>80</sort_order>
2355
+ <source_model>adminhtml/system_config_source_country
2356
+ </source_model>
2357
+ <show_in_default>1</show_in_default>
2358
+ <show_in_website>1</show_in_website>
2359
+ <show_in_store>1</show_in_store>
2360
+ </specificcountry>
2361
+ <min_order_total translate="label">
2362
+ <label>Minimum order total</label>
2363
+ <frontend_type>text</frontend_type>
2364
+ <sort_order>90</sort_order>
2365
+ <show_in_default>1</show_in_default>
2366
+ <show_in_website>1</show_in_website>
2367
+ <show_in_store>1</show_in_store>
2368
+ </min_order_total>
2369
+ <max_order_total translate="label">
2370
+ <label>Maximum order total</label>
2371
+ <frontend_type>text</frontend_type>
2372
+ <sort_order>100</sort_order>
2373
+ <show_in_default>1</show_in_default>
2374
+ <show_in_website>1</show_in_website>
2375
+ <show_in_store>0</show_in_store>
2376
+ </max_order_total>
2377
+ </fields>
2378
+ </wirecard_checkoutseamless_trustpay>
2379
+ </groups>
2380
+ </payment>
2381
+ </sections>
2382
  </config>
app/code/community/Wirecard/CheckoutSeamless/sql/wirecard_checkoutpage_setup/mysql4-install-4.0.0.php CHANGED
@@ -1,73 +1,73 @@
1
- <?php
2
- /**
3
- * Shop System Plugins - Terms of Use
4
- *
5
- * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
- * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
- * products and services.
8
- *
9
- * They have been tested and approved for full functionality in the standard configuration
10
- * (status on delivery) of the corresponding shop system. They are under General Public
11
- * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
- * the same terms.
13
- *
14
- * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
- * occurring when used in an enhanced, customized shop system configuration.
16
- *
17
- * Operation in an enhanced, customized configuration is at your own risk and requires a
18
- * comprehensive test phase by the user of the plugin.
19
- *
20
- * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
- * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
- * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
- * for customized shop systems or installed plugins of other vendors of plugins within the same
24
- * shop system.
25
- *
26
- * Customers are responsible for testing the plugin's functionality before starting productive
27
- * operation.
28
- *
29
- * By installing the plugin into the shop system the customer agrees to these terms of use.
30
- * Please do not use the plugin if you do not agree to these terms of use!
31
- */
32
-
33
- echo 'Running This Upgrade: '.get_class($this)."\n <br /> \n";die;
34
- $installer = $this;
35
- $installer->startSetup();
36
-
37
- $installer->addAttribute(
38
- "customer",
39
- "company_trade_reg_number",
40
- array(
41
- "type" => "varchar",
42
- "backend" => "",
43
- "label" => "Company Trade Registration Number",
44
- "input" => "text",
45
- "source" => "",
46
- "visible" => true,
47
- "required" => false,
48
- "default" => "",
49
- "frontend" => "",
50
- "unique" => false,
51
- "note" => ""
52
-
53
- )
54
- );
55
-
56
- $used_in_forms = array(
57
- "adminhtml_customer",
58
- "checkout_register",
59
- "customer_account_create",
60
- "customer_account_edit",
61
- "adminhtml_checkout"
62
- );
63
-
64
- $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "company_trade_reg_number");
65
- $attribute->setData("used_in_forms", $used_in_forms)
66
- ->setData("is_used_for_customer_segment", true)
67
- ->setData("is_system", 0)
68
- ->setData("is_user_defined", 1)
69
- ->setData("is_visible", 1)
70
- ->setData("sort_order", 999);
71
- $attribute->save();
72
-
73
  $installer->endSetup();
1
+ <?php
2
+ /**
3
+ * Shop System Plugins - Terms of Use
4
+ *
5
+ * The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
6
+ * (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
7
+ * products and services.
8
+ *
9
+ * They have been tested and approved for full functionality in the standard configuration
10
+ * (status on delivery) of the corresponding shop system. They are under General Public
11
+ * License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
12
+ * the same terms.
13
+ *
14
+ * However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
15
+ * occurring when used in an enhanced, customized shop system configuration.
16
+ *
17
+ * Operation in an enhanced, customized configuration is at your own risk and requires a
18
+ * comprehensive test phase by the user of the plugin.
19
+ *
20
+ * Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
21
+ * functionality neither does Wirecard CEE assume liability for any disadvantages related to
22
+ * the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
23
+ * for customized shop systems or installed plugins of other vendors of plugins within the same
24
+ * shop system.
25
+ *
26
+ * Customers are responsible for testing the plugin's functionality before starting productive
27
+ * operation.
28
+ *
29
+ * By installing the plugin into the shop system the customer agrees to these terms of use.
30
+ * Please do not use the plugin if you do not agree to these terms of use!
31
+ */
32
+
33
+ echo 'Running This Upgrade: '.get_class($this)."\n <br /> \n";die;
34
+ $installer = $this;
35
+ $installer->startSetup();
36
+
37
+ $installer->addAttribute(
38
+ "customer",
39
+ "company_trade_reg_number",
40
+ array(
41
+ "type" => "varchar",
42
+ "backend" => "",
43
+ "label" => "Company Trade Registration Number",
44
+ "input" => "text",
45
+ "source" => "",
46
+ "visible" => true,
47
+ "required" => false,
48
+ "default" => "",
49
+ "frontend" => "",
50
+ "unique" => false,
51
+ "note" => ""
52
+
53
+ )
54
+ );
55
+
56
+ $used_in_forms = array(
57
+ "adminhtml_customer",
58
+ "checkout_register",
59
+ "customer_account_create",
60
+ "customer_account_edit",
61
+ "adminhtml_checkout"
62
+ );
63
+
64
+ $attribute = Mage::getSingleton("eav/config")->getAttribute("customer", "company_trade_reg_number");
65
+ $attribute->setData("used_in_forms", $used_in_forms)
66
+ ->setData("is_used_for_customer_segment", true)
67
+ ->setData("is_system", 0)
68
+ ->setData("is_user_defined", 1)
69
+ ->setData("is_visible", 1)
70
+ ->setData("sort_order", 999);
71
+ $attribute->save();
72
+
73
  $installer->endSetup();
app/code/local/Wirecard/CheckoutSeamless/QMore/BackendClient.php CHANGED
@@ -1,592 +1,592 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_BackendClient
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_BackendClient extends WirecardCEE_Stdlib_Client_ClientAbstract
19
- {
20
- /**
21
- * Password
22
- *
23
- * @var string
24
- */
25
- const PASSWORD = 'password';
26
-
27
- /**
28
- * Payment Number
29
- *
30
- * @var string
31
- */
32
- const PAYMENT_NUMBER = 'paymentNumber';
33
-
34
- /**
35
- * Credit number
36
- *
37
- * @var string
38
- */
39
- const CREDIT_NUMBER = 'creditNumber';
40
-
41
- /**
42
- * Source order number
43
- *
44
- * @var string
45
- */
46
- const SOURCE_ORDER_NUMBER = 'sourceOrderNumber';
47
-
48
- /**
49
- * Order reference
50
- *
51
- * @var string
52
- */
53
- const ORDER_REFERENCE = 'orderReference';
54
-
55
- /**
56
- * Customer statement
57
- *
58
- * @var string
59
- */
60
- const CUSTOMER_STATEMENT = 'customerStatement';
61
-
62
- /**
63
- * Payment type
64
- *
65
- * @var string
66
- */
67
- const PAYMENTTYPE = 'paymentType';
68
-
69
- /**
70
- * Comma-separed list of customer country codes.
71
- *
72
- * @var string
73
- */
74
- const BANKCOUNTRY = 'bankCountry';
75
-
76
- /**
77
- * Transactiontype ONLINE, OFFLINE, or ALL.
78
- *
79
- * @var string
80
- */
81
- const TRANSACTIONTYPE = 'transactionType';
82
-
83
- /**
84
- * Consumer E-Mail
85
- *
86
- * @var string
87
- */
88
- const CONSUMEREMAIL = 'consumerEmail';
89
-
90
- /**
91
- * Consumer Wallet Id
92
- *
93
- * @var string
94
- */
95
- const CONSUMERWALLETID = 'consumerWalletId';
96
-
97
- /**
98
- * Bank account owner
99
- *
100
- * @var string
101
- */
102
- const BANKACCOUNTOWNER = 'bankAccountOwner';
103
- /**
104
- * BIC
105
- *
106
- * @var string
107
- */
108
- const BANKBIC = 'bankBic';
109
-
110
- /**
111
- * IBAN
112
- *
113
- * @var string
114
- */
115
- const BANKACCOUNTIBAN = 'bankAccountIban';
116
-
117
- /**
118
- * Command
119
- *
120
- * @var string
121
- */
122
- const COMMAND = 'command';
123
-
124
- /**
125
- * Plugin version
126
- *
127
- * @var string
128
- */
129
- const PLUGIN_VERSION = 'pluginVersion';
130
-
131
- /**
132
- * Command: Approve reversal
133
- *
134
- * @staticvar string
135
- * @internal
136
- */
137
- protected static $COMMAND_APPROVE_REVERSAL = 'approveReversal';
138
-
139
- /**
140
- * Command: Deposit
141
- *
142
- * @staticvar string
143
- * @internal
144
- */
145
- protected static $COMMAND_DEPOSIT = 'deposit';
146
-
147
- /**
148
- * Command: Deposit reveresal
149
- *
150
- * @staticvar string
151
- * @internal
152
- */
153
- protected static $COMMAND_DEPOSIT_REVERSAL = 'depositReversal';
154
-
155
- /**
156
- * Command: Get order details
157
- *
158
- * @staticvar string
159
- * @internal
160
- */
161
- protected static $COMMAND_GET_ORDER_DETAILS = 'getOrderDetails';
162
-
163
- /**
164
- * Command: Recur payment
165
- *
166
- * @staticvar string
167
- * @internal
168
- */
169
- protected static $COMMAND_RECUR_PAYMENT = 'recurPayment';
170
-
171
- /**
172
- * Command: Refund
173
- *
174
- * @staticvar string
175
- * @internal
176
- */
177
- protected static $COMMAND_REFUND = 'refund';
178
-
179
- /**
180
- * Command: Refund reversal
181
- *
182
- * @staticvar string
183
- * @internal
184
- */
185
- protected static $COMMAND_REFUND_REVERSAL = 'refundReversal';
186
-
187
- /**
188
- * Command: Transfer fund
189
- *
190
- * @staticvar string
191
- */
192
- protected static $COMMAND_TRANSFER_FUND = 'transferFund';
193
-
194
- /**
195
- * @staticvar string
196
- */
197
- public static $TRANSFER_FUND_TYPE_EXISTING = 'EXISTINGORDER';
198
-
199
- /**
200
- * @staticvar string
201
- */
202
- public static $TRANSFER_FUND_TYPE_SKIRLLWALLET = 'SKRILLWALLET';
203
-
204
- /**
205
- * @staticvar string
206
- */
207
- public static $TRANSFER_FUND_TYPE_MONETA = 'MONETA';
208
-
209
- /**
210
- * @staticvar string
211
- */
212
- public static $TRANSFER_FUND_TYPE_SEPACT = 'SEPA-CT';
213
-
214
- /**
215
- * Command: Get Financial Institutions
216
- *
217
- * @staticvar string
218
- * @internal
219
- */
220
- protected static $COMMAND_GET_FINANCIAL_INSTITUTIONS = 'getFinancialInstitutions';
221
-
222
- /**
223
- * using FIXED fingerprint order (0 = dynamic, 1 = fixed)
224
- *
225
- * @var int
226
- */
227
- protected $_fingerprintOrderType = 1;
228
-
229
- /**
230
- * Creates an instance of an WirecardCEE_QMore_BackendClient object.
231
- *
232
- * @param array|WirecardCEE_Stdlib_Config $aConfig
233
- */
234
- public function __construct(array $config = null)
235
- {
236
- $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
237
-
238
- //if no config was sent fallback to default config file
239
- if (is_null($config))
240
- {
241
- $config = WirecardCEE_QMore_Module::getConfig();
242
- }
243
-
244
- if (is_array($config) && isset($aConfig['WirecardCEEQMoreConfig']))
245
- {
246
- // we only need the WirecardCEEQMoreConfig here
247
- $config = $config['WirecardCEEQMoreConfig'];
248
- }
249
-
250
- // let's store configuration details in internal objects
251
- $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config);
252
- $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
253
-
254
- // now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET
255
- // exist in $this->oUserConfig object that we created from config array
256
- $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
257
- $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
258
- $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
259
- $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
260
- $sPassword = isset($this->oUserConfig->PASSWORD) ? trim($this->oUserConfig->PASSWORD) : null;
261
-
262
- // If not throw the InvalidArgumentException exception!
263
- if (empty($sCustomerId) || is_null($sCustomerId))
264
- {
265
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
266
- }
267
-
268
- if (empty($sLanguage) || is_null($sLanguage))
269
- {
270
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
271
- }
272
-
273
- if (empty($sSecret) || is_null($sSecret))
274
- {
275
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
276
- }
277
-
278
- if (empty($sPassword) || is_null($sPassword))
279
- {
280
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('PASSWORD passed to %s is invalid.', __METHOD__));
281
- }
282
-
283
- // everything ok! let's set the fields
284
- $this->_setField(self::CUSTOMER_ID, $sCustomerId);
285
- $this->_setField(self::SHOP_ID, $sShopId);
286
- $this->_setField(self::LANGUAGE, $sLanguage);
287
- $this->_setField(self::PASSWORD, $sPassword);
288
-
289
- $this->_setSecret($sSecret);
290
- }
291
-
292
- public function getFinancialInstitutions($paymentType, $bankCountry = null, $transactionType = 'ONLINE')
293
- {
294
- $this->_requestData[self::COMMAND] = self::$COMMAND_GET_FINANCIAL_INSTITUTIONS;
295
- $this->_setField(self::PAYMENTTYPE, $paymentType);
296
-
297
- $order = Array(
298
- self::CUSTOMER_ID,
299
- self::SHOP_ID,
300
- self::PASSWORD,
301
- self::SECRET,
302
- self::LANGUAGE,
303
- self::PAYMENTTYPE,
304
- );
305
-
306
- if (strlen($transactionType))
307
- {
308
- $this->_setField(self::TRANSACTIONTYPE, $transactionType);
309
- $order[] = self::TRANSACTIONTYPE;
310
- }
311
-
312
- if (strlen($bankCountry))
313
- {
314
- $this->_setField(self::BANKCOUNTRY, $bankCountry);
315
- $order[] = self::BANKCOUNTRY;
316
- }
317
-
318
- $this->_fingerprintOrder->setOrder($order);
319
-
320
- return new WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions($this->_send());
321
- }
322
-
323
- /**
324
- * Refund
325
- *
326
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
327
- * @return WirecardCEE_QMore_Response_Backend_Refund
328
- */
329
- public function refund($iOrderNumber, $iAmount, $sCurrency)
330
- {
331
- $this->_requestData[self::COMMAND] = self::$COMMAND_REFUND;
332
-
333
- $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
334
- $this->_setField(self::AMOUNT, $iAmount);
335
- $this->_setField(self::CURRENCY, strtoupper($sCurrency));
336
-
337
- $this->_fingerprintOrder->setOrder(Array(
338
- self::CUSTOMER_ID,
339
- self::SHOP_ID,
340
- self::PASSWORD,
341
- self::SECRET,
342
- self::LANGUAGE,
343
- self::ORDER_NUMBER,
344
- self::AMOUNT,
345
- self::CURRENCY
346
- ));
347
-
348
- return new WirecardCEE_QMore_Response_Backend_Refund($this->_send());
349
- }
350
-
351
- /**
352
- * Refund reversal
353
- *
354
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
355
- * @return WirecardCEE_QMore_Response_Backend_RefundReversal
356
- */
357
- public function refundReversal($iOrderNumber, $iCreditNumber)
358
- {
359
- $this->_requestData[self::COMMAND] = self::$COMMAND_REFUND_REVERSAL;
360
-
361
- $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
362
- $this->_setField(self::CREDIT_NUMBER, $iCreditNumber);
363
-
364
- $this->_fingerprintOrder->setOrder(Array(
365
- self::CUSTOMER_ID,
366
- self::SHOP_ID,
367
- self::PASSWORD,
368
- self::SECRET,
369
- self::LANGUAGE,
370
- self::ORDER_NUMBER,
371
- self::CREDIT_NUMBER
372
- ));
373
-
374
- return new WirecardCEE_QMore_Response_Backend_RefundReversal($this->_send());
375
- }
376
-
377
- /**
378
- * Recur payment
379
- *
380
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
381
- * @return WirecardCEE_QMore_Response_Backend_RecurPayment
382
- */
383
- public function recurPayment($iSourceOrderNumber, $iAmount, $sCurrency, $sOrderDescription, $iOrderNumber = null, $bDepositFlag = null)
384
- {
385
- $this->_requestData[self::COMMAND] = self::$COMMAND_RECUR_PAYMENT;
386
-
387
- if (!is_null($iOrderNumber))
388
- {
389
- $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
390
- }
391
-
392
- $this->_setField(self::SOURCE_ORDER_NUMBER, $iSourceOrderNumber);
393
- $this->_setField(self::AMOUNT, $iAmount);
394
- $this->_setField(self::CURRENCY, strtoupper($sCurrency));
395
-
396
- if (!is_null($bDepositFlag))
397
- {
398
- $this->_setField(self::AUTO_DEPOSIT, $bDepositFlag ? self::$BOOL_TRUE : self::$BOOL_FALSE);
399
- }
400
-
401
- $this->_setField(self::ORDER_DESCRIPTION, $sOrderDescription);
402
-
403
- $this->_fingerprintOrder->setOrder(Array(
404
- self::CUSTOMER_ID,
405
- self::SHOP_ID,
406
- self::PASSWORD,
407
- self::SECRET,
408
- self::LANGUAGE,
409
- self::ORDER_NUMBER,
410
- self::SOURCE_ORDER_NUMBER,
411
- self::AUTO_DEPOSIT,
412
- self::ORDER_DESCRIPTION,
413
- self::AMOUNT,
414
- self::CURRENCY
415
- ));
416
-
417
- return new WirecardCEE_QMore_Response_Backend_RecurPayment($this->_send());
418
- }
419
-
420
- /**
421
- * Returns order details
422
- *
423
- * @param int $iOrderNumber
424
- *
425
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
426
- * @return WirecardCEE_QMore_Response_Backend_GetOrderDetails
427
- */
428
- public function getOrderDetails($iOrderNumber)
429
- {
430
- $this->_requestData[self::COMMAND] = self::$COMMAND_GET_ORDER_DETAILS;
431
- $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
432
-
433
- $this->_fingerprintOrder->setOrder(Array(
434
- self::CUSTOMER_ID,
435
- self::SHOP_ID,
436
- self::PASSWORD,
437
- self::SECRET,
438
- self::LANGUAGE,
439
- self::ORDER_NUMBER
440
- ));
441
-
442
- return new WirecardCEE_QMore_Response_Backend_GetOrderDetails($this->_send());
443
- }
444
-
445
- /**
446
- * Approve reversal
447
- *
448
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
449
- * @return WirecardCEE_QMore_Response_Backend_ApproveReversal
450
- */
451
- public function approveReversal($iOrderNumber)
452
- {
453
- $this->_requestData[self::COMMAND] = self::$COMMAND_APPROVE_REVERSAL;
454
- $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
455
-
456
- $this->_fingerprintOrder->setOrder(Array(
457
- self::CUSTOMER_ID,
458
- self::SHOP_ID,
459
- self::PASSWORD,
460
- self::SECRET,
461
- self::LANGUAGE,
462
- self::ORDER_NUMBER
463
- ));
464
- return new WirecardCEE_QMore_Response_Backend_ApproveReversal($this->_send());
465
- }
466
-
467
- /**
468
- * Deposit
469
- *
470
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
471
- * @return WirecardCEE_QMore_Response_Backend_Deposit
472
- */
473
- public function deposit($iOrderNumber, $iAmount, $sCurrency)
474
- {
475
- $this->_requestData[self::COMMAND] = self::$COMMAND_DEPOSIT;
476
-
477
- $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
478
- $this->_setField(self::AMOUNT, $iAmount);
479
- $this->_setField(self::CURRENCY, strtoupper($sCurrency));
480
-
481
- $this->_fingerprintOrder->setOrder(Array(
482
- self::CUSTOMER_ID,
483
- self::SHOP_ID,
484
- self::PASSWORD,
485
- self::SECRET,
486
- self::LANGUAGE,
487
- self::ORDER_NUMBER,
488
- self::AMOUNT,
489
- self::CURRENCY
490
- ));
491
- return new WirecardCEE_QMore_Response_Backend_Deposit($this->_send());
492
- }
493
-
494
- /**
495
- * Deposit reversal
496
- *
497
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
498
- * @return WirecardCEE_QMore_Response_Backend_DepositReversal
499
- */
500
- public function depositReversal($iOrderNumber, $iPaymentNumber)
501
- {
502
- $this->_requestData[self::COMMAND] = self::$COMMAND_DEPOSIT_REVERSAL;
503
-
504
- $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
505
- $this->_setField(self::PAYMENT_NUMBER, $iPaymentNumber);
506
-
507
- $this->_fingerprintOrder->setOrder(Array(
508
- self::CUSTOMER_ID,
509
- self::SHOP_ID,
510
- self::PASSWORD,
511
- self::SECRET,
512
- self::LANGUAGE,
513
- self::ORDER_NUMBER,
514
- self::PAYMENT_NUMBER
515
- ));
516
- return new WirecardCEE_QMore_Response_Backend_DepositReversal($this->_send());
517
- }
518
-
519
- /**
520
- * TransferFund
521
- *
522
- * @throws WirecardCEE_Stdlib_Exception_InvalidTypeException
523
- * @return WirecardCEE_QMore_Request_Backend_TransferFund
524
- */
525
- public function transferFund($fundTransferType)
526
- {
527
-
528
- switch ($fundTransferType)
529
- {
530
- case self::$TRANSFER_FUND_TYPE_EXISTING:
531
- $client = new WirecardCEE_QMore_Request_Backend_TransferFund_Existing($this->oUserConfig);
532
- break;
533
-
534
- case self::$TRANSFER_FUND_TYPE_SKIRLLWALLET:
535
- $client = new WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig);
536
- break;
537
-
538
- case self::$TRANSFER_FUND_TYPE_MONETA:
539
- $client = new WirecardCEE_QMore_Request_Backend_TransferFund_Moneta($this->oUserConfig);
540
- break;
541
-
542
- case self::$TRANSFER_FUND_TYPE_SEPACT:
543
- $client = new WirecardCEE_QMore_Request_Backend_TransferFund_SepaCT($this->oUserConfig);
544
- break;
545
-
546
- default:
547
- throw new WirecardCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType');
548
- }
549
-
550
- $client->setType($fundTransferType);
551
- return $client;
552
- }
553
-
554
- /**
555
- * *******************
556
- * PROTECTED METHODS *
557
- * *******************
558
- */
559
-
560
- /**
561
- * Backend URL for POST-Requests
562
- *
563
- * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
564
- * @return string
565
- */
566
- protected function _getRequestUrl()
567
- {
568
- return $this->oClientConfig->BACKEND_URL . "/" . $this->_getField(self::COMMAND);
569
- }
570
-
571
- /**
572
- * getter for given field
573
- *
574
- * @param string $name
575
- *
576
- * @return string|null
577
- */
578
- protected function _getField($name)
579
- {
580
- return array_key_exists($name, $this->_requestData) ? $this->_requestData[$name] : null;
581
- }
582
-
583
- /**
584
- * Returns the user agent string
585
- *
586
- * @return string
587
- */
588
- protected function _getUserAgent()
589
- {
590
- return "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
591
- }
592
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_BackendClient
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_BackendClient extends WirecardCEE_Stdlib_Client_ClientAbstract
19
+ {
20
+ /**
21
+ * Password
22
+ *
23
+ * @var string
24
+ */
25
+ const PASSWORD = 'password';
26
+
27
+ /**
28
+ * Payment Number
29
+ *
30
+ * @var string
31
+ */
32
+ const PAYMENT_NUMBER = 'paymentNumber';
33
+
34
+ /**
35
+ * Credit number
36
+ *
37
+ * @var string
38
+ */
39
+ const CREDIT_NUMBER = 'creditNumber';
40
+
41
+ /**
42
+ * Source order number
43
+ *
44
+ * @var string
45
+ */
46
+ const SOURCE_ORDER_NUMBER = 'sourceOrderNumber';
47
+
48
+ /**
49
+ * Order reference
50
+ *
51
+ * @var string
52
+ */
53
+ const ORDER_REFERENCE = 'orderReference';
54
+
55
+ /**
56
+ * Customer statement
57
+ *
58
+ * @var string
59
+ */
60
+ const CUSTOMER_STATEMENT = 'customerStatement';
61
+
62
+ /**
63
+ * Payment type
64
+ *
65
+ * @var string
66
+ */
67
+ const PAYMENTTYPE = 'paymentType';
68
+
69
+ /**
70
+ * Comma-separed list of customer country codes.
71
+ *
72
+ * @var string
73
+ */
74
+ const BANKCOUNTRY = 'bankCountry';
75
+
76
+ /**
77
+ * Transactiontype ONLINE, OFFLINE, or ALL.
78
+ *
79
+ * @var string
80
+ */
81
+ const TRANSACTIONTYPE = 'transactionType';
82
+
83
+ /**
84
+ * Consumer E-Mail
85
+ *
86
+ * @var string
87
+ */
88
+ const CONSUMEREMAIL = 'consumerEmail';
89
+
90
+ /**
91
+ * Consumer Wallet Id
92
+ *
93
+ * @var string
94
+ */
95
+ const CONSUMERWALLETID = 'consumerWalletId';
96
+
97
+ /**
98
+ * Bank account owner
99
+ *
100
+ * @var string
101
+ */
102
+ const BANKACCOUNTOWNER = 'bankAccountOwner';
103
+ /**
104
+ * BIC
105
+ *
106
+ * @var string
107
+ */
108
+ const BANKBIC = 'bankBic';
109
+
110
+ /**
111
+ * IBAN
112
+ *
113
+ * @var string
114
+ */
115
+ const BANKACCOUNTIBAN = 'bankAccountIban';
116
+
117
+ /**
118
+ * Command
119
+ *
120
+ * @var string
121
+ */
122
+ const COMMAND = 'command';
123
+
124
+ /**
125
+ * Plugin version
126
+ *
127
+ * @var string
128
+ */
129
+ const PLUGIN_VERSION = 'pluginVersion';
130
+
131
+ /**
132
+ * Command: Approve reversal
133
+ *
134
+ * @staticvar string
135
+ * @internal
136
+ */
137
+ protected static $COMMAND_APPROVE_REVERSAL = 'approveReversal';
138
+
139
+ /**
140
+ * Command: Deposit
141
+ *
142
+ * @staticvar string
143
+ * @internal
144
+ */
145
+ protected static $COMMAND_DEPOSIT = 'deposit';
146
+
147
+ /**
148
+ * Command: Deposit reveresal
149
+ *
150
+ * @staticvar string
151
+ * @internal
152
+ */
153
+ protected static $COMMAND_DEPOSIT_REVERSAL = 'depositReversal';
154
+
155
+ /**
156
+ * Command: Get order details
157
+ *
158
+ * @staticvar string
159
+ * @internal
160
+ */
161
+ protected static $COMMAND_GET_ORDER_DETAILS = 'getOrderDetails';
162
+
163
+ /**
164
+ * Command: Recur payment
165
+ *
166
+ * @staticvar string
167
+ * @internal
168
+ */
169
+ protected static $COMMAND_RECUR_PAYMENT = 'recurPayment';
170
+
171
+ /**
172
+ * Command: Refund
173
+ *
174
+ * @staticvar string
175
+ * @internal
176
+ */
177
+ protected static $COMMAND_REFUND = 'refund';
178
+
179
+ /**
180
+ * Command: Refund reversal
181
+ *
182
+ * @staticvar string
183
+ * @internal
184
+ */
185
+ protected static $COMMAND_REFUND_REVERSAL = 'refundReversal';
186
+
187
+ /**
188
+ * Command: Transfer fund
189
+ *
190
+ * @staticvar string
191
+ */
192
+ protected static $COMMAND_TRANSFER_FUND = 'transferFund';
193
+
194
+ /**
195
+ * @staticvar string
196
+ */
197
+ public static $TRANSFER_FUND_TYPE_EXISTING = 'EXISTINGORDER';
198
+
199
+ /**
200
+ * @staticvar string
201
+ */
202
+ public static $TRANSFER_FUND_TYPE_SKIRLLWALLET = 'SKRILLWALLET';
203
+
204
+ /**
205
+ * @staticvar string
206
+ */
207
+ public static $TRANSFER_FUND_TYPE_MONETA = 'MONETA';
208
+
209
+ /**
210
+ * @staticvar string
211
+ */
212
+ public static $TRANSFER_FUND_TYPE_SEPACT = 'SEPA-CT';
213
+
214
+ /**
215
+ * Command: Get Financial Institutions
216
+ *
217
+ * @staticvar string
218
+ * @internal
219
+ */
220
+ protected static $COMMAND_GET_FINANCIAL_INSTITUTIONS = 'getFinancialInstitutions';
221
+
222
+ /**
223
+ * using FIXED fingerprint order (0 = dynamic, 1 = fixed)
224
+ *
225
+ * @var int
226
+ */
227
+ protected $_fingerprintOrderType = 1;
228
+
229
+ /**
230
+ * Creates an instance of an WirecardCEE_QMore_BackendClient object.
231
+ *
232
+ * @param array|WirecardCEE_Stdlib_Config $aConfig
233
+ */
234
+ public function __construct(array $config = null)
235
+ {
236
+ $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
237
+
238
+ //if no config was sent fallback to default config file
239
+ if (is_null($config))
240
+ {
241
+ $config = WirecardCEE_QMore_Module::getConfig();
242
+ }
243
+
244
+ if (is_array($config) && isset($aConfig['WirecardCEEQMoreConfig']))
245
+ {
246
+ // we only need the WirecardCEEQMoreConfig here
247
+ $config = $config['WirecardCEEQMoreConfig'];
248
+ }
249
+
250
+ // let's store configuration details in internal objects
251
+ $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config);
252
+ $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
253
+
254
+ // now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET
255
+ // exist in $this->oUserConfig object that we created from config array
256
+ $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
257
+ $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
258
+ $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
259
+ $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
260
+ $sPassword = isset($this->oUserConfig->PASSWORD) ? trim($this->oUserConfig->PASSWORD) : null;
261
+
262
+ // If not throw the InvalidArgumentException exception!
263
+ if (empty($sCustomerId) || is_null($sCustomerId))
264
+ {
265
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
266
+ }
267
+
268
+ if (empty($sLanguage) || is_null($sLanguage))
269
+ {
270
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
271
+ }
272
+
273
+ if (empty($sSecret) || is_null($sSecret))
274
+ {
275
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
276
+ }
277
+
278
+ if (empty($sPassword) || is_null($sPassword))
279
+ {
280
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('PASSWORD passed to %s is invalid.', __METHOD__));
281
+ }
282
+
283
+ // everything ok! let's set the fields
284
+ $this->_setField(self::CUSTOMER_ID, $sCustomerId);
285
+ $this->_setField(self::SHOP_ID, $sShopId);
286
+ $this->_setField(self::LANGUAGE, $sLanguage);
287
+ $this->_setField(self::PASSWORD, $sPassword);
288
+
289
+ $this->_setSecret($sSecret);
290
+ }
291
+
292
+ public function getFinancialInstitutions($paymentType, $bankCountry = null, $transactionType = 'ONLINE')
293
+ {
294
+ $this->_requestData[self::COMMAND] = self::$COMMAND_GET_FINANCIAL_INSTITUTIONS;
295
+ $this->_setField(self::PAYMENTTYPE, $paymentType);
296
+
297
+ $order = Array(
298
+ self::CUSTOMER_ID,
299
+ self::SHOP_ID,
300
+ self::PASSWORD,
301
+ self::SECRET,
302
+ self::LANGUAGE,
303
+ self::PAYMENTTYPE,
304
+ );
305
+
306
+ if (strlen($transactionType))
307
+ {
308
+ $this->_setField(self::TRANSACTIONTYPE, $transactionType);
309
+ $order[] = self::TRANSACTIONTYPE;
310
+ }
311
+
312
+ if (strlen($bankCountry))
313
+ {
314
+ $this->_setField(self::BANKCOUNTRY, $bankCountry);
315
+ $order[] = self::BANKCOUNTRY;
316
+ }
317
+
318
+ $this->_fingerprintOrder->setOrder($order);
319
+
320
+ return new WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions($this->_send());
321
+ }
322
+
323
+ /**
324
+ * Refund
325
+ *
326
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
327
+ * @return WirecardCEE_QMore_Response_Backend_Refund
328
+ */
329
+ public function refund($iOrderNumber, $iAmount, $sCurrency)
330
+ {
331
+ $this->_requestData[self::COMMAND] = self::$COMMAND_REFUND;
332
+
333
+ $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
334
+ $this->_setField(self::AMOUNT, $iAmount);
335
+ $this->_setField(self::CURRENCY, strtoupper($sCurrency));
336
+
337
+ $this->_fingerprintOrder->setOrder(Array(
338
+ self::CUSTOMER_ID,
339
+ self::SHOP_ID,
340
+ self::PASSWORD,
341
+ self::SECRET,
342
+ self::LANGUAGE,
343
+ self::ORDER_NUMBER,
344
+ self::AMOUNT,
345
+ self::CURRENCY
346
+ ));
347
+
348
+ return new WirecardCEE_QMore_Response_Backend_Refund($this->_send());
349
+ }
350
+
351
+ /**
352
+ * Refund reversal
353
+ *
354
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
355
+ * @return WirecardCEE_QMore_Response_Backend_RefundReversal
356
+ */
357
+ public function refundReversal($iOrderNumber, $iCreditNumber)
358
+ {
359
+ $this->_requestData[self::COMMAND] = self::$COMMAND_REFUND_REVERSAL;
360
+
361
+ $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
362
+ $this->_setField(self::CREDIT_NUMBER, $iCreditNumber);
363
+
364
+ $this->_fingerprintOrder->setOrder(Array(
365
+ self::CUSTOMER_ID,
366
+ self::SHOP_ID,
367
+ self::PASSWORD,
368
+ self::SECRET,
369
+ self::LANGUAGE,
370
+ self::ORDER_NUMBER,
371
+ self::CREDIT_NUMBER
372
+ ));
373
+
374
+ return new WirecardCEE_QMore_Response_Backend_RefundReversal($this->_send());
375
+ }
376
+
377
+ /**
378
+ * Recur payment
379
+ *
380
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
381
+ * @return WirecardCEE_QMore_Response_Backend_RecurPayment
382
+ */
383
+ public function recurPayment($iSourceOrderNumber, $iAmount, $sCurrency, $sOrderDescription, $iOrderNumber = null, $bDepositFlag = null)
384
+ {
385
+ $this->_requestData[self::COMMAND] = self::$COMMAND_RECUR_PAYMENT;
386
+
387
+ if (!is_null($iOrderNumber))
388
+ {
389
+ $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
390
+ }
391
+
392
+ $this->_setField(self::SOURCE_ORDER_NUMBER, $iSourceOrderNumber);
393
+ $this->_setField(self::AMOUNT, $iAmount);
394
+ $this->_setField(self::CURRENCY, strtoupper($sCurrency));
395
+
396
+ if (!is_null($bDepositFlag))
397
+ {
398
+ $this->_setField(self::AUTO_DEPOSIT, $bDepositFlag ? self::$BOOL_TRUE : self::$BOOL_FALSE);
399
+ }
400
+
401
+ $this->_setField(self::ORDER_DESCRIPTION, $sOrderDescription);
402
+
403
+ $this->_fingerprintOrder->setOrder(Array(
404
+ self::CUSTOMER_ID,
405
+ self::SHOP_ID,
406
+ self::PASSWORD,
407
+ self::SECRET,
408
+ self::LANGUAGE,
409
+ self::ORDER_NUMBER,
410
+ self::SOURCE_ORDER_NUMBER,
411
+ self::AUTO_DEPOSIT,
412
+ self::ORDER_DESCRIPTION,
413
+ self::AMOUNT,
414
+ self::CURRENCY
415
+ ));
416
+
417
+ return new WirecardCEE_QMore_Response_Backend_RecurPayment($this->_send());
418
+ }
419
+
420
+ /**
421
+ * Returns order details
422
+ *
423
+ * @param int $iOrderNumber
424
+ *
425
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
426
+ * @return WirecardCEE_QMore_Response_Backend_GetOrderDetails
427
+ */
428
+ public function getOrderDetails($iOrderNumber)
429
+ {
430
+ $this->_requestData[self::COMMAND] = self::$COMMAND_GET_ORDER_DETAILS;
431
+ $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
432
+
433
+ $this->_fingerprintOrder->setOrder(Array(
434
+ self::CUSTOMER_ID,
435
+ self::SHOP_ID,
436
+ self::PASSWORD,
437
+ self::SECRET,
438
+ self::LANGUAGE,
439
+ self::ORDER_NUMBER
440
+ ));
441
+
442
+ return new WirecardCEE_QMore_Response_Backend_GetOrderDetails($this->_send());
443
+ }
444
+
445
+ /**
446
+ * Approve reversal
447
+ *
448
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
449
+ * @return WirecardCEE_QMore_Response_Backend_ApproveReversal
450
+ */
451
+ public function approveReversal($iOrderNumber)
452
+ {
453
+ $this->_requestData[self::COMMAND] = self::$COMMAND_APPROVE_REVERSAL;
454
+ $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
455
+
456
+ $this->_fingerprintOrder->setOrder(Array(
457
+ self::CUSTOMER_ID,
458
+ self::SHOP_ID,
459
+ self::PASSWORD,
460
+ self::SECRET,
461
+ self::LANGUAGE,
462
+ self::ORDER_NUMBER
463
+ ));
464
+ return new WirecardCEE_QMore_Response_Backend_ApproveReversal($this->_send());
465
+ }
466
+
467
+ /**
468
+ * Deposit
469
+ *
470
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
471
+ * @return WirecardCEE_QMore_Response_Backend_Deposit
472
+ */
473
+ public function deposit($iOrderNumber, $iAmount, $sCurrency)
474
+ {
475
+ $this->_requestData[self::COMMAND] = self::$COMMAND_DEPOSIT;
476
+
477
+ $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
478
+ $this->_setField(self::AMOUNT, $iAmount);
479
+ $this->_setField(self::CURRENCY, strtoupper($sCurrency));
480
+
481
+ $this->_fingerprintOrder->setOrder(Array(
482
+ self::CUSTOMER_ID,
483
+ self::SHOP_ID,
484
+ self::PASSWORD,
485
+ self::SECRET,
486
+ self::LANGUAGE,
487
+ self::ORDER_NUMBER,
488
+ self::AMOUNT,
489
+ self::CURRENCY
490
+ ));
491
+ return new WirecardCEE_QMore_Response_Backend_Deposit($this->_send());
492
+ }
493
+
494
+ /**
495
+ * Deposit reversal
496
+ *
497
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
498
+ * @return WirecardCEE_QMore_Response_Backend_DepositReversal
499
+ */
500
+ public function depositReversal($iOrderNumber, $iPaymentNumber)
501
+ {
502
+ $this->_requestData[self::COMMAND] = self::$COMMAND_DEPOSIT_REVERSAL;
503
+
504
+ $this->_setField(self::ORDER_NUMBER, $iOrderNumber);
505
+ $this->_setField(self::PAYMENT_NUMBER, $iPaymentNumber);
506
+
507
+ $this->_fingerprintOrder->setOrder(Array(
508
+ self::CUSTOMER_ID,
509
+ self::SHOP_ID,
510
+ self::PASSWORD,
511
+ self::SECRET,
512
+ self::LANGUAGE,
513
+ self::ORDER_NUMBER,
514
+ self::PAYMENT_NUMBER
515
+ ));
516
+ return new WirecardCEE_QMore_Response_Backend_DepositReversal($this->_send());
517
+ }
518
+
519
+ /**
520
+ * TransferFund
521
+ *
522
+ * @throws WirecardCEE_Stdlib_Exception_InvalidTypeException
523
+ * @return WirecardCEE_QMore_Request_Backend_TransferFund
524
+ */
525
+ public function transferFund($fundTransferType)
526
+ {
527
+
528
+ switch ($fundTransferType)
529
+ {
530
+ case self::$TRANSFER_FUND_TYPE_EXISTING:
531
+ $client = new WirecardCEE_QMore_Request_Backend_TransferFund_Existing($this->oUserConfig);
532
+ break;
533
+
534
+ case self::$TRANSFER_FUND_TYPE_SKIRLLWALLET:
535
+ $client = new WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet($this->oUserConfig);
536
+ break;
537
+
538
+ case self::$TRANSFER_FUND_TYPE_MONETA:
539
+ $client = new WirecardCEE_QMore_Request_Backend_TransferFund_Moneta($this->oUserConfig);
540
+ break;
541
+
542
+ case self::$TRANSFER_FUND_TYPE_SEPACT:
543
+ $client = new WirecardCEE_QMore_Request_Backend_TransferFund_SepaCT($this->oUserConfig);
544
+ break;
545
+
546
+ default:
547
+ throw new WirecardCEE_Stdlib_Exception_InvalidTypeException('Invalid fundTransferType');
548
+ }
549
+
550
+ $client->setType($fundTransferType);
551
+ return $client;
552
+ }
553
+
554
+ /**
555
+ * *******************
556
+ * PROTECTED METHODS *
557
+ * *******************
558
+ */
559
+
560
+ /**
561
+ * Backend URL for POST-Requests
562
+ *
563
+ * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
564
+ * @return string
565
+ */
566
+ protected function _getRequestUrl()
567
+ {
568
+ return $this->oClientConfig->BACKEND_URL . "/" . $this->_getField(self::COMMAND);
569
+ }
570
+
571
+ /**
572
+ * getter for given field
573
+ *
574
+ * @param string $name
575
+ *
576
+ * @return string|null
577
+ */
578
+ protected function _getField($name)
579
+ {
580
+ return array_key_exists($name, $this->_requestData) ? $this->_requestData[$name] : null;
581
+ }
582
+
583
+ /**
584
+ * Returns the user agent string
585
+ *
586
+ * @return string
587
+ */
588
+ protected function _getUserAgent()
589
+ {
590
+ return "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
591
+ }
592
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Config/client.config.php CHANGED
@@ -1,23 +1,23 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig. Software & Service Copyright (C) by Wirecard Central Eastern
6
- * Europe GmbH, FB-Nr: FN 195599 x, http://www.wirecard.at
7
- */
8
-
9
- return Array(
10
- 'DATA_STORAGE_URL' => 'https://checkout.wirecard.com/seamless/dataStorage',
11
- 'FRONTEND_URL' => 'https://checkout.wirecard.com/seamless/frontend',
12
- 'BACKEND_URL' => 'https://checkout.wirecard.com/seamless/backend',
13
- 'MODULE_NAME' => 'WirecardCEE_QMore',
14
- 'MODULE_VERSION' => '3.1.0',
15
- 'DEPENDENCIES' => array(
16
- 'FRAMEWORK_NAME' => 'Zend Framework',
17
- 'FRAMEWORK_VERSION' => Array(
18
- 'MINIMUM' => '1.11.10',
19
- 'CURRENT' => Zend_Version::VERSION
20
- ),
21
- ),
22
- 'USE_DEBUG' => FALSE
23
  );
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig. Software & Service Copyright (C) by Wirecard Central Eastern
6
+ * Europe GmbH, FB-Nr: FN 195599 x, http://www.wirecard.at
7
+ */
8
+
9
+ return Array(
10
+ 'DATA_STORAGE_URL' => 'https://checkout.wirecard.com/seamless/dataStorage',
11
+ 'FRONTEND_URL' => 'https://checkout.wirecard.com/seamless/frontend',
12
+ 'BACKEND_URL' => 'https://checkout.wirecard.com/seamless/backend',
13
+ 'MODULE_NAME' => 'WirecardCEE_QMore',
14
+ 'MODULE_VERSION' => '3.1.0',
15
+ 'DEPENDENCIES' => array(
16
+ 'FRAMEWORK_NAME' => 'Zend Framework',
17
+ 'FRAMEWORK_VERSION' => Array(
18
+ 'MINIMUM' => '1.11.10',
19
+ 'CURRENT' => Zend_Version::VERSION
20
+ ),
21
+ ),
22
+ 'USE_DEBUG' => FALSE
23
  );
app/code/local/Wirecard/CheckoutSeamless/QMore/Config/user.config.php CHANGED
@@ -1,21 +1,21 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig. Software & Service Copyright (C) by Wirecard Central Eastern
6
- * Europe GmbH, FB-Nr: FN 195599 x, http://www.wirecard.at
7
- */
8
- /**
9
- * QMore User configuration (user.config.php)
10
- *
11
- * Please input your details
12
- */
13
- return Array(
14
- 'WirecardCEEQMoreConfig' => Array(
15
- 'CUSTOMER_ID' => 'D200001',
16
- 'SHOP_ID' => 'qmore',
17
- 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2',
18
- 'LANGUAGE' => 'en',
19
- 'PASSWORD' => 'jcv45z'
20
- )
21
- );
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig. Software & Service Copyright (C) by Wirecard Central Eastern
6
+ * Europe GmbH, FB-Nr: FN 195599 x, http://www.wirecard.at
7
+ */
8
+ /**
9
+ * QMore User configuration (user.config.php)
10
+ *
11
+ * Please input your details
12
+ */
13
+ return Array(
14
+ 'WirecardCEEQMoreConfig' => Array(
15
+ 'CUSTOMER_ID' => 'D200001',
16
+ 'SHOP_ID' => 'qmore',
17
+ 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2',
18
+ 'LANGUAGE' => 'en',
19
+ 'PASSWORD' => 'jcv45z'
20
+ )
21
+ );
app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Exception/ExceptionInterface.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage DataStorage_Exception
16
- * @version 3.2.0
17
- */
18
  interface WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage DataStorage_Exception
16
+ * @version 3.2.0
17
+ */
18
  interface WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Exception/InvalidArgumentException.php CHANGED
@@ -1,19 +1,19 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @subpackage DataStorage_Exception
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException extends InvalidArgumentException implements WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @subpackage DataStorage_Exception
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException extends InvalidArgumentException implements WirecardCEE_QMore_DataStorage_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Request/Read.php CHANGED
@@ -1,114 +1,114 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_DataStorage_Request_Read
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @subpackage DataStorage_Request
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_QMore_DataStorage_Request_Read extends WirecardCEE_Stdlib_Client_ClientAbstract {
20
- /**
21
- * Storage ID field name
22
- * @var string
23
- */
24
- const STORAGE_ID = "storageId";
25
-
26
- /**
27
- *
28
- * @var int
29
- */
30
- protected $_fingerprintOrderType = 1;
31
-
32
- /**
33
- * Constructor
34
- *
35
- * @param array $aConfig
36
- * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
37
- */
38
- public function __construct(array $aConfig = null) {
39
- $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
40
-
41
- //if no config was sent fallback to default config file
42
- if(is_null($aConfig)) {
43
- $aConfig = WirecardCEE_QMore_Module::getConfig();
44
- }
45
-
46
- if (isset($aConfig['WirecardCEEQMoreConfig'])) {
47
- //we only need the WirecardCEEQMoreConfig here
48
- $aConfig = $aConfig['WirecardCEEQMoreConfig'];
49
- }
50
-
51
- //let's store configuration details in internal objects
52
- $this->oUserConfig = new WirecardCEE_Stdlib_Config($aConfig);
53
- $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
54
-
55
- //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in $this->oUserConfig object that we created from config array
56
- $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
57
- $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
58
- $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
59
- $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
60
-
61
-
62
- //If not throw the InvalidArgumentException exception!
63
- if (empty($sCustomerId) || is_null($sCustomerId)) {
64
- throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
65
- }
66
-
67
- if (empty($sLanguage) || is_null($sLanguage)) {
68
- throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
69
- }
70
-
71
- if (empty($sSecret) || is_null($sSecret)) {
72
- throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
73
- }
74
-
75
- //everything ok! let's set the fields
76
- $this->_setField(self::CUSTOMER_ID, $sCustomerId);
77
- $this->_setField(self::SHOP_ID, $sShopId);
78
- $this->_setField(self::LANGUAGE, $sLanguage);
79
- $this->_setSecret($sSecret);
80
- }
81
- /**
82
- *
83
- * @param unknown_type $storageId
84
- * @return WirecardCEE_QMore_DataStorage_Response_Read
85
- */
86
- public function read($storageId) {
87
- $this->_setField(self::STORAGE_ID, $storageId);
88
-
89
- $this->_fingerprintOrder->setOrder(Array(
90
- self::CUSTOMER_ID,
91
- self::SHOP_ID,
92
- self::STORAGE_ID,
93
- self::SECRET
94
- ));
95
-
96
- return new WirecardCEE_QMore_DataStorage_Response_Read($this->_send());
97
- }
98
-
99
- /**
100
- * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
101
- * @return string
102
- */
103
- protected function _getRequestUrl() {
104
- return $this->oClientConfig->DATA_STORAGE_URL . '/read';
105
- }
106
-
107
- /**
108
- * Returns the user agent string
109
- * @return string
110
- */
111
- protected function _getUserAgent() {
112
- return (string) "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
113
- }
114
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_DataStorage_Request_Read
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @subpackage DataStorage_Request
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_QMore_DataStorage_Request_Read extends WirecardCEE_Stdlib_Client_ClientAbstract {
20
+ /**
21
+ * Storage ID field name
22
+ * @var string
23
+ */
24
+ const STORAGE_ID = "storageId";
25
+
26
+ /**
27
+ *
28
+ * @var int
29
+ */
30
+ protected $_fingerprintOrderType = 1;
31
+
32
+ /**
33
+ * Constructor
34
+ *
35
+ * @param array $aConfig
36
+ * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
37
+ */
38
+ public function __construct(array $aConfig = null) {
39
+ $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
40
+
41
+ //if no config was sent fallback to default config file
42
+ if(is_null($aConfig)) {
43
+ $aConfig = WirecardCEE_QMore_Module::getConfig();
44
+ }
45
+
46
+ if (isset($aConfig['WirecardCEEQMoreConfig'])) {
47
+ //we only need the WirecardCEEQMoreConfig here
48
+ $aConfig = $aConfig['WirecardCEEQMoreConfig'];
49
+ }
50
+
51
+ //let's store configuration details in internal objects
52
+ $this->oUserConfig = new WirecardCEE_Stdlib_Config($aConfig);
53
+ $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
54
+
55
+ //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in $this->oUserConfig object that we created from config array
56
+ $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
57
+ $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
58
+ $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
59
+ $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
60
+
61
+
62
+ //If not throw the InvalidArgumentException exception!
63
+ if (empty($sCustomerId) || is_null($sCustomerId)) {
64
+ throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
65
+ }
66
+
67
+ if (empty($sLanguage) || is_null($sLanguage)) {
68
+ throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
69
+ }
70
+
71
+ if (empty($sSecret) || is_null($sSecret)) {
72
+ throw new WirecardCEE_QMore_DataStorage_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
73
+ }
74
+
75
+ //everything ok! let's set the fields
76
+ $this->_setField(self::CUSTOMER_ID, $sCustomerId);
77
+ $this->_setField(self::SHOP_ID, $sShopId);
78
+ $this->_setField(self::LANGUAGE, $sLanguage);
79
+ $this->_setSecret($sSecret);
80
+ }
81
+ /**
82
+ *
83
+ * @param unknown_type $storageId
84
+ * @return WirecardCEE_QMore_DataStorage_Response_Read
85
+ */
86
+ public function read($storageId) {
87
+ $this->_setField(self::STORAGE_ID, $storageId);
88
+
89
+ $this->_fingerprintOrder->setOrder(Array(
90
+ self::CUSTOMER_ID,
91
+ self::SHOP_ID,
92
+ self::STORAGE_ID,
93
+ self::SECRET
94
+ ));
95
+
96
+ return new WirecardCEE_QMore_DataStorage_Response_Read($this->_send());
97
+ }
98
+
99
+ /**
100
+ * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
101
+ * @return string
102
+ */
103
+ protected function _getRequestUrl() {
104
+ return $this->oClientConfig->DATA_STORAGE_URL . '/read';
105
+ }
106
+
107
+ /**
108
+ * Returns the user agent string
109
+ * @return string
110
+ */
111
+ protected function _getUserAgent() {
112
+ return (string) "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
113
+ }
114
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Response/Initiation.php CHANGED
@@ -1,66 +1,66 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_DataStorage_Response_Initiation
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @subpackage DataStorage_Response
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_QMore_DataStorage_Response_Initiation extends WirecardCEE_QMore_Response_ResponseAbstract {
20
- /**
21
- * Storage id
22
- * @staticvar string
23
- * @internal
24
- */
25
- protected static $STORAGE_ID = 'storageId';
26
-
27
- /**
28
- * Javascript url
29
- * @staticvar string
30
- * @internal
31
- */
32
- protected static $JAVASCRIPT_URL = 'javascriptUrl';
33
-
34
- /**
35
- * getter for the Response status
36
- * values: 0 .
37
- * .. success
38
- * 1 ... failure
39
- *
40
- * @return int
41
- */
42
- public function getStatus() {
43
- return ($this->_getField(self::$STORAGE_ID)) ? self::STATE_SUCCESS : self::STATE_FAILURE;
44
- }
45
-
46
- /**
47
- * getter for storageId returned by the dataStorage
48
- *
49
- * @return string
50
- */
51
- public function getStorageId() {
52
- return $this->_getField(self::$STORAGE_ID);
53
- }
54
-
55
- /**
56
- * getter for javascriptUrl returned by the dataStorage
57
- *
58
- * the script behind this url is used by the shopsystem to save
59
- * paymentInformation in the dataStorage
60
- *
61
- * @return string
62
- */
63
- public function getJavascriptUrl() {
64
- return $this->_getField(self::$JAVASCRIPT_URL);
65
- }
66
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_DataStorage_Response_Initiation
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @subpackage DataStorage_Response
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_QMore_DataStorage_Response_Initiation extends WirecardCEE_QMore_Response_ResponseAbstract {
20
+ /**
21
+ * Storage id
22
+ * @staticvar string
23
+ * @internal
24
+ */
25
+ protected static $STORAGE_ID = 'storageId';
26
+
27
+ /**
28
+ * Javascript url
29
+ * @staticvar string
30
+ * @internal
31
+ */
32
+ protected static $JAVASCRIPT_URL = 'javascriptUrl';
33
+
34
+ /**
35
+ * getter for the Response status
36
+ * values: 0 .
37
+ * .. success
38
+ * 1 ... failure
39
+ *
40
+ * @return int
41
+ */
42
+ public function getStatus() {
43
+ return ($this->_getField(self::$STORAGE_ID)) ? self::STATE_SUCCESS : self::STATE_FAILURE;
44
+ }
45
+
46
+ /**
47
+ * getter for storageId returned by the dataStorage
48
+ *
49
+ * @return string
50
+ */
51
+ public function getStorageId() {
52
+ return $this->_getField(self::$STORAGE_ID);
53
+ }
54
+
55
+ /**
56
+ * getter for javascriptUrl returned by the dataStorage
57
+ *
58
+ * the script behind this url is used by the shopsystem to save
59
+ * paymentInformation in the dataStorage
60
+ *
61
+ * @return string
62
+ */
63
+ public function getJavascriptUrl() {
64
+ return $this->_getField(self::$JAVASCRIPT_URL);
65
+ }
66
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorage/Response/Read.php CHANGED
@@ -1,194 +1,194 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_DataStorage_Response_Read
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @subpackage DataStorage_Response
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_QMore_DataStorage_Response_Read extends WirecardCEE_QMore_Response_ResponseAbstract {
20
- /**
21
- * Const: state - existing
22
- * @var int
23
- */
24
- const STATE_EXISTING = 0;
25
-
26
- /**
27
- * Const: state - not empty
28
- * @var int
29
- */
30
- const STATE_NOT_EMPTY = 1;
31
-
32
- /**
33
- * Const: state - not existing
34
- * @var int
35
- */
36
- const STATE_NOT_EXISTING = 2;
37
-
38
- /**
39
- * Const: state - failure
40
- * @var int
41
- */
42
- const STATE_FAILURE = 3;
43
-
44
- /**
45
- * Payment type: credit card
46
- * @var string
47
- */
48
- const PAYMENTTYPE_CREDITCARD = 'CCARD';
49
-
50
- /**
51
- * Payment type: elv
52
- * @var string
53
- */
54
- const PAYMENTTYPE_ELV = 'ELV';
55
-
56
- /**
57
- * Payment type: giropay
58
- * @var string
59
- */
60
- const PAYMENTTYPE_GIROPAY = 'GIROPAY';
61
-
62
- /**
63
- * Payment type: pbx (mobile payment)
64
- * @var string
65
- */
66
- const PAYMENTTYPE_PAYBOX = 'PBX';
67
-
68
- /**
69
- * Storage id
70
- * @var string
71
- */
72
- const STORAGE_ID = 'storageId';
73
-
74
- /**
75
- * Javascript url
76
- * @var string
77
- */
78
- const JAVASCRIPT_URL = 'javascriptUrl';
79
-
80
- /**
81
- * Error
82
- * @staticvar string
83
- * @internal
84
- */
85
- protected static $ERROR = 'error';
86
-
87
- /**
88
- * Payment inf
89
- * @staticvar string
90
- * @internal
91
- */
92
- protected static $PAYMENT_INFORMATION = 'paymentInformation';
93
-
94
- /**
95
- * Storage id
96
- * @staticvar string
97
- * @internal
98
- */
99
- protected static $PAYMENT_INFORMATIONS = 'paymentInformations';
100
-
101
- /**
102
- * Internal errors holder
103
- * @var array
104
- */
105
- protected $_errors = Array();
106
-
107
- /**
108
- * getter for the Response status
109
- * values: 0 .
110
- * .. storageId exists and is empty
111
- * 1 ... storageId exists and not is empty
112
- * 2 ... storageId does not exist
113
- * 3 ... an error occured
114
- *
115
- * @return int
116
- */
117
- public function getStatus() {
118
- if ($this->_getField(self::STORAGE_ID)) {
119
- return ($this->_getField(self::$PAYMENT_INFORMATION)) ? self::STATE_NOT_EMPTY : self::STATE_EXISTING;
120
- }
121
- else {
122
- return ($this->_getField(self::$ERRORS)) ? self::STATE_FAILURE : self::STATE_NOT_EXISTING;
123
- }
124
- }
125
-
126
- /**
127
- * getter for all stored anonymized paymentInformation
128
- *
129
- * @param string $paymentType
130
- * - filter only one paymenttype
131
- * @return mixed[]
132
- */
133
- public function getPaymentInformation($paymentType = null) {
134
- $paymentInformation = $this->_getField(self::$PAYMENT_INFORMATION);
135
- if (is_array($paymentInformation)) {
136
- if (!is_null($paymentType)) {
137
- $paymentType = strtoupper($paymentType);
138
- foreach($paymentInformation as $singlePaymentInformation) {
139
- if ($singlePaymentInformation['paymentType'] == $paymentType) {
140
- return $singlePaymentInformation;
141
- }
142
- }
143
- return Array();
144
- }
145
- else {
146
- return $paymentInformation;
147
- }
148
- }
149
- else {
150
- return Array();
151
- }
152
- }
153
-
154
- /**
155
- * Returns the number of payment information
156
- *
157
- * @return int
158
- */
159
- public function getNumberOfPaymentInformation() {
160
- return $this->_getField(self::$PAYMENT_INFORMATIONS);
161
- }
162
-
163
- /**
164
- * Cheks if the given payment type has any payment information
165
- *
166
- * @param string $paymentType
167
- * @return boolean
168
- */
169
- public function hasPaymentInformation($paymentType) {
170
- $paymentInformation = $this->getPaymentInformation($paymentType);
171
- return !empty($paymentInformation);
172
- }
173
-
174
- /**
175
- * getter for storageId returned by the dataStorage
176
- *
177
- * @return string
178
- */
179
- public function getStorageId() {
180
- return (string) $this->_getField(self::STORAGE_ID);
181
- }
182
-
183
- /**
184
- * getter for javascriptUrl returned by the dataStorage
185
- *
186
- * the script behind this url is used by the shopsystem to save
187
- * paymentInformation in the dataStorage
188
- *
189
- * @return string
190
- */
191
- public function getJavascriptUrl() {
192
- return (string) $this->_getField(self::JAVASCRIPT_URL);
193
- }
194
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_DataStorage_Response_Read
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @subpackage DataStorage_Response
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_QMore_DataStorage_Response_Read extends WirecardCEE_QMore_Response_ResponseAbstract {
20
+ /**
21
+ * Const: state - existing
22
+ * @var int
23
+ */
24
+ const STATE_EXISTING = 0;
25
+
26
+ /**
27
+ * Const: state - not empty
28
+ * @var int
29
+ */
30
+ const STATE_NOT_EMPTY = 1;
31
+
32
+ /**
33
+ * Const: state - not existing
34
+ * @var int
35
+ */
36
+ const STATE_NOT_EXISTING = 2;
37
+
38
+ /**
39
+ * Const: state - failure
40
+ * @var int
41
+ */
42
+ const STATE_FAILURE = 3;
43
+
44
+ /**
45
+ * Payment type: credit card
46
+ * @var string
47
+ */
48
+ const PAYMENTTYPE_CREDITCARD = 'CCARD';
49
+
50
+ /**
51
+ * Payment type: elv
52
+ * @var string
53
+ */
54
+ const PAYMENTTYPE_ELV = 'ELV';
55
+
56
+ /**
57
+ * Payment type: giropay
58
+ * @var string
59
+ */
60
+ const PAYMENTTYPE_GIROPAY = 'GIROPAY';
61
+
62
+ /**
63
+ * Payment type: pbx (mobile payment)
64
+ * @var string
65
+ */
66
+ const PAYMENTTYPE_PAYBOX = 'PBX';
67
+
68
+ /**
69
+ * Storage id
70
+ * @var string
71
+ */
72
+ const STORAGE_ID = 'storageId';
73
+
74
+ /**
75
+ * Javascript url
76
+ * @var string
77
+ */
78
+ const JAVASCRIPT_URL = 'javascriptUrl';
79
+
80
+ /**
81
+ * Error
82
+ * @staticvar string
83
+ * @internal
84
+ */
85
+ protected static $ERROR = 'error';
86
+
87
+ /**
88
+ * Payment inf
89
+ * @staticvar string
90
+ * @internal
91
+ */
92
+ protected static $PAYMENT_INFORMATION = 'paymentInformation';
93
+
94
+ /**
95
+ * Storage id
96
+ * @staticvar string
97
+ * @internal
98
+ */
99
+ protected static $PAYMENT_INFORMATIONS = 'paymentInformations';
100
+
101
+ /**
102
+ * Internal errors holder
103
+ * @var array
104
+ */
105
+ protected $_errors = Array();
106
+
107
+ /**
108
+ * getter for the Response status
109
+ * values: 0 .
110
+ * .. storageId exists and is empty
111
+ * 1 ... storageId exists and not is empty
112
+ * 2 ... storageId does not exist
113
+ * 3 ... an error occured
114
+ *
115
+ * @return int
116
+ */
117
+ public function getStatus() {
118
+ if ($this->_getField(self::STORAGE_ID)) {
119
+ return ($this->_getField(self::$PAYMENT_INFORMATION)) ? self::STATE_NOT_EMPTY : self::STATE_EXISTING;
120
+ }
121
+ else {
122
+ return ($this->_getField(self::$ERRORS)) ? self::STATE_FAILURE : self::STATE_NOT_EXISTING;
123
+ }
124
+ }
125
+
126
+ /**
127
+ * getter for all stored anonymized paymentInformation
128
+ *
129
+ * @param string $paymentType
130
+ * - filter only one paymenttype
131
+ * @return mixed[]
132
+ */
133
+ public function getPaymentInformation($paymentType = null) {
134
+ $paymentInformation = $this->_getField(self::$PAYMENT_INFORMATION);
135
+ if (is_array($paymentInformation)) {
136
+ if (!is_null($paymentType)) {
137
+ $paymentType = strtoupper($paymentType);
138
+ foreach($paymentInformation as $singlePaymentInformation) {
139
+ if ($singlePaymentInformation['paymentType'] == $paymentType) {
140
+ return $singlePaymentInformation;
141
+ }
142
+ }
143
+ return Array();
144
+ }
145
+ else {
146
+ return $paymentInformation;
147
+ }
148
+ }
149
+ else {
150
+ return Array();
151
+ }
152
+ }
153
+
154
+ /**
155
+ * Returns the number of payment information
156
+ *
157
+ * @return int
158
+ */
159
+ public function getNumberOfPaymentInformation() {
160
+ return $this->_getField(self::$PAYMENT_INFORMATIONS);
161
+ }
162
+
163
+ /**
164
+ * Cheks if the given payment type has any payment information
165
+ *
166
+ * @param string $paymentType
167
+ * @return boolean
168
+ */
169
+ public function hasPaymentInformation($paymentType) {
170
+ $paymentInformation = $this->getPaymentInformation($paymentType);
171
+ return !empty($paymentInformation);
172
+ }
173
+
174
+ /**
175
+ * getter for storageId returned by the dataStorage
176
+ *
177
+ * @return string
178
+ */
179
+ public function getStorageId() {
180
+ return (string) $this->_getField(self::STORAGE_ID);
181
+ }
182
+
183
+ /**
184
+ * getter for javascriptUrl returned by the dataStorage
185
+ *
186
+ * the script behind this url is used by the shopsystem to save
187
+ * paymentInformation in the dataStorage
188
+ *
189
+ * @return string
190
+ */
191
+ public function getJavascriptUrl() {
192
+ return (string) $this->_getField(self::JAVASCRIPT_URL);
193
+ }
194
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/DataStorageClient.php CHANGED
@@ -1,377 +1,377 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_DataStorageClient
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_DataStorageClient extends WirecardCEE_Stdlib_Client_ClientAbstract
19
- {
20
-
21
- /**
22
- * Response holder
23
- *
24
- * @var WirecardCEE_QMore_DataStorage_Response_Initiation
25
- */
26
- protected $oInitResponse;
27
-
28
- /**
29
- * Read response holder
30
- *
31
- * @var WirecardCEE_QMore_DataStorage_Request_Read
32
- */
33
- protected $oDataStorageReadResponse;
34
-
35
- /**
36
- * Fingerprint order type
37
- *
38
- * @var int
39
- */
40
- protected $_fingerprintOrderType = 1;
41
-
42
- /**
43
- * ReturnUrl Field name
44
- *
45
- * @var string
46
- */
47
- const RETURN_URL = 'returnUrl';
48
-
49
- /**
50
- * Order identification field name
51
- *
52
- * @var string
53
- */
54
- const ORDER_IDENT = 'orderIdent';
55
-
56
- /**
57
- * Javascript Script Version field name
58
- * set to 'pci3' for PCI Dss Saq A compat
59
- *
60
- * @var string
61
- */
62
- const JAVASCRIPT_SCRIPT_VERSION = 'javascriptScriptVersion';
63
-
64
- /**
65
- * Storage ID field name
66
- *
67
- * @var string
68
- */
69
- const STORAGE_ID = "storageId";
70
-
71
- /**
72
- * Iframe Css Url field name
73
- *
74
- * @var string
75
- */
76
- const IFRAME_CSS_URL = 'iframeCssUrl';
77
-
78
- /**
79
- * CreditCard Show Issue Date field name (pci3 only)
80
- *
81
- * @var string
82
- */
83
- const CREDITCARD_SHOW_ISSUE_DATEFIELD = 'creditcardShowIssueDateField';
84
-
85
- /**
86
- * CreditCard Show Issue Number field name (pci3 only)
87
- *
88
- * @var string
89
- */
90
- const CREDITCARD_SHOW_ISSUE_NUMBERFIELD = 'creditcardShowIssueNumberField';
91
-
92
- /**
93
- * CreditCard Show Cardholder field name (pci3 only)
94
- *
95
- * @var string
96
- */
97
- const CREDITCARD_SHOW_CARDHOLDER_NAMEFIELD = 'creditcardShowCardholderNameField';
98
-
99
- /**
100
- * CreditCard Show CVC field name (pci3 only)
101
- *
102
- * @var string
103
- */
104
- const CREDITCARD_SHOW_CVC_FIELD = 'creditcardShowCvcField';
105
-
106
- /**
107
- * DataStorage contructor.
108
- *
109
- * @param array|Object $config
110
- *
111
- * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
112
- */
113
- public function __construct(array $config = null)
114
- {
115
- $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
116
-
117
- //if no config was sent fallback to default config file
118
- if (is_null($config))
119
- {
120
- $aConfig = WirecardCEE_QMore_Module::getConfig();
121
- }
122
-
123
- if (isset($config['WirecardCEEQMoreConfig']))
124
- {
125
- //we only need WirecardCEEQMoreConfig here
126
- $config = $config['WirecardCEEQMoreConfig'];
127
- }
128
-
129
- $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config);
130
- $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
131
-
132
- //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in config array
133
- $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
134
- $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
135
- $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
136
- $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
137
-
138
- //If not throw the InvalidArgumentException exception!
139
- if (empty($sCustomerId) || is_null($sCustomerId))
140
- {
141
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
142
- }
143
-
144
- if (empty($sLanguage) || is_null($sLanguage))
145
- {
146
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
147
- }
148
-
149
- if (empty($sSecret) || is_null($sSecret))
150
- {
151
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
152
- }
153
-
154
- $this->_setField(self::SHOP_ID, $sShopId);
155
- $this->_setField(self::CUSTOMER_ID, $sCustomerId);
156
- $this->_setField(self::LANGUAGE, $sLanguage);
157
- $this->_setSecret($sSecret);
158
- }
159
-
160
- /**
161
- *
162
- * @param string $orderIdent
163
- *
164
- * @return WirecardCEE_QMore_DataStorage_Response_Initiation
165
- */
166
- public function initiate()
167
- {
168
- $aMissingFields = new ArrayObject();
169
-
170
- if (!$this->_isFieldSet(self::CUSTOMER_ID)) $aMissingFields->append(self::CUSTOMER_ID);
171
- if (!$this->_isFieldSet(self::ORDER_IDENT)) $aMissingFields->append(self::ORDER_IDENT);
172
- if (!$this->_isFieldSet(self::RETURN_URL)) $aMissingFields->append(self::RETURN_URL);
173
- if (!$this->_isFieldSet(self::LANGUAGE)) $aMissingFields->append(self::LANGUAGE);
174
- if (empty($this->_secret)) $aMissingFields->append(self::SECRET);
175
-
176
- //Are there any errors in the $aMissingFields object?
177
- //If so throw the InvalidArgumentException and print all the fields that are missing!
178
- if ($aMissingFields->count())
179
- {
180
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage! Missing mandatory field(s): %s; thrown in %s", implode(", ", (array)$aMissingFields), __METHOD__));
181
- }
182
-
183
- if (!$this->_isFieldSet(self::JAVASCRIPT_SCRIPT_VERSION))
184
- {
185
- $this->setJavascriptScriptVersion('');
186
- }
187
-
188
- $this->_fingerprintOrder->setOrder(Array(
189
- self::CUSTOMER_ID,
190
- self::SHOP_ID,
191
- self::ORDER_IDENT,
192
- self::RETURN_URL,
193
- self::LANGUAGE,
194
- self::JAVASCRIPT_SCRIPT_VERSION,
195
- self::SECRET
196
- ));
197
-
198
- $this->oInitResponse = new WirecardCEE_QMore_DataStorage_Response_Initiation($this->_send());
199
- return $this->oInitResponse;
200
- }
201
-
202
- /**
203
- *
204
- * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
205
- */
206
- public function read()
207
- {
208
- $aMissingFields = new ArrayObject();
209
-
210
- if (!$this->_isFieldSet(self::CUSTOMER_ID))
211
- {
212
- $aMissingFields->append(self::CUSTOMER_ID);
213
- }
214
-
215
- // check if storageId has been set from outside. If not fallback to
216
- // response and see if response can give us storageId
217
- if (!$this->_isFieldSet(self::STORAGE_ID))
218
- {
219
- if (!$this->oInitResponse instanceof WirecardCEE_QMore_DataStorage_Response_Initiation)
220
- {
221
- throw new WirecardCEE_QMore_Exception_BadMethodCallException(sprintf("StorageId hasn't been found. Use 'initiate()' or 'setStorageId()'! Thrown in %s", __METHOD__));
222
- }
223
-
224
- $sStorageId = $this->oInitResponse->getStorageId();
225
-
226
- if (empty($sStorageId) || is_null($sStorageId))
227
- {
228
- $aMissingFields->append(self::STORAGE_ID);
229
- }
230
- else
231
- {
232
- $this->setStorageId($sStorageId);
233
- }
234
- }
235
-
236
- //Are there any errors in the $aMissingFields object?
237
- //If so throw the InvalidArgumentException and print all the fields that are missing!
238
- if ($aMissingFields->count())
239
- {
240
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage Read! Missing mandatory field(s): %s; thrown in %s", implode(", ", (array)$aMissingFields), __METHOD__));
241
- }
242
-
243
- $_dataStorageRead = new WirecardCEE_QMore_DataStorage_Request_Read($this->oUserConfig->toArray());
244
- $this->oDataStorageReadResponse = $_dataStorageRead->read($this->_requestData[self::STORAGE_ID]);
245
-
246
- return $this->oDataStorageReadResponse;
247
- }
248
-
249
-
250
- /**
251
- * setter for parameter javascriptScriptVersion
252
- *
253
- * @param type $javascriptVersion
254
- *
255
- * @return WirecardCEE_QMore_DataStorageClient
256
- */
257
- public function setJavascriptScriptVersion($javascriptScriptVersion)
258
- {
259
- $this->_setField(self::JAVASCRIPT_SCRIPT_VERSION, $javascriptScriptVersion);
260
- return $this;
261
- }
262
-
263
- /**
264
- * Setter for returnUrl
265
- *
266
- * @param string $sUrl
267
- *
268
- * @return WirecardCEE_QMore_DataStorageClient
269
- */
270
- public function setReturnUrl($sUrl)
271
- {
272
- $this->_setField(self::RETURN_URL, $sUrl);
273
- return $this;
274
- }
275
-
276
- /**
277
- * Setter for order identification
278
- * (uniqueness of the order identification number must be provided by the merchant)
279
- *
280
- * @param string $sOrderIdent
281
- *
282
- * @return WirecardCEE_QMore_DataStorageClient
283
- */
284
- public function setOrderIdent($sOrderIdent)
285
- {
286
- $this->_setField(self::ORDER_IDENT, $sOrderIdent);
287
- return $this;
288
- }
289
-
290
- /**
291
- *
292
- * @param string $sStorageId
293
- *
294
- * @return WirecardCEE_QMore_DataStorageClient
295
- */
296
- public function setStorageId($sStorageId)
297
- {
298
- $this->_setField(self::STORAGE_ID, $sStorageId);
299
- return $this;
300
- }
301
-
302
- /**
303
- * setter for parameter iframeCssUrl
304
- *
305
- * @param $iframeCssUrl
306
- */
307
- public function setIframeCssUrl($iframeCssUrl)
308
- {
309
- $this->_setField(self::IFRAME_CSS_URL, $iframeCssUrl);
310
- }
311
-
312
- /**
313
- * setter for parameter showIssueDateFields
314
- *
315
- * @param $showIssueDateField
316
- */
317
- public function setCreditCardShowIssueDateField($showIssueDateField)
318
- {
319
- $this->_setField(self::CREDITCARD_SHOW_ISSUE_DATEFIELD, $showIssueDateField ? 'true' : 'false');
320
- }
321
-
322
- /**
323
- * setter for parameter showIssueNumberField
324
- *
325
- * @param $showIssueNumberField
326
- */
327
- public function setCreditCardShowIssueNumberField($showIssueNumberField)
328
- {
329
- $this->_setField(self::CREDITCARD_SHOW_ISSUE_NUMBERFIELD, $showIssueNumberField ? 'true' : 'false');
330
- }
331
-
332
- /**
333
- * setter for parameter showCardholderField
334
- *
335
- * @param $showCardholderField
336
- */
337
- public function setCreditCardCardholderNameField($showCardholderField)
338
- {
339
- $this->_setField(self::CREDITCARD_SHOW_CARDHOLDER_NAMEFIELD, $showCardholderField ? 'true' : 'false');
340
- }
341
-
342
- /**
343
- * setter for parameter showCvcField
344
- *
345
- * @param $showCvcField
346
- */
347
- public function setCreditCardShowCvcField($showCvcField)
348
- {
349
- $this->_setField(self::CREDITCARD_SHOW_CVC_FIELD, $showCvcField ? 'true' : 'false');
350
- }
351
-
352
-
353
- /**
354
- * *******************
355
- * PROTECTED METHODS *
356
- * *******************
357
- */
358
-
359
- /**
360
- * @see WirecardCEE_Stdlib_Client_Request_Abstract::_getRequestUrl()
361
- * @return string
362
- */
363
- protected function _getRequestUrl()
364
- {
365
- return $this->oClientConfig->DATA_STORAGE_URL . '/init';
366
- }
367
-
368
- /**
369
- * Returns the user agent string
370
- *
371
- * @return string
372
- */
373
- protected function _getUserAgent()
374
- {
375
- return "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
376
- }
377
- }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_DataStorageClient
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_DataStorageClient extends WirecardCEE_Stdlib_Client_ClientAbstract
19
+ {
20
+
21
+ /**
22
+ * Response holder
23
+ *
24
+ * @var WirecardCEE_QMore_DataStorage_Response_Initiation
25
+ */
26
+ protected $oInitResponse;
27
+
28
+ /**
29
+ * Read response holder
30
+ *
31
+ * @var WirecardCEE_QMore_DataStorage_Request_Read
32
+ */
33
+ protected $oDataStorageReadResponse;
34
+
35
+ /**
36
+ * Fingerprint order type
37
+ *
38
+ * @var int
39
+ */
40
+ protected $_fingerprintOrderType = 1;
41
+
42
+ /**
43
+ * ReturnUrl Field name
44
+ *
45
+ * @var string
46
+ */
47
+ const RETURN_URL = 'returnUrl';
48
+
49
+ /**
50
+ * Order identification field name
51
+ *
52
+ * @var string
53
+ */
54
+ const ORDER_IDENT = 'orderIdent';
55
+
56
+ /**
57
+ * Javascript Script Version field name
58
+ * set to 'pci3' for PCI Dss Saq A compat
59
+ *
60
+ * @var string
61
+ */
62
+ const JAVASCRIPT_SCRIPT_VERSION = 'javascriptScriptVersion';
63
+
64
+ /**
65
+ * Storage ID field name
66
+ *
67
+ * @var string
68
+ */
69
+ const STORAGE_ID = "storageId";
70
+
71
+ /**
72
+ * Iframe Css Url field name
73
+ *
74
+ * @var string
75
+ */
76
+ const IFRAME_CSS_URL = 'iframeCssUrl';
77
+
78
+ /**
79
+ * CreditCard Show Issue Date field name (pci3 only)
80
+ *
81
+ * @var string
82
+ */
83
+ const CREDITCARD_SHOW_ISSUE_DATEFIELD = 'creditcardShowIssueDateField';
84
+
85
+ /**
86
+ * CreditCard Show Issue Number field name (pci3 only)
87
+ *
88
+ * @var string
89
+ */
90
+ const CREDITCARD_SHOW_ISSUE_NUMBERFIELD = 'creditcardShowIssueNumberField';
91
+
92
+ /**
93
+ * CreditCard Show Cardholder field name (pci3 only)
94
+ *
95
+ * @var string
96
+ */
97
+ const CREDITCARD_SHOW_CARDHOLDER_NAMEFIELD = 'creditcardShowCardholderNameField';
98
+
99
+ /**
100
+ * CreditCard Show CVC field name (pci3 only)
101
+ *
102
+ * @var string
103
+ */
104
+ const CREDITCARD_SHOW_CVC_FIELD = 'creditcardShowCvcField';
105
+
106
+ /**
107
+ * DataStorage contructor.
108
+ *
109
+ * @param array|Object $config
110
+ *
111
+ * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
112
+ */
113
+ public function __construct(array $config = null)
114
+ {
115
+ $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
116
+
117
+ //if no config was sent fallback to default config file
118
+ if (is_null($config))
119
+ {
120
+ $aConfig = WirecardCEE_QMore_Module::getConfig();
121
+ }
122
+
123
+ if (isset($config['WirecardCEEQMoreConfig']))
124
+ {
125
+ //we only need WirecardCEEQMoreConfig here
126
+ $config = $config['WirecardCEEQMoreConfig'];
127
+ }
128
+
129
+ $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config);
130
+ $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
131
+
132
+ //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in config array
133
+ $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
134
+ $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
135
+ $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
136
+ $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
137
+
138
+ //If not throw the InvalidArgumentException exception!
139
+ if (empty($sCustomerId) || is_null($sCustomerId))
140
+ {
141
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
142
+ }
143
+
144
+ if (empty($sLanguage) || is_null($sLanguage))
145
+ {
146
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
147
+ }
148
+
149
+ if (empty($sSecret) || is_null($sSecret))
150
+ {
151
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
152
+ }
153
+
154
+ $this->_setField(self::SHOP_ID, $sShopId);
155
+ $this->_setField(self::CUSTOMER_ID, $sCustomerId);
156
+ $this->_setField(self::LANGUAGE, $sLanguage);
157
+ $this->_setSecret($sSecret);
158
+ }
159
+
160
+ /**
161
+ *
162
+ * @param string $orderIdent
163
+ *
164
+ * @return WirecardCEE_QMore_DataStorage_Response_Initiation
165
+ */
166
+ public function initiate()
167
+ {
168
+ $aMissingFields = new ArrayObject();
169
+
170
+ if (!$this->_isFieldSet(self::CUSTOMER_ID)) $aMissingFields->append(self::CUSTOMER_ID);
171
+ if (!$this->_isFieldSet(self::ORDER_IDENT)) $aMissingFields->append(self::ORDER_IDENT);
172
+ if (!$this->_isFieldSet(self::RETURN_URL)) $aMissingFields->append(self::RETURN_URL);
173
+ if (!$this->_isFieldSet(self::LANGUAGE)) $aMissingFields->append(self::LANGUAGE);
174
+ if (empty($this->_secret)) $aMissingFields->append(self::SECRET);
175
+
176
+ //Are there any errors in the $aMissingFields object?
177
+ //If so throw the InvalidArgumentException and print all the fields that are missing!
178
+ if ($aMissingFields->count())
179
+ {
180
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage! Missing mandatory field(s): %s; thrown in %s", implode(", ", (array)$aMissingFields), __METHOD__));
181
+ }
182
+
183
+ if (!$this->_isFieldSet(self::JAVASCRIPT_SCRIPT_VERSION))
184
+ {
185
+ $this->setJavascriptScriptVersion('');
186
+ }
187
+
188
+ $this->_fingerprintOrder->setOrder(Array(
189
+ self::CUSTOMER_ID,
190
+ self::SHOP_ID,
191
+ self::ORDER_IDENT,
192
+ self::RETURN_URL,
193
+ self::LANGUAGE,
194
+ self::JAVASCRIPT_SCRIPT_VERSION,
195
+ self::SECRET
196
+ ));
197
+
198
+ $this->oInitResponse = new WirecardCEE_QMore_DataStorage_Response_Initiation($this->_send());
199
+ return $this->oInitResponse;
200
+ }
201
+
202
+ /**
203
+ *
204
+ * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
205
+ */
206
+ public function read()
207
+ {
208
+ $aMissingFields = new ArrayObject();
209
+
210
+ if (!$this->_isFieldSet(self::CUSTOMER_ID))
211
+ {
212
+ $aMissingFields->append(self::CUSTOMER_ID);
213
+ }
214
+
215
+ // check if storageId has been set from outside. If not fallback to
216
+ // response and see if response can give us storageId
217
+ if (!$this->_isFieldSet(self::STORAGE_ID))
218
+ {
219
+ if (!$this->oInitResponse instanceof WirecardCEE_QMore_DataStorage_Response_Initiation)
220
+ {
221
+ throw new WirecardCEE_QMore_Exception_BadMethodCallException(sprintf("StorageId hasn't been found. Use 'initiate()' or 'setStorageId()'! Thrown in %s", __METHOD__));
222
+ }
223
+
224
+ $sStorageId = $this->oInitResponse->getStorageId();
225
+
226
+ if (empty($sStorageId) || is_null($sStorageId))
227
+ {
228
+ $aMissingFields->append(self::STORAGE_ID);
229
+ }
230
+ else
231
+ {
232
+ $this->setStorageId($sStorageId);
233
+ }
234
+ }
235
+
236
+ //Are there any errors in the $aMissingFields object?
237
+ //If so throw the InvalidArgumentException and print all the fields that are missing!
238
+ if ($aMissingFields->count())
239
+ {
240
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf("Could not initiate DataStorage Read! Missing mandatory field(s): %s; thrown in %s", implode(", ", (array)$aMissingFields), __METHOD__));
241
+ }
242
+
243
+ $_dataStorageRead = new WirecardCEE_QMore_DataStorage_Request_Read($this->oUserConfig->toArray());
244
+ $this->oDataStorageReadResponse = $_dataStorageRead->read($this->_requestData[self::STORAGE_ID]);
245
+
246
+ return $this->oDataStorageReadResponse;
247
+ }
248
+
249
+
250
+ /**
251
+ * setter for parameter javascriptScriptVersion
252
+ *
253
+ * @param type $javascriptVersion
254
+ *
255
+ * @return WirecardCEE_QMore_DataStorageClient
256
+ */
257
+ public function setJavascriptScriptVersion($javascriptScriptVersion)
258
+ {
259
+ $this->_setField(self::JAVASCRIPT_SCRIPT_VERSION, $javascriptScriptVersion);
260
+ return $this;
261
+ }
262
+
263
+ /**
264
+ * Setter for returnUrl
265
+ *
266
+ * @param string $sUrl
267
+ *
268
+ * @return WirecardCEE_QMore_DataStorageClient
269
+ */
270
+ public function setReturnUrl($sUrl)
271
+ {
272
+ $this->_setField(self::RETURN_URL, $sUrl);
273
+ return $this;
274
+ }
275
+
276
+ /**
277
+ * Setter for order identification
278
+ * (uniqueness of the order identification number must be provided by the merchant)
279
+ *
280
+ * @param string $sOrderIdent
281
+ *
282
+ * @return WirecardCEE_QMore_DataStorageClient
283
+ */
284
+ public function setOrderIdent($sOrderIdent)
285
+ {
286
+ $this->_setField(self::ORDER_IDENT, $sOrderIdent);
287
+ return $this;
288
+ }
289
+
290
+ /**
291
+ *
292
+ * @param string $sStorageId
293
+ *
294
+ * @return WirecardCEE_QMore_DataStorageClient
295
+ */
296
+ public function setStorageId($sStorageId)
297
+ {
298
+ $this->_setField(self::STORAGE_ID, $sStorageId);
299
+ return $this;
300
+ }
301
+
302
+ /**
303
+ * setter for parameter iframeCssUrl
304
+ *
305
+ * @param $iframeCssUrl
306
+ */
307
+ public function setIframeCssUrl($iframeCssUrl)
308
+ {
309
+ $this->_setField(self::IFRAME_CSS_URL, $iframeCssUrl);
310
+ }
311
+
312
+ /**
313
+ * setter for parameter showIssueDateFields
314
+ *
315
+ * @param $showIssueDateField
316
+ */
317
+ public function setCreditCardShowIssueDateField($showIssueDateField)
318
+ {
319
+ $this->_setField(self::CREDITCARD_SHOW_ISSUE_DATEFIELD, $showIssueDateField ? 'true' : 'false');
320
+ }
321
+
322
+ /**
323
+ * setter for parameter showIssueNumberField
324
+ *
325
+ * @param $showIssueNumberField
326
+ */
327
+ public function setCreditCardShowIssueNumberField($showIssueNumberField)
328
+ {
329
+ $this->_setField(self::CREDITCARD_SHOW_ISSUE_NUMBERFIELD, $showIssueNumberField ? 'true' : 'false');
330
+ }
331
+
332
+ /**
333
+ * setter for parameter showCardholderField
334
+ *
335
+ * @param $showCardholderField
336
+ */
337
+ public function setCreditCardCardholderNameField($showCardholderField)
338
+ {
339
+ $this->_setField(self::CREDITCARD_SHOW_CARDHOLDER_NAMEFIELD, $showCardholderField ? 'true' : 'false');
340
+ }
341
+
342
+ /**
343
+ * setter for parameter showCvcField
344
+ *
345
+ * @param $showCvcField
346
+ */
347
+ public function setCreditCardShowCvcField($showCvcField)
348
+ {
349
+ $this->_setField(self::CREDITCARD_SHOW_CVC_FIELD, $showCvcField ? 'true' : 'false');
350
+ }
351
+
352
+
353
+ /**
354
+ * *******************
355
+ * PROTECTED METHODS *
356
+ * *******************
357
+ */
358
+
359
+ /**
360
+ * @see WirecardCEE_Stdlib_Client_Request_Abstract::_getRequestUrl()
361
+ * @return string
362
+ */
363
+ protected function _getRequestUrl()
364
+ {
365
+ return $this->oClientConfig->DATA_STORAGE_URL . '/init';
366
+ }
367
+
368
+ /**
369
+ * Returns the user agent string
370
+ *
371
+ * @return string
372
+ */
373
+ protected function _getUserAgent()
374
+ {
375
+ return "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
376
+ }
377
+ }
app/code/local/Wirecard/CheckoutSeamless/QMore/Error.php CHANGED
@@ -1,71 +1,71 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Error
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @version 3.2.0
16
- */
17
- class WirecardCEE_QMore_Error extends WirecardCEE_Stdlib_Error {
18
- /**
19
- * Error code
20
- *
21
- * @var int
22
- */
23
- protected $_errorCode = null;
24
-
25
- /**
26
- * Payment system message
27
- *
28
- * @var string
29
- */
30
- protected $_paySysMessage = null;
31
-
32
- /**
33
- * WirecardCEE_QMore_Error contructor
34
- *
35
- * @param int $errorCode
36
- * @param string $message
37
- */
38
- public function __construct($errorCode, $message) {
39
- $this->_errorCode = $errorCode;
40
- $this->setMessage($message);
41
- }
42
-
43
- /**
44
- * Error code getter
45
- *
46
- * @return int
47
- */
48
- public function getErrorCode() {
49
- return $this->_errorCode;
50
- }
51
-
52
- /**
53
- * Payment system message setter
54
- *
55
- * @param string $paySysMessage
56
- * @return WirecardCEE_QMore_Error
57
- */
58
- public function setPaySysMessage($paySysMessage) {
59
- $this->_paySysMessage = (string) $paySysMessage;
60
- return $this;
61
- }
62
-
63
- /**
64
- * Payment system message getter
65
- *
66
- * @return string
67
- */
68
- public function getPaySysMessage() {
69
- return (string) $this->_paySysMessage;
70
- }
71
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Error
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @version 3.2.0
16
+ */
17
+ class WirecardCEE_QMore_Error extends WirecardCEE_Stdlib_Error {
18
+ /**
19
+ * Error code
20
+ *
21
+ * @var int
22
+ */
23
+ protected $_errorCode = null;
24
+
25
+ /**
26
+ * Payment system message
27
+ *
28
+ * @var string
29
+ */
30
+ protected $_paySysMessage = null;
31
+
32
+ /**
33
+ * WirecardCEE_QMore_Error contructor
34
+ *
35
+ * @param int $errorCode
36
+ * @param string $message
37
+ */
38
+ public function __construct($errorCode, $message) {
39
+ $this->_errorCode = $errorCode;
40
+ $this->setMessage($message);
41
+ }
42
+
43
+ /**
44
+ * Error code getter
45
+ *
46
+ * @return int
47
+ */
48
+ public function getErrorCode() {
49
+ return $this->_errorCode;
50
+ }
51
+
52
+ /**
53
+ * Payment system message setter
54
+ *
55
+ * @param string $paySysMessage
56
+ * @return WirecardCEE_QMore_Error
57
+ */
58
+ public function setPaySysMessage($paySysMessage) {
59
+ $this->_paySysMessage = (string) $paySysMessage;
60
+ return $this;
61
+ }
62
+
63
+ /**
64
+ * Payment system message getter
65
+ *
66
+ * @return string
67
+ */
68
+ public function getPaySysMessage() {
69
+ return (string) $this->_paySysMessage;
70
+ }
71
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/BadMethodCallException.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Exception_BadMethodCallException
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Exception
16
- * @version 3.2.0
17
- */
18
  class WirecardCEE_QMore_Exception_BadMethodCallException extends BadMethodCallException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Exception_BadMethodCallException
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Exception
16
+ * @version 3.2.0
17
+ */
18
  class WirecardCEE_QMore_Exception_BadMethodCallException extends BadMethodCallException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/ExceptionInterface.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Exception_ExceptionInterface
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Exception
16
- * @version 3.2.0
17
- */
18
  interface WirecardCEE_QMore_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Exception_ExceptionInterface
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Exception
16
+ * @version 3.2.0
17
+ */
18
  interface WirecardCEE_QMore_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/InvalidArgumentException.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Exception_InvalidArgumentException
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Exception
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Exception_InvalidArgumentException extends InvalidArgumentException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Exception_InvalidArgumentException
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Exception
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Exception_InvalidArgumentException extends InvalidArgumentException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/InvalidParamLengthException.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Exception_InvalidParamLengthException
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Exception
16
- * @version 3.2.0
17
- */
18
  class WirecardCEE_QMore_Exception_InvalidParamLengthException extends LengthException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Exception_InvalidParamLengthException
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Exception
16
+ * @version 3.2.0
17
+ */
18
  class WirecardCEE_QMore_Exception_InvalidParamLengthException extends LengthException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Exception/InvalidResponseException.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Exception_InvalidResponseException
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Exception
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Exception_InvalidResponseException extends WirecardCEE_Stdlib_Exception_InvalidResponseException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Exception_InvalidResponseException
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Exception
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Exception_InvalidResponseException extends WirecardCEE_Stdlib_Exception_InvalidResponseException implements WirecardCEE_QMore_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/QMore/FrontendClient.php CHANGED
@@ -1,641 +1,641 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_FrontendClient
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @version 3.2.0
16
- */
17
- class WirecardCEE_QMore_FrontendClient extends WirecardCEE_Stdlib_Client_ClientAbstract {
18
- /**
19
- * Field name: PaymentType
20
- * @var string
21
- */
22
- const PAYMENT_TYPE = 'paymentType';
23
-
24
- /**
25
- * Field name: successUrl
26
- * @var string
27
- */
28
- const SUCCESS_URL = 'successUrl';
29
-
30
- /**
31
- * Field name: cancelUrl
32
- * @var string
33
- */
34
- const CANCEL_URL = 'cancelUrl';
35
-
36
- /**
37
- * Field name: failureUrl
38
- * @var string
39
- */
40
- const FAILURE_URL = 'failureUrl';
41
-
42
- /**
43
- * Field name: serviceUrl
44
- * @var string
45
- */
46
- const SERVICE_URL = 'serviceUrl';
47
-
48
- /**
49
- * Field name: confirmUrl
50
- * @var string
51
- */
52
- const CONFIRM_URL = 'confirmUrl';
53
-
54
- /**
55
- * Field name: pendingUrl
56
- *
57
- * @var string
58
- */
59
- const PENDING_URL = 'pendingUrl';
60
-
61
- /**
62
- * Field name: orderIdent
63
- * @var string
64
- */
65
- const ORDER_IDENT = 'orderIdent';
66
-
67
- /**
68
- * Field name: storageId
69
- * @var string
70
- */
71
- const STORAGE_ID = 'storageId';
72
-
73
- /**
74
- * Field name: window name
75
- * @var string
76
- */
77
- const WINDOW_NAME = 'windowName';
78
-
79
- /**
80
- * Field name: window name
81
- * @var string
82
- */
83
- const DUPLICATE_REQUEST_CHECK = 'duplicateRequestCheck';
84
-
85
- /**
86
- * Field name: window name
87
- * @var string
88
- */
89
- const CUSTOMER_STATEMENT = 'customerStatement';
90
-
91
- /**
92
- * Field name: window name
93
- * @var string
94
- */
95
- const ORDER_REFERENCE = 'orderReference';
96
-
97
- /**
98
- * Field name: window name
99
- * @var string
100
- */
101
- const CONFIRM_MAIL = 'confirmMail';
102
-
103
- /**
104
- * Field name: pluginVersion
105
- * @var string
106
- */
107
- const PLUGIN_VERSION = 'pluginVersion';
108
-
109
- /**
110
- * Field name: financialInstitution
111
- * @var string
112
- */
113
- const FINANCIAL_INSTITUTION = 'financialInstitution';
114
-
115
- /**
116
- * Consumer data holder
117
- * @var WirecardCEE_Stdlib_ConsumerData
118
- */
119
- protected $oConsumerData;
120
-
121
- /**
122
- * Internal response holder
123
- * @var WirecardCEE_QMore_Response_Initiation
124
- */
125
- protected $oResponse;
126
-
127
- /**
128
- * Library name
129
- * @staticvar string
130
- * @internal
131
- */
132
- protected static $LIBRARY_NAME = 'WirecardCEE_QMore';
133
-
134
- /**
135
- * Library version
136
- * @staticvar string
137
- * @internal
138
- */
139
- protected static $LIBRARY_VERSION = '3.1.0';
140
-
141
- /**
142
- * Framewor name (is populated from client.config.php)
143
- * @staticvar string
144
- * @internal
145
- */
146
- protected static $FRAMEWORK_NAME;
147
-
148
- /**
149
- *
150
- * @param array|Object $config
151
- */
152
- public function __construct(array $config = null) {
153
- $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
154
-
155
- //if no config was sent fallback to default config file
156
- if(is_null($config)) {
157
- $config = WirecardCEE_QMore_Module::getConfig();
158
- }
159
-
160
- if(isset($config['WirecardCEEQMoreConfig'])) {
161
- //we only need the WirecardCEEQMoreConfig here
162
- $config = $config['WirecardCEEQMoreConfig'];
163
- }
164
-
165
- //let's store configuration details in internal objects
166
- $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config);
167
- $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
168
-
169
- self::$FRAMEWORK_NAME = $this->getClientConfig()->DEPENDENCIES->FRAMEWORK_NAME;
170
-
171
- //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in $this->oUserConfig object that we've created from config array
172
- $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
173
- $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
174
- $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
175
- $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
176
-
177
-
178
- //If not throw the InvalidArgumentException exception!
179
- if (empty($sCustomerId) || is_null($sCustomerId)) {
180
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
181
- }
182
-
183
- if (empty($sLanguage) || is_null($sLanguage)) {
184
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
185
- }
186
-
187
- if (empty($sSecret) || is_null($sSecret)) {
188
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
189
- }
190
-
191
- //everything ok! let's set the fields
192
- $this->_setField(self::SHOP_ID, $sShopId);
193
- $this->_setField(self::CUSTOMER_ID, $sCustomerId);
194
- $this->_setField(self::LANGUAGE, $sLanguage);
195
- $this->_setSecret($sSecret);
196
- }
197
-
198
- /**
199
- *
200
- * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
201
- */
202
- public function initiate() {
203
- $aMissingFields = new ArrayObject();
204
-
205
- if(!$this->_isFieldSet(self::CUSTOMER_ID)) $aMissingFields->append(self::CUSTOMER_ID);
206
- if(!$this->_isFieldSet(self::AMOUNT)) $aMissingFields->append(self::AMOUNT);
207
- if(!$this->_isFieldSet(self::CURRENCY)) $aMissingFields->append(self::CURRENCY);
208
- if(!$this->_isFieldSet(self::PAYMENT_TYPE)) $aMissingFields->append(self::PAYMENT_TYPE);
209
- if(!$this->_isFieldSet(self::LANGUAGE)) $aMissingFields->append(self::LANGUAGE);
210
- if(!$this->_isFieldSet(self::ORDER_DESCRIPTION)) $aMissingFields->append(self::ORDER_DESCRIPTION);
211
- if(!$this->_isFieldSet(self::SUCCESS_URL)) $aMissingFields->append(self::SUCCESS_URL);
212
- if(!$this->_isFieldSet(self::CANCEL_URL)) $aMissingFields->append(self::CANCEL_URL);
213
- if(!$this->_isFieldSet(self::FAILURE_URL)) $aMissingFields->append(self::FAILURE_URL);
214
- if(!$this->_isFieldSet(self::SERVICE_URL)) $aMissingFields->append(self::SERVICE_URL);
215
- if(!$this->_isFieldSet(self::CONFIRM_URL)) $aMissingFields->append(self::CONFIRM_URL);
216
- if(!$this->_isConsumerDataValid()) $aMissingFields->append('Consumer Data Object (IP and USER_AGENT fields are madatory)');
217
-
218
- //Are there any errors in the $aMissingFields object?
219
- //If so throw the InvalidArgumentException and print all the fields that are missing!
220
- if($aMissingFields->count()) {
221
- throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf(
222
- "Could not initiate QMore! Missing mandatory field(s): %s; thrown in %s; Please use the appropriate setter functions to set the missing fields!",
223
- implode(", ", (array) $aMissingFields), __METHOD__));
224
- }
225
-
226
- //this is where the magic happens! We send our data to response object and hopefully get back the response object with 'redirectUrl'.
227
- //Reponse object is also the one who will, if anything goes wrong, return the errors in an array!
228
- try {
229
- $this->oResponse = new WirecardCEE_QMore_Response_Initiation($this->_send());
230
- return $this->oResponse;
231
- }
232
- catch (WirecardCEE_Stdlib_Client_Exception_InvalidResponseException $e) {
233
- throw $e;
234
- }
235
- }
236
-
237
- /**
238
- * Setter for amount
239
- *
240
- * @param int|float $amount
241
- * @return WirecardCEE_QMore_FrontendClient
242
- */
243
- public function setAmount($amount) {
244
- $this->_setField(self::AMOUNT, $amount);
245
- return $this;
246
- }
247
-
248
- /**
249
- * Setter for currency
250
- *
251
- * @param string $sCurrency
252
- * @return WirecardCEE_QMore_FrontendClient
253
- */
254
- public function setCurrency($sCurrency) {
255
- $this->_setField(self::CURRENCY, $sCurrency);
256
- return $this;
257
- }
258
-
259
- /**
260
- * Setter for payment type
261
- *
262
- * @param string $sPaymentType
263
- * @return WirecardCEE_QMore_FrontendClient
264
- */
265
- public function setPaymentType($sPaymentType) {
266
- $this->_setField(self::PAYMENT_TYPE, $sPaymentType);
267
- return $this;
268
- }
269
-
270
- /**
271
- * Setter for order description
272
- *
273
- * @param string $sDesc
274
- * @return WirecardCEE_QMore_FrontendClient
275
- */
276
- public function setOrderDescription($sDesc) {
277
- $this->_setField(self::ORDER_DESCRIPTION, $sDesc);
278
- return $this;
279
- }
280
-
281
- /**
282
- * Setter for success url
283
- *
284
- * @param string $sUrl
285
- * @return WirecardCEE_QMore_FrontendClient
286
- */
287
- public function setSuccessUrl($sUrl) {
288
- $this->_setField(self::SUCCESS_URL, $sUrl);
289
- return $this;
290
- }
291
-
292
- /**
293
- * Setter for cancel url
294
- *
295
- * @param string $sUrl
296
- * @return WirecardCEE_QMore_FrontendClient
297
- */
298
- public function setCancelUrl($sUrl) {
299
- $this->_setField(self::CANCEL_URL, $sUrl);
300
- return $this;
301
- }
302
-
303
- /**
304
- * Setter for failure url
305
- *
306
- * @param string $sUrl
307
- * @return WirecardCEE_QMore_FrontendClient
308
- */
309
- public function setFailureUrl($sUrl) {
310
- $this->_setField(self::FAILURE_URL, $sUrl);
311
- return $this;
312
- }
313
-
314
- /**
315
- * Setter for service url
316
- *
317
- * @param string $sUrl
318
- * @return WirecardCEE_QMore_FrontendClient
319
- */
320
- public function setServiceUrl($sUrl) {
321
- $this->_setField(self::SERVICE_URL, $sUrl);
322
- return $this;
323
- }
324
-
325
- /**
326
- * Setter for the QMore parameter financialInstitution
327
- *
328
- * @param string $financialInstitution
329
- * @return WirecardCEE_QMore_FrontendClient
330
- */
331
- public function setFinancialInstitution($financialInstitution) {
332
- $this->_setField(self::FINANCIAL_INSTITUTION, $financialInstitution);
333
- return $this;
334
- }
335
-
336
- /**
337
- * setter for the QMore parameter confirmUrl
338
- *
339
- * @param string $confirmUrl
340
- * @return WirecardCEE_QMore_FrontendClient
341
- */
342
- public function setConfirmUrl($confirmUrl) {
343
- $this->_setField(self::CONFIRM_URL, $confirmUrl);
344
- return $this;
345
- }
346
-
347
- /**
348
- * setter for the QMore parameter pendingUrl
349
- *
350
- * @param string $pendingUrl
351
- * @return WirecardCEE_QMore_FrontendClient
352
- */
353
- public function setPendingUrl($pendingUrl) {
354
- $this->_setField(self::PENDING_URL, $pendingUrl);
355
- return $this;
356
- }
357
-
358
- /**
359
- * setter for the QMore parameter windowName
360
- *
361
- * @param string $windowName
362
- * @return WirecardCEE_QMore_FrontendClient
363
- */
364
- public function setWindowName($windowName) {
365
- $this->_requestData[self::WINDOW_NAME] = $windowName;
366
- return $this;
367
- }
368
-
369
- /**
370
- * setter for the QMore parameter duplicateRequestCheck
371
- *
372
- * @param bool $duplicateRequestCheck
373
- * @return WirecardCEE_QMore_FrontendClient
374
- */
375
- public function setDuplicateRequestCheck($duplicateRequestCheck) {
376
- if ($duplicateRequestCheck) {
377
- $this->_setField(self::DUPLICATE_REQUEST_CHECK, self::$BOOL_TRUE);
378
- }
379
- return $this;
380
- }
381
-
382
- /**
383
- * setter for the QMore parameter customerStatement
384
- *
385
- * @param string $customerStatement
386
- *
387
- * @return $this
388
- */
389
- public function setCustomerStatement($customerStatement)
390
- {
391
- $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
392
- return $this;
393
- }
394
-
395
- /**
396
- * @param string|null $prefix Prefix, e.g. Shopname
397
- * @param string|null $uniqString Uniqid
398
- *
399
- * @return $this
400
- * @throws Exception
401
- */
402
- public function generateCustomerStatement($prefix = null, $uniqString = null)
403
- {
404
- if (!$this->_isFieldSet(self::PAYMENT_TYPE))
405
- throw new Exception('Paymenttype field is not set.');
406
-
407
- $this->_setField(
408
- self::CUSTOMER_STATEMENT,
409
- $this->_composeCustomerStatement($this->_requestData[self::PAYMENT_TYPE], $prefix, $uniqString));
410
-
411
- return $this;
412
- }
413
-
414
- /**
415
- * getter for the QMore parameter customerStatement
416
- *
417
- * @return string|null
418
- */
419
- public function getCustomerStatement()
420
- {
421
- if (!$this->_isFieldSet(self::CUSTOMER_STATEMENT))
422
- return null;
423
-
424
- return $this->_requestData[self::CUSTOMER_STATEMENT];
425
- }
426
-
427
- /**
428
- * setter for the QMore parameter orderReference
429
- *
430
- * @param string $orderReference
431
- * @return WirecardCEE_QMore_FrontendClient
432
- */
433
- public function setOrderReference($orderReference) {
434
- $this->_setField(self::ORDER_REFERENCE, $orderReference);
435
- return $this;
436
- }
437
-
438
- /**
439
- * setter for the QMore paramter autoDeposit
440
- *
441
- * @param string $autoDeposit
442
- * @return WirecardCEE_QMore_FrontendClient
443
- */
444
- public function setAutoDeposit($autoDeposit) {
445
- if ($autoDeposit) {
446
- $this->_setField(self::AUTO_DEPOSIT, self::$BOOL_TRUE);
447
- }
448
- return $this;
449
- }
450
-
451
- /**
452
- * setter for the QMore parameter orderNumber
453
- *
454
- * @param string $orderNumber
455
- * @return WirecardCEE_QMore_FrontendClient
456
- */
457
- public function setOrderNumber($orderNumber) {
458
- $this->_setField(self::ORDER_NUMBER, $orderNumber);
459
- return $this;
460
- }
461
-
462
- /**
463
- * setter for the QMore parameter confirmMail
464
- *
465
- * @param string $confirmMail
466
- * @return WirecardCEE_QMore_FrontendClient
467
- */
468
- public function setConfirmMail($confirmMail) {
469
- $this->_setField(self::CONFIRM_MAIL, $confirmMail);
470
- return $this;
471
- }
472
-
473
- /**
474
- * adds given consumerData to QMore request
475
- *
476
- * @param WirecardCEE_Stdlib_ConsumerData $consumerData
477
- * @return WirecardCEE_QMore_FrontendClient
478
- */
479
- public function setConsumerData(WirecardCEE_Stdlib_ConsumerData $consumerData) {
480
- $this->oConsumerData = $consumerData;
481
- foreach($consumerData->getData() as $key => $value) {
482
- $this->_setField($key, $value);
483
- }
484
- return $this;
485
- }
486
-
487
- /**
488
- * setter for dataStorage reference data ONLY IN QMORE
489
- *
490
- * @param string $orderIdent
491
- * @param string $storageId
492
- * @return WirecardCEE_QMore_FrontendClient
493
- */
494
- public function setStorageReference($orderIdent, $storageId) {
495
- $this->setStorageId($storageId)->setOrderIdent($orderIdent);
496
- return $this;
497
- }
498
-
499
- /**
500
- * Storage ID setter
501
- * @param string $sStorageId
502
- * @return WirecardCEE_QMore_FrontendClient
503
- */
504
- public function setStorageId($sStorageId) {
505
- $this->_setField(self::STORAGE_ID, $sStorageId);
506
- return $this;
507
- }
508
-
509
- /**
510
- * Order identification setter
511
- * @param string $sOrderIdent
512
- * @return WirecardCEE_QMore_FrontendClient
513
- */
514
- public function setOrderIdent($sOrderIdent) {
515
- $this->_setField(self::ORDER_IDENT, $sOrderIdent);
516
- return $this;
517
- }
518
-
519
- /**
520
- *
521
- * @param string $plVersion
522
- * @return WirecardCEE_QMore_FrontendClient
523
- */
524
- public function setPluginVersion($sPluginVersion) {
525
- $this->_setField(self::PLUGIN_VERSION, $sPluginVersion);
526
- return $this;
527
- }
528
-
529
- /**
530
- * Getter for response object
531
- *
532
- * @return WirecardCEE_QMore_Response_Initiation
533
- */
534
- public function getResponse() {
535
- if(!$this->oResponse instanceof WirecardCEE_QMore_Response_Initiation) {
536
- throw new Exception(sprintf("%s should be called after the initiate() function!", __METHOD__));
537
- }
538
-
539
- return $this->oResponse;
540
- }
541
-
542
- /**
543
- * Magic method for setting request parameters.
544
- * may be used for additional parameters
545
- *
546
- * @param type $name
547
- * @param type $value
548
- */
549
- public function __set($name, $value) {
550
- $this->_setField($name, $value);
551
- }
552
-
553
- /**
554
- * generates an base64 encoded pluginVersion string from the given shop- plugin- and library-versions
555
- * QMore Client Libary and Zend Framework Version will be added automatically
556
- *
557
- * @param string $shopName
558
- * @param string $shopVersion
559
- * @param string $pluginName
560
- * @param string $pluginVersion
561
- * @param array|null $libraries
562
- * @return string base64 encoded pluginVersion
563
- */
564
- public static function generatePluginVersion($shopName, $shopVersion , $pluginName, $pluginVersion, $libraries = null) {
565
- $libraryString = self::_getQMoreClientVersionString();
566
- $libraryString .= ', ' . self::_getZendFrameworkVersionString();
567
- if(is_array($libraries)) {
568
- foreach($libraries AS $libName => $libVersion) {
569
- $libraryString .= ", {$libName} {$libVersion}";
570
- }
571
- }
572
-
573
- $version = base64_encode("{$shopName};{$shopVersion};{$libraryString};{$pluginName};{$pluginVersion}");
574
-
575
- return $version;
576
- }
577
-
578
-
579
- /***************************
580
- * PROTECTED METHODS *
581
- ***************************/
582
-
583
- /**
584
- * Checks to see if the consumer data object is set and has at least madatory fields set
585
- *
586
- * @return boolean
587
- */
588
- protected function _isConsumerDataValid() {
589
- // if consumer data is not an instance of WirecardCEE_Stdlib_ConsumerData
590
- // or if it's empty don't even bother with any checkings...
591
- if(empty($this->oConsumerData) || !$this->oConsumerData instanceof WirecardCEE_Stdlib_ConsumerData) return false;
592
-
593
- // @see WirecardCEE_QMore_Request_Initiation_ConsumerData
594
- $sConsumerIpAddressField = WirecardCEE_Stdlib_ConsumerData::getConsumerIpAddressFieldName();
595
- $sConsumerUserAgentField = WirecardCEE_Stdlib_ConsumerData::getConsumerUserAgentFieldName();
596
-
597
- // get all the consumer data in an array
598
- // @todo when 5.4 becomes available on our server we coulde use eg. $this->oConsumerData->getData()[$sConsumerIpAddressField]
599
- $aConsumerData = $this->oConsumerData->getData();
600
-
601
- // check
602
- return (isset($aConsumerData[$sConsumerIpAddressField]) && !empty($aConsumerData[$sConsumerIpAddressField])) &&
603
- (isset($aConsumerData[$sConsumerUserAgentField]) && !empty($aConsumerData[$sConsumerUserAgentField]));
604
- }
605
-
606
- /**
607
- * Getter for QMore Client Library Versionstring
608
- * @access private
609
- * @return String
610
- */
611
- protected static function _getQMoreClientVersionString() {
612
- return self::$LIBRARY_NAME . ' ' . self::$LIBRARY_VERSION;
613
- }
614
-
615
- /**
616
- * Getter for Zend Framework Versionstring
617
- * @access private
618
- * @return string
619
- */
620
- protected static function _getZendFrameworkVersionString() {
621
- if(!class_exists('Zend_Version', false)) {
622
- require_once('Zend/Version.php');
623
- }
624
- return self::$FRAMEWORK_NAME . ' ' . Zend_Version::VERSION;
625
- }
626
-
627
- /**
628
- * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
629
- */
630
- protected function _getRequestUrl() {
631
- return $this->oClientConfig->FRONTEND_URL . '/init';
632
- }
633
-
634
- /**
635
- * Returns the user agent string
636
- * @return string
637
- */
638
- protected function _getUserAgent() {
639
- return (string) "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
640
- }
641
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_FrontendClient
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @version 3.2.0
16
+ */
17
+ class WirecardCEE_QMore_FrontendClient extends WirecardCEE_Stdlib_Client_ClientAbstract {
18
+ /**
19
+ * Field name: PaymentType
20
+ * @var string
21
+ */
22
+ const PAYMENT_TYPE = 'paymentType';
23
+
24
+ /**
25
+ * Field name: successUrl
26
+ * @var string
27
+ */
28
+ const SUCCESS_URL = 'successUrl';
29
+
30
+ /**
31
+ * Field name: cancelUrl
32
+ * @var string
33
+ */
34
+ const CANCEL_URL = 'cancelUrl';
35
+
36
+ /**
37
+ * Field name: failureUrl
38
+ * @var string
39
+ */
40
+ const FAILURE_URL = 'failureUrl';
41
+
42
+ /**
43
+ * Field name: serviceUrl
44
+ * @var string
45
+ */
46
+ const SERVICE_URL = 'serviceUrl';
47
+
48
+ /**
49
+ * Field name: confirmUrl
50
+ * @var string
51
+ */
52
+ const CONFIRM_URL = 'confirmUrl';
53
+
54
+ /**
55
+ * Field name: pendingUrl
56
+ *
57
+ * @var string
58
+ */
59
+ const PENDING_URL = 'pendingUrl';
60
+
61
+ /**
62
+ * Field name: orderIdent
63
+ * @var string
64
+ */
65
+ const ORDER_IDENT = 'orderIdent';
66
+
67
+ /**
68
+ * Field name: storageId
69
+ * @var string
70
+ */
71
+ const STORAGE_ID = 'storageId';
72
+
73
+ /**
74
+ * Field name: window name
75
+ * @var string
76
+ */
77
+ const WINDOW_NAME = 'windowName';
78
+
79
+ /**
80
+ * Field name: window name
81
+ * @var string
82
+ */
83
+ const DUPLICATE_REQUEST_CHECK = 'duplicateRequestCheck';
84
+
85
+ /**
86
+ * Field name: window name
87
+ * @var string
88
+ */
89
+ const CUSTOMER_STATEMENT = 'customerStatement';
90
+
91
+ /**
92
+ * Field name: window name
93
+ * @var string
94
+ */
95
+ const ORDER_REFERENCE = 'orderReference';
96
+
97
+ /**
98
+ * Field name: window name
99
+ * @var string
100
+ */
101
+ const CONFIRM_MAIL = 'confirmMail';
102
+
103
+ /**
104
+ * Field name: pluginVersion
105
+ * @var string
106
+ */
107
+ const PLUGIN_VERSION = 'pluginVersion';
108
+
109
+ /**
110
+ * Field name: financialInstitution
111
+ * @var string
112
+ */
113
+ const FINANCIAL_INSTITUTION = 'financialInstitution';
114
+
115
+ /**
116
+ * Consumer data holder
117
+ * @var WirecardCEE_Stdlib_ConsumerData
118
+ */
119
+ protected $oConsumerData;
120
+
121
+ /**
122
+ * Internal response holder
123
+ * @var WirecardCEE_QMore_Response_Initiation
124
+ */
125
+ protected $oResponse;
126
+
127
+ /**
128
+ * Library name
129
+ * @staticvar string
130
+ * @internal
131
+ */
132
+ protected static $LIBRARY_NAME = 'WirecardCEE_QMore';
133
+
134
+ /**
135
+ * Library version
136
+ * @staticvar string
137
+ * @internal
138
+ */
139
+ protected static $LIBRARY_VERSION = '3.1.0';
140
+
141
+ /**
142
+ * Framewor name (is populated from client.config.php)
143
+ * @staticvar string
144
+ * @internal
145
+ */
146
+ protected static $FRAMEWORK_NAME;
147
+
148
+ /**
149
+ *
150
+ * @param array|Object $config
151
+ */
152
+ public function __construct(array $config = null) {
153
+ $this->_fingerprintOrder = new WirecardCEE_Stdlib_FingerprintOrder();
154
+
155
+ //if no config was sent fallback to default config file
156
+ if(is_null($config)) {
157
+ $config = WirecardCEE_QMore_Module::getConfig();
158
+ }
159
+
160
+ if(isset($config['WirecardCEEQMoreConfig'])) {
161
+ //we only need the WirecardCEEQMoreConfig here
162
+ $config = $config['WirecardCEEQMoreConfig'];
163
+ }
164
+
165
+ //let's store configuration details in internal objects
166
+ $this->oUserConfig = is_object($config) ? $config : new WirecardCEE_Stdlib_Config($config);
167
+ $this->oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_QMore_Module::getClientConfig());
168
+
169
+ self::$FRAMEWORK_NAME = $this->getClientConfig()->DEPENDENCIES->FRAMEWORK_NAME;
170
+
171
+ //now let's check if the CUSTOMER_ID, SHOP_ID, LANGUAGE and SECRET exist in $this->oUserConfig object that we've created from config array
172
+ $sCustomerId = isset($this->oUserConfig->CUSTOMER_ID) ? trim($this->oUserConfig->CUSTOMER_ID) : null;
173
+ $sShopId = isset($this->oUserConfig->SHOP_ID) ? trim($this->oUserConfig->SHOP_ID) : null;
174
+ $sLanguage = isset($this->oUserConfig->LANGUAGE) ? trim($this->oUserConfig->LANGUAGE) : null;
175
+ $sSecret = isset($this->oUserConfig->SECRET) ? trim($this->oUserConfig->SECRET) : null;
176
+
177
+
178
+ //If not throw the InvalidArgumentException exception!
179
+ if (empty($sCustomerId) || is_null($sCustomerId)) {
180
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('CUSTOMER_ID passed to %s is invalid.', __METHOD__));
181
+ }
182
+
183
+ if (empty($sLanguage) || is_null($sLanguage)) {
184
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('LANGUAGE passed to %s is invalid.', __METHOD__));
185
+ }
186
+
187
+ if (empty($sSecret) || is_null($sSecret)) {
188
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf('SECRET passed to %s is invalid.', __METHOD__));
189
+ }
190
+
191
+ //everything ok! let's set the fields
192
+ $this->_setField(self::SHOP_ID, $sShopId);
193
+ $this->_setField(self::CUSTOMER_ID, $sCustomerId);
194
+ $this->_setField(self::LANGUAGE, $sLanguage);
195
+ $this->_setSecret($sSecret);
196
+ }
197
+
198
+ /**
199
+ *
200
+ * @throws WirecardCEE_QMore_Exception_InvalidArgumentException
201
+ */
202
+ public function initiate() {
203
+ $aMissingFields = new ArrayObject();
204
+
205
+ if(!$this->_isFieldSet(self::CUSTOMER_ID)) $aMissingFields->append(self::CUSTOMER_ID);
206
+ if(!$this->_isFieldSet(self::AMOUNT)) $aMissingFields->append(self::AMOUNT);
207
+ if(!$this->_isFieldSet(self::CURRENCY)) $aMissingFields->append(self::CURRENCY);
208
+ if(!$this->_isFieldSet(self::PAYMENT_TYPE)) $aMissingFields->append(self::PAYMENT_TYPE);
209
+ if(!$this->_isFieldSet(self::LANGUAGE)) $aMissingFields->append(self::LANGUAGE);
210
+ if(!$this->_isFieldSet(self::ORDER_DESCRIPTION)) $aMissingFields->append(self::ORDER_DESCRIPTION);
211
+ if(!$this->_isFieldSet(self::SUCCESS_URL)) $aMissingFields->append(self::SUCCESS_URL);
212
+ if(!$this->_isFieldSet(self::CANCEL_URL)) $aMissingFields->append(self::CANCEL_URL);
213
+ if(!$this->_isFieldSet(self::FAILURE_URL)) $aMissingFields->append(self::FAILURE_URL);
214
+ if(!$this->_isFieldSet(self::SERVICE_URL)) $aMissingFields->append(self::SERVICE_URL);
215
+ if(!$this->_isFieldSet(self::CONFIRM_URL)) $aMissingFields->append(self::CONFIRM_URL);
216
+ if(!$this->_isConsumerDataValid()) $aMissingFields->append('Consumer Data Object (IP and USER_AGENT fields are madatory)');
217
+
218
+ //Are there any errors in the $aMissingFields object?
219
+ //If so throw the InvalidArgumentException and print all the fields that are missing!
220
+ if($aMissingFields->count()) {
221
+ throw new WirecardCEE_QMore_Exception_InvalidArgumentException(sprintf(
222
+ "Could not initiate QMore! Missing mandatory field(s): %s; thrown in %s; Please use the appropriate setter functions to set the missing fields!",
223
+ implode(", ", (array) $aMissingFields), __METHOD__));
224
+ }
225
+
226
+ //this is where the magic happens! We send our data to response object and hopefully get back the response object with 'redirectUrl'.
227
+ //Reponse object is also the one who will, if anything goes wrong, return the errors in an array!
228
+ try {
229
+ $this->oResponse = new WirecardCEE_QMore_Response_Initiation($this->_send());
230
+ return $this->oResponse;
231
+ }
232
+ catch (WirecardCEE_Stdlib_Client_Exception_InvalidResponseException $e) {
233
+ throw $e;
234
+ }
235
+ }
236
+
237
+ /**
238
+ * Setter for amount
239
+ *
240
+ * @param int|float $amount
241
+ * @return WirecardCEE_QMore_FrontendClient
242
+ */
243
+ public function setAmount($amount) {
244
+ $this->_setField(self::AMOUNT, $amount);
245
+ return $this;
246
+ }
247
+
248
+ /**
249
+ * Setter for currency
250
+ *
251
+ * @param string $sCurrency
252
+ * @return WirecardCEE_QMore_FrontendClient
253
+ */
254
+ public function setCurrency($sCurrency) {
255
+ $this->_setField(self::CURRENCY, $sCurrency);
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Setter for payment type
261
+ *
262
+ * @param string $sPaymentType
263
+ * @return WirecardCEE_QMore_FrontendClient
264
+ */
265
+ public function setPaymentType($sPaymentType) {
266
+ $this->_setField(self::PAYMENT_TYPE, $sPaymentType);
267
+ return $this;
268
+ }
269
+
270
+ /**
271
+ * Setter for order description
272
+ *
273
+ * @param string $sDesc
274
+ * @return WirecardCEE_QMore_FrontendClient
275
+ */
276
+ public function setOrderDescription($sDesc) {
277
+ $this->_setField(self::ORDER_DESCRIPTION, $sDesc);
278
+ return $this;
279
+ }
280
+
281
+ /**
282
+ * Setter for success url
283
+ *
284
+ * @param string $sUrl
285
+ * @return WirecardCEE_QMore_FrontendClient
286
+ */
287
+ public function setSuccessUrl($sUrl) {
288
+ $this->_setField(self::SUCCESS_URL, $sUrl);
289
+ return $this;
290
+ }
291
+
292
+ /**
293
+ * Setter for cancel url
294
+ *
295
+ * @param string $sUrl
296
+ * @return WirecardCEE_QMore_FrontendClient
297
+ */
298
+ public function setCancelUrl($sUrl) {
299
+ $this->_setField(self::CANCEL_URL, $sUrl);
300
+ return $this;
301
+ }
302
+
303
+ /**
304
+ * Setter for failure url
305
+ *
306
+ * @param string $sUrl
307
+ * @return WirecardCEE_QMore_FrontendClient
308
+ */
309
+ public function setFailureUrl($sUrl) {
310
+ $this->_setField(self::FAILURE_URL, $sUrl);
311
+ return $this;
312
+ }
313
+
314
+ /**
315
+ * Setter for service url
316
+ *
317
+ * @param string $sUrl
318
+ * @return WirecardCEE_QMore_FrontendClient
319
+ */
320
+ public function setServiceUrl($sUrl) {
321
+ $this->_setField(self::SERVICE_URL, $sUrl);
322
+ return $this;
323
+ }
324
+
325
+ /**
326
+ * Setter for the QMore parameter financialInstitution
327
+ *
328
+ * @param string $financialInstitution
329
+ * @return WirecardCEE_QMore_FrontendClient
330
+ */
331
+ public function setFinancialInstitution($financialInstitution) {
332
+ $this->_setField(self::FINANCIAL_INSTITUTION, $financialInstitution);
333
+ return $this;
334
+ }
335
+
336
+ /**
337
+ * setter for the QMore parameter confirmUrl
338
+ *
339
+ * @param string $confirmUrl
340
+ * @return WirecardCEE_QMore_FrontendClient
341
+ */
342
+ public function setConfirmUrl($confirmUrl) {
343
+ $this->_setField(self::CONFIRM_URL, $confirmUrl);
344
+ return $this;
345
+ }
346
+
347
+ /**
348
+ * setter for the QMore parameter pendingUrl
349
+ *
350
+ * @param string $pendingUrl
351
+ * @return WirecardCEE_QMore_FrontendClient
352
+ */
353
+ public function setPendingUrl($pendingUrl) {
354
+ $this->_setField(self::PENDING_URL, $pendingUrl);
355
+ return $this;
356
+ }
357
+
358
+ /**
359
+ * setter for the QMore parameter windowName
360
+ *
361
+ * @param string $windowName
362
+ * @return WirecardCEE_QMore_FrontendClient
363
+ */
364
+ public function setWindowName($windowName) {
365
+ $this->_requestData[self::WINDOW_NAME] = $windowName;
366
+ return $this;
367
+ }
368
+
369
+ /**
370
+ * setter for the QMore parameter duplicateRequestCheck
371
+ *
372
+ * @param bool $duplicateRequestCheck
373
+ * @return WirecardCEE_QMore_FrontendClient
374
+ */
375
+ public function setDuplicateRequestCheck($duplicateRequestCheck) {
376
+ if ($duplicateRequestCheck) {
377
+ $this->_setField(self::DUPLICATE_REQUEST_CHECK, self::$BOOL_TRUE);
378
+ }
379
+ return $this;
380
+ }
381
+
382
+ /**
383
+ * setter for the QMore parameter customerStatement
384
+ *
385
+ * @param string $customerStatement
386
+ *
387
+ * @return $this
388
+ */
389
+ public function setCustomerStatement($customerStatement)
390
+ {
391
+ $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
392
+ return $this;
393
+ }
394
+
395
+ /**
396
+ * @param string|null $prefix Prefix, e.g. Shopname
397
+ * @param string|null $uniqString Uniqid
398
+ *
399
+ * @return $this
400
+ * @throws Exception
401
+ */
402
+ public function generateCustomerStatement($prefix = null, $uniqString = null)
403
+ {
404
+ if (!$this->_isFieldSet(self::PAYMENT_TYPE))
405
+ throw new Exception('Paymenttype field is not set.');
406
+
407
+ $this->_setField(
408
+ self::CUSTOMER_STATEMENT,
409
+ $this->_composeCustomerStatement($this->_requestData[self::PAYMENT_TYPE], $prefix, $uniqString));
410
+
411
+ return $this;
412
+ }
413
+
414
+ /**
415
+ * getter for the QMore parameter customerStatement
416
+ *
417
+ * @return string|null
418
+ */
419
+ public function getCustomerStatement()
420
+ {
421
+ if (!$this->_isFieldSet(self::CUSTOMER_STATEMENT))
422
+ return null;
423
+
424
+ return $this->_requestData[self::CUSTOMER_STATEMENT];
425
+ }
426
+
427
+ /**
428
+ * setter for the QMore parameter orderReference
429
+ *
430
+ * @param string $orderReference
431
+ * @return WirecardCEE_QMore_FrontendClient
432
+ */
433
+ public function setOrderReference($orderReference) {
434
+ $this->_setField(self::ORDER_REFERENCE, $orderReference);
435
+ return $this;
436
+ }
437
+
438
+ /**
439
+ * setter for the QMore paramter autoDeposit
440
+ *
441
+ * @param string $autoDeposit
442
+ * @return WirecardCEE_QMore_FrontendClient
443
+ */
444
+ public function setAutoDeposit($autoDeposit) {
445
+ if ($autoDeposit) {
446
+ $this->_setField(self::AUTO_DEPOSIT, self::$BOOL_TRUE);
447
+ }
448
+ return $this;
449
+ }
450
+
451
+ /**
452
+ * setter for the QMore parameter orderNumber
453
+ *
454
+ * @param string $orderNumber
455
+ * @return WirecardCEE_QMore_FrontendClient
456
+ */
457
+ public function setOrderNumber($orderNumber) {
458
+ $this->_setField(self::ORDER_NUMBER, $orderNumber);
459
+ return $this;
460
+ }
461
+
462
+ /**
463
+ * setter for the QMore parameter confirmMail
464
+ *
465
+ * @param string $confirmMail
466
+ * @return WirecardCEE_QMore_FrontendClient
467
+ */
468
+ public function setConfirmMail($confirmMail) {
469
+ $this->_setField(self::CONFIRM_MAIL, $confirmMail);
470
+ return $this;
471
+ }
472
+
473
+ /**
474
+ * adds given consumerData to QMore request
475
+ *
476
+ * @param WirecardCEE_Stdlib_ConsumerData $consumerData
477
+ * @return WirecardCEE_QMore_FrontendClient
478
+ */
479
+ public function setConsumerData(WirecardCEE_Stdlib_ConsumerData $consumerData) {
480
+ $this->oConsumerData = $consumerData;
481
+ foreach($consumerData->getData() as $key => $value) {
482
+ $this->_setField($key, $value);
483
+ }
484
+ return $this;
485
+ }
486
+
487
+ /**
488
+ * setter for dataStorage reference data ONLY IN QMORE
489
+ *
490
+ * @param string $orderIdent
491
+ * @param string $storageId
492
+ * @return WirecardCEE_QMore_FrontendClient
493
+ */
494
+ public function setStorageReference($orderIdent, $storageId) {
495
+ $this->setStorageId($storageId)->setOrderIdent($orderIdent);
496
+ return $this;
497
+ }
498
+
499
+ /**
500
+ * Storage ID setter
501
+ * @param string $sStorageId
502
+ * @return WirecardCEE_QMore_FrontendClient
503
+ */
504
+ public function setStorageId($sStorageId) {
505
+ $this->_setField(self::STORAGE_ID, $sStorageId);
506
+ return $this;
507
+ }
508
+
509
+ /**
510
+ * Order identification setter
511
+ * @param string $sOrderIdent
512
+ * @return WirecardCEE_QMore_FrontendClient
513
+ */
514
+ public function setOrderIdent($sOrderIdent) {
515
+ $this->_setField(self::ORDER_IDENT, $sOrderIdent);
516
+ return $this;
517
+ }
518
+
519
+ /**
520
+ *
521
+ * @param string $plVersion
522
+ * @return WirecardCEE_QMore_FrontendClient
523
+ */
524
+ public function setPluginVersion($sPluginVersion) {
525
+ $this->_setField(self::PLUGIN_VERSION, $sPluginVersion);
526
+ return $this;
527
+ }
528
+
529
+ /**
530
+ * Getter for response object
531
+ *
532
+ * @return WirecardCEE_QMore_Response_Initiation
533
+ */
534
+ public function getResponse() {
535
+ if(!$this->oResponse instanceof WirecardCEE_QMore_Response_Initiation) {
536
+ throw new Exception(sprintf("%s should be called after the initiate() function!", __METHOD__));
537
+ }
538
+
539
+ return $this->oResponse;
540
+ }
541
+
542
+ /**
543
+ * Magic method for setting request parameters.
544
+ * may be used for additional parameters
545
+ *
546
+ * @param type $name
547
+ * @param type $value
548
+ */
549
+ public function __set($name, $value) {
550
+ $this->_setField($name, $value);
551
+ }
552
+
553
+ /**
554
+ * generates an base64 encoded pluginVersion string from the given shop- plugin- and library-versions
555
+ * QMore Client Libary and Zend Framework Version will be added automatically
556
+ *
557
+ * @param string $shopName
558
+ * @param string $shopVersion
559
+ * @param string $pluginName
560
+ * @param string $pluginVersion
561
+ * @param array|null $libraries
562
+ * @return string base64 encoded pluginVersion
563
+ */
564
+ public static function generatePluginVersion($shopName, $shopVersion , $pluginName, $pluginVersion, $libraries = null) {
565
+ $libraryString = self::_getQMoreClientVersionString();
566
+ $libraryString .= ', ' . self::_getZendFrameworkVersionString();
567
+ if(is_array($libraries)) {
568
+ foreach($libraries AS $libName => $libVersion) {
569
+ $libraryString .= ", {$libName} {$libVersion}";
570
+ }
571
+ }
572
+
573
+ $version = base64_encode("{$shopName};{$shopVersion};{$libraryString};{$pluginName};{$pluginVersion}");
574
+
575
+ return $version;
576
+ }
577
+
578
+
579
+ /***************************
580
+ * PROTECTED METHODS *
581
+ ***************************/
582
+
583
+ /**
584
+ * Checks to see if the consumer data object is set and has at least madatory fields set
585
+ *
586
+ * @return boolean
587
+ */
588
+ protected function _isConsumerDataValid() {
589
+ // if consumer data is not an instance of WirecardCEE_Stdlib_ConsumerData
590
+ // or if it's empty don't even bother with any checkings...
591
+ if(empty($this->oConsumerData) || !$this->oConsumerData instanceof WirecardCEE_Stdlib_ConsumerData) return false;
592
+
593
+ // @see WirecardCEE_QMore_Request_Initiation_ConsumerData
594
+ $sConsumerIpAddressField = WirecardCEE_Stdlib_ConsumerData::getConsumerIpAddressFieldName();
595
+ $sConsumerUserAgentField = WirecardCEE_Stdlib_ConsumerData::getConsumerUserAgentFieldName();
596
+
597
+ // get all the consumer data in an array
598
+ // @todo when 5.4 becomes available on our server we coulde use eg. $this->oConsumerData->getData()[$sConsumerIpAddressField]
599
+ $aConsumerData = $this->oConsumerData->getData();
600
+
601
+ // check
602
+ return (isset($aConsumerData[$sConsumerIpAddressField]) && !empty($aConsumerData[$sConsumerIpAddressField])) &&
603
+ (isset($aConsumerData[$sConsumerUserAgentField]) && !empty($aConsumerData[$sConsumerUserAgentField]));
604
+ }
605
+
606
+ /**
607
+ * Getter for QMore Client Library Versionstring
608
+ * @access private
609
+ * @return String
610
+ */
611
+ protected static function _getQMoreClientVersionString() {
612
+ return self::$LIBRARY_NAME . ' ' . self::$LIBRARY_VERSION;
613
+ }
614
+
615
+ /**
616
+ * Getter for Zend Framework Versionstring
617
+ * @access private
618
+ * @return string
619
+ */
620
+ protected static function _getZendFrameworkVersionString() {
621
+ if(!class_exists('Zend_Version', false)) {
622
+ require_once('Zend/Version.php');
623
+ }
624
+ return self::$FRAMEWORK_NAME . ' ' . Zend_Version::VERSION;
625
+ }
626
+
627
+ /**
628
+ * @see WirecardCEE_Stdlib_Client_ClientAbstract::_getRequestUrl()
629
+ */
630
+ protected function _getRequestUrl() {
631
+ return $this->oClientConfig->FRONTEND_URL . '/init';
632
+ }
633
+
634
+ /**
635
+ * Returns the user agent string
636
+ * @return string
637
+ */
638
+ protected function _getUserAgent() {
639
+ return (string) "{$this->oClientConfig->MODULE_NAME};{$this->oClientConfig->MODULE_VERSION}";
640
+ }
641
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Module.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Module
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Module
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Module extends WirecardCEE_Stdlib_Module_ModuleAbstract implements WirecardCEE_Stdlib_Module_ModuleInterface {
19
-
20
- /**
21
- * Returns the user configuration details found in 'Config' directory
22
- * (user.config.php)
23
- *
24
- * @return Array
25
- */
26
- public static final function getConfig() {
27
- return include Mage::getBaseDir('code') . '/local/Wirecard/CheckoutSeamless/QMore/Config/user.config.php';
28
- }
29
-
30
- /**
31
- * Returns the client configuration details found in 'Config' directory
32
- * (client.config.php)
33
- *
34
- * @return Array
35
- */
36
- public static final function getClientConfig() {
37
- return include Mage::getBaseDir('code') . '/local/Wirecard/CheckoutSeamless/QMore/Config/client.config.php';
38
- }
39
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Module
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Module
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Module extends WirecardCEE_Stdlib_Module_ModuleAbstract implements WirecardCEE_Stdlib_Module_ModuleInterface {
19
+
20
+ /**
21
+ * Returns the user configuration details found in 'Config' directory
22
+ * (user.config.php)
23
+ *
24
+ * @return Array
25
+ */
26
+ public static final function getConfig() {
27
+ return include Mage::getBaseDir('code') . '/local/Wirecard/CheckoutSeamless/QMore/Config/user.config.php';
28
+ }
29
+
30
+ /**
31
+ * Returns the client configuration details found in 'Config' directory
32
+ * (client.config.php)
33
+ *
34
+ * @return Array
35
+ */
36
+ public static final function getClientConfig() {
37
+ return include Mage::getBaseDir('code') . '/local/Wirecard/CheckoutSeamless/QMore/Config/client.config.php';
38
+ }
39
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/PaymentType.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_PaymentType
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_PaymentType extends WirecardCEE_Stdlib_PaymentTypeAbstract {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_PaymentType
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_PaymentType extends WirecardCEE_Stdlib_PaymentTypeAbstract {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund.php CHANGED
@@ -1,97 +1,97 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Request_Backend_TransferFund extends WirecardCEE_QMore_BackendClient
19
- {
20
-
21
- /**
22
- * fundTransferType.
23
- *
24
- * @var string
25
- */
26
- const FUNDTRANSFERTYPE = 'fundTransferType';
27
-
28
-
29
- public function __construct($config = null)
30
- {
31
- parent::__construct($config);
32
- $this->_requestData[self::COMMAND] = self::$COMMAND_TRANSFER_FUND;
33
- }
34
-
35
- /**
36
- * seter for fundTransferType field
37
- *
38
- * @param $fundTransferType
39
- */
40
- public function setType($fundTransferType)
41
- {
42
- $this->_requestData[self::FUNDTRANSFERTYPE] = $fundTransferType;
43
- }
44
-
45
- /**
46
- * seter for orderNumber field
47
- *
48
- * @param $orderNumber
49
- *
50
- * @return $this
51
- */
52
- public function setOrderNumber($orderNumber)
53
- {
54
- $this->_setField(self::ORDER_NUMBER, $orderNumber);
55
- return $this;
56
- }
57
-
58
- /**
59
- * seter for orderReference field
60
- *
61
- * @param $orderReference
62
- *
63
- * @return $this
64
- */
65
- public function setOrderReference($orderReference)
66
- {
67
- $this->_setField(self::ORDER_REFERENCE, $orderReference);
68
- return $this;
69
- }
70
-
71
- /**
72
- * seter for creditNumber field
73
- *
74
- * @param $creditNumber
75
- *
76
- * @return $this
77
- */
78
- public function setCreditNumber($creditNumber)
79
- {
80
- $this->_setField(self::CREDIT_NUMBER, $creditNumber);
81
- return $this;
82
- }
83
-
84
- /**
85
- * seter for customerStatement field
86
- *
87
- * @param $customerStatement
88
- *
89
- * @return $this
90
- */
91
- public function setCustomerStatement($customerStatement)
92
- {
93
- $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
94
- return $this;
95
- }
96
-
97
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Request_Backend_TransferFund extends WirecardCEE_QMore_BackendClient
19
+ {
20
+
21
+ /**
22
+ * fundTransferType.
23
+ *
24
+ * @var string
25
+ */
26
+ const FUNDTRANSFERTYPE = 'fundTransferType';
27
+
28
+
29
+ public function __construct($config = null)
30
+ {
31
+ parent::__construct($config);
32
+ $this->_requestData[self::COMMAND] = self::$COMMAND_TRANSFER_FUND;
33
+ }
34
+
35
+ /**
36
+ * seter for fundTransferType field
37
+ *
38
+ * @param $fundTransferType
39
+ */
40
+ public function setType($fundTransferType)
41
+ {
42
+ $this->_requestData[self::FUNDTRANSFERTYPE] = $fundTransferType;
43
+ }
44
+
45
+ /**
46
+ * seter for orderNumber field
47
+ *
48
+ * @param $orderNumber
49
+ *
50
+ * @return $this
51
+ */
52
+ public function setOrderNumber($orderNumber)
53
+ {
54
+ $this->_setField(self::ORDER_NUMBER, $orderNumber);
55
+ return $this;
56
+ }
57
+
58
+ /**
59
+ * seter for orderReference field
60
+ *
61
+ * @param $orderReference
62
+ *
63
+ * @return $this
64
+ */
65
+ public function setOrderReference($orderReference)
66
+ {
67
+ $this->_setField(self::ORDER_REFERENCE, $orderReference);
68
+ return $this;
69
+ }
70
+
71
+ /**
72
+ * seter for creditNumber field
73
+ *
74
+ * @param $creditNumber
75
+ *
76
+ * @return $this
77
+ */
78
+ public function setCreditNumber($creditNumber)
79
+ {
80
+ $this->_setField(self::CREDIT_NUMBER, $creditNumber);
81
+ return $this;
82
+ }
83
+
84
+ /**
85
+ * seter for customerStatement field
86
+ *
87
+ * @param $customerStatement
88
+ *
89
+ * @return $this
90
+ */
91
+ public function setCustomerStatement($customerStatement)
92
+ {
93
+ $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
94
+ return $this;
95
+ }
96
+
97
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/Existing.php CHANGED
@@ -1,66 +1,66 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Request_Backend_TransferFund_Existing extends WirecardCEE_QMore_Request_Backend_TransferFund
19
- {
20
-
21
- public function send($amount, $currency, $orderDescription, $sourceOrderNumber)
22
- {
23
- $this->_setField(self::AMOUNT, $amount);
24
- $this->_setField(self::CURRENCY, $currency);
25
- $this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
- $this->_setField(self::SOURCE_ORDER_NUMBER, $sourceOrderNumber);
27
-
28
- $orderArray = Array(
29
- self::CUSTOMER_ID,
30
- self::SHOP_ID,
31
- self::PASSWORD,
32
- self::SECRET,
33
- self::LANGUAGE
34
- );
35
- if ($this->_getField(self::ORDER_NUMBER) !== null)
36
- {
37
- $orderArray[] = self::ORDER_NUMBER;
38
- }
39
-
40
- if ($this->_getField(self::CREDIT_NUMBER) !== null)
41
- {
42
- $orderArray[] = self::CREDIT_NUMBER;
43
- }
44
-
45
- $orderArray[] = self::ORDER_DESCRIPTION;
46
- $orderArray[] = self::AMOUNT;
47
- $orderArray[] = self::CURRENCY;
48
-
49
- if ($this->_getField(self::ORDER_REFERENCE) !== null)
50
- {
51
- $orderArray[] = self::ORDER_REFERENCE;
52
- }
53
-
54
- if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
55
- {
56
- $orderArray[] = self::CUSTOMER_STATEMENT;
57
- }
58
-
59
- $orderArray[] = self::FUNDTRANSFERTYPE;
60
- $orderArray[] = self::SOURCE_ORDER_NUMBER;
61
-
62
- $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
63
-
64
- return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
65
- }
66
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_Request_Backend_TransferFund_Existing
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Request_Backend_TransferFund_Existing extends WirecardCEE_QMore_Request_Backend_TransferFund
19
+ {
20
+
21
+ public function send($amount, $currency, $orderDescription, $sourceOrderNumber)
22
+ {
23
+ $this->_setField(self::AMOUNT, $amount);
24
+ $this->_setField(self::CURRENCY, $currency);
25
+ $this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
+ $this->_setField(self::SOURCE_ORDER_NUMBER, $sourceOrderNumber);
27
+
28
+ $orderArray = Array(
29
+ self::CUSTOMER_ID,
30
+ self::SHOP_ID,
31
+ self::PASSWORD,
32
+ self::SECRET,
33
+ self::LANGUAGE
34
+ );
35
+ if ($this->_getField(self::ORDER_NUMBER) !== null)
36
+ {
37
+ $orderArray[] = self::ORDER_NUMBER;
38
+ }
39
+
40
+ if ($this->_getField(self::CREDIT_NUMBER) !== null)
41
+ {
42
+ $orderArray[] = self::CREDIT_NUMBER;
43
+ }
44
+
45
+ $orderArray[] = self::ORDER_DESCRIPTION;
46
+ $orderArray[] = self::AMOUNT;
47
+ $orderArray[] = self::CURRENCY;
48
+
49
+ if ($this->_getField(self::ORDER_REFERENCE) !== null)
50
+ {
51
+ $orderArray[] = self::ORDER_REFERENCE;
52
+ }
53
+
54
+ if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
55
+ {
56
+ $orderArray[] = self::CUSTOMER_STATEMENT;
57
+ }
58
+
59
+ $orderArray[] = self::FUNDTRANSFERTYPE;
60
+ $orderArray[] = self::SOURCE_ORDER_NUMBER;
61
+
62
+ $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
63
+
64
+ return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
65
+ }
66
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/Moneta.php CHANGED
@@ -1,67 +1,67 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_Request_Backend_TransferFund_Moneta
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Request_Backend_TransferFund_Moneta extends WirecardCEE_QMore_Request_Backend_TransferFund
19
- {
20
-
21
- public function send($amount, $currency, $orderDescription, $customerStatement, $consumerWalletId)
22
- {
23
- $this->_setField(self::AMOUNT, $amount);
24
- $this->_setField(self::CURRENCY, $currency);
25
- $this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
- $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
27
- $this->_setField(self::CONSUMERWALLETID, $consumerWalletId);
28
-
29
- $orderArray = Array(
30
- self::CUSTOMER_ID,
31
- self::SHOP_ID,
32
- self::PASSWORD,
33
- self::SECRET,
34
- self::LANGUAGE
35
- );
36
- if ($this->_getField(self::ORDER_NUMBER) !== null)
37
- {
38
- $orderArray[] = self::ORDER_NUMBER;
39
- }
40
-
41
- if ($this->_getField(self::CREDIT_NUMBER) !== null)
42
- {
43
- $orderArray[] = self::CREDIT_NUMBER;
44
- }
45
-
46
- $orderArray[] = self::ORDER_DESCRIPTION;
47
- $orderArray[] = self::AMOUNT;
48
- $orderArray[] = self::CURRENCY;
49
-
50
- if ($this->_getField(self::ORDER_REFERENCE) !== null)
51
- {
52
- $orderArray[] = self::ORDER_REFERENCE;
53
- }
54
-
55
- if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
56
- {
57
- $orderArray[] = self::CUSTOMER_STATEMENT;
58
- }
59
-
60
- $orderArray[] = self::FUNDTRANSFERTYPE;
61
- $orderArray[] = self::CONSUMERWALLETID;
62
-
63
- $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
64
-
65
- return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
66
- }
67
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_Request_Backend_TransferFund_Moneta
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Request_Backend_TransferFund_Moneta extends WirecardCEE_QMore_Request_Backend_TransferFund
19
+ {
20
+
21
+ public function send($amount, $currency, $orderDescription, $customerStatement, $consumerWalletId)
22
+ {
23
+ $this->_setField(self::AMOUNT, $amount);
24
+ $this->_setField(self::CURRENCY, $currency);
25
+ $this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
+ $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
27
+ $this->_setField(self::CONSUMERWALLETID, $consumerWalletId);
28
+
29
+ $orderArray = Array(
30
+ self::CUSTOMER_ID,
31
+ self::SHOP_ID,
32
+ self::PASSWORD,
33
+ self::SECRET,
34
+ self::LANGUAGE
35
+ );
36
+ if ($this->_getField(self::ORDER_NUMBER) !== null)
37
+ {
38
+ $orderArray[] = self::ORDER_NUMBER;
39
+ }
40
+
41
+ if ($this->_getField(self::CREDIT_NUMBER) !== null)
42
+ {
43
+ $orderArray[] = self::CREDIT_NUMBER;
44
+ }
45
+
46
+ $orderArray[] = self::ORDER_DESCRIPTION;
47
+ $orderArray[] = self::AMOUNT;
48
+ $orderArray[] = self::CURRENCY;
49
+
50
+ if ($this->_getField(self::ORDER_REFERENCE) !== null)
51
+ {
52
+ $orderArray[] = self::ORDER_REFERENCE;
53
+ }
54
+
55
+ if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
56
+ {
57
+ $orderArray[] = self::CUSTOMER_STATEMENT;
58
+ }
59
+
60
+ $orderArray[] = self::FUNDTRANSFERTYPE;
61
+ $orderArray[] = self::CONSUMERWALLETID;
62
+
63
+ $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
64
+
65
+ return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
66
+ }
67
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/SepaCT.php CHANGED
@@ -1,74 +1,74 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Request_Backend_TransferFund_SepaCT extends WirecardCEE_QMore_Request_Backend_TransferFund
19
- {
20
-
21
- public function send($amount, $currency, $bankAccountOwner, $bankBic, $bankAccountIban)
22
- {
23
- $this->_setField(self::AMOUNT, $amount);
24
- $this->_setField(self::CURRENCY, $currency);
25
- //$this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
- //$this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
27
- $this->_setField(self::BANKACCOUNTOWNER, $bankAccountOwner);
28
- $this->_setField(self::BANKBIC, $bankBic);
29
- $this->_setField(self::BANKACCOUNTIBAN, $bankAccountIban);
30
-
31
- $orderArray = Array(
32
- self::CUSTOMER_ID,
33
- self::SHOP_ID,
34
- self::PASSWORD,
35
- self::SECRET,
36
- self::LANGUAGE
37
- );
38
- if ($this->_getField(self::ORDER_NUMBER) !== null)
39
- {
40
- $orderArray[] = self::ORDER_NUMBER;
41
- }
42
-
43
- if ($this->_getField(self::CREDIT_NUMBER) !== null)
44
- {
45
- $orderArray[] = self::CREDIT_NUMBER;
46
- }
47
-
48
- if ($this->_getField(self::ORDER_DESCRIPTION) !== null)
49
- {
50
- $orderArray[] = self::ORDER_DESCRIPTION;
51
- }
52
- $orderArray[] = self::AMOUNT;
53
- $orderArray[] = self::CURRENCY;
54
-
55
- if ($this->_getField(self::ORDER_REFERENCE) !== null)
56
- {
57
- $orderArray[] = self::ORDER_REFERENCE;
58
- }
59
-
60
- if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
61
- {
62
- $orderArray[] = self::CUSTOMER_STATEMENT;
63
- }
64
-
65
- $orderArray[] = self::FUNDTRANSFERTYPE;
66
- $orderArray[] = self::BANKACCOUNTOWNER;
67
- $orderArray[] = self::BANKBIC;
68
- $orderArray[] = self::BANKACCOUNTIBAN;
69
-
70
- $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
71
-
72
- return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
73
- }
74
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Request_Backend_TransferFund_SepaCT extends WirecardCEE_QMore_Request_Backend_TransferFund
19
+ {
20
+
21
+ public function send($amount, $currency, $bankAccountOwner, $bankBic, $bankAccountIban)
22
+ {
23
+ $this->_setField(self::AMOUNT, $amount);
24
+ $this->_setField(self::CURRENCY, $currency);
25
+ //$this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
+ //$this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
27
+ $this->_setField(self::BANKACCOUNTOWNER, $bankAccountOwner);
28
+ $this->_setField(self::BANKBIC, $bankBic);
29
+ $this->_setField(self::BANKACCOUNTIBAN, $bankAccountIban);
30
+
31
+ $orderArray = Array(
32
+ self::CUSTOMER_ID,
33
+ self::SHOP_ID,
34
+ self::PASSWORD,
35
+ self::SECRET,
36
+ self::LANGUAGE
37
+ );
38
+ if ($this->_getField(self::ORDER_NUMBER) !== null)
39
+ {
40
+ $orderArray[] = self::ORDER_NUMBER;
41
+ }
42
+
43
+ if ($this->_getField(self::CREDIT_NUMBER) !== null)
44
+ {
45
+ $orderArray[] = self::CREDIT_NUMBER;
46
+ }
47
+
48
+ if ($this->_getField(self::ORDER_DESCRIPTION) !== null)
49
+ {
50
+ $orderArray[] = self::ORDER_DESCRIPTION;
51
+ }
52
+ $orderArray[] = self::AMOUNT;
53
+ $orderArray[] = self::CURRENCY;
54
+
55
+ if ($this->_getField(self::ORDER_REFERENCE) !== null)
56
+ {
57
+ $orderArray[] = self::ORDER_REFERENCE;
58
+ }
59
+
60
+ if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
61
+ {
62
+ $orderArray[] = self::CUSTOMER_STATEMENT;
63
+ }
64
+
65
+ $orderArray[] = self::FUNDTRANSFERTYPE;
66
+ $orderArray[] = self::BANKACCOUNTOWNER;
67
+ $orderArray[] = self::BANKBIC;
68
+ $orderArray[] = self::BANKACCOUNTIBAN;
69
+
70
+ $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
71
+
72
+ return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
73
+ }
74
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Request/Backend/TransferFund/SkrillWallet.php CHANGED
@@ -1,67 +1,67 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @version 3.1.0
17
- */
18
- class WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet extends WirecardCEE_QMore_Request_Backend_TransferFund
19
- {
20
-
21
- public function send($amount, $currency, $orderDescription, $customerStatement, $consumerEmail)
22
- {
23
- $this->_setField(self::AMOUNT, $amount);
24
- $this->_setField(self::CURRENCY, $currency);
25
- $this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
- $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
27
- $this->_setField(self::CONSUMEREMAIL, $consumerEmail);
28
-
29
- $orderArray = Array(
30
- self::CUSTOMER_ID,
31
- self::SHOP_ID,
32
- self::PASSWORD,
33
- self::SECRET,
34
- self::LANGUAGE
35
- );
36
- if ($this->_getField(self::ORDER_NUMBER) !== null)
37
- {
38
- $orderArray[] = self::ORDER_NUMBER;
39
- }
40
-
41
- if ($this->_getField(self::CREDIT_NUMBER) !== null)
42
- {
43
- $orderArray[] = self::CREDIT_NUMBER;
44
- }
45
-
46
- $orderArray[] = self::ORDER_DESCRIPTION;
47
- $orderArray[] = self::AMOUNT;
48
- $orderArray[] = self::CURRENCY;
49
-
50
- if ($this->_getField(self::ORDER_REFERENCE) !== null)
51
- {
52
- $orderArray[] = self::ORDER_REFERENCE;
53
- }
54
-
55
- if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
56
- {
57
- $orderArray[] = self::CUSTOMER_STATEMENT;
58
- }
59
-
60
- $orderArray[] = self::FUNDTRANSFERTYPE;
61
- $orderArray[] = self::CONSUMEREMAIL;
62
-
63
- $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
64
-
65
- return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
66
- }
67
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @version 3.1.0
17
+ */
18
+ class WirecardCEE_QMore_Request_Backend_TransferFund_SkrillWallet extends WirecardCEE_QMore_Request_Backend_TransferFund
19
+ {
20
+
21
+ public function send($amount, $currency, $orderDescription, $customerStatement, $consumerEmail)
22
+ {
23
+ $this->_setField(self::AMOUNT, $amount);
24
+ $this->_setField(self::CURRENCY, $currency);
25
+ $this->_setField(self::ORDER_DESCRIPTION, $orderDescription);
26
+ $this->_setField(self::CUSTOMER_STATEMENT, $customerStatement);
27
+ $this->_setField(self::CONSUMEREMAIL, $consumerEmail);
28
+
29
+ $orderArray = Array(
30
+ self::CUSTOMER_ID,
31
+ self::SHOP_ID,
32
+ self::PASSWORD,
33
+ self::SECRET,
34
+ self::LANGUAGE
35
+ );
36
+ if ($this->_getField(self::ORDER_NUMBER) !== null)
37
+ {
38
+ $orderArray[] = self::ORDER_NUMBER;
39
+ }
40
+
41
+ if ($this->_getField(self::CREDIT_NUMBER) !== null)
42
+ {
43
+ $orderArray[] = self::CREDIT_NUMBER;
44
+ }
45
+
46
+ $orderArray[] = self::ORDER_DESCRIPTION;
47
+ $orderArray[] = self::AMOUNT;
48
+ $orderArray[] = self::CURRENCY;
49
+
50
+ if ($this->_getField(self::ORDER_REFERENCE) !== null)
51
+ {
52
+ $orderArray[] = self::ORDER_REFERENCE;
53
+ }
54
+
55
+ if ($this->_getField(self::CUSTOMER_STATEMENT) !== null)
56
+ {
57
+ $orderArray[] = self::CUSTOMER_STATEMENT;
58
+ }
59
+
60
+ $orderArray[] = self::FUNDTRANSFERTYPE;
61
+ $orderArray[] = self::CONSUMEREMAIL;
62
+
63
+ $this->_fingerprintOrder->setOrder($this->_fingerprintOrder->setOrder($orderArray));
64
+
65
+ return new WirecardCEE_QMore_Response_Backend_TransferFund($this->_send());
66
+ }
67
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/ApproveReversal.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_ApproveReversal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
  class WirecardCEE_QMore_Response_Backend_ApproveReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_ApproveReversal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
  class WirecardCEE_QMore_Response_Backend_ApproveReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Deposit.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Deposit
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Deposit extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
- /**
20
- * Payment number
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $PAYMENT_NUMBER = 'paymentNumber';
25
-
26
- /**
27
- * getter for the returned paymentNumber
28
- *
29
- * @return string
30
- */
31
- public function getPaymentNumber() {
32
- return $this->_getField(self::$PAYMENT_NUMBER);
33
- }
34
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Deposit
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Deposit extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
+ /**
20
+ * Payment number
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $PAYMENT_NUMBER = 'paymentNumber';
25
+
26
+ /**
27
+ * getter for the returned paymentNumber
28
+ *
29
+ * @return string
30
+ */
31
+ public function getPaymentNumber() {
32
+ return $this->_getField(self::$PAYMENT_NUMBER);
33
+ }
34
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/DepositReversal.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_DepositReversal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
  class WirecardCEE_QMore_Response_Backend_DepositReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_DepositReversal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
  class WirecardCEE_QMore_Response_Backend_DepositReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/FinancialObject.php CHANGED
@@ -1,52 +1,52 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_FinancialObject
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- * @abstract
18
- */
19
- abstract class WirecardCEE_QMore_Response_Backend_FinancialObject {
20
- /**
21
- * Internal data holder
22
- * @var array
23
- */
24
- protected $_data = Array();
25
-
26
- /**
27
- * Datetime format
28
- * @staticvar string
29
- * @internal
30
- */
31
- protected static $DATETIME_FORMAT = 'm.d.Y H:i:s';
32
-
33
- /**
34
- * getter for given field
35
- *
36
- * @param string $name
37
- * @return mixed <boolean, string>
38
- */
39
- protected function _getField($name) {
40
- return (array_key_exists($name, $this->_data)) ? $this->_data[$name] : false;
41
- }
42
-
43
-
44
- /**
45
- * returns internal data array
46
- * @return bool
47
- */
48
- public function getData()
49
- {
50
- return $this->_data;
51
- }
52
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_FinancialObject
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ * @abstract
18
+ */
19
+ abstract class WirecardCEE_QMore_Response_Backend_FinancialObject {
20
+ /**
21
+ * Internal data holder
22
+ * @var array
23
+ */
24
+ protected $_data = Array();
25
+
26
+ /**
27
+ * Datetime format
28
+ * @staticvar string
29
+ * @internal
30
+ */
31
+ protected static $DATETIME_FORMAT = 'm.d.Y H:i:s';
32
+
33
+ /**
34
+ * getter for given field
35
+ *
36
+ * @param string $name
37
+ * @return mixed <boolean, string>
38
+ */
39
+ protected function _getField($name) {
40
+ return (array_key_exists($name, $this->_data)) ? $this->_data[$name] : false;
41
+ }
42
+
43
+
44
+ /**
45
+ * returns internal data array
46
+ * @return bool
47
+ */
48
+ public function getData()
49
+ {
50
+ return $this->_data;
51
+ }
52
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/GetFinancialInstitutions.php CHANGED
@@ -1,24 +1,24 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
-
20
- public function getFinancialInstitutions()
21
- {
22
- return $this->_response['financialInstitution'];
23
- }
24
- }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_GetFinancialInstitutions extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
+
20
+ public function getFinancialInstitutions()
21
+ {
22
+ return $this->_response['financialInstitution'];
23
+ }
24
+ }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/GetOrderDetails.php CHANGED
@@ -1,72 +1,72 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_GetOrderDetails
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_GetOrderDetails extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
- /**
20
- * Internal WirecardCEE_QMore_Response_Backend_Order holder
21
- * @var WirecardCEE_QMore_Response_Backend_Order
22
- */
23
- private $_order;
24
-
25
- /**
26
- * Order
27
- * @staticvar string
28
- * @internal
29
- */
30
- private static $ORDER = 'order';
31
-
32
- /**
33
- * Payment
34
- * @staticvar string
35
- * @internal
36
- */
37
- private static $PAYMENT = 'payment';
38
-
39
- /**
40
- * Credit
41
- * @staticvar string
42
- * @internal
43
- */
44
- private static $CREDIT = 'credit';
45
-
46
- /**
47
- *
48
- * @see WirecardCEE_QMore_Response_Backend_ResponseAbstract
49
- * @param string[] $result
50
- */
51
- public function __construct($result) {
52
- parent::__construct($result);
53
- $orders = $this->_getField(self::$ORDER);
54
- $payments = $this->_getField(self::$PAYMENT);
55
- $credits = $this->_getField(self::$CREDIT);
56
-
57
- $order = $orders[0];
58
- $order['paymentData'] = is_array($payments[0]) ? $payments[0] : Array();
59
- $order['creditData'] = is_array($credits[0]) ? $credits[0] : Array();
60
-
61
- $this->_order = new WirecardCEE_QMore_Response_Backend_Order($order);
62
- }
63
-
64
- /**
65
- * getter for the returned order object
66
- *
67
- * @return WirecardCEE_QMore_Response_Backend_Order
68
- */
69
- public function getOrder() {
70
- return $this->_order;
71
- }
72
- }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_GetOrderDetails
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_GetOrderDetails extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
+ /**
20
+ * Internal WirecardCEE_QMore_Response_Backend_Order holder
21
+ * @var WirecardCEE_QMore_Response_Backend_Order
22
+ */
23
+ private $_order;
24
+
25
+ /**
26
+ * Order
27
+ * @staticvar string
28
+ * @internal
29
+ */
30
+ private static $ORDER = 'order';
31
+
32
+ /**
33
+ * Payment
34
+ * @staticvar string
35
+ * @internal
36
+ */
37
+ private static $PAYMENT = 'payment';
38
+
39
+ /**
40
+ * Credit
41
+ * @staticvar string
42
+ * @internal
43
+ */
44
+ private static $CREDIT = 'credit';
45
+
46
+ /**
47
+ *
48
+ * @see WirecardCEE_QMore_Response_Backend_ResponseAbstract
49
+ * @param string[] $result
50
+ */
51
+ public function __construct($result) {
52
+ parent::__construct($result);
53
+ $orders = $this->_getField(self::$ORDER);
54
+ $payments = $this->_getField(self::$PAYMENT);
55
+ $credits = $this->_getField(self::$CREDIT);
56
+
57
+ $order = $orders[0];
58
+ $order['paymentData'] = is_array($payments[0]) ? $payments[0] : Array();
59
+ $order['creditData'] = is_array($credits[0]) ? $credits[0] : Array();
60
+
61
+ $this->_order = new WirecardCEE_QMore_Response_Backend_Order($order);
62
+ }
63
+
64
+ /**
65
+ * getter for the returned order object
66
+ *
67
+ * @return WirecardCEE_QMore_Response_Backend_Order
68
+ */
69
+ public function getOrder() {
70
+ return $this->_order;
71
+ }
72
+ }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order.php CHANGED
@@ -1,399 +1,399 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Order extends WirecardCEE_QMore_Response_Backend_FinancialObject {
19
- /**
20
- * Internal WirecardCEE_QMore_Response_Backend_Order_CreditIterator holder
21
- * @var WirecardCEE_QMore_Response_Backend_Order_CreditIterator
22
- */
23
- private $_credits;
24
-
25
- /**
26
- * internal WirecardCEE_QMore_Response_Backend_Order_PaymentIterator holder
27
- * @var WirecardCEE_QMore_Response_Backend_Order_PaymentIterator
28
- */
29
- private $_payments;
30
-
31
- /**
32
- * Merchant number
33
- * @staticvar string
34
- * @internal
35
- */
36
- private static $MERCHANT_NUMBER = 'merchantNumber';
37
-
38
- /**
39
- * Order number
40
- * @staticvar string
41
- * @internal
42
- */
43
- private static $ORDER_NUMBER = 'orderNumber';
44
-
45
- /**
46
- * Payment type
47
- * @staticvar string
48
- * @internal
49
- */
50
- private static $PAYMENT_TYPE = 'paymentType';
51
-
52
- /**
53
- * Amount
54
- * @staticvar string
55
- * @internal
56
- */
57
- private static $AMOUNT = 'amount';
58
-
59
- /**
60
- * Brand
61
- * @staticvar string
62
- * @internal
63
- */
64
- private static $BRAND = 'brand';
65
-
66
- /**
67
- * Currency
68
- * @staticvar string
69
- * @internal
70
- */
71
- private static $CURRENCY = 'currency';
72
-
73
- /**
74
- * Order description
75
- * @staticvar string
76
- * @internal
77
- */
78
- private static $ORDER_DESCRIPTION = 'orderDescription';
79
-
80
- /**
81
- * Acquirer
82
- * @staticvar string
83
- * @internal
84
- */
85
- private static $ACQUIRER = 'acquirer';
86
-
87
- /**
88
- * Contract number
89
- * @staticvar string
90
- * @internal
91
- */
92
- private static $CONTRACT_NUMBER = 'contractNumber';
93
-
94
- /**
95
- * Operations allowed
96
- * @staticvar string
97
- * @internal
98
- */
99
- private static $OPERATIONS_ALLOWED = 'operationsAllowed';
100
-
101
- /**
102
- * Order reference
103
- * @staticvar string
104
- * @internal
105
- */
106
- private static $ORDER_REFERENCE = 'orderReference';
107
-
108
- /**
109
- * Customer statement
110
- * @staticvar string
111
- * @internal
112
- */
113
- private static $CUSTOMER_STATEMENT = 'customerStatement';
114
-
115
- /**
116
- * Order text
117
- * @staticvar string
118
- * @internal
119
- */
120
- private static $ORDER_TEXT = 'orderText';
121
-
122
- /**
123
- * Time created
124
- * @staticvar string
125
- * @internal
126
- */
127
- private static $TIME_CREATED = 'timeCreated';
128
-
129
- /**
130
- * Time modified
131
- * @staticvar string
132
- * @internal
133
- */
134
- private static $TIME_MODIFIED = 'timeModified';
135
-
136
- /**
137
- * State
138
- * @staticvar string
139
- * @internal
140
- */
141
- private static $STATE = 'state';
142
-
143
- /**
144
- * Source order number
145
- * @staticvar string
146
- * @internal
147
- */
148
- private static $SOURCE_ORDER_NUMBER = 'sourceOrderNumber';
149
-
150
- /**
151
- * Paypal
152
- * @staticvar string
153
- * @internal
154
- */
155
- private static $PAYMENTTYPE_PAYPAL = 'PPL';
156
-
157
- /**
158
- * Sofortueberweisung
159
- * @staticvar string
160
- * @internal
161
- */
162
- private static $PAYMENTTYPE_SOFORTUEBERWEISUNG = 'SUE';
163
-
164
- /**
165
- * iDEAL
166
- * @staticvar string
167
- * @internal
168
- */
169
- private static $PAYMENTTYPE_IDEAL = 'IDL';
170
-
171
- /**
172
- * creates an instance of the WirecardCEE_QMore_Response_Backend_Order object
173
- *
174
- * @param string[] $orderData
175
- */
176
- public function __construct($orderData) {
177
- $this->_setPayments($orderData['paymentData']);
178
- unset($orderData['paymentData']);
179
- $this->_setCredits($orderData['creditData']);
180
- unset($orderData['creditData']);
181
- $this->_data = $orderData;
182
- }
183
-
184
- /**
185
- * getter for order merchant number
186
- *
187
- * @return string
188
- */
189
- public function getMerchantNumber() {
190
- return $this->_getField(self::$MERCHANT_NUMBER);
191
- }
192
-
193
- /**
194
- * getter for order number
195
- *
196
- * @return string
197
- */
198
- public function getOrderNumber() {
199
- return $this->_getField(self::$ORDER_NUMBER);
200
- }
201
-
202
- /**
203
- * getter for used payment type
204
- *
205
- * @return string
206
- */
207
- public function getPaymentType() {
208
- return $this->_getField(self::$PAYMENT_TYPE);
209
- }
210
-
211
- /**
212
- * getter for orders amount
213
- *
214
- * @return string
215
- */
216
- public function getAmount() {
217
- return $this->_getField(self::$AMOUNT);
218
- }
219
-
220
- /**
221
- * getter for orders brand
222
- *
223
- * @return string
224
- */
225
- public function getBrand() {
226
- return $this->_getField(self::$BRAND);
227
- }
228
-
229
- /**
230
- * getter for orders currency
231
- *
232
- * @return type
233
- */
234
- public function getCurrency() {
235
- return $this->_getField(self::$CURRENCY);
236
- }
237
-
238
- /**
239
- * getter for the order description
240
- *
241
- * @return string
242
- */
243
- public function getOrderDescription() {
244
- return $this->_getField(self::$ORDER_DESCRIPTION);
245
- }
246
-
247
- /**
248
- * getter for the acquirer name
249
- *
250
- * @return string
251
- */
252
- public function getAcquirer() {
253
- return $this->_getField(self::$ACQUIRER);
254
- }
255
-
256
- /**
257
- * getter for the contract number
258
- *
259
- * @return string
260
- */
261
- public function getContractNumber() {
262
- return $this->_getField(self::$CONTRACT_NUMBER);
263
- }
264
-
265
- /**
266
- * getter for allowed follow-up operations
267
- *
268
- * @return string[]
269
- */
270
- public function getOperationsAllowed() {
271
- if ($this->_getField(self::$OPERATIONS_ALLOWED) == '') {
272
- return Array();
273
- }
274
- else {
275
- return explode(',', $this->_getField(self::$OPERATIONS_ALLOWED));
276
- }
277
- }
278
-
279
- /**
280
- * getter for order reference
281
- *
282
- * @return string
283
- */
284
- public function getOrderReference() {
285
- return $this->_getField(self::$ORDER_REFERENCE);
286
- }
287
-
288
- /**
289
- * getter for customer statement text
290
- *
291
- * @return string
292
- */
293
- public function getCustomerStatement() {
294
- return $this->_getField(self::$CUSTOMER_STATEMENT);
295
- }
296
-
297
- /**
298
- * getter for the order text
299
- *
300
- * @return string
301
- */
302
- public function getOrderText() {
303
- return $this->_getField(self::$ORDER_TEXT);
304
- }
305
-
306
- /**
307
- * getter for the time this order has been created
308
- *
309
- * @return DateTime
310
- */
311
- public function getTimeCreated() {
312
- return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_CREATED));
313
- }
314
-
315
- /**
316
- * getter for the last time this order has been modified
317
- *
318
- * @return DateTime
319
- */
320
- public function getTimeModified() {
321
- return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_MODIFIED));
322
- }
323
-
324
- /**
325
- * getter for the current order state
326
- *
327
- * @return string
328
- */
329
- public function getState() {
330
- return $this->_getField(self::$STATE);
331
- }
332
-
333
- /**
334
- * getter for the source order number
335
- *
336
- * @return string
337
- */
338
- public function getSourceOrderNumber() {
339
- return $this->_getField(self::$SOURCE_ORDER_NUMBER);
340
- }
341
-
342
- /**
343
- * getter for corresponding payment objects
344
- *
345
- * @return WirecardCEE_QMore_Response_Backend_Order_PaymentIterator
346
- */
347
- public function getPayments() {
348
- return $this->_payments;
349
- }
350
-
351
- /**
352
- * getter for corresponding credit objects
353
- *
354
- * @return WirecardCEE_QMore_Response_Backend_Order_CreditIterator
355
- */
356
- public function getCredits() {
357
- return $this->_credits;
358
- }
359
-
360
- /**
361
- * setter for payment object iterator
362
- *
363
- * @param array $paymentEntries
364
- */
365
- protected function _setPayments($paymentEntries) {
366
- $payments = Array();
367
- foreach($paymentEntries as $paymentEntry) {
368
- switch($paymentEntry['paymentType']) {
369
- case self::$PAYMENTTYPE_PAYPAL:
370
- $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal($paymentEntry);
371
- break;
372
- case self::$PAYMENTTYPE_SOFORTUEBERWEISUNG:
373
- $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung($paymentEntry);
374
- break;
375
- case self::$PAYMENTTYPE_IDEAL:
376
- $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal($paymentEntry);
377
- break;
378
- default:
379
- $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment($paymentEntry);
380
- break;
381
- }
382
- }
383
- $this->_payments = new WirecardCEE_QMore_Response_Backend_Order_PaymentIterator($payments);
384
- }
385
-
386
- /**
387
- * setter for credit object iterator
388
- *
389
- * @param array $credits
390
- */
391
- protected function _setCredits($creditEntries) {
392
- $credits = Array();
393
- foreach($creditEntries as $creditEntry) {
394
- $credits[] = new WirecardCEE_QMore_Response_Backend_Order_Credit($creditEntry);
395
- }
396
- $this->_credits = new WirecardCEE_QMore_Response_Backend_Order_CreditIterator($credits);
397
- }
398
-
399
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Order extends WirecardCEE_QMore_Response_Backend_FinancialObject {
19
+ /**
20
+ * Internal WirecardCEE_QMore_Response_Backend_Order_CreditIterator holder
21
+ * @var WirecardCEE_QMore_Response_Backend_Order_CreditIterator
22
+ */
23
+ private $_credits;
24
+
25
+ /**
26
+ * internal WirecardCEE_QMore_Response_Backend_Order_PaymentIterator holder
27
+ * @var WirecardCEE_QMore_Response_Backend_Order_PaymentIterator
28
+ */
29
+ private $_payments;
30
+
31
+ /**
32
+ * Merchant number
33
+ * @staticvar string
34
+ * @internal
35
+ */
36
+ private static $MERCHANT_NUMBER = 'merchantNumber';
37
+
38
+ /**
39
+ * Order number
40
+ * @staticvar string
41
+ * @internal
42
+ */
43
+ private static $ORDER_NUMBER = 'orderNumber';
44
+
45
+ /**
46
+ * Payment type
47
+ * @staticvar string
48
+ * @internal
49
+ */
50
+ private static $PAYMENT_TYPE = 'paymentType';
51
+
52
+ /**
53
+ * Amount
54
+ * @staticvar string
55
+ * @internal
56
+ */
57
+ private static $AMOUNT = 'amount';
58
+
59
+ /**
60
+ * Brand
61
+ * @staticvar string
62
+ * @internal
63
+ */
64
+ private static $BRAND = 'brand';
65
+
66
+ /**
67
+ * Currency
68
+ * @staticvar string
69
+ * @internal
70
+ */
71
+ private static $CURRENCY = 'currency';
72
+
73
+ /**
74
+ * Order description
75
+ * @staticvar string
76
+ * @internal
77
+ */
78
+ private static $ORDER_DESCRIPTION = 'orderDescription';
79
+
80
+ /**
81
+ * Acquirer
82
+ * @staticvar string
83
+ * @internal
84
+ */
85
+ private static $ACQUIRER = 'acquirer';
86
+
87
+ /**
88
+ * Contract number
89
+ * @staticvar string
90
+ * @internal
91
+ */
92
+ private static $CONTRACT_NUMBER = 'contractNumber';
93
+
94
+ /**
95
+ * Operations allowed
96
+ * @staticvar string
97
+ * @internal
98
+ */
99
+ private static $OPERATIONS_ALLOWED = 'operationsAllowed';
100
+
101
+ /**
102
+ * Order reference
103
+ * @staticvar string
104
+ * @internal
105
+ */
106
+ private static $ORDER_REFERENCE = 'orderReference';
107
+
108
+ /**
109
+ * Customer statement
110
+ * @staticvar string
111
+ * @internal
112
+ */
113
+ private static $CUSTOMER_STATEMENT = 'customerStatement';
114
+
115
+ /**
116
+ * Order text
117
+ * @staticvar string
118
+ * @internal
119
+ */
120
+ private static $ORDER_TEXT = 'orderText';
121
+
122
+ /**
123
+ * Time created
124
+ * @staticvar string
125
+ * @internal
126
+ */
127
+ private static $TIME_CREATED = 'timeCreated';
128
+
129
+ /**
130
+ * Time modified
131
+ * @staticvar string
132
+ * @internal
133
+ */
134
+ private static $TIME_MODIFIED = 'timeModified';
135
+
136
+ /**
137
+ * State
138
+ * @staticvar string
139
+ * @internal
140
+ */
141
+ private static $STATE = 'state';
142
+
143
+ /**
144
+ * Source order number
145
+ * @staticvar string
146
+ * @internal
147
+ */
148
+ private static $SOURCE_ORDER_NUMBER = 'sourceOrderNumber';
149
+
150
+ /**
151
+ * Paypal
152
+ * @staticvar string
153
+ * @internal
154
+ */
155
+ private static $PAYMENTTYPE_PAYPAL = 'PPL';
156
+
157
+ /**
158
+ * Sofortueberweisung
159
+ * @staticvar string
160
+ * @internal
161
+ */
162
+ private static $PAYMENTTYPE_SOFORTUEBERWEISUNG = 'SUE';
163
+
164
+ /**
165
+ * iDEAL
166
+ * @staticvar string
167
+ * @internal
168
+ */
169
+ private static $PAYMENTTYPE_IDEAL = 'IDL';
170
+
171
+ /**
172
+ * creates an instance of the WirecardCEE_QMore_Response_Backend_Order object
173
+ *
174
+ * @param string[] $orderData
175
+ */
176
+ public function __construct($orderData) {
177
+ $this->_setPayments($orderData['paymentData']);
178
+ unset($orderData['paymentData']);
179
+ $this->_setCredits($orderData['creditData']);
180
+ unset($orderData['creditData']);
181
+ $this->_data = $orderData;
182
+ }
183
+
184
+ /**
185
+ * getter for order merchant number
186
+ *
187
+ * @return string
188
+ */
189
+ public function getMerchantNumber() {
190
+ return $this->_getField(self::$MERCHANT_NUMBER);
191
+ }
192
+
193
+ /**
194
+ * getter for order number
195
+ *
196
+ * @return string
197
+ */
198
+ public function getOrderNumber() {
199
+ return $this->_getField(self::$ORDER_NUMBER);
200
+ }
201
+
202
+ /**
203
+ * getter for used payment type
204
+ *
205
+ * @return string
206
+ */
207
+ public function getPaymentType() {
208
+ return $this->_getField(self::$PAYMENT_TYPE);
209
+ }
210
+
211
+ /**
212
+ * getter for orders amount
213
+ *
214
+ * @return string
215
+ */
216
+ public function getAmount() {
217
+ return $this->_getField(self::$AMOUNT);
218
+ }
219
+
220
+ /**
221
+ * getter for orders brand
222
+ *
223
+ * @return string
224
+ */
225
+ public function getBrand() {
226
+ return $this->_getField(self::$BRAND);
227
+ }
228
+
229
+ /**
230
+ * getter for orders currency
231
+ *
232
+ * @return type
233
+ */
234
+ public function getCurrency() {
235
+ return $this->_getField(self::$CURRENCY);
236
+ }
237
+
238
+ /**
239
+ * getter for the order description
240
+ *
241
+ * @return string
242
+ */
243
+ public function getOrderDescription() {
244
+ return $this->_getField(self::$ORDER_DESCRIPTION);
245
+ }
246
+
247
+ /**
248
+ * getter for the acquirer name
249
+ *
250
+ * @return string
251
+ */
252
+ public function getAcquirer() {
253
+ return $this->_getField(self::$ACQUIRER);
254
+ }
255
+
256
+ /**
257
+ * getter for the contract number
258
+ *
259
+ * @return string
260
+ */
261
+ public function getContractNumber() {
262
+ return $this->_getField(self::$CONTRACT_NUMBER);
263
+ }
264
+
265
+ /**
266
+ * getter for allowed follow-up operations
267
+ *
268
+ * @return string[]
269
+ */
270
+ public function getOperationsAllowed() {
271
+ if ($this->_getField(self::$OPERATIONS_ALLOWED) == '') {
272
+ return Array();
273
+ }
274
+ else {
275
+ return explode(',', $this->_getField(self::$OPERATIONS_ALLOWED));
276
+ }
277
+ }
278
+
279
+ /**
280
+ * getter for order reference
281
+ *
282
+ * @return string
283
+ */
284
+ public function getOrderReference() {
285
+ return $this->_getField(self::$ORDER_REFERENCE);
286
+ }
287
+
288
+ /**
289
+ * getter for customer statement text
290
+ *
291
+ * @return string
292
+ */
293
+ public function getCustomerStatement() {
294
+ return $this->_getField(self::$CUSTOMER_STATEMENT);
295
+ }
296
+
297
+ /**
298
+ * getter for the order text
299
+ *
300
+ * @return string
301
+ */
302
+ public function getOrderText() {
303
+ return $this->_getField(self::$ORDER_TEXT);
304
+ }
305
+
306
+ /**
307
+ * getter for the time this order has been created
308
+ *
309
+ * @return DateTime
310
+ */
311
+ public function getTimeCreated() {
312
+ return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_CREATED));
313
+ }
314
+
315
+ /**
316
+ * getter for the last time this order has been modified
317
+ *
318
+ * @return DateTime
319
+ */
320
+ public function getTimeModified() {
321
+ return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_MODIFIED));
322
+ }
323
+
324
+ /**
325
+ * getter for the current order state
326
+ *
327
+ * @return string
328
+ */
329
+ public function getState() {
330
+ return $this->_getField(self::$STATE);
331
+ }
332
+
333
+ /**
334
+ * getter for the source order number
335
+ *
336
+ * @return string
337
+ */
338
+ public function getSourceOrderNumber() {
339
+ return $this->_getField(self::$SOURCE_ORDER_NUMBER);
340
+ }
341
+
342
+ /**
343
+ * getter for corresponding payment objects
344
+ *
345
+ * @return WirecardCEE_QMore_Response_Backend_Order_PaymentIterator
346
+ */
347
+ public function getPayments() {
348
+ return $this->_payments;
349
+ }
350
+
351
+ /**
352
+ * getter for corresponding credit objects
353
+ *
354
+ * @return WirecardCEE_QMore_Response_Backend_Order_CreditIterator
355
+ */
356
+ public function getCredits() {
357
+ return $this->_credits;
358
+ }
359
+
360
+ /**
361
+ * setter for payment object iterator
362
+ *
363
+ * @param array $paymentEntries
364
+ */
365
+ protected function _setPayments($paymentEntries) {
366
+ $payments = Array();
367
+ foreach($paymentEntries as $paymentEntry) {
368
+ switch($paymentEntry['paymentType']) {
369
+ case self::$PAYMENTTYPE_PAYPAL:
370
+ $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal($paymentEntry);
371
+ break;
372
+ case self::$PAYMENTTYPE_SOFORTUEBERWEISUNG:
373
+ $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung($paymentEntry);
374
+ break;
375
+ case self::$PAYMENTTYPE_IDEAL:
376
+ $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal($paymentEntry);
377
+ break;
378
+ default:
379
+ $payments[] = new WirecardCEE_QMore_Response_Backend_Order_Payment($paymentEntry);
380
+ break;
381
+ }
382
+ }
383
+ $this->_payments = new WirecardCEE_QMore_Response_Backend_Order_PaymentIterator($payments);
384
+ }
385
+
386
+ /**
387
+ * setter for credit object iterator
388
+ *
389
+ * @param array $credits
390
+ */
391
+ protected function _setCredits($creditEntries) {
392
+ $credits = Array();
393
+ foreach($creditEntries as $creditEntry) {
394
+ $credits[] = new WirecardCEE_QMore_Response_Backend_Order_Credit($creditEntry);
395
+ }
396
+ $this->_credits = new WirecardCEE_QMore_Response_Backend_Order_CreditIterator($credits);
397
+ }
398
+
399
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Credit.php CHANGED
@@ -1,204 +1,204 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_Credit
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Order_Credit extends WirecardCEE_QMore_Response_Backend_FinancialObject {
19
- /**
20
- * Merchant number
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $MERCHANT_NUMBER = 'merchantNumber';
25
-
26
- /**
27
- * Credit number
28
- * @staticvar string
29
- * @internal
30
- */
31
- private static $CREDIT_NUMBER = 'creditNumber';
32
-
33
- /**
34
- * Order number
35
- * @staticvar string
36
- * @internal
37
- */
38
- private static $ORDER_NUMBER = 'orderNumber';
39
-
40
- /**
41
- * Batch number
42
- * @staticvar string
43
- * @internal
44
- */
45
- private static $BATCH_NUMBER = 'batchNumber';
46
-
47
- /**
48
- * Amount
49
- * @staticvar string
50
- * @internal
51
- */
52
- private static $AMOUNT = 'amount';
53
-
54
- /**
55
- * Currency
56
- * @staticvar string
57
- * @internal
58
- */
59
- private static $CURRENCY = 'currency';
60
-
61
- /**
62
- * Time created
63
- * @staticvar string
64
- * @internal
65
- */
66
- private static $TIME_CREATED = 'timeCreated';
67
-
68
- /**
69
- * Time modified
70
- * @staticvar string
71
- * @internal
72
- */
73
- private static $TIME_MODIFIED = 'timeModified';
74
-
75
- /**
76
- * State
77
- * @staticvar string
78
- * @internal
79
- */
80
- private static $STATE = 'state';
81
-
82
- /**
83
- * Operations allowed
84
- * @staticvar string
85
- * @internal
86
- */
87
- private static $OPERATIONS_ALLOWED = 'operationsAllowed';
88
-
89
- /**
90
- * Gateway reference number
91
- * @staticvar string
92
- * @internal
93
- */
94
- private static $GATEWAY_REFERENCE_NUMBER = 'gatewayReferenceNumber';
95
-
96
- /**
97
- * creates an instance of an {@link
98
- * WirecardCEE_QMore_Response_Backend_Order_Credit} object
99
- *
100
- * @param string[] $creditData
101
- */
102
- public function __construct($creditData) {
103
- $this->_data = $creditData;
104
- }
105
-
106
- /**
107
- * getter for credits merchant number
108
- *
109
- * @return string
110
- */
111
- public function getMerchantNumber() {
112
- return $this->_getField(self::$MERCHANT_NUMBER);
113
- }
114
-
115
- /**
116
- * getter for credit number
117
- *
118
- * @return string
119
- */
120
- public function getCreditNumber() {
121
- return $this->_getField(self::$CREDIT_NUMBER);
122
- }
123
-
124
- /**
125
- * getter for the corresponding order number
126
- *
127
- * @return string
128
- */
129
- public function getOrderNumber() {
130
- return $this->_getField(self::$ORDER_NUMBER);
131
- }
132
-
133
- /**
134
- * getter for the corresponding batch number
135
- *
136
- * @return string
137
- */
138
- public function getBatchNumber() {
139
- return $this->_getField(self::$BATCH_NUMBER);
140
- }
141
-
142
- /**
143
- * getter for the credit amount
144
- *
145
- * @return string
146
- */
147
- public function getAmount() {
148
- return $this->_getField(self::$AMOUNT);
149
- }
150
-
151
- /**
152
- * getter for the credit currency
153
- *
154
- * @return string
155
- */
156
- public function getCurrency() {
157
- return $this->_getField(self::$CURRENCY);
158
- }
159
-
160
- /**
161
- * getter for the creation time
162
- *
163
- * @return DateTime
164
- */
165
- public function getTimeCreated() {
166
- return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_CREATED));
167
- }
168
-
169
- /**
170
- * getter for the last time this credit has been updated
171
- *
172
- * @return DateTime
173
- */
174
- public function getTimeModified() {
175
- return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_MODIFIED));
176
- }
177
-
178
- /**
179
- * getter for the currenc credit state
180
- *
181
- * @return string
182
- */
183
- public function getState() {
184
- return $this->_getField(self::$STATE);
185
- }
186
-
187
- /**
188
- * getter for the allowed follow-up operations
189
- *
190
- * @return string[]
191
- */
192
- public function getOperationsAllowed() {
193
- return explode(',', $this->_getField(self::$OPERATIONS_ALLOWED));
194
- }
195
-
196
- /**
197
- * getter for the gateway reference number
198
- *
199
- * @return string
200
- */
201
- public function getGatewayReferenceNumber() {
202
- return $this->_getField(self::$GATEWAY_REFERENCE_NUMBER);
203
- }
204
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_Credit
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Order_Credit extends WirecardCEE_QMore_Response_Backend_FinancialObject {
19
+ /**
20
+ * Merchant number
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $MERCHANT_NUMBER = 'merchantNumber';
25
+
26
+ /**
27
+ * Credit number
28
+ * @staticvar string
29
+ * @internal
30
+ */
31
+ private static $CREDIT_NUMBER = 'creditNumber';
32
+
33
+ /**
34
+ * Order number
35
+ * @staticvar string
36
+ * @internal
37
+ */
38
+ private static $ORDER_NUMBER = 'orderNumber';
39
+
40
+ /**
41
+ * Batch number
42
+ * @staticvar string
43
+ * @internal
44
+ */
45
+ private static $BATCH_NUMBER = 'batchNumber';
46
+
47
+ /**
48
+ * Amount
49
+ * @staticvar string
50
+ * @internal
51
+ */
52
+ private static $AMOUNT = 'amount';
53
+
54
+ /**
55
+ * Currency
56
+ * @staticvar string
57
+ * @internal
58
+ */
59
+ private static $CURRENCY = 'currency';
60
+
61
+ /**
62
+ * Time created
63
+ * @staticvar string
64
+ * @internal
65
+ */
66
+ private static $TIME_CREATED = 'timeCreated';
67
+
68
+ /**
69
+ * Time modified
70
+ * @staticvar string
71
+ * @internal
72
+ */
73
+ private static $TIME_MODIFIED = 'timeModified';
74
+
75
+ /**
76
+ * State
77
+ * @staticvar string
78
+ * @internal
79
+ */
80
+ private static $STATE = 'state';
81
+
82
+ /**
83
+ * Operations allowed
84
+ * @staticvar string
85
+ * @internal
86
+ */
87
+ private static $OPERATIONS_ALLOWED = 'operationsAllowed';
88
+
89
+ /**
90
+ * Gateway reference number
91
+ * @staticvar string
92
+ * @internal
93
+ */
94
+ private static $GATEWAY_REFERENCE_NUMBER = 'gatewayReferenceNumber';
95
+
96
+ /**
97
+ * creates an instance of an {@link
98
+ * WirecardCEE_QMore_Response_Backend_Order_Credit} object
99
+ *
100
+ * @param string[] $creditData
101
+ */
102
+ public function __construct($creditData) {
103
+ $this->_data = $creditData;
104
+ }
105
+
106
+ /**
107
+ * getter for credits merchant number
108
+ *
109
+ * @return string
110
+ */
111
+ public function getMerchantNumber() {
112
+ return $this->_getField(self::$MERCHANT_NUMBER);
113
+ }
114
+
115
+ /**
116
+ * getter for credit number
117
+ *
118
+ * @return string
119
+ */
120
+ public function getCreditNumber() {
121
+ return $this->_getField(self::$CREDIT_NUMBER);
122
+ }
123
+
124
+ /**
125
+ * getter for the corresponding order number
126
+ *
127
+ * @return string
128
+ */
129
+ public function getOrderNumber() {
130
+ return $this->_getField(self::$ORDER_NUMBER);
131
+ }
132
+
133
+ /**
134
+ * getter for the corresponding batch number
135
+ *
136
+ * @return string
137
+ */
138
+ public function getBatchNumber() {
139
+ return $this->_getField(self::$BATCH_NUMBER);
140
+ }
141
+
142
+ /**
143
+ * getter for the credit amount
144
+ *
145
+ * @return string
146
+ */
147
+ public function getAmount() {
148
+ return $this->_getField(self::$AMOUNT);
149
+ }
150
+
151
+ /**
152
+ * getter for the credit currency
153
+ *
154
+ * @return string
155
+ */
156
+ public function getCurrency() {
157
+ return $this->_getField(self::$CURRENCY);
158
+ }
159
+
160
+ /**
161
+ * getter for the creation time
162
+ *
163
+ * @return DateTime
164
+ */
165
+ public function getTimeCreated() {
166
+ return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_CREATED));
167
+ }
168
+
169
+ /**
170
+ * getter for the last time this credit has been updated
171
+ *
172
+ * @return DateTime
173
+ */
174
+ public function getTimeModified() {
175
+ return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_MODIFIED));
176
+ }
177
+
178
+ /**
179
+ * getter for the currenc credit state
180
+ *
181
+ * @return string
182
+ */
183
+ public function getState() {
184
+ return $this->_getField(self::$STATE);
185
+ }
186
+
187
+ /**
188
+ * getter for the allowed follow-up operations
189
+ *
190
+ * @return string[]
191
+ */
192
+ public function getOperationsAllowed() {
193
+ return explode(',', $this->_getField(self::$OPERATIONS_ALLOWED));
194
+ }
195
+
196
+ /**
197
+ * getter for the gateway reference number
198
+ *
199
+ * @return string
200
+ */
201
+ public function getGatewayReferenceNumber() {
202
+ return $this->_getField(self::$GATEWAY_REFERENCE_NUMBER);
203
+ }
204
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/CreditIterator.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_CreditIterator
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Order_CreditIterator extends WirecardCEE_QMore_Response_Backend_Order_OrderIterator {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_CreditIterator
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Order_CreditIterator extends WirecardCEE_QMore_Response_Backend_Order_OrderIterator {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/OrderIterator.php CHANGED
@@ -1,83 +1,83 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_OrderIterator
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order
16
- * @version 3.2.0
17
- * @abstract
18
- */
19
- abstract class WirecardCEE_QMore_Response_Backend_Order_OrderIterator implements Iterator {
20
- /**
21
- * Internal position holder
22
- * @var int
23
- */
24
- protected $_position;
25
-
26
- /**
27
- *¸Internal objects holder
28
- * @var array
29
- */
30
- protected $_objectArray;
31
-
32
- /**
33
- * Constructor
34
- * @param array $objectArray objects to iterate through
35
- */
36
- public function __construct(array $objectArray) {
37
- $this->_position = 0;
38
- $this->_objectArray = $objectArray;
39
- }
40
-
41
- /**
42
- * resets the current position to 0(first entry)
43
- */
44
- public function rewind() {
45
- $this->_position = 0;
46
- }
47
-
48
- /**
49
- * Returns the current object
50
- * @return Object
51
- */
52
- public function current() {
53
- return $this->_objectArray[$this->_position];
54
- }
55
-
56
- /**
57
- * Returns the current position
58
- * @return int
59
- */
60
- public function key() {
61
- return (int) $this->_position;
62
- }
63
-
64
- /**
65
- * go to the next position
66
- */
67
- public function next() {
68
- ++$this->_position;
69
- }
70
-
71
- /**
72
- * checks if position is valid
73
- * @return bool
74
- */
75
- public function valid() {
76
- return (bool) isset($this->_objectArray[$this->_position]);
77
- }
78
-
79
- public function getArray()
80
- {
81
- return $this->_objectArray;
82
- }
83
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_OrderIterator
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order
16
+ * @version 3.2.0
17
+ * @abstract
18
+ */
19
+ abstract class WirecardCEE_QMore_Response_Backend_Order_OrderIterator implements Iterator {
20
+ /**
21
+ * Internal position holder
22
+ * @var int
23
+ */
24
+ protected $_position;
25
+
26
+ /**
27
+ *¸Internal objects holder
28
+ * @var array
29
+ */
30
+ protected $_objectArray;
31
+
32
+ /**
33
+ * Constructor
34
+ * @param array $objectArray objects to iterate through
35
+ */
36
+ public function __construct(array $objectArray) {
37
+ $this->_position = 0;
38
+ $this->_objectArray = $objectArray;
39
+ }
40
+
41
+ /**
42
+ * resets the current position to 0(first entry)
43
+ */
44
+ public function rewind() {
45
+ $this->_position = 0;
46
+ }
47
+
48
+ /**
49
+ * Returns the current object
50
+ * @return Object
51
+ */
52
+ public function current() {
53
+ return $this->_objectArray[$this->_position];
54
+ }
55
+
56
+ /**
57
+ * Returns the current position
58
+ * @return int
59
+ */
60
+ public function key() {
61
+ return (int) $this->_position;
62
+ }
63
+
64
+ /**
65
+ * go to the next position
66
+ */
67
+ public function next() {
68
+ ++$this->_position;
69
+ }
70
+
71
+ /**
72
+ * checks if position is valid
73
+ * @return bool
74
+ */
75
+ public function valid() {
76
+ return (bool) isset($this->_objectArray[$this->_position]);
77
+ }
78
+
79
+ public function getArray()
80
+ {
81
+ return $this->_objectArray;
82
+ }
83
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment.php CHANGED
@@ -1,252 +1,252 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_Payment
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Order_Payment extends WirecardCEE_QMore_Response_Backend_FinancialObject {
19
- /**
20
- * Merchant number
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $MERCHANT_NUMBER = 'merchantNumber';
25
-
26
- /**
27
- * Payment number
28
- * @staticvar string
29
- * @internal
30
- */
31
- private static $PAYMENT_NUMBER = 'paymentNumber';
32
-
33
- /**
34
- * Order number
35
- * @staticvar string
36
- * @internal
37
- */
38
- private static $ORDER_NUMBER = 'orderNumber';
39
-
40
- /**
41
- * Approve amount
42
- * @staticvar string
43
- * @internal
44
- */
45
- private static $APPROVE_AMOUNT = 'approveAmount';
46
-
47
- /**
48
- * Deposit amount
49
- * @staticvar string
50
- * @internal
51
- */
52
- private static $DEPOSIT_AMOUNT = 'depositAmount';
53
-
54
- /**
55
- * Currency
56
- * @staticvar string
57
- * @internal
58
- */
59
- private static $CURRENCY = 'currency';
60
-
61
- /**
62
- * Time created
63
- * @staticvar string
64
- * @internal
65
- */
66
- private static $TIME_CREATED = 'timeCreated';
67
-
68
- /**
69
- * Time modified
70
- * @staticvar string
71
- * @internal
72
- */
73
- private static $TIME_MODIFIED = 'timeModified';
74
-
75
- /**
76
- * State
77
- * @staticvar string
78
- * @internal
79
- */
80
- private static $STATE = 'state';
81
-
82
- /**
83
- * Payment type
84
- * @staticvar string
85
- * @internal
86
- */
87
- private static $PAYMENT_TYPE = 'paymentType';
88
-
89
- /**
90
- * Operations allowed
91
- * @staticvar string
92
- * @internal
93
- */
94
- private static $OPERATIONS_ALLOWED = 'operationsAllowed';
95
-
96
- /**
97
- * Gateway reference number
98
- * @staticvar string
99
- * @internal
100
- */
101
- private static $GATEWAY_REFERENCE_NUMBER = 'gatewayReferenceNumber';
102
-
103
- /**
104
- * AVS Result code
105
- * @staticvar string
106
- * @internal
107
- */
108
- private static $AVS_RESULT_CODE = 'avsResultCode';
109
-
110
- /**
111
- * AVS Result message
112
- * @staticvar string
113
- * @internal
114
- */
115
- private static $AVS_RESULT_MESSAGE = 'avsResultMessage';
116
-
117
- /**
118
- * creates an instance of an {@link
119
- * WirecardCEE_QMore_Response_Backend_Order_Payment} object
120
- *
121
- * @param string[] $paymentData
122
- */
123
- public function __construct($paymentData) {
124
- $this->_data = $paymentData;
125
- }
126
-
127
- /**
128
- * getter for payments merchant number
129
- *
130
- * @return string
131
- */
132
- public function getMerchantNumber() {
133
- return $this->_getField(self::$MERCHANT_NUMBER);
134
- }
135
-
136
- /**
137
- * getter for the payment number
138
- *
139
- * @return string
140
- */
141
- public function getPaymentNumber() {
142
- return $this->_getField(self::$PAYMENT_NUMBER);
143
- }
144
-
145
- /**
146
- * getter for the corrensponding order number
147
- *
148
- * @return string
149
- */
150
- public function getOrderNumber() {
151
- return $this->_getField(self::$ORDER_NUMBER);
152
- }
153
-
154
- /**
155
- * getter for the approved amount
156
- *
157
- * @return string
158
- */
159
- public function getApproveAmount() {
160
- return $this->_getField(self::$APPROVE_AMOUNT);
161
- }
162
-
163
- /**
164
- * getter for the deposited amount
165
- *
166
- * @return string
167
- */
168
- public function getDepositAmount() {
169
- return $this->_getField(self::$DEPOSIT_AMOUNT);
170
- }
171
-
172
- /**
173
- * getter for the payment currency
174
- *
175
- * @return string
176
- */
177
- public function getCurrency() {
178
- return $this->_getField(self::$CURRENCY);
179
- }
180
-
181
- /**
182
- * getter for the creation time of this payment
183
- *
184
- * @return DateTime
185
- */
186
- public function getTimeCreated() {
187
- return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_CREATED));
188
- }
189
-
190
- /**
191
- * getter for the last time this payment has been updated
192
- *
193
- * @return DateTime
194
- */
195
- public function getTimeModified() {
196
- return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_MODIFIED));
197
- }
198
-
199
- /**
200
- * getter for the current payment state
201
- *
202
- * @return string
203
- */
204
- public function getState() {
205
- return $this->_getField(self::$STATE);
206
- }
207
-
208
- /**
209
- * getter for the paymenttype
210
- *
211
- * @return string
212
- */
213
- public function getPaymentType() {
214
- return $this->_getField(self::$PAYMENT_TYPE);
215
- }
216
-
217
- /**
218
- * getter for the allowed follow-up operations
219
- *
220
- * @return string[]
221
- */
222
- public function getOperationsAllowed() {
223
- return explode(',', $this->_getField(self::$OPERATIONS_ALLOWED));
224
- }
225
-
226
- /**
227
- * getter for the gateway reference number
228
- *
229
- * @return string
230
- */
231
- public function getGatewayReferencenumber() {
232
- return $this->_getField(self::$GATEWAY_REFERENCE_NUMBER);
233
- }
234
-
235
- /**
236
- * getter for the AVS result-code
237
- *
238
- * @return string
239
- */
240
- public function getAvsResultCode() {
241
- return $this->_getField(self::$AVS_RESULT_CODE);
242
- }
243
-
244
- /**
245
- * getter for the AVS result-message
246
- *
247
- * @return string
248
- */
249
- public function getAvsResultMessage() {
250
- return $this->_getField(self::$AVS_RESULT_MESSAGE);
251
- }
252
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_Payment
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Order_Payment extends WirecardCEE_QMore_Response_Backend_FinancialObject {
19
+ /**
20
+ * Merchant number
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $MERCHANT_NUMBER = 'merchantNumber';
25
+
26
+ /**
27
+ * Payment number
28
+ * @staticvar string
29
+ * @internal
30
+ */
31
+ private static $PAYMENT_NUMBER = 'paymentNumber';
32
+
33
+ /**
34
+ * Order number
35
+ * @staticvar string
36
+ * @internal
37
+ */
38
+ private static $ORDER_NUMBER = 'orderNumber';
39
+
40
+ /**
41
+ * Approve amount
42
+ * @staticvar string
43
+ * @internal
44
+ */
45
+ private static $APPROVE_AMOUNT = 'approveAmount';
46
+
47
+ /**
48
+ * Deposit amount
49
+ * @staticvar string
50
+ * @internal
51
+ */
52
+ private static $DEPOSIT_AMOUNT = 'depositAmount';
53
+
54
+ /**
55
+ * Currency
56
+ * @staticvar string
57
+ * @internal
58
+ */
59
+ private static $CURRENCY = 'currency';
60
+
61
+ /**
62
+ * Time created
63
+ * @staticvar string
64
+ * @internal
65
+ */
66
+ private static $TIME_CREATED = 'timeCreated';
67
+
68
+ /**
69
+ * Time modified
70
+ * @staticvar string
71
+ * @internal
72
+ */
73
+ private static $TIME_MODIFIED = 'timeModified';
74
+
75
+ /**
76
+ * State
77
+ * @staticvar string
78
+ * @internal
79
+ */
80
+ private static $STATE = 'state';
81
+
82
+ /**
83
+ * Payment type
84
+ * @staticvar string
85
+ * @internal
86
+ */
87
+ private static $PAYMENT_TYPE = 'paymentType';
88
+
89
+ /**
90
+ * Operations allowed
91
+ * @staticvar string
92
+ * @internal
93
+ */
94
+ private static $OPERATIONS_ALLOWED = 'operationsAllowed';
95
+
96
+ /**
97
+ * Gateway reference number
98
+ * @staticvar string
99
+ * @internal
100
+ */
101
+ private static $GATEWAY_REFERENCE_NUMBER = 'gatewayReferenceNumber';
102
+
103
+ /**
104
+ * AVS Result code
105
+ * @staticvar string
106
+ * @internal
107
+ */
108
+ private static $AVS_RESULT_CODE = 'avsResultCode';
109
+
110
+ /**
111
+ * AVS Result message
112
+ * @staticvar string
113
+ * @internal
114
+ */
115
+ private static $AVS_RESULT_MESSAGE = 'avsResultMessage';
116
+
117
+ /**
118
+ * creates an instance of an {@link
119
+ * WirecardCEE_QMore_Response_Backend_Order_Payment} object
120
+ *
121
+ * @param string[] $paymentData
122
+ */
123
+ public function __construct($paymentData) {
124
+ $this->_data = $paymentData;
125
+ }
126
+
127
+ /**
128
+ * getter for payments merchant number
129
+ *
130
+ * @return string
131
+ */
132
+ public function getMerchantNumber() {
133
+ return $this->_getField(self::$MERCHANT_NUMBER);
134
+ }
135
+
136
+ /**
137
+ * getter for the payment number
138
+ *
139
+ * @return string
140
+ */
141
+ public function getPaymentNumber() {
142
+ return $this->_getField(self::$PAYMENT_NUMBER);
143
+ }
144
+
145
+ /**
146
+ * getter for the corrensponding order number
147
+ *
148
+ * @return string
149
+ */
150
+ public function getOrderNumber() {
151
+ return $this->_getField(self::$ORDER_NUMBER);
152
+ }
153
+
154
+ /**
155
+ * getter for the approved amount
156
+ *
157
+ * @return string
158
+ */
159
+ public function getApproveAmount() {
160
+ return $this->_getField(self::$APPROVE_AMOUNT);
161
+ }
162
+
163
+ /**
164
+ * getter for the deposited amount
165
+ *
166
+ * @return string
167
+ */
168
+ public function getDepositAmount() {
169
+ return $this->_getField(self::$DEPOSIT_AMOUNT);
170
+ }
171
+
172
+ /**
173
+ * getter for the payment currency
174
+ *
175
+ * @return string
176
+ */
177
+ public function getCurrency() {
178
+ return $this->_getField(self::$CURRENCY);
179
+ }
180
+
181
+ /**
182
+ * getter for the creation time of this payment
183
+ *
184
+ * @return DateTime
185
+ */
186
+ public function getTimeCreated() {
187
+ return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_CREATED));
188
+ }
189
+
190
+ /**
191
+ * getter for the last time this payment has been updated
192
+ *
193
+ * @return DateTime
194
+ */
195
+ public function getTimeModified() {
196
+ return DateTime::createFromFormat(self::$DATETIME_FORMAT, $this->_getField(self::$TIME_MODIFIED));
197
+ }
198
+
199
+ /**
200
+ * getter for the current payment state
201
+ *
202
+ * @return string
203
+ */
204
+ public function getState() {
205
+ return $this->_getField(self::$STATE);
206
+ }
207
+
208
+ /**
209
+ * getter for the paymenttype
210
+ *
211
+ * @return string
212
+ */
213
+ public function getPaymentType() {
214
+ return $this->_getField(self::$PAYMENT_TYPE);
215
+ }
216
+
217
+ /**
218
+ * getter for the allowed follow-up operations
219
+ *
220
+ * @return string[]
221
+ */
222
+ public function getOperationsAllowed() {
223
+ return explode(',', $this->_getField(self::$OPERATIONS_ALLOWED));
224
+ }
225
+
226
+ /**
227
+ * getter for the gateway reference number
228
+ *
229
+ * @return string
230
+ */
231
+ public function getGatewayReferencenumber() {
232
+ return $this->_getField(self::$GATEWAY_REFERENCE_NUMBER);
233
+ }
234
+
235
+ /**
236
+ * getter for the AVS result-code
237
+ *
238
+ * @return string
239
+ */
240
+ public function getAvsResultCode() {
241
+ return $this->_getField(self::$AVS_RESULT_CODE);
242
+ }
243
+
244
+ /**
245
+ * getter for the AVS result-message
246
+ *
247
+ * @return string
248
+ */
249
+ public function getAvsResultMessage() {
250
+ return $this->_getField(self::$AVS_RESULT_MESSAGE);
251
+ }
252
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment/Ideal.php CHANGED
@@ -1,66 +1,66 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order_Payment
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal extends WirecardCEE_QMore_Response_Backend_Order_Payment {
19
- /**
20
- * iDEAL consumer name
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $CONSUMER_NAME = 'idealConsumerName';
25
-
26
- /**
27
- * iDEAL consumer city
28
- * @staticvar string
29
- * @internal
30
- */
31
- private static $CONSUMER_CITY = 'idealConsumerCity';
32
-
33
- /**
34
- * iDEAL consumer account number
35
- * @staticvar string
36
- * @internal
37
- */
38
- private static $CONSUMER_ACCOUNT_NUMBER = 'idealConsumerAccountNumber';
39
-
40
- /**
41
- * getter for iDEAL consumer Name
42
- *
43
- * @return string
44
- */
45
- public function getConsumerName() {
46
- return $this->_getField(self::$CONSUMER_NAME);
47
- }
48
-
49
- /**
50
- * getter for iDEAL consumer City
51
- *
52
- * @return string
53
- */
54
- public function getConsumerCity() {
55
- return $this->_getField(self::$CONSUMER_CITY);
56
- }
57
-
58
- /**
59
- * getter for iDEAL consumer account-number
60
- *
61
- * @return string
62
- */
63
- public function getConsumerAccountNumber() {
64
- return $this->_getField(self::$CONSUMER_ACCOUNT_NUMBER);
65
- }
66
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order_Payment
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Order_Payment_Ideal extends WirecardCEE_QMore_Response_Backend_Order_Payment {
19
+ /**
20
+ * iDEAL consumer name
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $CONSUMER_NAME = 'idealConsumerName';
25
+
26
+ /**
27
+ * iDEAL consumer city
28
+ * @staticvar string
29
+ * @internal
30
+ */
31
+ private static $CONSUMER_CITY = 'idealConsumerCity';
32
+
33
+ /**
34
+ * iDEAL consumer account number
35
+ * @staticvar string
36
+ * @internal
37
+ */
38
+ private static $CONSUMER_ACCOUNT_NUMBER = 'idealConsumerAccountNumber';
39
+
40
+ /**
41
+ * getter for iDEAL consumer Name
42
+ *
43
+ * @return string
44
+ */
45
+ public function getConsumerName() {
46
+ return $this->_getField(self::$CONSUMER_NAME);
47
+ }
48
+
49
+ /**
50
+ * getter for iDEAL consumer City
51
+ *
52
+ * @return string
53
+ */
54
+ public function getConsumerCity() {
55
+ return $this->_getField(self::$CONSUMER_CITY);
56
+ }
57
+
58
+ /**
59
+ * getter for iDEAL consumer account-number
60
+ *
61
+ * @return string
62
+ */
63
+ public function getConsumerAccountNumber() {
64
+ return $this->_getField(self::$CONSUMER_ACCOUNT_NUMBER);
65
+ }
66
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment/Paypal.php CHANGED
@@ -1,226 +1,226 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order_Payment
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal extends WirecardCEE_QMore_Response_Backend_Order_Payment {
19
- /**
20
- * Paypal payer ID
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $PAYER_ID = 'paypalPayerID';
25
-
26
- /**
27
- * Paypal payer email
28
- * @staticvar string
29
- * @internal
30
- */
31
- private static $PAYER_EMAIL = 'paypalPayerEmail';
32
-
33
- /**
34
- * Paypal payer first name
35
- * @staticvar string
36
- * @internal
37
- */
38
- private static $PAYER_FIRST_NAME = 'paypalPayerFirstName';
39
-
40
- /**
41
- * Paypal payer last name
42
- * @staticvar string
43
- * @internal
44
- */
45
- private static $PAYER_LAST_NAME = 'paypalPayerLastName';
46
-
47
- /**
48
- * Paypal payer address country
49
- * @staticvar string
50
- * @internal
51
- */
52
- private static $PAYER_ADDRESS_COUNTRY = 'paypalPayerAddressCountry';
53
-
54
- /**
55
- * Paypal payer address city
56
- * @staticvar string
57
- * @internal
58
- */
59
- private static $PAYER_ADDRESS_CITY = 'paypalPayerAddressCity';
60
-
61
- /**
62
- * Paypal payer address - state
63
- * @staticvar string
64
- * @internal
65
- */
66
- private static $PAYER_ADDRESS_STATE = 'paypalPayerAddressState';
67
-
68
- /**
69
- * Paypal payer address name
70
- * @staticvar string
71
- * @internal
72
- */
73
- private static $PAYER_ADDRESS_NAME = 'paypalPayerAddressName';
74
-
75
- /**
76
- * Paypal payer address street 1
77
- * @staticvar string
78
- * @internal
79
- */
80
- private static $PAYER_ADDRESS_STREET_1 = 'paypalPayerAddressStreet1';
81
-
82
- /**
83
- * Paypal payer address street 2
84
- * @staticvar string
85
- * @internal
86
- */
87
- private static $PAYER_ADDRESS_STREET_2 = 'paypalPayerAddressStreet2';
88
-
89
- /**
90
- * Paypal payer address street zip
91
- * @staticvar string
92
- * @internal
93
- */
94
- private static $PAYER_ADDRESS_ZIP = 'paypalPayerAddressZIP';
95
-
96
- /**
97
- * Paypal payer address status
98
- * @staticvar string
99
- * @internal
100
- */
101
- private static $PAYER_ADDRESS_STATUS = 'paypalPayerAddressStatus';
102
-
103
- /**
104
- * Paypal Protection Eligibility
105
- * @staticvar string
106
- * @internal
107
- */
108
- private static $PROTECTION_ELIGIBILITY = 'paypalProtectionEligibility';
109
-
110
- /**
111
- * getter for PayPal payerID
112
- *
113
- * @return string
114
- */
115
- public function getPayerId() {
116
- return $this->_getField(self::$PAYER_ID);
117
- }
118
-
119
- /**
120
- * getter for PayPal payer email
121
- *
122
- * @return string
123
- */
124
- public function getPayerEmail() {
125
- return $this->_getField(self::$PAYER_EMAIL);
126
- }
127
-
128
- /**
129
- * getter for PayPal payer firstname
130
- *
131
- * @return string
132
- */
133
- public function getPayerFirstName() {
134
- return $this->_getField(self::$PAYER_FIRST_NAME);
135
- }
136
-
137
- /**
138
- * getter for PayPal payer lastname
139
- *
140
- * @return string
141
- */
142
- public function getPayerLastName() {
143
- return $this->_getField(self::$PAYER_LAST_NAME);
144
- }
145
-
146
- /**
147
- * getter for PayPal payer country address field
148
- *
149
- * @return string
150
- */
151
- public function getPayerAddressCountry() {
152
- return $this->_getField(self::$PAYER_ADDRESS_COUNTRY);
153
- }
154
-
155
- /**
156
- * getter for PayPal payer city address field
157
- *
158
- * @return string
159
- */
160
- public function getPayerAddressCity() {
161
- return $this->_getField(self::$PAYER_ADDRESS_CITY);
162
- }
163
-
164
- /**
165
- * getter for PayPal payer state address field
166
- *
167
- * @return string
168
- */
169
- public function getPayerAddressState() {
170
- return $this->_getField(self::$PAYER_ADDRESS_STATE);
171
- }
172
-
173
- /**
174
- * getter for PayPal payer name address field
175
- *
176
- * @return string
177
- */
178
- public function getPayerAddressName() {
179
- return $this->_getField(self::$PAYER_ADDRESS_NAME);
180
- }
181
-
182
- /**
183
- * getter for PayPal payer street 1 address field
184
- *
185
- * @return string
186
- */
187
- public function getPayerAddressStreet1() {
188
- return $this->_getField(self::$PAYER_ADDRESS_STREET_1);
189
- }
190
-
191
- /**
192
- * getter for PayPal payer street 2 address field
193
- *
194
- * @return string
195
- */
196
- public function getPayerAddressStreet2() {
197
- return $this->_getField(self::$PAYER_ADDRESS_STREET_2);
198
- }
199
-
200
- /**
201
- * getter for PayPal payer zipcode address field
202
- *
203
- * @return string
204
- */
205
- public function getPayerAddressZip() {
206
- return $this->_getField(self::$PAYER_ADDRESS_ZIP);
207
- }
208
-
209
- /**
210
- * getter for PayPal payer address status
211
- *
212
- * @return string
213
- */
214
- public function getPayerAddressStatus() {
215
- return $this->_getField(self::$PAYER_ADDRESS_STATUS);
216
- }
217
-
218
- /**
219
- * getter for PayPal protection eligibility
220
- *
221
- * @return string
222
- */
223
- public function getProtectionEligibility() {
224
- return $this->_getField(self::$PROTECTION_ELIGIBILITY);
225
- }
226
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order_Payment
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Order_Payment_Paypal extends WirecardCEE_QMore_Response_Backend_Order_Payment {
19
+ /**
20
+ * Paypal payer ID
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $PAYER_ID = 'paypalPayerID';
25
+
26
+ /**
27
+ * Paypal payer email
28
+ * @staticvar string
29
+ * @internal
30
+ */
31
+ private static $PAYER_EMAIL = 'paypalPayerEmail';
32
+
33
+ /**
34
+ * Paypal payer first name
35
+ * @staticvar string
36
+ * @internal
37
+ */
38
+ private static $PAYER_FIRST_NAME = 'paypalPayerFirstName';
39
+
40
+ /**
41
+ * Paypal payer last name
42
+ * @staticvar string
43
+ * @internal
44
+ */
45
+ private static $PAYER_LAST_NAME = 'paypalPayerLastName';
46
+
47
+ /**
48
+ * Paypal payer address country
49
+ * @staticvar string
50
+ * @internal
51
+ */
52
+ private static $PAYER_ADDRESS_COUNTRY = 'paypalPayerAddressCountry';
53
+
54
+ /**
55
+ * Paypal payer address city
56
+ * @staticvar string
57
+ * @internal
58
+ */
59
+ private static $PAYER_ADDRESS_CITY = 'paypalPayerAddressCity';
60
+
61
+ /**
62
+ * Paypal payer address - state
63
+ * @staticvar string
64
+ * @internal
65
+ */
66
+ private static $PAYER_ADDRESS_STATE = 'paypalPayerAddressState';
67
+
68
+ /**
69
+ * Paypal payer address name
70
+ * @staticvar string
71
+ * @internal
72
+ */
73
+ private static $PAYER_ADDRESS_NAME = 'paypalPayerAddressName';
74
+
75
+ /**
76
+ * Paypal payer address street 1
77
+ * @staticvar string
78
+ * @internal
79
+ */
80
+ private static $PAYER_ADDRESS_STREET_1 = 'paypalPayerAddressStreet1';
81
+
82
+ /**
83
+ * Paypal payer address street 2
84
+ * @staticvar string
85
+ * @internal
86
+ */
87
+ private static $PAYER_ADDRESS_STREET_2 = 'paypalPayerAddressStreet2';
88
+
89
+ /**
90
+ * Paypal payer address street zip
91
+ * @staticvar string
92
+ * @internal
93
+ */
94
+ private static $PAYER_ADDRESS_ZIP = 'paypalPayerAddressZIP';
95
+
96
+ /**
97
+ * Paypal payer address status
98
+ * @staticvar string
99
+ * @internal
100
+ */
101
+ private static $PAYER_ADDRESS_STATUS = 'paypalPayerAddressStatus';
102
+
103
+ /**
104
+ * Paypal Protection Eligibility
105
+ * @staticvar string
106
+ * @internal
107
+ */
108
+ private static $PROTECTION_ELIGIBILITY = 'paypalProtectionEligibility';
109
+
110
+ /**
111
+ * getter for PayPal payerID
112
+ *
113
+ * @return string
114
+ */
115
+ public function getPayerId() {
116
+ return $this->_getField(self::$PAYER_ID);
117
+ }
118
+
119
+ /**
120
+ * getter for PayPal payer email
121
+ *
122
+ * @return string
123
+ */
124
+ public function getPayerEmail() {
125
+ return $this->_getField(self::$PAYER_EMAIL);
126
+ }
127
+
128
+ /**
129
+ * getter for PayPal payer firstname
130
+ *
131
+ * @return string
132
+ */
133
+ public function getPayerFirstName() {
134
+ return $this->_getField(self::$PAYER_FIRST_NAME);
135
+ }
136
+
137
+ /**
138
+ * getter for PayPal payer lastname
139
+ *
140
+ * @return string
141
+ */
142
+ public function getPayerLastName() {
143
+ return $this->_getField(self::$PAYER_LAST_NAME);
144
+ }
145
+
146
+ /**
147
+ * getter for PayPal payer country address field
148
+ *
149
+ * @return string
150
+ */
151
+ public function getPayerAddressCountry() {
152
+ return $this->_getField(self::$PAYER_ADDRESS_COUNTRY);
153
+ }
154
+
155
+ /**
156
+ * getter for PayPal payer city address field
157
+ *
158
+ * @return string
159
+ */
160
+ public function getPayerAddressCity() {
161
+ return $this->_getField(self::$PAYER_ADDRESS_CITY);
162
+ }
163
+
164
+ /**
165
+ * getter for PayPal payer state address field
166
+ *
167
+ * @return string
168
+ */
169
+ public function getPayerAddressState() {
170
+ return $this->_getField(self::$PAYER_ADDRESS_STATE);
171
+ }
172
+
173
+ /**
174
+ * getter for PayPal payer name address field
175
+ *
176
+ * @return string
177
+ */
178
+ public function getPayerAddressName() {
179
+ return $this->_getField(self::$PAYER_ADDRESS_NAME);
180
+ }
181
+
182
+ /**
183
+ * getter for PayPal payer street 1 address field
184
+ *
185
+ * @return string
186
+ */
187
+ public function getPayerAddressStreet1() {
188
+ return $this->_getField(self::$PAYER_ADDRESS_STREET_1);
189
+ }
190
+
191
+ /**
192
+ * getter for PayPal payer street 2 address field
193
+ *
194
+ * @return string
195
+ */
196
+ public function getPayerAddressStreet2() {
197
+ return $this->_getField(self::$PAYER_ADDRESS_STREET_2);
198
+ }
199
+
200
+ /**
201
+ * getter for PayPal payer zipcode address field
202
+ *
203
+ * @return string
204
+ */
205
+ public function getPayerAddressZip() {
206
+ return $this->_getField(self::$PAYER_ADDRESS_ZIP);
207
+ }
208
+
209
+ /**
210
+ * getter for PayPal payer address status
211
+ *
212
+ * @return string
213
+ */
214
+ public function getPayerAddressStatus() {
215
+ return $this->_getField(self::$PAYER_ADDRESS_STATUS);
216
+ }
217
+
218
+ /**
219
+ * getter for PayPal protection eligibility
220
+ *
221
+ * @return string
222
+ */
223
+ public function getProtectionEligibility() {
224
+ return $this->_getField(self::$PROTECTION_ELIGIBILITY);
225
+ }
226
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/Payment/Sofortueberweisung.php CHANGED
@@ -1,146 +1,146 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order_Payment
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung extends WirecardCEE_QMore_Response_Backend_Order_Payment {
19
- /**
20
- * Sender account owner
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $SENDER_ACCOUNT_OWNER = 'senderAccountOwner';
25
-
26
- /**
27
- * Sender account number
28
- * @staticvar string
29
- * @internal
30
- */
31
- private static $SENDER_ACCOUNT_NUMBER = 'senderAccountNumber';
32
-
33
- /**
34
- * Sender bank number
35
- * @staticvar string
36
- * @internal
37
- */
38
- private static $SENDER_BANK_NUMBER = 'senderBankNumber';
39
-
40
- /**
41
- * Sender bank name
42
- * @staticvar string
43
- * @internal
44
- */
45
- private static $SENDER_BANK_NAME = 'senderBankName';
46
-
47
- /**
48
- * Sender BIC
49
- * @staticvar string
50
- * @internal
51
- */
52
- private static $SENDER_BIC = 'senderBIC';
53
-
54
- /**
55
- * Sender IBAN
56
- * @staticvar string
57
- * @internal
58
- */
59
- private static $SENDER_IBAN = 'senderIBAN';
60
-
61
- /**
62
- * Sender country
63
- * @staticvar string
64
- * @internal
65
- */
66
- private static $SENDER_COUNTRY = 'senderCountry';
67
-
68
- /**
69
- * Security criteria
70
- * @staticvar string
71
- * @internal
72
- */
73
- private static $SECURITY_CRITERIA = 'securityCriteria';
74
-
75
- /**
76
- * getter for sofortueberweisung.de sender account owner
77
- *
78
- * @return string
79
- */
80
- public function getSenderAccountOwner() {
81
- return $this->_getField(self::$SENDER_ACCOUNT_OWNER);
82
- }
83
-
84
- /**
85
- * getter for sofortueberweisung.de sender account number
86
- *
87
- * @return string
88
- */
89
- public function getSenderAccountNumber() {
90
- return $this->_getField(self::$SENDER_ACCOUNT_NUMBER);
91
- }
92
-
93
- /**
94
- * getter for sofortueberweisung.de sender bank number
95
- *
96
- * @return string
97
- */
98
- public function getSenderBankNumber() {
99
- return $this->_getField(self::$SENDER_BANK_NUMBER);
100
- }
101
-
102
- /**
103
- * getter for sofortueberweisung.de sender bank name
104
- *
105
- * @return string
106
- */
107
- public function getSenderBankName() {
108
- return $this->_getField(self::$SENDER_BANK_NAME);
109
- }
110
-
111
- /**
112
- * getter for sofortueberweisung.de sender BIC
113
- *
114
- * @return string
115
- */
116
- public function getSenderBic() {
117
- return $this->_getField(self::$SENDER_BIC);
118
- }
119
-
120
- /**
121
- * getter for sofortueberweisung.de sender IBAN
122
- *
123
- * @return string
124
- */
125
- public function getSenderIban() {
126
- return $this->_getField(self::$SENDER_IBAN);
127
- }
128
-
129
- /**
130
- * getter for sofortueberweisung.de sender country
131
- *
132
- * @return string
133
- */
134
- public function getSenderCountry() {
135
- return $this->_getField(self::$SENDER_COUNTRY);
136
- }
137
-
138
- /**
139
- * getter for sofortueberweisung.de Security criteria
140
- *
141
- * @return string
142
- */
143
- public function getSecurityCriteria() {
144
- return $this->_getField(self::$SECURITY_CRITERIA);
145
- }
146
- }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order_Payment
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Order_Payment_Sofortueberweisung extends WirecardCEE_QMore_Response_Backend_Order_Payment {
19
+ /**
20
+ * Sender account owner
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $SENDER_ACCOUNT_OWNER = 'senderAccountOwner';
25
+
26
+ /**
27
+ * Sender account number
28
+ * @staticvar string
29
+ * @internal
30
+ */
31
+ private static $SENDER_ACCOUNT_NUMBER = 'senderAccountNumber';
32
+
33
+ /**
34
+ * Sender bank number
35
+ * @staticvar string
36
+ * @internal
37
+ */
38
+ private static $SENDER_BANK_NUMBER = 'senderBankNumber';
39
+
40
+ /**
41
+ * Sender bank name
42
+ * @staticvar string
43
+ * @internal
44
+ */
45
+ private static $SENDER_BANK_NAME = 'senderBankName';
46
+
47
+ /**
48
+ * Sender BIC
49
+ * @staticvar string
50
+ * @internal
51
+ */
52
+ private static $SENDER_BIC = 'senderBIC';
53
+
54
+ /**
55
+ * Sender IBAN
56
+ * @staticvar string
57
+ * @internal
58
+ */
59
+ private static $SENDER_IBAN = 'senderIBAN';
60
+
61
+ /**
62
+ * Sender country
63
+ * @staticvar string
64
+ * @internal
65
+ */
66
+ private static $SENDER_COUNTRY = 'senderCountry';
67
+
68
+ /**
69
+ * Security criteria
70
+ * @staticvar string
71
+ * @internal
72
+ */
73
+ private static $SECURITY_CRITERIA = 'securityCriteria';
74
+
75
+ /**
76
+ * getter for sofortueberweisung.de sender account owner
77
+ *
78
+ * @return string
79
+ */
80
+ public function getSenderAccountOwner() {
81
+ return $this->_getField(self::$SENDER_ACCOUNT_OWNER);
82
+ }
83
+
84
+ /**
85
+ * getter for sofortueberweisung.de sender account number
86
+ *
87
+ * @return string
88
+ */
89
+ public function getSenderAccountNumber() {
90
+ return $this->_getField(self::$SENDER_ACCOUNT_NUMBER);
91
+ }
92
+
93
+ /**
94
+ * getter for sofortueberweisung.de sender bank number
95
+ *
96
+ * @return string
97
+ */
98
+ public function getSenderBankNumber() {
99
+ return $this->_getField(self::$SENDER_BANK_NUMBER);
100
+ }
101
+
102
+ /**
103
+ * getter for sofortueberweisung.de sender bank name
104
+ *
105
+ * @return string
106
+ */
107
+ public function getSenderBankName() {
108
+ return $this->_getField(self::$SENDER_BANK_NAME);
109
+ }
110
+
111
+ /**
112
+ * getter for sofortueberweisung.de sender BIC
113
+ *
114
+ * @return string
115
+ */
116
+ public function getSenderBic() {
117
+ return $this->_getField(self::$SENDER_BIC);
118
+ }
119
+
120
+ /**
121
+ * getter for sofortueberweisung.de sender IBAN
122
+ *
123
+ * @return string
124
+ */
125
+ public function getSenderIban() {
126
+ return $this->_getField(self::$SENDER_IBAN);
127
+ }
128
+
129
+ /**
130
+ * getter for sofortueberweisung.de sender country
131
+ *
132
+ * @return string
133
+ */
134
+ public function getSenderCountry() {
135
+ return $this->_getField(self::$SENDER_COUNTRY);
136
+ }
137
+
138
+ /**
139
+ * getter for sofortueberweisung.de Security criteria
140
+ *
141
+ * @return string
142
+ */
143
+ public function getSecurityCriteria() {
144
+ return $this->_getField(self::$SECURITY_CRITERIA);
145
+ }
146
+ }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Order/PaymentIterator.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Order_PaymentIterator
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend_Order
16
- * @version 3.2.0
17
- */
18
  class WirecardCEE_QMore_Response_Backend_Order_PaymentIterator extends WirecardCEE_QMore_Response_Backend_Order_OrderIterator {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Order_PaymentIterator
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend_Order
16
+ * @version 3.2.0
17
+ */
18
  class WirecardCEE_QMore_Response_Backend_Order_PaymentIterator extends WirecardCEE_QMore_Response_Backend_Order_OrderIterator {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/RecurPayment.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_RecurPayment
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_RecurPayment extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
- /**
20
- * Order number
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $ORDER_NUMBER = 'orderNumber';
25
-
26
- /**
27
- * getter for the returned order number
28
- *
29
- * @return string
30
- */
31
- public function getOrderNumber() {
32
- return $this->_getField(self::$ORDER_NUMBER);
33
- }
34
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_RecurPayment
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_RecurPayment extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
+ /**
20
+ * Order number
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $ORDER_NUMBER = 'orderNumber';
25
+
26
+ /**
27
+ * getter for the returned order number
28
+ *
29
+ * @return string
30
+ */
31
+ public function getOrderNumber() {
32
+ return $this->_getField(self::$ORDER_NUMBER);
33
+ }
34
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/Refund.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_Refund
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_Refund extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
- /**
20
- * Credit number
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $CREDIT_NUMBER = 'creditNumber';
25
-
26
- /**
27
- * getter for the returned credit number
28
- *
29
- * @return string
30
- */
31
- public function getCreditNumber() {
32
- return $this->_getField(self::$CREDIT_NUMBER);
33
- }
34
- }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_Refund
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_Refund extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
+ /**
20
+ * Credit number
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $CREDIT_NUMBER = 'creditNumber';
25
+
26
+ /**
27
+ * getter for the returned credit number
28
+ *
29
+ * @return string
30
+ */
31
+ public function getCreditNumber() {
32
+ return $this->_getField(self::$CREDIT_NUMBER);
33
+ }
34
+ }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/RefundReversal.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_RefundReversal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
  class WirecardCEE_QMore_Response_Backend_RefundReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_RefundReversal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
  class WirecardCEE_QMore_Response_Backend_RefundReversal extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/ResponseAbstract.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_ResponseAbstract
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- * @abstract
18
- */
19
- abstract class WirecardCEE_QMore_Response_Backend_ResponseAbstract extends WirecardCEE_QMore_Response_ResponseAbstract {
20
- /**
21
- * Status
22
- * @staticvar string
23
- * @internal
24
- */
25
- private static $STATUS = 'status';
26
-
27
- /**
28
- * getter for the toolkit operation status
29
- *
30
- * @return string
31
- */
32
- public function getStatus() {
33
- return $this->_getField(self::$STATUS);
34
- }
35
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_ResponseAbstract
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ * @abstract
18
+ */
19
+ abstract class WirecardCEE_QMore_Response_Backend_ResponseAbstract extends WirecardCEE_QMore_Response_ResponseAbstract {
20
+ /**
21
+ * Status
22
+ * @staticvar string
23
+ * @internal
24
+ */
25
+ private static $STATUS = 'status';
26
+
27
+ /**
28
+ * getter for the toolkit operation status
29
+ *
30
+ * @return string
31
+ */
32
+ public function getStatus() {
33
+ return $this->_getField(self::$STATUS);
34
+ }
35
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Backend/TransferFund.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Backend_TransferFund
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response_Backend
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Backend_TransferFund extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
- /**
20
- * Credit number
21
- * @staticvar string
22
- * @internal
23
- */
24
- private static $CREDIT_NUMBER = 'creditNumber';
25
-
26
- /**
27
- * getter for the returned credit number
28
- *
29
- * @return string
30
- */
31
- public function getCreditNumber() {
32
- return $this->_getField(self::$CREDIT_NUMBER);
33
- }
34
- }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Backend_TransferFund
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response_Backend
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Backend_TransferFund extends WirecardCEE_QMore_Response_Backend_ResponseAbstract {
19
+ /**
20
+ * Credit number
21
+ * @staticvar string
22
+ * @internal
23
+ */
24
+ private static $CREDIT_NUMBER = 'creditNumber';
25
+
26
+ /**
27
+ * getter for the returned credit number
28
+ *
29
+ * @return string
30
+ */
31
+ public function getCreditNumber() {
32
+ return $this->_getField(self::$CREDIT_NUMBER);
33
+ }
34
+ }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/Initiation.php CHANGED
@@ -1,30 +1,30 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_Initiation
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Response_Initiation extends WirecardCEE_QMore_Response_ResponseAbstract {
19
-
20
- /**
21
- * Returns the status of a response
22
- *
23
- * @return int
24
- */
25
- public function getStatus() {
26
- // if we have got a redirectUrl the initiation has been successful
27
- return ($this->_getField(self::REDIRECT_URL)) ? self::STATE_SUCCESS : self::STATE_FAILURE;
28
- }
29
-
30
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_Initiation
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Response_Initiation extends WirecardCEE_QMore_Response_ResponseAbstract {
19
+
20
+ /**
21
+ * Returns the status of a response
22
+ *
23
+ * @return int
24
+ */
25
+ public function getStatus() {
26
+ // if we have got a redirectUrl the initiation has been successful
27
+ return ($this->_getField(self::REDIRECT_URL)) ? self::STATE_SUCCESS : self::STATE_FAILURE;
28
+ }
29
+
30
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Response/ResponseAbstract.php CHANGED
@@ -1,94 +1,94 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Response_ResponseAbstract
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Response
16
- * @version 3.2.0
17
- * @abstract
18
- */
19
- abstract class WirecardCEE_QMore_Response_ResponseAbstract extends WirecardCEE_Stdlib_Response_ResponseAbstract {
20
- /**
21
- * Errors
22
- * @staticvar string
23
- * @internal
24
- */
25
- protected static $ERRORS = 'errors';
26
-
27
- /**
28
- * Error
29
- * @staticvar string
30
- * @internal
31
- */
32
- protected static $ERROR = 'error';
33
-
34
- /**
35
- * Error code
36
- * @staticvar string
37
- * @internal
38
- */
39
- protected static $ERROR_CODE = 'errorCode';
40
-
41
- /**
42
- * Pay sys message
43
- * @staticvar string
44
- * @internal
45
- */
46
- protected static $ERROR_PAYSYS_MESSAGE = 'paySysMessage';
47
-
48
- /**
49
- * getter for the Response status
50
- * values:
51
- * 0 ... success
52
- * 1 ... failure
53
- *
54
- * @return int
55
- */
56
- abstract public function getStatus();
57
-
58
- /**
59
- * Returns the number of errors
60
- * @return number
61
- */
62
- public function getNumberOfErrors() {
63
- return (int) $this->_getField(self::$ERRORS);
64
- }
65
-
66
- /**
67
- * getter for list of errors that occured
68
- *
69
- * @return WirecardCEE_QMore_Error[]
70
- */
71
- public function getErrors() {
72
- $aErrors = Array();
73
- if (empty($this->_errors)) {
74
- if (is_array($this->_getField(self::$ERROR))) {
75
- foreach($this->_getField(self::$ERROR) as $error) {
76
- $errorCode = isset($error[self::$ERROR_CODE]) ? $error[self::$ERROR_CODE] : 0;
77
- $message = isset($error[self::$ERROR_MESSAGE]) ? $error[self::$ERROR_MESSAGE] : '';
78
- $consumerMessage = isset($error[self::$ERROR_CONSUMER_MESSAGE]) ? $error[self::$ERROR_CONSUMER_MESSAGE] : '';
79
- $paySysMessage = isset($error[self::$ERROR_PAYSYS_MESSAGE]) ? $error[self::$ERROR_PAYSYS_MESSAGE] : '';
80
-
81
- $error = new WirecardCEE_QMore_Error($errorCode, $message);
82
- $error->setConsumerMessage($consumerMessage);
83
- $error->setPaySysMessage($paySysMessage);
84
-
85
- $aErrors[] = $error;
86
- }
87
- }
88
-
89
- $this->_errors = $aErrors;
90
- }
91
-
92
- return $this->_errors;
93
- }
94
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Response_ResponseAbstract
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Response
16
+ * @version 3.2.0
17
+ * @abstract
18
+ */
19
+ abstract class WirecardCEE_QMore_Response_ResponseAbstract extends WirecardCEE_Stdlib_Response_ResponseAbstract {
20
+ /**
21
+ * Errors
22
+ * @staticvar string
23
+ * @internal
24
+ */
25
+ protected static $ERRORS = 'errors';
26
+
27
+ /**
28
+ * Error
29
+ * @staticvar string
30
+ * @internal
31
+ */
32
+ protected static $ERROR = 'error';
33
+
34
+ /**
35
+ * Error code
36
+ * @staticvar string
37
+ * @internal
38
+ */
39
+ protected static $ERROR_CODE = 'errorCode';
40
+
41
+ /**
42
+ * Pay sys message
43
+ * @staticvar string
44
+ * @internal
45
+ */
46
+ protected static $ERROR_PAYSYS_MESSAGE = 'paySysMessage';
47
+
48
+ /**
49
+ * getter for the Response status
50
+ * values:
51
+ * 0 ... success
52
+ * 1 ... failure
53
+ *
54
+ * @return int
55
+ */
56
+ abstract public function getStatus();
57
+
58
+ /**
59
+ * Returns the number of errors
60
+ * @return number
61
+ */
62
+ public function getNumberOfErrors() {
63
+ return (int) $this->_getField(self::$ERRORS);
64
+ }
65
+
66
+ /**
67
+ * getter for list of errors that occured
68
+ *
69
+ * @return WirecardCEE_QMore_Error[]
70
+ */
71
+ public function getErrors() {
72
+ $aErrors = Array();
73
+ if (empty($this->_errors)) {
74
+ if (is_array($this->_getField(self::$ERROR))) {
75
+ foreach($this->_getField(self::$ERROR) as $error) {
76
+ $errorCode = isset($error[self::$ERROR_CODE]) ? $error[self::$ERROR_CODE] : 0;
77
+ $message = isset($error[self::$ERROR_MESSAGE]) ? $error[self::$ERROR_MESSAGE] : '';
78
+ $consumerMessage = isset($error[self::$ERROR_CONSUMER_MESSAGE]) ? $error[self::$ERROR_CONSUMER_MESSAGE] : '';
79
+ $paySysMessage = isset($error[self::$ERROR_PAYSYS_MESSAGE]) ? $error[self::$ERROR_PAYSYS_MESSAGE] : '';
80
+
81
+ $error = new WirecardCEE_QMore_Error($errorCode, $message);
82
+ $error->setConsumerMessage($consumerMessage);
83
+ $error->setPaySysMessage($paySysMessage);
84
+
85
+ $aErrors[] = $error;
86
+ }
87
+ }
88
+
89
+ $this->_errors = $aErrors;
90
+ }
91
+
92
+ return $this->_errors;
93
+ }
94
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Cancel.php CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Cancel
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Cancel extends WirecardCEE_Stdlib_Return_Cancel {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Cancel
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Cancel extends WirecardCEE_Stdlib_Return_Cancel {}
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Failure.php CHANGED
@@ -1,54 +1,54 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Failure
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Failure extends WirecardCEE_Stdlib_Return_Failure {
19
-
20
- /**
21
- * Returns the number of errors
22
- * @return int
23
- */
24
- public function getNumberOfErrors() {
25
- return (int) $this->__get(self::$ERRORS);
26
- }
27
-
28
- /**
29
- * Returns all the errors
30
- * return Array
31
- */
32
- public function getErrors() {
33
- if (empty($this->_errors)) {
34
- $errorList = Array();
35
-
36
- for ($i = 1; $i <= $this->getNumberOfErrors(); $i++)
37
- {
38
- $field = sprintf('%s_%d_', self::$ERROR, $i);
39
-
40
- $errorCode = $this->__get($field . self::$ERROR_ERROR_CODE);
41
- $message = $this->__get($field . self::$ERROR_MESSAGE);
42
- $consumerMessage = $this->__get($field . self::$ERROR_CONSUMER_MESSAGE);
43
- $paySysMessage = $this->__get($field . self::$ERROR_PAY_SYS_MESSAGE);
44
-
45
- $errorList[$i-1] = new WirecardCEE_QMore_Error($errorCode, $message);
46
- $errorList[$i-1]->setPaySysMessage($paySysMessage);
47
- $errorList[$i-1]->setConsumerMessage($consumerMessage);
48
- }
49
-
50
- $this->_errors = $errorList;
51
- }
52
- return $this->_errors;
53
- }
54
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Failure
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Failure extends WirecardCEE_Stdlib_Return_Failure {
19
+
20
+ /**
21
+ * Returns the number of errors
22
+ * @return int
23
+ */
24
+ public function getNumberOfErrors() {
25
+ return (int) $this->__get(self::$ERRORS);
26
+ }
27
+
28
+ /**
29
+ * Returns all the errors
30
+ * return Array
31
+ */
32
+ public function getErrors() {
33
+ if (empty($this->_errors)) {
34
+ $errorList = Array();
35
+
36
+ for ($i = 1; $i <= $this->getNumberOfErrors(); $i++)
37
+ {
38
+ $field = sprintf('%s_%d_', self::$ERROR, $i);
39
+
40
+ $errorCode = $this->__get($field . self::$ERROR_ERROR_CODE);
41
+ $message = $this->__get($field . self::$ERROR_MESSAGE);
42
+ $consumerMessage = $this->__get($field . self::$ERROR_CONSUMER_MESSAGE);
43
+ $paySysMessage = $this->__get($field . self::$ERROR_PAY_SYS_MESSAGE);
44
+
45
+ $errorList[$i-1] = new WirecardCEE_QMore_Error($errorCode, $message);
46
+ $errorList[$i-1]->setPaySysMessage($paySysMessage);
47
+ $errorList[$i-1]->setConsumerMessage($consumerMessage);
48
+ }
49
+
50
+ $this->_errors = $errorList;
51
+ }
52
+ return $this->_errors;
53
+ }
54
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Pending.php CHANGED
@@ -1,23 +1,23 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Pending
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Pending extends WirecardCEE_Stdlib_Return_Pending {
19
- public function __construct($returnData, $secret) {
20
- parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
21
- }
22
-
23
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Pending
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Pending extends WirecardCEE_Stdlib_Return_Pending {
19
+ public function __construct($returnData, $secret) {
20
+ parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
21
+ }
22
+
23
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success.php CHANGED
@@ -1,23 +1,23 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Success
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Success extends WirecardCEE_Stdlib_Return_Success {
19
- public function __construct($returnData, $secret) {
20
- parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
21
- }
22
-
23
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Success
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Success extends WirecardCEE_Stdlib_Return_Success {
19
+ public function __construct($returnData, $secret) {
20
+ parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
21
+ }
22
+
23
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/CreditCard.php CHANGED
@@ -1,23 +1,23 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Success_CreditCard
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return_Success
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Success_CreditCard extends WirecardCEE_Stdlib_Return_Success_CreditCard {
19
-
20
- public function __construct($returnData, $secret) {
21
- parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
- }
23
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Success_CreditCard
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return_Success
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Success_CreditCard extends WirecardCEE_Stdlib_Return_Success_CreditCard {
19
+
20
+ public function __construct($returnData, $secret) {
21
+ parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
+ }
23
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/Ideal.php CHANGED
@@ -1,23 +1,23 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Success_Ideal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return_Success
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Success_Ideal extends WirecardCEE_Stdlib_Return_Success_Ideal {
19
-
20
- public function __construct($returnData, $secret) {
21
- parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
- }
23
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Success_Ideal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return_Success
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Success_Ideal extends WirecardCEE_Stdlib_Return_Success_Ideal {
19
+
20
+ public function __construct($returnData, $secret) {
21
+ parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
+ }
23
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/PayPal.php CHANGED
@@ -1,23 +1,23 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Success_PayPal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return_Success
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Success_PayPal extends WirecardCEE_Stdlib_Return_Success_PayPal {
19
-
20
- public function __construct($returnData, $secret) {
21
- parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
- }
23
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Success_PayPal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return_Success
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Success_PayPal extends WirecardCEE_Stdlib_Return_Success_PayPal {
19
+
20
+ public function __construct($returnData, $secret) {
21
+ parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
+ }
23
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/SepaDD.php CHANGED
@@ -1,23 +1,23 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Success_SepaDD
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return_Success
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Success_SepaDD extends WirecardCEE_Stdlib_Return_Success_SepaDD {
19
-
20
- public function __construct($returnData, $secret) {
21
- parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
- }
23
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Success_SepaDD
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return_Success
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Success_SepaDD extends WirecardCEE_Stdlib_Return_Success_SepaDD {
19
+
20
+ public function __construct($returnData, $secret) {
21
+ parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
22
+ }
23
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/Return/Success/Sofortueberweisung.php CHANGED
@@ -1,22 +1,22 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_QMore_Return_Success_PayPal
13
- * @category WirecardCEE
14
- * @package WirecardCEE_QMore
15
- * @subpackage Return_Success
16
- * @version 3.2.0
17
- */
18
- class WirecardCEE_QMore_Return_Success_Sofortueberweisung extends WirecardCEE_Stdlib_Return_Success_Sofortueberweisung {
19
- public function __construct($returnData, $secret) {
20
- parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
21
- }
22
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ /**
12
+ * @name WirecardCEE_QMore_Return_Success_PayPal
13
+ * @category WirecardCEE
14
+ * @package WirecardCEE_QMore
15
+ * @subpackage Return_Success
16
+ * @version 3.2.0
17
+ */
18
+ class WirecardCEE_QMore_Return_Success_Sofortueberweisung extends WirecardCEE_Stdlib_Return_Success_Sofortueberweisung {
19
+ public function __construct($returnData, $secret) {
20
+ parent::__construct($returnData, $secret, WirecardCEE_Stdlib_Fingerprint::HASH_ALGORITHM_HMAC_SHA512);
21
+ }
22
  }
app/code/local/Wirecard/CheckoutSeamless/QMore/ReturnFactory.php CHANGED
@@ -1,114 +1,114 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_QMore_ReturnFactory
14
- * @category WirecardCEE
15
- * @package WirecardCEE_QMore
16
- * @subpackage Return
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_QMore_ReturnFactory extends WirecardCEE_Stdlib_ReturnFactoryAbstract {
20
- /**
21
- * no initiation allowed.
22
- */
23
- private function __construct() {}
24
-
25
- /**
26
- * creates an Return instance (Cancel, Failure, Success...)
27
- *
28
- * @param array $return - returned post data
29
- * @param string $secret - QMORE secret
30
- * @return WirecardCEE_QMore_Return_Cancel|WirecardCEE_QMore_Return_Failure|WirecardCEE_QMore_Return_Pending|WirecardCEE_QMore_Return_Success
31
- * @throws WirecardCEE_QMore_Exception_InvalidResponseException
32
- */
33
- public static function getInstance($return, $secret) {
34
- if (!is_array($return)) {
35
- $return = WirecardCEE_Stdlib_SerialApi::decode($return);
36
- }
37
-
38
- if (array_key_exists('paymentState', $return)) {
39
- return self::_getInstance($return, $secret);
40
- }
41
- else {
42
- throw new WirecardCEE_QMore_Exception_InvalidResponseException('Invalid response from QMORE. Paymentstate is missing.');
43
- }
44
- }
45
-
46
- /***************************
47
- * PROTECTED METHODS *
48
- ***************************/
49
-
50
- /**
51
- * Returns the "return" sintance object
52
- *
53
- * @param array $return
54
- * @param string $secret
55
- * @throws WirecardCEE_QMore_Exception_InvalidResponseException
56
- * @return WirecardCEE_QMore_Return_Cancel|WirecardCEE_QMore_Return_Failure|WirecardCEE_QMore_Return_Pending|WirecardCEE_QMore_Return_Success
57
- */
58
- protected static function _getInstance($return, $secret) {
59
- switch(strtoupper($return['paymentState'])) {
60
- case parent::STATE_SUCCESS:
61
- return self::_getSuccessInstance($return, $secret);
62
- break;
63
- case parent::STATE_CANCEL:
64
- return new WirecardCEE_QMore_Return_Cancel($return);
65
- break;
66
- case parent::STATE_FAILURE:
67
- return new WirecardCEE_QMore_Return_Failure($return);
68
- break;
69
- case parent::STATE_PENDING:
70
- return new WirecardCEE_QMore_Return_Pending($return, $secret);
71
- break;
72
- default:
73
- throw new WirecardCEE_QMore_Exception_InvalidResponseException('Invalid response from QMORE. Unexpected paymentState: ' . $return['paymentState']);
74
- break;
75
- }
76
- }
77
-
78
- /**
79
- * getter for the correct QMORE success return instance
80
- *
81
- * @param string[] $return
82
- * @param string $secret
83
- * @return WirecardCEE_QMore_Return_Success
84
- * @throws WirecardCEE_QMore_Exception_InvalidResponseException
85
- */
86
- protected static function _getSuccessInstance($return, $secret) {
87
- if (!array_key_exists('paymentType', $return)) {
88
- throw new WirecardCEE_QMore_Exception_InvalidResponseException('Invalid response from QMORE. Paymenttype is missing.');
89
- }
90
-
91
- switch(strtoupper($return['paymentType'])) {
92
- case WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD:
93
- case WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD_MOTO:
94
- case WirecardCEE_Stdlib_PaymentTypeAbstract::MAESTRO:
95
- return new WirecardCEE_QMore_Return_Success_CreditCard($return, $secret);
96
- break;
97
- case WirecardCEE_Stdlib_PaymentTypeAbstract::PAYPAL:
98
- return new WirecardCEE_QMore_Return_Success_PayPal($return, $secret);
99
- break;
100
- case WirecardCEE_Stdlib_PaymentTypeAbstract::SOFORTUEBERWEISUNG:
101
- return new WirecardCEE_QMore_Return_Success_Sofortueberweisung($return, $secret);
102
- break;
103
- case WirecardCEE_Stdlib_PaymentTypeAbstract::IDL:
104
- return new WirecardCEE_QMore_Return_Success_Ideal($return, $secret);
105
- break;
106
- case WirecardCEE_Stdlib_PaymentTypeAbstract::SEPADD:
107
- return new WirecardCEE_QMore_Return_Success_SepaDD($return, $secret);
108
- break;
109
- default:
110
- return new WirecardCEE_QMore_Return_Success($return, $secret);
111
- break;
112
- }
113
- }
114
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_QMore_ReturnFactory
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_QMore
16
+ * @subpackage Return
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_QMore_ReturnFactory extends WirecardCEE_Stdlib_ReturnFactoryAbstract {
20
+ /**
21
+ * no initiation allowed.
22
+ */
23
+ private function __construct() {}
24
+
25
+ /**
26
+ * creates an Return instance (Cancel, Failure, Success...)
27
+ *
28
+ * @param array $return - returned post data
29
+ * @param string $secret - QMORE secret
30
+ * @return WirecardCEE_QMore_Return_Cancel|WirecardCEE_QMore_Return_Failure|WirecardCEE_QMore_Return_Pending|WirecardCEE_QMore_Return_Success
31
+ * @throws WirecardCEE_QMore_Exception_InvalidResponseException
32
+ */
33
+ public static function getInstance($return, $secret) {
34
+ if (!is_array($return)) {
35
+ $return = WirecardCEE_Stdlib_SerialApi::decode($return);
36
+ }
37
+
38
+ if (array_key_exists('paymentState', $return)) {
39
+ return self::_getInstance($return, $secret);
40
+ }
41
+ else {
42
+ throw new WirecardCEE_QMore_Exception_InvalidResponseException('Invalid response from QMORE. Paymentstate is missing.');
43
+ }
44
+ }
45
+
46
+ /***************************
47
+ * PROTECTED METHODS *
48
+ ***************************/
49
+
50
+ /**
51
+ * Returns the "return" sintance object
52
+ *
53
+ * @param array $return
54
+ * @param string $secret
55
+ * @throws WirecardCEE_QMore_Exception_InvalidResponseException
56
+ * @return WirecardCEE_QMore_Return_Cancel|WirecardCEE_QMore_Return_Failure|WirecardCEE_QMore_Return_Pending|WirecardCEE_QMore_Return_Success
57
+ */
58
+ protected static function _getInstance($return, $secret) {
59
+ switch(strtoupper($return['paymentState'])) {
60
+ case parent::STATE_SUCCESS:
61
+ return self::_getSuccessInstance($return, $secret);
62
+ break;
63
+ case parent::STATE_CANCEL:
64
+ return new WirecardCEE_QMore_Return_Cancel($return);
65
+ break;
66
+ case parent::STATE_FAILURE:
67
+ return new WirecardCEE_QMore_Return_Failure($return);
68
+ break;
69
+ case parent::STATE_PENDING:
70
+ return new WirecardCEE_QMore_Return_Pending($return, $secret);
71
+ break;
72
+ default:
73
+ throw new WirecardCEE_QMore_Exception_InvalidResponseException('Invalid response from QMORE. Unexpected paymentState: ' . $return['paymentState']);
74
+ break;
75
+ }
76
+ }
77
+
78
+ /**
79
+ * getter for the correct QMORE success return instance
80
+ *
81
+ * @param string[] $return
82
+ * @param string $secret
83
+ * @return WirecardCEE_QMore_Return_Success
84
+ * @throws WirecardCEE_QMore_Exception_InvalidResponseException
85
+ */
86
+ protected static function _getSuccessInstance($return, $secret) {
87
+ if (!array_key_exists('paymentType', $return)) {
88
+ throw new WirecardCEE_QMore_Exception_InvalidResponseException('Invalid response from QMORE. Paymenttype is missing.');
89
+ }
90
+
91
+ switch(strtoupper($return['paymentType'])) {
92
+ case WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD:
93
+ case WirecardCEE_Stdlib_PaymentTypeAbstract::CCARD_MOTO:
94
+ case WirecardCEE_Stdlib_PaymentTypeAbstract::MAESTRO:
95
+ return new WirecardCEE_QMore_Return_Success_CreditCard($return, $secret);
96
+ break;
97
+ case WirecardCEE_Stdlib_PaymentTypeAbstract::PAYPAL:
98
+ return new WirecardCEE_QMore_Return_Success_PayPal($return, $secret);
99
+ break;
100
+ case WirecardCEE_Stdlib_PaymentTypeAbstract::SOFORTUEBERWEISUNG:
101
+ return new WirecardCEE_QMore_Return_Success_Sofortueberweisung($return, $secret);
102
+ break;
103
+ case WirecardCEE_Stdlib_PaymentTypeAbstract::IDL:
104
+ return new WirecardCEE_QMore_Return_Success_Ideal($return, $secret);
105
+ break;
106
+ case WirecardCEE_Stdlib_PaymentTypeAbstract::SEPADD:
107
+ return new WirecardCEE_QMore_Return_Success_SepaDD($return, $secret);
108
+ break;
109
+ default:
110
+ return new WirecardCEE_QMore_Return_Success($return, $secret);
111
+ break;
112
+ }
113
+ }
114
  }
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Basket.php CHANGED
@@ -1,181 +1,181 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_Stdlib_Basket
14
- * @category WirecardCEE
15
- * @package WirecardCEE_Stdlib
16
- * @subpackage Basket
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_Stdlib_Basket {
20
-
21
- /**
22
- * Constants - text holders
23
- *
24
- * @var string
25
- */
26
- const BASKET_AMOUNT = 'basketAmount';
27
- const BASKET_CURRENCY = 'basketCurrency';
28
- const BASKET_ITEMS = 'basketItems';
29
- const BASKET_ITEM_PREFIX = 'basketItem';
30
- const QUANTITY = 'quantity';
31
-
32
- /**
33
- * Amount
34
- *
35
- * @var float
36
- */
37
- protected $_amount = 0.0;
38
-
39
- /**
40
- * Currency (default = EUR)
41
- *
42
- * @var string
43
- */
44
- protected $_currency;
45
-
46
- /**
47
- * Items holder
48
- *
49
- * @var array
50
- */
51
- protected $_items = Array();
52
-
53
- /**
54
- * Basket data
55
- *
56
- * @var array
57
- */
58
- protected $_basket = Array();
59
-
60
- /**
61
- * Constructor
62
- */
63
- public function __construct() {
64
- // constructor body
65
- }
66
-
67
- /**
68
- * Adds item to the basket
69
- *
70
- * @param WirecardCEE_Stdlib_Basket_Item $oItem
71
- * @param int $iQuantity
72
- * @return WirecardCEE_Stdlib_Basket
73
- */
74
- public function addItem(WirecardCEE_Stdlib_Basket_Item $oItem, $iQuantity = 1) {
75
- $_mArticleNumber = $oItem->getArticleNumber();
76
- $_quantity = $this->_getItemQuantity($_mArticleNumber);
77
-
78
- if (!$_quantity) {
79
- $this->_items[md5($_mArticleNumber)] = Array(
80
- 'instance' => $oItem,
81
- self::QUANTITY => $iQuantity
82
- );
83
- }
84
- else {
85
- $this->_increaseQuantity($_mArticleNumber, $iQuantity);
86
- }
87
-
88
- return $this;
89
- }
90
-
91
- /**
92
- * Returns the basket total amount
93
- *
94
- * @return float
95
- */
96
- public function getAmount() {
97
- $total = 0.0;
98
-
99
- foreach($this->_items as $oItem) {
100
- $total += ($oItem['instance']->getUnitPrice() * $this->_getItemQuantity($oItem['instance']->getArticleNumber())) + $oItem['instance']->getTax();
101
- }
102
-
103
- return $total;
104
- }
105
-
106
- /**
107
- * Returns the basket as pre-defined array (defined by WirecardCEE)
108
- *
109
- * @return Array
110
- */
111
- public function __toArray() {
112
- $_basketItems = $this->_items;
113
- $_counter = 1;
114
-
115
- $this->_basket[self::BASKET_AMOUNT] = $this->getAmount();
116
- $this->_basket[self::BASKET_CURRENCY] = $this->_currency;
117
- $this->_basket[self::BASKET_ITEMS] = count($_basketItems);
118
-
119
- foreach($_basketItems as $oItem) {
120
- $mArticleNumber = $oItem['instance']->getArticleNumber();
121
- $oItem = $oItem['instance'];
122
-
123
- $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_ARTICLE_NUMBER] = $mArticleNumber;
124
- $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . self::QUANTITY] = $this->_getItemQuantity($mArticleNumber);
125
- $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_PRICE] = $oItem->getUnitPrice();
126
- $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_TAX] = $oItem->getTax();
127
- $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_DESCRIPTION] = $oItem->getDescription();
128
-
129
- $_counter++;
130
- }
131
-
132
- return $this->_basket;
133
- }
134
-
135
- /**
136
- * Sets the basket currency
137
- *
138
- * @param string $sCurrency
139
- * @return WirecardCEE_Stdlib_Basket
140
- */
141
- public function setCurrency($sCurrency) {
142
- $this->_currency = $sCurrency;
143
- return $this;
144
- }
145
-
146
- /**
147
- * Destructor
148
- */
149
- public function __destruct() {
150
- unset($this);
151
- }
152
-
153
- /***************************************
154
- * PROTECTED METHODS *
155
- ***************************************/
156
-
157
- /**
158
- * Updates the quantity for an item already in basket
159
- *
160
- * @param mixed(integer|string) $mArticleNumber
161
- * @param int $iQuantity
162
- */
163
- protected function _increaseQuantity($mArticleNumber, $iQuantity) {
164
- if(!isset($this->_items[md5($mArticleNumber)])) {
165
- throw new Exception(sprintf("There is no item in the basket with article number '%s'. Thrown in %s.", $mArticleNumber, __METHOD__));
166
- }
167
-
168
- $this->_items[md5($mArticleNumber)][self::QUANTITY] += $iQuantity;
169
- return true;
170
- }
171
-
172
- /**
173
- * Returns the quantity of item in basket
174
- *
175
- * @param mixed(integer|string) $mArticleNumber
176
- * @return integer
177
- */
178
- protected function _getItemQuantity($mArticleNumber) {
179
- return (int) isset($this->_items[md5($mArticleNumber)]) ? $this->_items[md5($mArticleNumber)][self::QUANTITY] : 0;
180
- }
181
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_Stdlib_Basket
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_Stdlib
16
+ * @subpackage Basket
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_Stdlib_Basket {
20
+
21
+ /**
22
+ * Constants - text holders
23
+ *
24
+ * @var string
25
+ */
26
+ const BASKET_AMOUNT = 'basketAmount';
27
+ const BASKET_CURRENCY = 'basketCurrency';
28
+ const BASKET_ITEMS = 'basketItems';
29
+ const BASKET_ITEM_PREFIX = 'basketItem';
30
+ const QUANTITY = 'quantity';
31
+
32
+ /**
33
+ * Amount
34
+ *
35
+ * @var float
36
+ */
37
+ protected $_amount = 0.0;
38
+
39
+ /**
40
+ * Currency (default = EUR)
41
+ *
42
+ * @var string
43
+ */
44
+ protected $_currency;
45
+
46
+ /**
47
+ * Items holder
48
+ *
49
+ * @var array
50
+ */
51
+ protected $_items = Array();
52
+
53
+ /**
54
+ * Basket data
55
+ *
56
+ * @var array
57
+ */
58
+ protected $_basket = Array();
59
+
60
+ /**
61
+ * Constructor
62
+ */
63
+ public function __construct() {
64
+ // constructor body
65
+ }
66
+
67
+ /**
68
+ * Adds item to the basket
69
+ *
70
+ * @param WirecardCEE_Stdlib_Basket_Item $oItem
71
+ * @param int $iQuantity
72
+ * @return WirecardCEE_Stdlib_Basket
73
+ */
74
+ public function addItem(WirecardCEE_Stdlib_Basket_Item $oItem, $iQuantity = 1) {
75
+ $_mArticleNumber = $oItem->getArticleNumber();
76
+ $_quantity = $this->_getItemQuantity($_mArticleNumber);
77
+
78
+ if (!$_quantity) {
79
+ $this->_items[md5($_mArticleNumber)] = Array(
80
+ 'instance' => $oItem,
81
+ self::QUANTITY => $iQuantity
82
+ );
83
+ }
84
+ else {
85
+ $this->_increaseQuantity($_mArticleNumber, $iQuantity);
86
+ }
87
+
88
+ return $this;
89
+ }
90
+
91
+ /**
92
+ * Returns the basket total amount
93
+ *
94
+ * @return float
95
+ */
96
+ public function getAmount() {
97
+ $total = 0.0;
98
+
99
+ foreach($this->_items as $oItem) {
100
+ $total += ($oItem['instance']->getUnitPrice() * $this->_getItemQuantity($oItem['instance']->getArticleNumber())) + $oItem['instance']->getTax();
101
+ }
102
+
103
+ return $total;
104
+ }
105
+
106
+ /**
107
+ * Returns the basket as pre-defined array (defined by WirecardCEE)
108
+ *
109
+ * @return Array
110
+ */
111
+ public function __toArray() {
112
+ $_basketItems = $this->_items;
113
+ $_counter = 1;
114
+
115
+ $this->_basket[self::BASKET_AMOUNT] = $this->getAmount();
116
+ $this->_basket[self::BASKET_CURRENCY] = $this->_currency;
117
+ $this->_basket[self::BASKET_ITEMS] = count($_basketItems);
118
+
119
+ foreach($_basketItems as $oItem) {
120
+ $mArticleNumber = $oItem['instance']->getArticleNumber();
121
+ $oItem = $oItem['instance'];
122
+
123
+ $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_ARTICLE_NUMBER] = $mArticleNumber;
124
+ $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . self::QUANTITY] = $this->_getItemQuantity($mArticleNumber);
125
+ $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_UNIT_PRICE] = $oItem->getUnitPrice();
126
+ $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_TAX] = $oItem->getTax();
127
+ $this->_basket[self::BASKET_ITEM_PREFIX . $_counter . WirecardCEE_Stdlib_Basket_Item::ITEM_DESCRIPTION] = $oItem->getDescription();
128
+
129
+ $_counter++;
130
+ }
131
+
132
+ return $this->_basket;
133
+ }
134
+
135
+ /**
136
+ * Sets the basket currency
137
+ *
138
+ * @param string $sCurrency
139
+ * @return WirecardCEE_Stdlib_Basket
140
+ */
141
+ public function setCurrency($sCurrency) {
142
+ $this->_currency = $sCurrency;
143
+ return $this;
144
+ }
145
+
146
+ /**
147
+ * Destructor
148
+ */
149
+ public function __destruct() {
150
+ unset($this);
151
+ }
152
+
153
+ /***************************************
154
+ * PROTECTED METHODS *
155
+ ***************************************/
156
+
157
+ /**
158
+ * Updates the quantity for an item already in basket
159
+ *
160
+ * @param mixed(integer|string) $mArticleNumber
161
+ * @param int $iQuantity
162
+ */
163
+ protected function _increaseQuantity($mArticleNumber, $iQuantity) {
164
+ if(!isset($this->_items[md5($mArticleNumber)])) {
165
+ throw new Exception(sprintf("There is no item in the basket with article number '%s'. Thrown in %s.", $mArticleNumber, __METHOD__));
166
+ }
167
+
168
+ $this->_items[md5($mArticleNumber)][self::QUANTITY] += $iQuantity;
169
+ return true;
170
+ }
171
+
172
+ /**
173
+ * Returns the quantity of item in basket
174
+ *
175
+ * @param mixed(integer|string) $mArticleNumber
176
+ * @return integer
177
+ */
178
+ protected function _getItemQuantity($mArticleNumber) {
179
+ return (int) isset($this->_items[md5($mArticleNumber)]) ? $this->_items[md5($mArticleNumber)][self::QUANTITY] : 0;
180
+ }
181
  }
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Basket/Item.php CHANGED
@@ -1,146 +1,146 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_Stdlib_Basket_Item
14
- * @category WirecardCEE
15
- * @package WirecardCEE_Stdlib
16
- * @subpackage Basket
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_Stdlib_Basket_Item {
20
-
21
- /**
22
- * Constants - text holders
23
- * @var string
24
- */
25
- const ITEM_ARTICLE_NUMBER = 'articleNumber';
26
- const ITEM_UNIT_PRICE = 'unitPrice';
27
- const ITEM_DESCRIPTION = 'description';
28
- const ITEM_TAX = 'tax';
29
-
30
- /**
31
- * Data holder
32
- *
33
- * @var Array
34
- */
35
- protected $_itemData;
36
-
37
- /**
38
- * Constructor
39
- * @param mixed(string|integer) optional $mArticleNumber
40
- */
41
- public function __construct($mArticleNumber = null) {
42
- if(!is_null($mArticleNumber)) {
43
- $this->setArticleNumber($mArticleNumber);
44
- }
45
- }
46
-
47
- /**
48
- * Sets the item tax (amount not percentage!)
49
- *
50
- * @param integer/float
51
- */
52
- public function setTax($fTax) {
53
- $this->_setField(self::ITEM_TAX, $fTax);
54
- return $this;
55
- }
56
-
57
- /**
58
- * Returns the tax
59
- *
60
- * @return multitype:
61
- */
62
- public function getTax() {
63
- return $this->_itemData[self::ITEM_TAX];
64
- }
65
-
66
- /**
67
- * Sets the article number for an item
68
- *
69
- * @param mixed(string|integer) $mArticleNumber
70
- * @return WirecardCEE_Stdlib_Basket_Item
71
- */
72
- public function setArticleNumber($mArticleNumber) {
73
- $this->_setField(self::ITEM_ARTICLE_NUMBER, $mArticleNumber);
74
- return $this;
75
- }
76
-
77
- /**
78
- * Returns the article number of an item
79
- *
80
- * @return mixed(string|integer)
81
- */
82
- public function getArticleNumber() {
83
- return $this->_itemData[self::ITEM_ARTICLE_NUMBER];
84
- }
85
-
86
- /**
87
- * Sets the price for a unit
88
- *
89
- * @param mixed(integer|float) $fPrice
90
- * @return WirecardCEE_Stdlib_Basket_Item
91
- */
92
- public function setUnitPrice($fPrice) {
93
- $this->_setField(self::ITEM_UNIT_PRICE, $fPrice);
94
- return $this;
95
- }
96
-
97
- /**
98
- * Returns the price for a unit
99
- *
100
- * @return mixed(integer|float)
101
- */
102
- public function getUnitPrice() {
103
- return $this->_itemData[self::ITEM_UNIT_PRICE];
104
- }
105
-
106
- /**
107
- * Sets the item description
108
- *
109
- * @param string $sDescription
110
- * @return WirecardCEE_Stdlib_Basket_Item
111
- */
112
- public function setDescription($sDescription) {
113
- $this->_setField(self::ITEM_DESCRIPTION, (string) $sDescription);
114
- return $this;
115
- }
116
-
117
- /**
118
- * Retuns the item description
119
- *
120
- * @return string
121
- */
122
- public function getDescription() {
123
- return (string) $this->_itemData[self::ITEM_DESCRIPTION];
124
- }
125
-
126
- /**
127
- * Destructor
128
- */
129
- public function __destruct() {
130
- unset($this);
131
- }
132
-
133
- /***************************************
134
- * PROTECTED METHODS *
135
- ***************************************/
136
-
137
- /**
138
- * Field setter
139
- *
140
- * @param string $sName
141
- * @param mixed $mValue
142
- */
143
- protected function _setField($sName, $mValue) {
144
- $this->_itemData[$sName] = $mValue;
145
- }
146
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_Stdlib_Basket_Item
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_Stdlib
16
+ * @subpackage Basket
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_Stdlib_Basket_Item {
20
+
21
+ /**
22
+ * Constants - text holders
23
+ * @var string
24
+ */
25
+ const ITEM_ARTICLE_NUMBER = 'articleNumber';
26
+ const ITEM_UNIT_PRICE = 'unitPrice';
27
+ const ITEM_DESCRIPTION = 'description';
28
+ const ITEM_TAX = 'tax';
29
+
30
+ /**
31
+ * Data holder
32
+ *
33
+ * @var Array
34
+ */
35
+ protected $_itemData;
36
+
37
+ /**
38
+ * Constructor
39
+ * @param mixed(string|integer) optional $mArticleNumber
40
+ */
41
+ public function __construct($mArticleNumber = null) {
42
+ if(!is_null($mArticleNumber)) {
43
+ $this->setArticleNumber($mArticleNumber);
44
+ }
45
+ }
46
+
47
+ /**
48
+ * Sets the item tax (amount not percentage!)
49
+ *
50
+ * @param integer/float
51
+ */
52
+ public function setTax($fTax) {
53
+ $this->_setField(self::ITEM_TAX, $fTax);
54
+ return $this;
55
+ }
56
+
57
+ /**
58
+ * Returns the tax
59
+ *
60
+ * @return multitype:
61
+ */
62
+ public function getTax() {
63
+ return $this->_itemData[self::ITEM_TAX];
64
+ }
65
+
66
+ /**
67
+ * Sets the article number for an item
68
+ *
69
+ * @param mixed(string|integer) $mArticleNumber
70
+ * @return WirecardCEE_Stdlib_Basket_Item
71
+ */
72
+ public function setArticleNumber($mArticleNumber) {
73
+ $this->_setField(self::ITEM_ARTICLE_NUMBER, $mArticleNumber);
74
+ return $this;
75
+ }
76
+
77
+ /**
78
+ * Returns the article number of an item
79
+ *
80
+ * @return mixed(string|integer)
81
+ */
82
+ public function getArticleNumber() {
83
+ return $this->_itemData[self::ITEM_ARTICLE_NUMBER];
84
+ }
85
+
86
+ /**
87
+ * Sets the price for a unit
88
+ *
89
+ * @param mixed(integer|float) $fPrice
90
+ * @return WirecardCEE_Stdlib_Basket_Item
91
+ */
92
+ public function setUnitPrice($fPrice) {
93
+ $this->_setField(self::ITEM_UNIT_PRICE, $fPrice);
94
+ return $this;
95
+ }
96
+
97
+ /**
98
+ * Returns the price for a unit
99
+ *
100
+ * @return mixed(integer|float)
101
+ */
102
+ public function getUnitPrice() {
103
+ return $this->_itemData[self::ITEM_UNIT_PRICE];
104
+ }
105
+
106
+ /**
107
+ * Sets the item description
108
+ *
109
+ * @param string $sDescription
110
+ * @return WirecardCEE_Stdlib_Basket_Item
111
+ */
112
+ public function setDescription($sDescription) {
113
+ $this->_setField(self::ITEM_DESCRIPTION, (string) $sDescription);
114
+ return $this;
115
+ }
116
+
117
+ /**
118
+ * Retuns the item description
119
+ *
120
+ * @return string
121
+ */
122
+ public function getDescription() {
123
+ return (string) $this->_itemData[self::ITEM_DESCRIPTION];
124
+ }
125
+
126
+ /**
127
+ * Destructor
128
+ */
129
+ public function __destruct() {
130
+ unset($this);
131
+ }
132
+
133
+ /***************************************
134
+ * PROTECTED METHODS *
135
+ ***************************************/
136
+
137
+ /**
138
+ * Field setter
139
+ *
140
+ * @param string $sName
141
+ * @param mixed $mValue
142
+ */
143
+ protected function _setField($sName, $mValue) {
144
+ $this->_itemData[$sName] = $mValue;
145
+ }
146
  }
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Client/ClientAbstract.php CHANGED
@@ -1,439 +1,439 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_Stdlib_Client_ClientAbstract
14
- * @category WirecardCEE
15
- * @package WirecardCEE_Stdlib
16
- * @subpackage Client
17
- * @version 3.2.0
18
- * @abstract
19
- */
20
- abstract class WirecardCEE_Stdlib_Client_ClientAbstract {
21
-
22
- /**
23
- * Secret holder
24
- *
25
- * @var string
26
- */
27
- protected $_secret;
28
-
29
- /**
30
- * HTTP Client
31
- *
32
- * @var Zend_Http_Client
33
- */
34
- protected $_httpClient;
35
-
36
- /**
37
- *
38
- * @var string
39
- */
40
- protected $userAgent;
41
-
42
- /**
43
- * Fingerprint order type (dynamic or fixed)
44
- *
45
- * @var int
46
- */
47
- protected $_fingerprintOrderType = 0;
48
-
49
- /**
50
- * Fingerprint
51
- *
52
- * @var string
53
- */
54
- protected $_fingerprintString = null;
55
-
56
- /**
57
- * Fingeprint order
58
- *
59
- * @var WirecardCEE_Stdlib_FingerprintOrder
60
- */
61
- protected $_fingerprintOrder;
62
-
63
- /**
64
- * request data
65
- *
66
- * @var string[]
67
- */
68
- protected $_requestData;
69
-
70
- /**
71
- * Request path
72
- *
73
- * @var string
74
- */
75
- protected $_requestPath = '';
76
-
77
- /**
78
- * User configuration holder!
79
- *
80
- * @var WirecardCEE_Stdlib_Config
81
- */
82
- protected $oUserConfig;
83
-
84
- /**
85
- * Client configuration holder!
86
- *
87
- * @var WirecardCEE_Stdlib_Config
88
- */
89
- protected $oClientConfig;
90
-
91
- /**
92
- * Bool true
93
- * @var string
94
- */
95
- protected static $BOOL_TRUE = 'yes';
96
-
97
- /**
98
- * BOol false
99
- * @var string
100
- */
101
- protected static $BOOL_FALSE = 'no';
102
-
103
- /**
104
- * Dynamic fingerprint
105
- * @var int
106
- */
107
- protected static $FINGERPRINT_TYPE_DYNAMIC = 0;
108
-
109
- /**
110
- * Fixed fingerprint
111
- * @var int
112
- */
113
- protected static $FINGERPRINT_TYPE_FIXED = 1;
114
-
115
- /**
116
- * Field names variable: customer_id
117
- * @var string
118
- */
119
- const CUSTOMER_ID = 'customerId';
120
-
121
- /**
122
- * Field names variable: secret
123
- * @var string
124
- */
125
- const SECRET = 'secret';
126
-
127
- /**
128
- * Field names variable: language
129
- * @var string
130
- */
131
- const LANGUAGE = 'language';
132
-
133
- /**
134
- * Field names variable: shopId
135
- * @var string
136
- */
137
- const SHOP_ID = 'shopId';
138
-
139
- /**
140
- * Field names variable: requestFingerprintOrder
141
- * @var string
142
- */
143
- const REQUEST_FINGERPRINT_ORDER = 'requestFingerprintOrder';
144
-
145
- /**
146
- * Field names variable: requestFingerprint
147
- * @var string
148
- */
149
- const REQUEST_FINGERPRINT = 'requestFingerprint';
150
-
151
- /**
152
- * Field names variable: amount
153
- * @var string
154
- */
155
- const AMOUNT = 'amount';
156
-
157
- /**
158
- * Field names variable: currency
159
- * @var string
160
- */
161
- const CURRENCY = 'currency';
162
-
163
- /**
164
- * Field names variable: orderDescription
165
- * @var string
166
- */
167
- const ORDER_DESCRIPTION = 'orderDescription';
168
-
169
- /**
170
- * Field names variable: autoDeposit
171
- * @var string
172
- */
173
- const AUTO_DEPOSIT = 'autoDeposit';
174
-
175
- /**
176
- * Field names variable: orderNumber
177
- * @var string
178
- */
179
- const ORDER_NUMBER = 'orderNumber';
180
-
181
- /**
182
- * Must be implemented in the client object
183
- *
184
- * @param Array|WirecardCEE_Stdlib_Config $aConfig
185
- * @abstract
186
- */
187
- abstract public function __construct(array $aConfig = null);
188
-
189
- /**
190
- * setter for Zend_Http_Client.
191
- * Use this if you need specific client-configuration.
192
- * otherwise the clientlibrary instantiates the Zend_Http_Client on its own.
193
- *
194
- * @param Zend_Http_Client $httpClient
195
- * @return WirecardCEE_Stdlib_Client_ClientAbstract
196
- */
197
- public function setZendHttpClient(Zend_Http_Client $httpClient) {
198
- $this->_httpClient = $httpClient;
199
- return $this;
200
- }
201
-
202
- /**
203
- * Returns the user configuration object
204
- *
205
- * @return WirecardCEE_Stdlib_Config
206
- */
207
- public function getUserConfig() {
208
- return $this->oUserConfig;
209
- }
210
-
211
- /**
212
- * Returns the client configuration object
213
- *
214
- * @return WirecardCEE_Stdlib_Config
215
- */
216
- public function getClientConfig() {
217
- return $this->oClientConfig;
218
- }
219
-
220
- /**
221
- * Returns the user agent string
222
- *
223
- * @return string
224
- */
225
- public function getUserAgentString() {
226
- $oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_Stdlib_Module::getClientConfig());
227
-
228
- $sUserAgent = $this->_getUserAgent() . ";{$oClientConfig->MODULE_NAME};{$oClientConfig->MODULE_VERSION};";
229
-
230
- foreach($oClientConfig->DEPENDENCIES as $sValue) {
231
- $sUserAgent .= is_string($sValue) ? $sValue . ";" : $sValue->CURRENT . ";";
232
- }
233
-
234
- return $sUserAgent;
235
- }
236
-
237
- /**
238
- * Returns all the request data as an array
239
- * @return array
240
- */
241
- public function getRequestData() {
242
- return (array) $this->_requestData;
243
- }
244
-
245
- /**
246
- * Destructor
247
- */
248
- public function __destruct() {
249
- unset($this);
250
- }
251
-
252
- /**************************
253
- * PROTECTED METHODS *
254
- **************************/
255
-
256
- /**
257
- * Must be implemented in the client
258
- *
259
- * @return string
260
- * @abstract
261
- */
262
- abstract protected function _getRequestUrl();
263
-
264
- /**
265
- * Must be implemented in the client
266
- *
267
- * @return string
268
- * @abstract
269
- */
270
- abstract protected function _getUserAgent();
271
-
272
- /**
273
- * 'Secret' setter
274
- *
275
- * @param string $secret
276
- */
277
- protected function _setSecret($secret) {
278
- $this->_secret = $secret;
279
- $this->_fingerprintOrder[] = self::SECRET;
280
- }
281
-
282
- /**
283
- * sends the request and returns the zend http response object instance
284
- *
285
- * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
286
- * @return Zend_Http_Response
287
- */
288
- protected function _send() {
289
- if (count($this->_fingerprintOrder)) {
290
- $this->_fingerprintString = $this->_calculateFingerprint();
291
- if (!is_null($this->_fingerprintString)) {
292
- $this->_requestData[self::REQUEST_FINGERPRINT] = $this->_fingerprintString;
293
- }
294
- }
295
-
296
- try {
297
- $response = $this->_sendRequest();
298
- }
299
- catch (Zend_Http_Client_Exception $e) {
300
- throw new WirecardCEE_Stdlib_Client_Exception_InvalidResponseException($e->getMessage(), $e->getCode(), $e);
301
- }
302
-
303
- return $response;
304
- }
305
-
306
- /**
307
- * method to calculate fingerprint from given fields.
308
- *
309
- * @return string - fingerprint hash
310
- */
311
- protected function _calculateFingerprint() {
312
- $oFingerprintOrder = $this->_fingerprintOrder;
313
-
314
- if ($this->_fingerprintOrderType == self::$FINGERPRINT_TYPE_DYNAMIC) {
315
- // we have to add REQUESTFINGERPRINTORDER to local fingerprintOrder to add correct value to param list
316
- $oFingerprintOrder[] = self::REQUEST_FINGERPRINT_ORDER;
317
- $this->_requestData[self::REQUEST_FINGERPRINT_ORDER] = (string) $oFingerprintOrder;
318
- }
319
- // fingerprintFields == requestFields + secret - secret MUST NOT be send as param
320
- $fingerprintFields = $this->_requestData;
321
- $fingerprintFields[self::SECRET] = $this->_secret;
322
-
323
- return WirecardCEE_Stdlib_Fingerprint::generate($fingerprintFields, $oFingerprintOrder);
324
- }
325
-
326
- /**
327
- * Sends the request and returns the zend http response object instance
328
- *
329
- * @throws Zend_Http_Client_Exception
330
- * @return Zend_Http_Response
331
- */
332
- protected function _sendRequest() {
333
- $httpClient = $this->_getZendHttpClient();
334
- $httpClient->setParameterPost($this->_requestData);
335
- $httpClient->setConfig(Array(
336
- 'useragent' => $this->getUserAgentString()
337
- ));
338
- return $httpClient->request(Zend_Http_Client::POST);
339
- }
340
-
341
- /**
342
- * Setter for requestfield.
343
- * Bare in mind that $this->_fingerprintOrder is an WirecardCEE_Stdlib_FingerprintOrder object which implements
344
- * the ArrayAccess interface meaning we can use the array annotation [] on an object
345
- *
346
- * @see WirecardCEE_Stdlib_FingerprintOrder
347
- * @param string $name
348
- * @param mixed $value
349
- */
350
- protected function _setField($name, $value) {
351
- $this->_requestData[(string) $name] = (string) $value;
352
- $this->_fingerprintOrder[] = (string) $name;
353
- }
354
-
355
- /**
356
- * Check if we the field is set in the _requestData array
357
- *
358
- * @param string $sFieldname
359
- * @return boolean
360
- */
361
- protected function _isFieldSet($sFieldname) {
362
- return (bool) (isset($this->_requestData[$sFieldname]) && !empty($this->_requestData[$sFieldname]));
363
- }
364
-
365
- /**
366
- * private getter for the Zend_Http_Client
367
- * if not set yet it will be instantiated
368
- *
369
- * @return Zend_Http_Client
370
- */
371
- protected function _getZendHttpClient() {
372
- if (is_null($this->_httpClient)) {
373
- // @todo implement SSL check here
374
- $this->_httpClient = new Zend_Http_Client($this->_getRequestUrl());
375
- }
376
- else {
377
- $this->_httpClient->resetParameters(true);
378
- $this->_httpClient->setUri($this->_getRequestUrl());
379
- }
380
-
381
- return $this->_httpClient;
382
- }
383
-
384
- protected function _composeCustomerStatement($paymenttype, $prefix = null, $uniqString = null)
385
- {
386
- if (!strlen($uniqString))
387
- $uniqString = $this->generateUniqString(9);
388
-
389
- if ($paymenttype == WirecardCEE_Stdlib_PaymentTypeAbstract::POLI)
390
- {
391
- if (strlen($prefix))
392
- $customerStatement = substr($prefix, 0, 9);
393
- else
394
- $customerStatement = $uniqString;
395
- } else {
396
- if (strlen($prefix))
397
- $customerStatement = sprintf('%s Id:%s', $prefix, $uniqString);
398
- else
399
- $customerStatement = $uniqString;
400
- }
401
-
402
- return $customerStatement;
403
- }
404
-
405
- /**
406
- * returns a uniq String with default length 10.
407
- *
408
- * @param int $length
409
- * @return string
410
- */
411
- public function generateUniqString($length = 10)
412
- {
413
- $tid = '';
414
-
415
- $alphabet = "023456789abcdefghikmnopqrstuvwxyzABCDEFGHIKMNOPQRSTUVWXYZ";
416
-
417
- for ($i = 0; $i < $length; $i++)
418
- {
419
- $c = substr($alphabet, mt_rand(0, strlen($alphabet) - 1), 1);
420
-
421
- if ((($i % 2) == 0) && !is_numeric($c))
422
- {
423
- $i--;
424
- continue;
425
- }
426
- if ((($i % 2) == 1) && is_numeric($c))
427
- {
428
- $i--;
429
- continue;
430
- }
431
-
432
- $alphabet = str_replace($c, '', $alphabet);
433
- $tid .= $c;
434
- }
435
-
436
- return $tid;
437
- }
438
-
439
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_Stdlib_Client_ClientAbstract
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_Stdlib
16
+ * @subpackage Client
17
+ * @version 3.2.0
18
+ * @abstract
19
+ */
20
+ abstract class WirecardCEE_Stdlib_Client_ClientAbstract {
21
+
22
+ /**
23
+ * Secret holder
24
+ *
25
+ * @var string
26
+ */
27
+ protected $_secret;
28
+
29
+ /**
30
+ * HTTP Client
31
+ *
32
+ * @var Zend_Http_Client
33
+ */
34
+ protected $_httpClient;
35
+
36
+ /**
37
+ *
38
+ * @var string
39
+ */
40
+ protected $userAgent;
41
+
42
+ /**
43
+ * Fingerprint order type (dynamic or fixed)
44
+ *
45
+ * @var int
46
+ */
47
+ protected $_fingerprintOrderType = 0;
48
+
49
+ /**
50
+ * Fingerprint
51
+ *
52
+ * @var string
53
+ */
54
+ protected $_fingerprintString = null;
55
+
56
+ /**
57
+ * Fingeprint order
58
+ *
59
+ * @var WirecardCEE_Stdlib_FingerprintOrder
60
+ */
61
+ protected $_fingerprintOrder;
62
+
63
+ /**
64
+ * request data
65
+ *
66
+ * @var string[]
67
+ */
68
+ protected $_requestData;
69
+
70
+ /**
71
+ * Request path
72
+ *
73
+ * @var string
74
+ */
75
+ protected $_requestPath = '';
76
+
77
+ /**
78
+ * User configuration holder!
79
+ *
80
+ * @var WirecardCEE_Stdlib_Config
81
+ */
82
+ protected $oUserConfig;
83
+
84
+ /**
85
+ * Client configuration holder!
86
+ *
87
+ * @var WirecardCEE_Stdlib_Config
88
+ */
89
+ protected $oClientConfig;
90
+
91
+ /**
92
+ * Bool true
93
+ * @var string
94
+ */
95
+ protected static $BOOL_TRUE = 'yes';
96
+
97
+ /**
98
+ * BOol false
99
+ * @var string
100
+ */
101
+ protected static $BOOL_FALSE = 'no';
102
+
103
+ /**
104
+ * Dynamic fingerprint
105
+ * @var int
106
+ */
107
+ protected static $FINGERPRINT_TYPE_DYNAMIC = 0;
108
+
109
+ /**
110
+ * Fixed fingerprint
111
+ * @var int
112
+ */
113
+ protected static $FINGERPRINT_TYPE_FIXED = 1;
114
+
115
+ /**
116
+ * Field names variable: customer_id
117
+ * @var string
118
+ */
119
+ const CUSTOMER_ID = 'customerId';
120
+
121
+ /**
122
+ * Field names variable: secret
123
+ * @var string
124
+ */
125
+ const SECRET = 'secret';
126
+
127
+ /**
128
+ * Field names variable: language
129
+ * @var string
130
+ */
131
+ const LANGUAGE = 'language';
132
+
133
+ /**
134
+ * Field names variable: shopId
135
+ * @var string
136
+ */
137
+ const SHOP_ID = 'shopId';
138
+
139
+ /**
140
+ * Field names variable: requestFingerprintOrder
141
+ * @var string
142
+ */
143
+ const REQUEST_FINGERPRINT_ORDER = 'requestFingerprintOrder';
144
+
145
+ /**
146
+ * Field names variable: requestFingerprint
147
+ * @var string
148
+ */
149
+ const REQUEST_FINGERPRINT = 'requestFingerprint';
150
+
151
+ /**
152
+ * Field names variable: amount
153
+ * @var string
154
+ */
155
+ const AMOUNT = 'amount';
156
+
157
+ /**
158
+ * Field names variable: currency
159
+ * @var string
160
+ */
161
+ const CURRENCY = 'currency';
162
+
163
+ /**
164
+ * Field names variable: orderDescription
165
+ * @var string
166
+ */
167
+ const ORDER_DESCRIPTION = 'orderDescription';
168
+
169
+ /**
170
+ * Field names variable: autoDeposit
171
+ * @var string
172
+ */
173
+ const AUTO_DEPOSIT = 'autoDeposit';
174
+
175
+ /**
176
+ * Field names variable: orderNumber
177
+ * @var string
178
+ */
179
+ const ORDER_NUMBER = 'orderNumber';
180
+
181
+ /**
182
+ * Must be implemented in the client object
183
+ *
184
+ * @param Array|WirecardCEE_Stdlib_Config $aConfig
185
+ * @abstract
186
+ */
187
+ abstract public function __construct(array $aConfig = null);
188
+
189
+ /**
190
+ * setter for Zend_Http_Client.
191
+ * Use this if you need specific client-configuration.
192
+ * otherwise the clientlibrary instantiates the Zend_Http_Client on its own.
193
+ *
194
+ * @param Zend_Http_Client $httpClient
195
+ * @return WirecardCEE_Stdlib_Client_ClientAbstract
196
+ */
197
+ public function setZendHttpClient(Zend_Http_Client $httpClient) {
198
+ $this->_httpClient = $httpClient;
199
+ return $this;
200
+ }
201
+
202
+ /**
203
+ * Returns the user configuration object
204
+ *
205
+ * @return WirecardCEE_Stdlib_Config
206
+ */
207
+ public function getUserConfig() {
208
+ return $this->oUserConfig;
209
+ }
210
+
211
+ /**
212
+ * Returns the client configuration object
213
+ *
214
+ * @return WirecardCEE_Stdlib_Config
215
+ */
216
+ public function getClientConfig() {
217
+ return $this->oClientConfig;
218
+ }
219
+
220
+ /**
221
+ * Returns the user agent string
222
+ *
223
+ * @return string
224
+ */
225
+ public function getUserAgentString() {
226
+ $oClientConfig = new WirecardCEE_Stdlib_Config(WirecardCEE_Stdlib_Module::getClientConfig());
227
+
228
+ $sUserAgent = $this->_getUserAgent() . ";{$oClientConfig->MODULE_NAME};{$oClientConfig->MODULE_VERSION};";
229
+
230
+ foreach($oClientConfig->DEPENDENCIES as $sValue) {
231
+ $sUserAgent .= is_string($sValue) ? $sValue . ";" : $sValue->CURRENT . ";";
232
+ }
233
+
234
+ return $sUserAgent;
235
+ }
236
+
237
+ /**
238
+ * Returns all the request data as an array
239
+ * @return array
240
+ */
241
+ public function getRequestData() {
242
+ return (array) $this->_requestData;
243
+ }
244
+
245
+ /**
246
+ * Destructor
247
+ */
248
+ public function __destruct() {
249
+ unset($this);
250
+ }
251
+
252
+ /**************************
253
+ * PROTECTED METHODS *
254
+ **************************/
255
+
256
+ /**
257
+ * Must be implemented in the client
258
+ *
259
+ * @return string
260
+ * @abstract
261
+ */
262
+ abstract protected function _getRequestUrl();
263
+
264
+ /**
265
+ * Must be implemented in the client
266
+ *
267
+ * @return string
268
+ * @abstract
269
+ */
270
+ abstract protected function _getUserAgent();
271
+
272
+ /**
273
+ * 'Secret' setter
274
+ *
275
+ * @param string $secret
276
+ */
277
+ protected function _setSecret($secret) {
278
+ $this->_secret = $secret;
279
+ $this->_fingerprintOrder[] = self::SECRET;
280
+ }
281
+
282
+ /**
283
+ * sends the request and returns the zend http response object instance
284
+ *
285
+ * @throws WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
286
+ * @return Zend_Http_Response
287
+ */
288
+ protected function _send() {
289
+ if (count($this->_fingerprintOrder)) {
290
+ $this->_fingerprintString = $this->_calculateFingerprint();
291
+ if (!is_null($this->_fingerprintString)) {
292
+ $this->_requestData[self::REQUEST_FINGERPRINT] = $this->_fingerprintString;
293
+ }
294
+ }
295
+
296
+ try {
297
+ $response = $this->_sendRequest();
298
+ }
299
+ catch (Zend_Http_Client_Exception $e) {
300
+ throw new WirecardCEE_Stdlib_Client_Exception_InvalidResponseException($e->getMessage(), $e->getCode(), $e);
301
+ }
302
+
303
+ return $response;
304
+ }
305
+
306
+ /**
307
+ * method to calculate fingerprint from given fields.
308
+ *
309
+ * @return string - fingerprint hash
310
+ */
311
+ protected function _calculateFingerprint() {
312
+ $oFingerprintOrder = $this->_fingerprintOrder;
313
+
314
+ if ($this->_fingerprintOrderType == self::$FINGERPRINT_TYPE_DYNAMIC) {
315
+ // we have to add REQUESTFINGERPRINTORDER to local fingerprintOrder to add correct value to param list
316
+ $oFingerprintOrder[] = self::REQUEST_FINGERPRINT_ORDER;
317
+ $this->_requestData[self::REQUEST_FINGERPRINT_ORDER] = (string) $oFingerprintOrder;
318
+ }
319
+ // fingerprintFields == requestFields + secret - secret MUST NOT be send as param
320
+ $fingerprintFields = $this->_requestData;
321
+ $fingerprintFields[self::SECRET] = $this->_secret;
322
+
323
+ return WirecardCEE_Stdlib_Fingerprint::generate($fingerprintFields, $oFingerprintOrder);
324
+ }
325
+
326
+ /**
327
+ * Sends the request and returns the zend http response object instance
328
+ *
329
+ * @throws Zend_Http_Client_Exception
330
+ * @return Zend_Http_Response
331
+ */
332
+ protected function _sendRequest() {
333
+ $httpClient = $this->_getZendHttpClient();
334
+ $httpClient->setParameterPost($this->_requestData);
335
+ $httpClient->setConfig(Array(
336
+ 'useragent' => $this->getUserAgentString()
337
+ ));
338
+ return $httpClient->request(Zend_Http_Client::POST);
339
+ }
340
+
341
+ /**
342
+ * Setter for requestfield.
343
+ * Bare in mind that $this->_fingerprintOrder is an WirecardCEE_Stdlib_FingerprintOrder object which implements
344
+ * the ArrayAccess interface meaning we can use the array annotation [] on an object
345
+ *
346
+ * @see WirecardCEE_Stdlib_FingerprintOrder
347
+ * @param string $name
348
+ * @param mixed $value
349
+ */
350
+ protected function _setField($name, $value) {
351
+ $this->_requestData[(string) $name] = (string) $value;
352
+ $this->_fingerprintOrder[] = (string) $name;
353
+ }
354
+
355
+ /**
356
+ * Check if we the field is set in the _requestData array
357
+ *
358
+ * @param string $sFieldname
359
+ * @return boolean
360
+ */
361
+ protected function _isFieldSet($sFieldname) {
362
+ return (bool) (isset($this->_requestData[$sFieldname]) && !empty($this->_requestData[$sFieldname]));
363
+ }
364
+
365
+ /**
366
+ * private getter for the Zend_Http_Client
367
+ * if not set yet it will be instantiated
368
+ *
369
+ * @return Zend_Http_Client
370
+ */
371
+ protected function _getZendHttpClient() {
372
+ if (is_null($this->_httpClient)) {
373
+ // @todo implement SSL check here
374
+ $this->_httpClient = new Zend_Http_Client($this->_getRequestUrl());
375
+ }
376
+ else {
377
+ $this->_httpClient->resetParameters(true);
378
+ $this->_httpClient->setUri($this->_getRequestUrl());
379
+ }
380
+
381
+ return $this->_httpClient;
382
+ }
383
+
384
+ protected function _composeCustomerStatement($paymenttype, $prefix = null, $uniqString = null)
385
+ {
386
+ if (!strlen($uniqString))
387
+ $uniqString = $this->generateUniqString(9);
388
+
389
+ if ($paymenttype == WirecardCEE_Stdlib_PaymentTypeAbstract::POLI)
390
+ {
391
+ if (strlen($prefix))
392
+ $customerStatement = substr($prefix, 0, 9);
393
+ else
394
+ $customerStatement = $uniqString;
395
+ } else {
396
+ if (strlen($prefix))
397
+ $customerStatement = sprintf('%s Id:%s', $prefix, $uniqString);
398
+ else
399
+ $customerStatement = $uniqString;
400
+ }
401
+
402
+ return $customerStatement;
403
+ }
404
+
405
+ /**
406
+ * returns a uniq String with default length 10.
407
+ *
408
+ * @param int $length
409
+ * @return string
410
+ */
411
+ public function generateUniqString($length = 10)
412
+ {
413
+ $tid = '';
414
+
415
+ $alphabet = "023456789abcdefghikmnopqrstuvwxyzABCDEFGHIKMNOPQRSTUVWXYZ";
416
+
417
+ for ($i = 0; $i < $length; $i++)
418
+ {
419
+ $c = substr($alphabet, mt_rand(0, strlen($alphabet) - 1), 1);
420
+
421
+ if ((($i % 2) == 0) && !is_numeric($c))
422
+ {
423
+ $i--;
424
+ continue;
425
+ }
426
+ if ((($i % 2) == 1) && is_numeric($c))
427
+ {
428
+ $i--;
429
+ continue;
430
+ }
431
+
432
+ $alphabet = str_replace($c, '', $alphabet);
433
+ $tid .= $c;
434
+ }
435
+
436
+ return $tid;
437
+ }
438
+
439
  }
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Client/Exception/ExceptionInterface.php CHANGED
@@ -1,19 +1,19 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_Stdlib_Client_Exception_ExceptionInterface
14
- * @category WirecardCEE
15
- * @package WirecardCEE_Stdlib
16
- * @subpackage Client_Exception
17
- * @version 3.2.0
18
- */
19
  interface WirecardCEE_Stdlib_Client_Exception_ExceptionInterface extends WirecardCEE_Stdlib_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_Stdlib_Client_Exception_ExceptionInterface
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_Stdlib
16
+ * @subpackage Client_Exception
17
+ * @version 3.2.0
18
+ */
19
  interface WirecardCEE_Stdlib_Client_Exception_ExceptionInterface extends WirecardCEE_Stdlib_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Client/Exception/InvalidResponseException.php CHANGED
@@ -1,19 +1,19 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * @name WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
14
- * @category WirecardCEE
15
- * @package WirecardCEE_Stdlib
16
- * @subpackage Client_Exception
17
- * @version 3.2.0
18
- */
19
- class WirecardCEE_Stdlib_Client_Exception_InvalidResponseException extends Exception implements WirecardCEE_Stdlib_Client_Exception_ExceptionInterface {}
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * @name WirecardCEE_Stdlib_Client_Exception_InvalidResponseException
14
+ * @category WirecardCEE
15
+ * @package WirecardCEE_Stdlib
16
+ * @subpackage Client_Exception
17
+ * @version 3.2.0
18
+ */
19
+ class WirecardCEE_Stdlib_Client_Exception_InvalidResponseException extends Exception implements WirecardCEE_Stdlib_Client_Exception_ExceptionInterface {}
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Config.php CHANGED
@@ -1,194 +1,194 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig. Software & Service Copyright (C) by Wirecard Central Eastern
6
- * Europe GmbH, FB-Nr: FN 195599 x, http://www.wirecard.at
7
- */
8
- /**
9
- *
10
- * @name WirecardCEE_Stdlib_Config
11
- * @category WirecardCEE
12
- * @package WirecardCEE_Stdlib
13
- * @version 3.2.0
14
- */
15
- class WirecardCEE_Stdlib_Config implements Countable, Iterator {
16
- /**
17
- * Iteration index
18
- *
19
- * @var integer
20
- */
21
- protected $_index;
22
-
23
- /**
24
- * Number of elements in configuration data
25
- *
26
- * @var integer
27
- */
28
- protected $_count;
29
-
30
- /**
31
- * Contains array of configuration data
32
- *
33
- * @var array
34
- */
35
- protected $_data;
36
-
37
- /**
38
- * Used when unsetting values during iteration to ensure we do not skip
39
- * the next element
40
- *
41
- * @var boolean
42
- */
43
- protected $_skipNextIteration;
44
-
45
- /**
46
- * WirecardCEE_Stdlib_Config provides a property based interface to
47
- * an array.
48
- * The data are read-only unless $allowModifications
49
- * is set to true on construction.
50
- *
51
- * WirecardCEE_Stdlib_Config also implements Countable and Iterator to
52
- * facilitate easy access to the data.
53
- *
54
- * @param array $array
55
- * @return void
56
- */
57
- public function __construct(array $array) {
58
- $this->_index = 0;
59
- $this->_data = array();
60
- foreach($array as $key => $value) {
61
- if(is_array($value)) {
62
- $this->_data[$key] = new self($value);
63
- }
64
- else {
65
- $this->_data[$key] = $value;
66
- }
67
- }
68
- $this->_count = count($this->_data);
69
- }
70
-
71
- /**
72
- * Support isset() overloading on PHP 5.1
73
- *
74
- * @param string $name
75
- * @return boolean
76
- */
77
- public function __isset($name) {
78
- return (bool) isset($this->_data[$name]);
79
- }
80
-
81
- /**
82
- * Support unset() overloading on PHP 5.1
83
- *
84
- * @param string $name
85
- * @return void
86
- */
87
- public function __unset($name) {
88
- unset($this->_data[$name]);
89
- $this->_count = count($this->_data);
90
- $this->_skipNextIteration = true;
91
- }
92
-
93
- /**
94
- * Magic function so that $obj->value will work.
95
- *
96
- * @param string $name
97
- * @return mixed
98
- */
99
- public function __get($name) {
100
- return $this->get($name);
101
- }
102
-
103
- /**
104
- * Retrieve a value and return $default if there is no element set.
105
- *
106
- * @param string $name
107
- * @param mixed $default
108
- * @return mixed
109
- */
110
- public function get($name, $default = null) {
111
- $result = $default;
112
- if(array_key_exists($name, $this->_data)) {
113
- $result = $this->_data[$name];
114
- }
115
- return $result;
116
- }
117
-
118
- /**
119
- * Defined by Countable interface
120
- *
121
- * @return int
122
- */
123
- public function count() {
124
- return $this->_count;
125
- }
126
-
127
- /**
128
- * Defined by Iterator interface
129
- *
130
- * @return mixed
131
- */
132
- public function current() {
133
- $this->_skipNextIteration = false;
134
- return current($this->_data);
135
- }
136
-
137
- /**
138
- * Defined by Iterator interface
139
- *
140
- * @return mixed
141
- */
142
- public function key() {
143
- return key($this->_data);
144
- }
145
-
146
- /**
147
- * Defined by Iterator interface
148
- */
149
- public function next() {
150
- if($this->_skipNextIteration) {
151
- $this->_skipNextIteration = false;
152
- return;
153
- }
154
- next($this->_data);
155
- $this->_index++;
156
- }
157
-
158
- /**
159
- * Defined by Iterator interface
160
- */
161
- public function rewind() {
162
- $this->_skipNextIteration = false;
163
- reset($this->_data);
164
- $this->_index = 0;
165
- }
166
-
167
- /**
168
- * Defined by Iterator interface
169
- *
170
- * @return boolean
171
- */
172
- public function valid() {
173
- return $this->_index < $this->_count;
174
- }
175
-
176
- /**
177
- * Return an associative array of the stored data.
178
- *
179
- * @return array
180
- */
181
- public function toArray() {
182
- $array = array();
183
- $data = $this->_data;
184
- foreach($data as $key => $value) {
185
- if($value instanceof WirecardCEE_Stdlib_Config) {
186
- $array[$key] = $value->toArray();
187
- }
188
- else {
189
- $array[$key] = $value;
190
- }
191
- }
192
- return $array;
193
- }
194
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig. Software & Service Copyright (C) by Wirecard Central Eastern
6
+ * Europe GmbH, FB-Nr: FN 195599 x, http://www.wirecard.at
7
+ */
8
+ /**
9
+ *
10
+ * @name WirecardCEE_Stdlib_Config
11
+ * @category WirecardCEE
12
+ * @package WirecardCEE_Stdlib
13
+ * @version 3.2.0
14
+ */
15
+ class WirecardCEE_Stdlib_Config implements Countable, Iterator {
16
+ /**
17
+ * Iteration index
18
+ *
19
+ * @var integer
20
+ */
21
+ protected $_index;
22
+
23
+ /**
24
+ * Number of elements in configuration data
25
+ *
26
+ * @var integer
27
+ */
28
+ protected $_count;
29
+
30
+ /**
31
+ * Contains array of configuration data
32
+ *
33
+ * @var array
34
+ */
35
+ protected $_data;
36
+
37
+ /**
38
+ * Used when unsetting values during iteration to ensure we do not skip
39
+ * the next element
40
+ *
41
+ * @var boolean
42
+ */
43
+ protected $_skipNextIteration;
44
+
45
+ /**
46
+ * WirecardCEE_Stdlib_Config provides a property based interface to
47
+ * an array.
48
+ * The data are read-only unless $allowModifications
49
+ * is set to true on construction.
50
+ *
51
+ * WirecardCEE_Stdlib_Config also implements Countable and Iterator to
52
+ * facilitate easy access to the data.
53
+ *
54
+ * @param array $array
55
+ * @return void
56
+ */
57
+ public function __construct(array $array) {
58
+ $this->_index = 0;
59
+ $this->_data = array();
60
+ foreach($array as $key => $value) {
61
+ if(is_array($value)) {
62
+ $this->_data[$key] = new self($value);
63
+ }
64
+ else {
65
+ $this->_data[$key] = $value;
66
+ }
67
+ }
68
+ $this->_count = count($this->_data);
69
+ }
70
+
71
+ /**
72
+ * Support isset() overloading on PHP 5.1
73
+ *
74
+ * @param string $name
75
+ * @return boolean
76
+ */
77
+ public function __isset($name) {
78
+ return (bool) isset($this->_data[$name]);
79
+ }
80
+
81
+ /**
82
+ * Support unset() overloading on PHP 5.1
83
+ *
84
+ * @param string $name
85
+ * @return void
86
+ */
87
+ public function __unset($name) {
88
+ unset($this->_data[$name]);
89
+ $this->_count = count($this->_data);
90
+ $this->_skipNextIteration = true;
91
+ }
92
+
93
+ /**
94
+ * Magic function so that $obj->value will work.
95
+ *
96
+ * @param string $name
97
+ * @return mixed
98
+ */
99
+ public function __get($name) {
100
+ return $this->get($name);
101
+ }
102
+
103
+ /**
104
+ * Retrieve a value and return $default if there is no element set.
105
+ *
106
+ * @param string $name
107
+ * @param mixed $default
108
+ * @return mixed
109
+ */
110
+ public function get($name, $default = null) {
111
+ $result = $default;
112
+ if(array_key_exists($name, $this->_data)) {
113
+ $result = $this->_data[$name];
114
+ }
115
+ return $result;
116
+ }
117
+
118
+ /**
119
+ * Defined by Countable interface
120
+ *
121
+ * @return int
122
+ */
123
+ public function count() {
124
+ return $this->_count;
125
+ }
126
+
127
+ /**
128
+ * Defined by Iterator interface
129
+ *
130
+ * @return mixed
131
+ */
132
+ public function current() {
133
+ $this->_skipNextIteration = false;
134
+ return current($this->_data);
135
+ }
136
+
137
+ /**
138
+ * Defined by Iterator interface
139
+ *
140
+ * @return mixed
141
+ */
142
+ public function key() {
143
+ return key($this->_data);
144
+ }
145
+
146
+ /**
147
+ * Defined by Iterator interface
148
+ */
149
+ public function next() {
150
+ if($this->_skipNextIteration) {
151
+ $this->_skipNextIteration = false;
152
+ return;
153
+ }
154
+ next($this->_data);
155
+ $this->_index++;
156
+ }
157
+
158
+ /**
159
+ * Defined by Iterator interface
160
+ */
161
+ public function rewind() {
162
+ $this->_skipNextIteration = false;
163
+ reset($this->_data);
164
+ $this->_index = 0;
165
+ }
166
+
167
+ /**
168
+ * Defined by Iterator interface
169
+ *
170
+ * @return boolean
171
+ */
172
+ public function valid() {
173
+ return $this->_index < $this->_count;
174
+ }
175
+
176
+ /**
177
+ * Return an associative array of the stored data.
178
+ *
179
+ * @return array
180
+ */
181
+ public function toArray() {
182
+ $array = array();
183
+ $data = $this->_data;
184
+ foreach($data as $key => $value) {
185
+ if($value instanceof WirecardCEE_Stdlib_Config) {
186
+ $array[$key] = $value->toArray();
187
+ }
188
+ else {
189
+ $array[$key] = $value;
190
+ }
191
+ }
192
+ return $array;
193
+ }
194
  }
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Config/client.config.php CHANGED
@@ -1,24 +1,24 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- return Array(
12
- 'MODULE_NAME' => 'WirecardCEE_Stdlib',
13
- 'MODULE_VERSION' => '3.0.0',
14
- 'DEPENDENCIES' => array(
15
- 'FRAMEWORK_NAME' => 'Zend_Framework',
16
- 'FRAMEWORK_VERSION' => Array(
17
- 'MINIMUM' => '1.11.10',
18
- 'CURRENT' => Zend_Version::VERSION
19
- ),
20
- 'SCRIPTING_LANG' => 'PHP',
21
- 'SCRIPTING_LANG_VERSION' => '5.2'
22
- ),
23
- 'USE_DEBUG' => FALSE
24
  );
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+ return Array(
12
+ 'MODULE_NAME' => 'WirecardCEE_Stdlib',
13
+ 'MODULE_VERSION' => '3.0.0',
14
+ 'DEPENDENCIES' => array(
15
+ 'FRAMEWORK_NAME' => 'Zend_Framework',
16
+ 'FRAMEWORK_VERSION' => Array(
17
+ 'MINIMUM' => '1.11.10',
18
+ 'CURRENT' => Zend_Version::VERSION
19
+ ),
20
+ 'SCRIPTING_LANG' => 'PHP',
21
+ 'SCRIPTING_LANG_VERSION' => '5.2'
22
+ ),
23
+ 'USE_DEBUG' => FALSE
24
  );
app/code/local/Wirecard/CheckoutSeamless/Stdlib/ConsumerData.php CHANGED
@@ -1,271 +1,271 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * Container class for consumerData
14
- *
15
- * @name WirecardCEE_Stdlib_ConsumerData
16
- * @category WirecardCEE
17
- * @package WirecardCEE_Stdlib
18
- * @subpackage ConsumerData
19
- * @version 3.2.0
20
- */
21
- class WirecardCEE_Stdlib_ConsumerData {
22
- /**
23
- *
24
- * @var string[]
25
- */
26
- protected $_consumerData = Array();
27
-
28
- /**
29
- *
30
- * @var string
31
- */
32
- protected static $IP_ADDRESS = 'IpAddress';
33
-
34
- /**
35
- *
36
- * @var string
37
- */
38
- protected static $USER_AGENT = 'UserAgent';
39
-
40
- /**
41
- *
42
- * @var string
43
- */
44
- protected static $PREFIX = 'consumer';
45
-
46
- /**
47
- *
48
- * @var string
49
- */
50
- protected static $EMAIL = 'Email';
51
-
52
- /**
53
- *
54
- * @var string
55
- */
56
- protected static $BIRTH_DATE = 'BirthDate';
57
-
58
- /**
59
- * @var string
60
- */
61
- protected static $COMPANY_NAME = 'companyName';
62
-
63
- /**
64
- * @var string
65
- */
66
- protected static $COMPANY_VAT_ID = 'companyVatId';
67
-
68
- /**
69
- * @var string
70
- */
71
- protected static $COMPANY_TRADE_REGISTRY_NUMBER = 'companyTradeRegistryNumber';
72
-
73
- /**
74
- *
75
- * @var string
76
- */
77
- protected static $TAX_IDENTIFICATION_NUMBER = 'TaxIdentificationNumber';
78
-
79
- /**
80
- *
81
- * @var string
82
- */
83
- protected static $DRIVERS_LICENSE_NUMBER = 'DriversLicenseNumber';
84
-
85
- /**
86
- *
87
- * @var string
88
- */
89
- protected static $DRIVERS_LICENSE_COUNTRY = 'DriversLicenseCountry';
90
-
91
- /**
92
- *
93
- * @var string
94
- */
95
- protected static $DRIVERS_LICENSE_STATE = 'DriversLicenseState';
96
-
97
- /**
98
- *
99
- * @var string
100
- */
101
- protected static $BIRTH_DATE_FORMAT = 'Y-m-d';
102
-
103
- /**
104
- * setter for the mail address of the consumer
105
- *
106
- * @param string $mailAddress
107
- * @return WirecardCEE_Stdlib_ConsumerData
108
- */
109
- public function setEmail($mailAddress) {
110
- $this->_setField(self::$EMAIL, $mailAddress);
111
- return $this;
112
- }
113
-
114
- /**
115
- * setter for the birthdate of the consumer
116
- *
117
- * @param DateTime $birthDate
118
- * @return WirecardCEE_Stdlib_ConsumerData
119
- */
120
- public function setBirthDate(DateTime $birthDate) {
121
- $this->_setField(self::$BIRTH_DATE, $birthDate->format(self::$BIRTH_DATE_FORMAT));
122
- return $this;
123
- }
124
-
125
- /**
126
- * setter for the tax identification number of the consumer
127
- *
128
- * @param string $taxIdentificationNumber
129
- * @return WirecardCEE_Stdlib_ConsumerData
130
- */
131
- public function setTaxIdentificationNumber($taxIdentificationNumber) {
132
- $this->_setField(self::$TAX_IDENTIFICATION_NUMBER, $taxIdentificationNumber);
133
- return $this;
134
- }
135
-
136
- /**
137
- * setter for the drivers license number of the consumer
138
- *
139
- * @param string $driversLicenseNumber
140
- * @return WirecardCEE_Stdlib_ConsumerData
141
- */
142
- public function setDriversLicenseNumber($driversLicenseNumber) {
143
- $this->_setField(self::$DRIVERS_LICENSE_NUMBER, $driversLicenseNumber);
144
- return $this;
145
- }
146
-
147
- /**
148
- * setter for the drivers license country of the consumer
149
- *
150
- * @param string $driversLicenseCountry
151
- * @return WirecardCEE_Stdlib_ConsumerData
152
- */
153
- public function setDriversLicenseCountry($driversLicenseCountry) {
154
- $this->_setField(self::$DRIVERS_LICENSE_COUNTRY, $driversLicenseCountry);
155
- return $this;
156
- }
157
-
158
- /**
159
- * setter for the drivers license state of the consumer
160
- *
161
- * @param string $driversLicenseState
162
- * @return WirecardCEE_Stdlib_ConsumerData
163
- */
164
- public function setDriversLicenseState($driversLicenseState) {
165
- $this->_setField(self::$DRIVERS_LICENSE_STATE, $driversLicenseState);
166
- return $this;
167
- }
168
-
169
- /**
170
- * @param string $companyName
171
- * @return WirecardCEE_Stdlib_ConsumerData
172
- */
173
- public function setCompanyName($companyName) {
174
- $this->_setField(self::$COMPANY_NAME, $companyName);
175
- return $this;
176
- }
177
-
178
- /**
179
- * @param string $companyVatId
180
- * @return WirecardCEE_Stdlib_ConsumerData
181
- */
182
- public function setCompanyVatId($companyVatId) {
183
- $this->_setField(self::$COMPANY_VAT_ID, $companyVatId);
184
- return $this;
185
- }
186
-
187
- /**
188
- * @param string $companyTradeRegistryNumber
189
- * @return WirecardCEE_Stdlib_ConsumerData
190
- */
191
- public function setCompanyTradeRegistryNumber($companyTradeRegistryNumber) {
192
- $this->_setField(self::$COMPANY_TRADE_REGISTRY_NUMBER, $companyTradeRegistryNumber);
193
- return $this;
194
- }
195
-
196
- /**
197
- * adds addressinformation to the consumerdata.
198
- * used {@link WirecardCEE_Stdlib_ConsumerData::getData()}
199
- *
200
- * @param WirecardCEE_Stdlib_ConsumerData_Address $address
201
- * @return WirecardCEE_Stdlib_ConsumerData
202
- */
203
- public function addAddressInformation(WirecardCEE_Stdlib_ConsumerData_Address $address) {
204
- $consumerData = array_merge($this->_consumerData, $address->getData());
205
- $this->_consumerData = $consumerData;
206
- return $this;
207
- }
208
-
209
- /**
210
- * setter for the consumer IP-Address
211
- *
212
- * @param string $consumerIpAddress
213
- * @return WirecardCEE_Stdlib_ConsumerData
214
- */
215
- public function setIpAddress($consumerIpAddress) {
216
- $this->_setField(self::$IP_ADDRESS, $consumerIpAddress);
217
- return $this;
218
- }
219
-
220
- /**
221
- * setter for the consumer user-agent
222
- *
223
- * @param string $consumerUserAgent
224
- * @return WirecardCEE_Stdlib_ConsumerData
225
- */
226
- public function setUserAgent($consumerUserAgent) {
227
- $this->_setField(self::$USER_AGENT, $consumerUserAgent);
228
- return $this;
229
- }
230
-
231
- /**
232
- * Getter for all consumerData
233
- *
234
- * @return string[]
235
- */
236
- public function getData() {
237
- return $this->_consumerData;
238
- }
239
-
240
- /**
241
- * Static getter for consumerUserAgentField
242
- *
243
- * @internal
244
- * @return string
245
- */
246
- public static function getConsumerUserAgentFieldName() {
247
- return self::$PREFIX . self::$USER_AGENT;
248
- }
249
-
250
- /**
251
- * Static getter for consumerIpField
252
- *
253
- * @internal
254
- * @return string
255
- */
256
- public static function getConsumerIpAddressFieldName() {
257
- return self::$PREFIX . self::$IP_ADDRESS;
258
- }
259
-
260
- /**
261
- * setter for consumerdata fields
262
- *
263
- * @param string $name
264
- * @param string $value
265
- * @access private
266
- */
267
- protected function _setField($name, $value) {
268
- // e.g. consumerBillingFirstname
269
- $this->_consumerData[self::$PREFIX . $name] = (string) $value;
270
- }
271
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * Container class for consumerData
14
+ *
15
+ * @name WirecardCEE_Stdlib_ConsumerData
16
+ * @category WirecardCEE
17
+ * @package WirecardCEE_Stdlib
18
+ * @subpackage ConsumerData
19
+ * @version 3.2.0
20
+ */
21
+ class WirecardCEE_Stdlib_ConsumerData {
22
+ /**
23
+ *
24
+ * @var string[]
25
+ */
26
+ protected $_consumerData = Array();
27
+
28
+ /**
29
+ *
30
+ * @var string
31
+ */
32
+ protected static $IP_ADDRESS = 'IpAddress';
33
+
34
+ /**
35
+ *
36
+ * @var string
37
+ */
38
+ protected static $USER_AGENT = 'UserAgent';
39
+
40
+ /**
41
+ *
42
+ * @var string
43
+ */
44
+ protected static $PREFIX = 'consumer';
45
+
46
+ /**
47
+ *
48
+ * @var string
49
+ */
50
+ protected static $EMAIL = 'Email';
51
+
52
+ /**
53
+ *
54
+ * @var string
55
+ */
56
+ protected static $BIRTH_DATE = 'BirthDate';
57
+
58
+ /**
59
+ * @var string
60
+ */
61
+ protected static $COMPANY_NAME = 'companyName';
62
+
63
+ /**
64
+ * @var string
65
+ */
66
+ protected static $COMPANY_VAT_ID = 'companyVatId';
67
+
68
+ /**
69
+ * @var string
70
+ */
71
+ protected static $COMPANY_TRADE_REGISTRY_NUMBER = 'companyTradeRegistryNumber';
72
+
73
+ /**
74
+ *
75
+ * @var string
76
+ */
77
+ protected static $TAX_IDENTIFICATION_NUMBER = 'TaxIdentificationNumber';
78
+
79
+ /**
80
+ *
81
+ * @var string
82
+ */
83
+ protected static $DRIVERS_LICENSE_NUMBER = 'DriversLicenseNumber';
84
+
85
+ /**
86
+ *
87
+ * @var string
88
+ */
89
+ protected static $DRIVERS_LICENSE_COUNTRY = 'DriversLicenseCountry';
90
+
91
+ /**
92
+ *
93
+ * @var string
94
+ */
95
+ protected static $DRIVERS_LICENSE_STATE = 'DriversLicenseState';
96
+
97
+ /**
98
+ *
99
+ * @var string
100
+ */
101
+ protected static $BIRTH_DATE_FORMAT = 'Y-m-d';
102
+
103
+ /**
104
+ * setter for the mail address of the consumer
105
+ *
106
+ * @param string $mailAddress
107
+ * @return WirecardCEE_Stdlib_ConsumerData
108
+ */
109
+ public function setEmail($mailAddress) {
110
+ $this->_setField(self::$EMAIL, $mailAddress);
111
+ return $this;
112
+ }
113
+
114
+ /**
115
+ * setter for the birthdate of the consumer
116
+ *
117
+ * @param DateTime $birthDate
118
+ * @return WirecardCEE_Stdlib_ConsumerData
119
+ */
120
+ public function setBirthDate(DateTime $birthDate) {
121
+ $this->_setField(self::$BIRTH_DATE, $birthDate->format(self::$BIRTH_DATE_FORMAT));
122
+ return $this;
123
+ }
124
+
125
+ /**
126
+ * setter for the tax identification number of the consumer
127
+ *
128
+ * @param string $taxIdentificationNumber
129
+ * @return WirecardCEE_Stdlib_ConsumerData
130
+ */
131
+ public function setTaxIdentificationNumber($taxIdentificationNumber) {
132
+ $this->_setField(self::$TAX_IDENTIFICATION_NUMBER, $taxIdentificationNumber);
133
+ return $this;
134
+ }
135
+
136
+ /**
137
+ * setter for the drivers license number of the consumer
138
+ *
139
+ * @param string $driversLicenseNumber
140
+ * @return WirecardCEE_Stdlib_ConsumerData
141
+ */
142
+ public function setDriversLicenseNumber($driversLicenseNumber) {
143
+ $this->_setField(self::$DRIVERS_LICENSE_NUMBER, $driversLicenseNumber);
144
+ return $this;
145
+ }
146
+
147
+ /**
148
+ * setter for the drivers license country of the consumer
149
+ *
150
+ * @param string $driversLicenseCountry
151
+ * @return WirecardCEE_Stdlib_ConsumerData
152
+ */
153
+ public function setDriversLicenseCountry($driversLicenseCountry) {
154
+ $this->_setField(self::$DRIVERS_LICENSE_COUNTRY, $driversLicenseCountry);
155
+ return $this;
156
+ }
157
+
158
+ /**
159
+ * setter for the drivers license state of the consumer
160
+ *
161
+ * @param string $driversLicenseState
162
+ * @return WirecardCEE_Stdlib_ConsumerData
163
+ */
164
+ public function setDriversLicenseState($driversLicenseState) {
165
+ $this->_setField(self::$DRIVERS_LICENSE_STATE, $driversLicenseState);
166
+ return $this;
167
+ }
168
+
169
+ /**
170
+ * @param string $companyName
171
+ * @return WirecardCEE_Stdlib_ConsumerData
172
+ */
173
+ public function setCompanyName($companyName) {
174
+ $this->_setField(self::$COMPANY_NAME, $companyName);
175
+ return $this;
176
+ }
177
+
178
+ /**
179
+ * @param string $companyVatId
180
+ * @return WirecardCEE_Stdlib_ConsumerData
181
+ */
182
+ public function setCompanyVatId($companyVatId) {
183
+ $this->_setField(self::$COMPANY_VAT_ID, $companyVatId);
184
+ return $this;
185
+ }
186
+
187
+ /**
188
+ * @param string $companyTradeRegistryNumber
189
+ * @return WirecardCEE_Stdlib_ConsumerData
190
+ */
191
+ public function setCompanyTradeRegistryNumber($companyTradeRegistryNumber) {
192
+ $this->_setField(self::$COMPANY_TRADE_REGISTRY_NUMBER, $companyTradeRegistryNumber);
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * adds addressinformation to the consumerdata.
198
+ * used {@link WirecardCEE_Stdlib_ConsumerData::getData()}
199
+ *
200
+ * @param WirecardCEE_Stdlib_ConsumerData_Address $address
201
+ * @return WirecardCEE_Stdlib_ConsumerData
202
+ */
203
+ public function addAddressInformation(WirecardCEE_Stdlib_ConsumerData_Address $address) {
204
+ $consumerData = array_merge($this->_consumerData, $address->getData());
205
+ $this->_consumerData = $consumerData;
206
+ return $this;
207
+ }
208
+
209
+ /**
210
+ * setter for the consumer IP-Address
211
+ *
212
+ * @param string $consumerIpAddress
213
+ * @return WirecardCEE_Stdlib_ConsumerData
214
+ */
215
+ public function setIpAddress($consumerIpAddress) {
216
+ $this->_setField(self::$IP_ADDRESS, $consumerIpAddress);
217
+ return $this;
218
+ }
219
+
220
+ /**
221
+ * setter for the consumer user-agent
222
+ *
223
+ * @param string $consumerUserAgent
224
+ * @return WirecardCEE_Stdlib_ConsumerData
225
+ */
226
+ public function setUserAgent($consumerUserAgent) {
227
+ $this->_setField(self::$USER_AGENT, $consumerUserAgent);
228
+ return $this;
229
+ }
230
+
231
+ /**
232
+ * Getter for all consumerData
233
+ *
234
+ * @return string[]
235
+ */
236
+ public function getData() {
237
+ return $this->_consumerData;
238
+ }
239
+
240
+ /**
241
+ * Static getter for consumerUserAgentField
242
+ *
243
+ * @internal
244
+ * @return string
245
+ */
246
+ public static function getConsumerUserAgentFieldName() {
247
+ return self::$PREFIX . self::$USER_AGENT;
248
+ }
249
+
250
+ /**
251
+ * Static getter for consumerIpField
252
+ *
253
+ * @internal
254
+ * @return string
255
+ */
256
+ public static function getConsumerIpAddressFieldName() {
257
+ return self::$PREFIX . self::$IP_ADDRESS;
258
+ }
259
+
260
+ /**
261
+ * setter for consumerdata fields
262
+ *
263
+ * @param string $name
264
+ * @param string $value
265
+ * @access private
266
+ */
267
+ protected function _setField($name, $value) {
268
+ // e.g. consumerBillingFirstname
269
+ $this->_consumerData[self::$PREFIX . $name] = (string) $value;
270
+ }
271
  }
app/code/local/Wirecard/CheckoutSeamless/Stdlib/ConsumerData/Address.php CHANGED
@@ -1,262 +1,262 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
-
12
- /**
13
- * Container class for consumerData
14
- *
15
- * @name WirecardCEE_Stdlib_ConsumerData
16
- * @category WirecardCEE
17
- * @package WirecardCEE_Stdlib
18
- * @subpackage ConsumerData
19
- * @version 3.2.0
20
- */
21
- class WirecardCEE_Stdlib_ConsumerData_Address {
22
- /**
23
- * Constant: Shipping
24
- * @var string
25
- */
26
- const TYPE_SHIPPING = 'Shipping';
27
-
28
- /**
29
- * Constant: Billing
30
- * @var string
31
- */
32
- const TYPE_BILLING = 'Billing';
33
-
34
- /**
35
- * Consumer
36
- * @staticvar string
37
- * @internal
38
- */
39
- protected static $PREFIX = 'consumer';
40
-
41
- /**
42
- * Firstname
43
- * @staticvar string
44
- * @internal
45
- */
46
- protected static $FIRSTNAME = 'Firstname';
47
-
48
- /**
49
- * Lastname
50
- * @staticvar string
51
- * @internal
52
- */
53
- protected static $LASTNAME = 'Lastname';
54
-
55
- /**
56
- * Address1
57
- * @staticvar string
58
- * @internal
59
- */
60
- protected static $ADDRESS1 = 'Address1';
61
-
62
- /**
63
- * Address2
64
- * @staticvar string
65
- * @internal
66
- */
67
- protected static $ADDRESS2 = 'Address2';
68
-
69
- /**
70
- * City
71
- * @staticvar string
72
- * @internal
73
- */
74
- protected static $CITY = 'City';
75
-
76
- /**
77
- * Country
78
- * @staticvar string
79
- * @internal
80
- */
81
- protected static $COUNTRY = 'Country';
82
-
83
- /**
84
- * State
85
- * @staticvar string
86
- * @internal
87
- */
88
- protected static $STATE = 'State';
89
-
90
- /**
91
- * ZipCode
92
- * @staticvar string
93
- * @internal
94
- */
95
- protected static $ZIP_CODE = 'ZipCode';
96
-
97
- /**
98
- * Phone
99
- * @staticvar string
100
- * @internal
101
- */
102
- protected static $PHONE = 'Phone';
103
-
104
- /**
105
- * Fax
106
- * @staticvar string
107
- * @internal
108
- */
109
- protected static $FAX = 'Fax';
110
-
111
- /**
112
- * Address type
113
- * @var string
114
- */
115
- protected $_addressType;
116
-
117
- /**
118
- * Internal address data holder
119
- * @var array
120
- */
121
- protected $_addressData = Array();
122
-
123
- /**
124
- * creates an instance of the WirecardCEE_Stdlib_ConsumerData_Address object.
125
- * addressType should be Shipping or Billing.
126
- *
127
- * @param string $addressType
128
- */
129
- public function __construct($addressType) {
130
- $this->_addressType = $addressType;
131
- }
132
-
133
- /**
134
- * setter for the firstname used for the given address.
135
- *
136
- * @param string $firstname
137
- * @return WirecardCEE_Stdlib_ConsumerData_Address
138
- */
139
- public function setFirstname($firstname) {
140
- $this->_setField(self::$FIRSTNAME, $firstname);
141
- return $this;
142
- }
143
-
144
- /**
145
- * setter for the lastname used for the given address.
146
- *
147
- * @param string $lastname
148
- * @return WirecardCEE_Stdlib_ConsumerData_Address
149
- */
150
- public function setLastname($lastname) {
151
- $this->_setField(self::$LASTNAME, $lastname);
152
- return $this;
153
- }
154
-
155
- /**
156
- * setter for the addressfield 1 used for the given address.
157
- *
158
- * @param string $address1
159
- * @return WirecardCEE_Stdlib_ConsumerData_Address
160
- */
161
- public function setAddress1($address1) {
162
- $this->_setField(self::$ADDRESS1, $address1);
163
- return $this;
164
- }
165
-
166
- /**
167
- * setter for the addressfield 2 used for the given address.
168
- *
169
- * @param string $address2
170
- * @return WirecardCEE_Stdlib_ConsumerData_Address
171
- */
172
- public function setAddress2($address2) {
173
- $this->_setField(self::$ADDRESS2, $address2);
174
- return $this;
175
- }
176
-
177
- /**
178
- * setter for the city used for the given address.
179
- *
180
- * @param string $city
181
- * @return WirecardCEE_Stdlib_ConsumerData_Address
182
- */
183
- public function setCity($city) {
184
- $this->_setField(self::$CITY, $city);
185
- return $this;
186
- }
187
-
188
- /**
189
- * setter for the country used for the given address.
190
- *
191
- * @param string $country
192
- * @return WirecardCEE_Stdlib_ConsumerData_Address
193
- */
194
- public function setCountry($country) {
195
- $this->_setField(self::$COUNTRY, $country);
196
- return $this;
197
- }
198
-
199
- /**
200
- * setter for the state used for the given address.
201
- *
202
- * @param string $state
203
- * @return WirecardCEE_Stdlib_ConsumerData_Address
204
- */
205
- public function setState($state) {
206
- $this->_setField(self::$STATE, $state);
207
- return $this;
208
- }
209
-
210
- /**
211
- * setter for the zip code used for the given address.
212
- *
213
- * @param string $zipCode
214
- * @return WirecardCEE_Stdlib_ConsumerData_Address
215
- */
216
- public function setZipCode($zipCode) {
217
- $this->_setField(self::$ZIP_CODE, $zipCode);
218
- return $this;
219
- }
220
-
221
- /**
222
- * setter for the phone number used for the given address.
223
- *
224
- * @param string $phone
225
- * @return WirecardCEE_Stdlib_ConsumerData_Address
226
- */
227
- public function setPhone($phone) {
228
- $this->_setField(self::$PHONE, $phone);
229
- return $this;
230
- }
231
-
232
- /**
233
- * setter for the fax number used for the given address.
234
- *
235
- * @param string $fax
236
- * @return WirecardCEE_Stdlib_ConsumerData_Address
237
- */
238
- public function setFax($fax) {
239
- $this->_setField(self::$FAX, $fax);
240
- return $this;
241
- }
242
-
243
- /**
244
- * setter for an addressfield.
245
- *
246
- * @param string $name
247
- * @param string $value
248
- */
249
- protected function _setField($name, $value) {
250
- // e.g. consumerBillingFirstname
251
- $this->_addressData[self::$PREFIX . $this->_addressType . $name] = (string) $value;
252
- }
253
-
254
- /**
255
- * returns the given addressfields as an array
256
- *
257
- * @return string[]
258
- */
259
- public function getData() {
260
- return $this->_addressData;
261
- }
262
  }
1
+ <?php
2
+ /*
3
+ * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
+ * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
+ * unzulaessig.
6
+ *
7
+ * Software & Service Copyright (C) by
8
+ * Wirecard Central Eastern Europe GmbH,
9
+ * FB-Nr: FN 195599 x, http://www.wirecard.at
10
+ */
11
+
12
+ /**
13
+ * Container class for consumerData
14
+ *
15
+ * @name WirecardCEE_Stdlib_ConsumerData
16
+ * @category WirecardCEE
17
+ * @package WirecardCEE_Stdlib
18
+ * @subpackage ConsumerData
19
+ * @version 3.2.0
20
+ */
21
+ class WirecardCEE_Stdlib_ConsumerData_Address {
22
+ /**
23
+ * Constant: Shipping
24
+ * @var string
25
+ */
26
+ const TYPE_SHIPPING = 'Shipping';
27
+
28
+ /**
29
+ * Constant: Billing
30
+ * @var string
31
+ */
32
+ const TYPE_BILLING = 'Billing';
33
+
34
+ /**
35
+ * Consumer
36
+ * @staticvar string
37
+ * @internal
38
+ */
39
+ protected static $PREFIX = 'consumer';
40
+
41
+ /**
42
+ * Firstname
43
+ * @staticvar string
44
+ * @internal
45
+ */
46
+ protected static $FIRSTNAME = 'Firstname';
47
+
48
+ /**
49
+ * Lastname
50
+ * @staticvar string
51
+ * @internal
52
+ */
53
+ protected static $LASTNAME = 'Lastname';
54
+
55
+ /**
56
+ * Address1
57
+ * @staticvar string
58
+ * @internal
59
+ */
60
+ protected static $ADDRESS1 = 'Address1';
61
+
62
+ /**
63
+ * Address2
64
+ * @staticvar string
65
+ * @internal
66
+ */
67
+ protected static $ADDRESS2 = 'Address2';
68
+
69
+ /**
70
+ * City
71
+ * @staticvar string
72
+ * @internal
73
+ */
74
+ protected static $CITY = 'City';
75
+
76
+ /**
77
+ * Country
78
+ * @staticvar string
79
+ * @internal
80
+ */
81
+ protected static $COUNTRY = 'Country';
82
+
83
+ /**
84
+ * State
85
+ * @staticvar string
86
+ * @internal
87
+ */
88
+ protected static $STATE = 'State';
89
+
90
+ /**
91
+ * ZipCode
92
+ * @staticvar string
93
+ * @internal
94
+ */
95
+ protected static $ZIP_CODE = 'ZipCode';
96
+
97
+ /**
98
+ * Phone
99
+ * @staticvar string
100
+ * @internal
101
+ */
102
+ protected static $PHONE = 'Phone';
103
+
104
+ /**
105
+ * Fax
106
+ * @staticvar string
107
+ * @internal
108
+ */
109
+ protected static $FAX = 'Fax';
110
+
111
+ /**
112
+ * Address type
113
+ * @var string
114
+ */
115
+ protected $_addressType;
116
+
117
+ /**
118
+ * Internal address data holder
119
+ * @var array
120
+ */
121
+ protected $_addressData = Array();
122
+
123
+ /**
124
+ * creates an instance of the WirecardCEE_Stdlib_ConsumerData_Address object.
125
+ * addressType should be Shipping or Billing.
126
+ *
127
+ * @param string $addressType
128
+ */
129
+ public function __construct($addressType) {
130
+ $this->_addressType = $addressType;
131
+ }
132
+
133
+ /**
134
+ * setter for the firstname used for the given address.
135
+ *
136
+ * @param string $firstname
137
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
138
+ */
139
+ public function setFirstname($firstname) {
140
+ $this->_setField(self::$FIRSTNAME, $firstname);
141
+ return $this;
142
+ }
143
+
144
+ /**
145
+ * setter for the lastname used for the given address.
146
+ *
147
+ * @param string $lastname
148
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
149
+ */
150
+ public function setLastname($lastname) {
151
+ $this->_setField(self::$LASTNAME, $lastname);
152
+ return $this;
153
+ }
154
+
155
+ /**
156
+ * setter for the addressfield 1 used for the given address.
157
+ *
158
+ * @param string $address1
159
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
160
+ */
161
+ public function setAddress1($address1) {
162
+ $this->_setField(self::$ADDRESS1, $address1);
163
+ return $this;
164
+ }
165
+
166
+ /**
167
+ * setter for the addressfield 2 used for the given address.
168
+ *
169
+ * @param string $address2
170
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
171
+ */
172
+ public function setAddress2($address2) {
173
+ $this->_setField(self::$ADDRESS2, $address2);
174
+ return $this;
175
+ }
176
+
177
+ /**
178
+ * setter for the city used for the given address.
179
+ *
180
+ * @param string $city
181
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
182
+ */
183
+ public function setCity($city) {
184
+ $this->_setField(self::$CITY, $city);
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * setter for the country used for the given address.
190
+ *
191
+ * @param string $country
192
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
193
+ */
194
+ public function setCountry($country) {
195
+ $this->_setField(self::$COUNTRY, $country);
196
+ return $this;
197
+ }
198
+
199
+ /**
200
+ * setter for the state used for the given address.
201
+ *
202
+ * @param string $state
203
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
204
+ */
205
+ public function setState($state) {
206
+ $this->_setField(self::$STATE, $state);
207
+ return $this;
208
+ }
209
+
210
+ /**
211
+ * setter for the zip code used for the given address.
212
+ *
213
+ * @param string $zipCode
214
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
215
+ */
216
+ public function setZipCode($zipCode) {
217
+ $this->_setField(self::$ZIP_CODE, $zipCode);
218
+ return $this;
219
+ }
220
+
221
+ /**
222
+ * setter for the phone number used for the given address.
223
+ *
224
+ * @param string $phone
225
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
226
+ */
227
+ public function setPhone($phone) {
228
+ $this->_setField(self::$PHONE, $phone);
229
+ return $this;
230
+ }
231
+
232
+ /**
233
+ * setter for the fax number used for the given address.
234
+ *
235
+ * @param string $fax
236
+ * @return WirecardCEE_Stdlib_ConsumerData_Address
237
+ */
238
+ public function setFax($fax) {
239
+ $this->_setField(self::$FAX, $fax);
240
+ return $this;
241
+ }
242
+
243
+ /**
244
+ * setter for an addressfield.
245
+ *
246
+ * @param string $name
247
+ * @param string $value
248
+ */
249
+ protected function _setField($name, $value) {
250
+ // e.g. consumerBillingFirstname
251
+ $this->_addressData[self::$PREFIX . $this->_addressType . $name] = (string) $value;
252
+ }
253
+
254
+ /**
255
+ * returns the given addressfields as an array
256
+ *
257
+ * @return string[]
258
+ */
259
+ public function getData() {
260
+ return $this->_addressData;
261
+ }
262
  }
app/code/local/Wirecard/CheckoutSeamless/Stdlib/Error.php CHANGED
@@ -1,73 +1,73 @@
1
- <?php
2
- /*
3
- * Die vorliegende Software ist Eigentum von Wirecard CEE und daher vertraulich
4
- * zu behandeln. Jegliche Weitergabe an dritte, in welcher Form auch immer, ist
5
- * unzulaessig.
6
- *
7
- * Software & Service Copyright (C) by
8
- * Wirecard Central Eastern Europe GmbH,
9
- * FB-Nr: FN 195599 x, http://www.wirecard.at
10
- */
11
- /**
12
- * @name WirecardCEE_Stdlib_Error
13
- * @category WirecardCEE
14
- * @package WirecardCEE_Stdlib
15
- * @version 3.2.0
16
- * @abstract
17
- */
18
- abstract class WirecardCEE_Stdlib_Error {
19
-
20
- /**
21
- * Error message
22
- *
23
- * @var string
24
- */
25
- protected $_message = null;
26
-
27
- /**
28
- * Consumer message
29
- *
30
- * @var string
31
- */
32
- protected $_consumerMessage = null;
33
-
34
- /**
35
- * Message getter
36
- *
37
- * @return string
38
- */
39
- public function getMessage() {
40
- return (string) $this->_message;
41
- }
42
-
43
- /**
44
- * Error Message setter
45
- *
46
- * @param string $message
47
- * @return WirecardCEE_Stdlib_Error
48
- */
49
- public function setMessage($message) {
50
- $this->_message = (string) $message;
51
- return $this;
52
- }
53
-
54
- /**
55
- * Consumer message setter
56
- *
57
- * @param string $consumerMessage
58
- * @return WirecardCEE_Stdlib_Error
59
- */
60
- public function setConsumerMessage($consumerMessage) {
61
- $this->_consumerM