Mage_Payone - Version 3.1.8

Version Notes

Mage_Payone-3.1.8

Download this release

Release Info

Developer noovias
Extension Mage_Payone
Version 3.1.8
Comparing to
See all releases


Code changes from version 3.1.6 to 3.1.8

Files changed (192) hide show
  1. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/KlarnaStoreId.php +77 -0
  2. app/code/community/Payone/Core/Block/Checkout/Onepage/Review/SepaMandate.php +109 -0
  3. app/code/community/Payone/Core/Block/Checkout/Onepage/Success/SepaMandatePdfLink.php +157 -0
  4. app/code/community/Payone/Core/Block/Payment/Method/Form/DebitPayment.php +28 -0
  5. app/code/community/Payone/Core/Block/Payment/Method/Form/OnlineBankTransfer.php +10 -0
  6. app/code/community/Payone/Core/Block/Payment/Method/Form/SafeInvoice.php +35 -0
  7. app/code/community/Payone/Core/Block/Payment/Method/Form/SafeInvoice/Klarna.php +258 -0
  8. app/code/community/Payone/Core/Block/Payment/Method/Info/CashOnDelivery.php +40 -40
  9. app/code/community/Payone/Core/Block/Payment/Method/Info/DebitPayment.php +16 -0
  10. app/code/community/Payone/Core/Block/Payment/Method/Info/OnlineBankTransfer.php +16 -0
  11. app/code/community/Payone/Core/Block/Payment/Method/Info/SafeInvoice.php +163 -163
  12. app/code/community/Payone/Core/Model/Config/General/Global.php +246 -246
  13. app/code/community/Payone/Core/Model/Config/Payment/Method.php +123 -0
  14. app/code/community/Payone/Core/Model/Config/Payment/Method/Interface.php +60 -0
  15. app/code/community/Payone/Core/Model/Domain/Config/PaymentMethod.php +36 -0
  16. app/code/community/Payone/Core/Model/Factory.php +126 -0
  17. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Management/GetFile.php +87 -0
  18. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Management/ManageMandate.php +143 -0
  19. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Abstract.php +541 -508
  20. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Authorize.php +10 -0
  21. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Authorize/Abstract.php +174 -23
  22. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Capture.php +20 -9
  23. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Debit.php +15 -2
  24. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Preauthorize.php +9 -0
  25. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/AddressCheck.php +113 -113
  26. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/BankAccountCheck.php +7 -2
  27. app/code/community/Payone/Core/Model/Observer/Checkout/Onepage.php +0 -39
  28. app/code/community/Payone/Core/Model/Observer/Checkout/Onepage/DebitPayment.php +199 -0
  29. app/code/community/Payone/Core/Model/Observer/Sales/Order.php +78 -78
  30. app/code/community/Payone/Core/Model/Observer/TransactionStatus/InvoiceCreate.php +206 -206
  31. app/code/community/Payone/Core/Model/Payment/Method/Abstract.php +38 -4
  32. app/code/community/Payone/Core/Model/Payment/Method/Financing.php +0 -1
  33. app/code/community/Payone/Core/Model/Payment/Method/SafeInvoice.php +136 -137
  34. app/code/community/Payone/Core/Model/Service/Config/XmlGenerate.php +26 -0
  35. app/code/community/Payone/Core/Model/Service/Management/GetFile.php +92 -0
  36. app/code/community/Payone/Core/Model/Service/Management/ManageMandate.php +100 -0
  37. app/code/community/Payone/Core/Model/Service/Payment/Abstract.php +154 -154
  38. app/code/community/Payone/Core/Model/Service/TransactionStatus/Process.php +194 -194
  39. app/code/community/Payone/Core/Model/Service/TransactionStatus/StoreClearingParameters.php +83 -83
  40. app/code/community/Payone/Core/Model/Service/Verification/BankAccountCheck.php +7 -3
  41. app/code/community/Payone/Core/Model/System/Config/Abstract.php +21 -0
  42. app/code/community/Payone/Core/Model/System/Config/FinancingType.php +2 -0
  43. app/code/community/Payone/Core/Model/System/Config/KlarnaCountry.php +81 -0
  44. app/code/community/Payone/Core/Model/System/Config/SafeInvoiceType.php +4 -1
  45. app/code/community/Payone/Core/Model/System/Config/SepaCountry.php +59 -0
  46. app/code/community/Payone/Core/controllers/Checkout/Onepage/PaymentController.php +207 -207
  47. app/code/community/Payone/Core/controllers/Checkout/Onepage/SuccessController.php +74 -0
  48. app/code/community/Payone/Core/controllers/Checkout/OnepageController.php +60 -6
  49. app/code/community/Payone/Core/etc/config.xml +45 -1
  50. app/code/community/Payone/Core/etc/system.xml +49 -0
  51. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.0.3-3.0.4.php +50 -50
  52. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.0.8-3.0.9.php +59 -59
  53. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.3-3.1.4.php +59 -59
  54. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.4-3.1.5.php +58 -58
  55. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.6-3.1.7.php +169 -0
  56. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.7-3.1.8.php +88 -0
  57. app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.3-3.1.4.sql +10 -10
  58. app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.4-3.1.5.sql +6 -6
  59. app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.6-3.1.7.sql +31 -0
  60. app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.7-3.1.8.sql +30 -0
  61. app/design/adminhtml/default/default/layout/payone/core.xml +3 -0
  62. app/design/adminhtml/default/default/template/payone/core/payment/method/form/debitpayment.phtml +97 -45
  63. app/design/adminhtml/default/default/template/payone/core/payment/method/info/cashondelivery.phtml +32 -32
  64. app/design/adminhtml/default/default/template/payone/core/payment/method/info/debitpayment.phtml +17 -6
  65. app/design/adminhtml/default/default/template/payone/core/payment/method/info/onlinebanktransfer.phtml +18 -7
  66. app/design/frontend/base/default/layout/payone/core.xml +25 -0
  67. app/design/frontend/base/default/template/payone/core/checkout/onepage/review/sepamandate.phtml +24 -0
  68. app/design/frontend/base/default/template/payone/core/checkout/onepage/success/sepamandatepdflink.phtml +30 -0
  69. app/design/frontend/base/default/template/payone/core/checkout/protect.phtml +2 -7
  70. app/design/frontend/base/default/template/payone/core/payment/method/form/creditcard.phtml +5 -5
  71. app/design/frontend/base/default/template/payone/core/payment/method/form/debitpayment.phtml +72 -21
  72. app/design/frontend/base/default/template/payone/core/payment/method/form/financing.phtml +1 -1
  73. app/design/frontend/base/default/template/payone/core/payment/method/form/onlinebanktransfer.phtml +65 -13
  74. app/design/frontend/base/default/template/payone/core/payment/method/form/onlinebanktransfer/bankgroup.phtml +74 -74
  75. app/design/frontend/base/default/template/payone/core/payment/method/form/safe_invoice.phtml +7 -1
  76. app/design/frontend/base/default/template/payone/core/payment/method/form/safe_invoice/klarna.phtml +191 -0
  77. app/design/frontend/base/default/template/payone/core/payment/method/form/safe_invoice/klarna/scripts.phtml +25 -0
  78. app/design/frontend/base/default/template/payone/core/payment/method/form/wallet.phtml +1 -1
  79. app/design/frontend/base/default/template/payone/core/payment/method/info/debitpayment.phtml +18 -7
  80. app/design/frontend/base/default/template/payone/core/payment/method/info/onlinebanktransfer.phtml +17 -6
  81. app/design/frontend/base/default/template/payone/core/payment/method/info/safe_invoice.phtml +47 -47
  82. app/locale/de_DE/Payone_Core.csv +27 -1
  83. app/locale/en_US/Payone_Core.csv +2 -1
  84. js/payone/core/creditcard.js +1 -1
  85. js/payone/core/debitpayment.js +138 -0
  86. js/payone/core/klarna.js +38 -0
  87. js/payone/core/onlinebanktransfer.js +35 -27
  88. js/payone/core/safe_invoice.js +42 -2
  89. js/payone/core/sepa_input.js +67 -0
  90. js/payone/core/sepa_validation.js +56 -0
  91. lib/Payone/Api/Enum/AccessAction.php +40 -0
  92. lib/Payone/Api/Enum/FileFormat.php +34 -0
  93. lib/Payone/Api/Enum/FileType.php +34 -0
  94. lib/Payone/Api/Enum/FinancingType.php +1 -0
  95. lib/Payone/Api/Enum/Gender.php +37 -0
  96. lib/Payone/Api/Enum/PayoutOpenBalance.php +37 -0
  97. lib/Payone/Api/Enum/PeriodUnit.php +38 -0
  98. lib/Payone/Api/Enum/PeriodUnitRecurring.php +39 -0
  99. lib/Payone/Api/Enum/RequestType.php +5 -0
  100. lib/Payone/Api/Factory.php +140 -0
  101. lib/Payone/Api/Mapper/Request/Management/UpdateAccess.php +95 -0
  102. lib/Payone/Api/Mapper/Request/Payment/CreateAccess.php +96 -0
  103. lib/Payone/Api/Mapper/Request/Payment/Vauthorization.php +46 -0
  104. lib/Payone/Api/Mapper/Response/Abstract.php +12 -0
  105. lib/Payone/Api/Mapper/Response/CreateAccess.php +61 -0
  106. lib/Payone/Api/Mapper/Response/GetFile.php +64 -0
  107. lib/Payone/Api/Mapper/Response/ManageMandate.php +60 -0
  108. lib/Payone/Api/Mapper/Response/UpdateAccess.php +61 -0
  109. lib/Payone/Api/Mapper/Response/Vauthorization.php +60 -0
  110. lib/Payone/Api/Request/BankAccountCheck.php +89 -9
  111. lib/Payone/Api/Request/CreateAccess.php +526 -0
  112. lib/Payone/Api/Request/GetFile.php +98 -0
  113. lib/Payone/Api/Request/ManageMandate.php +161 -0
  114. lib/Payone/Api/Request/Parameter/Authorization/DeliveryData.php +20 -0
  115. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/DebitPayment.php +60 -0
  116. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/OnlineBankTransfer.php +40 -0
  117. lib/Payone/Api/Request/Parameter/Authorization/PersonalData.php +41 -0
  118. lib/Payone/Api/Request/Parameter/CreateAccess/3dsecure.php +96 -0
  119. lib/Payone/Api/Request/Parameter/CreateAccess/Abstract.php +38 -0
  120. lib/Payone/Api/Request/Parameter/CreateAccess/Billing.php +151 -0
  121. lib/Payone/Api/Request/Parameter/CreateAccess/Invoicing/Transaction.php +132 -0
  122. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/Abstract.php +36 -0
  123. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/CreditCard.php +156 -0
  124. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/DebitPayment.php +176 -0
  125. lib/Payone/Api/Request/Parameter/CreateAccess/PersonalData.php +288 -0
  126. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/BankAccount.php +60 -0
  127. lib/Payone/Api/Request/Parameter/Invoicing/Access/Item.php +258 -0
  128. lib/Payone/Api/Request/Parameter/ManageMandate/Abstract.php +40 -0
  129. lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/Abstract.php +40 -0
  130. lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/BankAccount.php +136 -0
  131. lib/Payone/Api/Request/Parameter/ManageMandate/PersonalData.php +200 -0
  132. lib/Payone/Api/Request/Parameter/Refund/PaymentMethod/BankAccount.php +60 -0
  133. lib/Payone/Api/Request/Parameter/UpdateAccess/Invoicing/Transaction.php +90 -0
  134. lib/Payone/Api/Request/Parameter/Vauthorization/Abstract.php +38 -0
  135. lib/Payone/Api/Request/Parameter/Vauthorization/Invoicing/Transaction.php +112 -0
  136. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/Abstract.php +36 -0
  137. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/CreditCard.php +177 -0
  138. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/DebitPayment.php +176 -0
  139. lib/Payone/Api/Request/Parameter/Vauthorization/PersonalData.php +288 -0
  140. lib/Payone/Api/Request/UpdateAccess.php +353 -0
  141. lib/Payone/Api/Request/Vauthorization.php +330 -0
  142. lib/Payone/Api/Response/Authorization/Abstract.php +20 -0
  143. lib/Payone/Api/Response/Authorization/Approved.php +59 -0
  144. lib/Payone/Api/Response/BankAccountCheck/Valid.php +119 -0
  145. lib/Payone/Api/Response/Capture/Approved.php +82 -0
  146. lib/Payone/Api/Response/CreateAccess/Approved.php +95 -0
  147. lib/Payone/Api/Response/Management/GetFile.php +70 -0
  148. lib/Payone/Api/Response/Management/ManageMandate/Approved.php +155 -0
  149. lib/Payone/Api/Response/Management/UpdateAccess/Ok.php +35 -0
  150. lib/Payone/Api/Response/Vauthorization/Approved.php +95 -0
  151. lib/Payone/Api/Service/Management/GetFile.php +66 -0
  152. lib/Payone/Api/Service/Management/ManageMandate.php +67 -0
  153. lib/Payone/Api/Service/Management/UpdateAccess.php +83 -0
  154. lib/Payone/Api/Service/Payment/CreateAccess.php +84 -0
  155. lib/Payone/Api/Service/Payment/CreateAccessInterface.php +42 -0
  156. lib/Payone/Api/Service/Payment/Vauthorize.php +83 -0
  157. lib/Payone/Api/Service/Payment/VauthorizeInterface.php +42 -0
  158. lib/Payone/Builder.php +50 -0
  159. lib/Payone/Config.php +26 -1
  160. lib/Payone/Protocol/Config/Filter.php +8 -0
  161. lib/Payone/SessionStatus/Config.php +64 -0
  162. lib/Payone/SessionStatus/Enum/Action.php +42 -0
  163. lib/Payone/SessionStatus/Exception/Abstract.php +36 -0
  164. lib/Payone/SessionStatus/Exception/MissmatchingKeys.php +37 -0
  165. lib/Payone/SessionStatus/Exception/NoPostRequest.php +37 -0
  166. lib/Payone/SessionStatus/Exception/NoRequestData.php +37 -0
  167. lib/Payone/SessionStatus/Exception/Validation.php +37 -0
  168. lib/Payone/SessionStatus/Factory.php +121 -0
  169. lib/Payone/SessionStatus/Mapper/Request.php +87 -0
  170. lib/Payone/SessionStatus/Mapper/RequestInterface.php +42 -0
  171. lib/Payone/SessionStatus/Persistence/Interface.php +53 -0
  172. lib/Payone/SessionStatus/Request.php +111 -0
  173. lib/Payone/SessionStatus/Request/Abstract.php +133 -0
  174. lib/Payone/SessionStatus/Request/Interface.php +60 -0
  175. lib/Payone/SessionStatus/Request/Item.php +280 -0
  176. lib/Payone/SessionStatus/Request/Item/Abstract.php +133 -0
  177. lib/Payone/SessionStatus/Request/Item/Interface.php +160 -0
  178. lib/Payone/SessionStatus/Response.php +70 -0
  179. lib/Payone/SessionStatus/Response/Abstract.php +84 -0
  180. lib/Payone/SessionStatus/Response/Interface.php +36 -0
  181. lib/Payone/SessionStatus/Service/HandleRequest.php +206 -0
  182. lib/Payone/SessionStatus/Service/ProtocolRequest.php +116 -0
  183. lib/Payone/SessionStatus/Service/ProtocolRequest/Interface.php +76 -0
  184. lib/Payone/SessionStatus/Validator/Abstract.php +39 -0
  185. lib/Payone/SessionStatus/Validator/DefaultParameters.php +70 -0
  186. lib/Payone/SessionStatus/Validator/Interface.php +41 -0
  187. lib/Payone/SessionStatus/Validator/Ip.php +147 -0
  188. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Financing.php +24 -1
  189. lib/Payone/Settings/Service/XmlGenerate.php +20 -0
  190. lib/Payone/TransactionStatus/Request.php +124 -1
  191. package.xml +8 -8
  192. skin/frontend/default/default/payone/core/mandate.css +37 -0
app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/KlarnaStoreId.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Block
17
+ * @subpackage Adminhtml_System
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Block
28
+ * @subpackage Adminhtml_System
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Block_Adminhtml_System_Config_Form_Field_KlarnaStoreId
35
+ extends Payone_Core_Block_Adminhtml_System_Config_Form_Field_Abstract
36
+ {
37
+ /**
38
+ *
39
+ */
40
+ protected function _prepareToRender()
41
+ {
42
+ $this->addColumn('klarna_store_id', array(
43
+ 'label' => Mage::helper('payone_core')->__('Store-ID'),
44
+ 'style' => 'min-width:120px;',
45
+ ));
46
+
47
+ $this->addColumn('countries', array(
48
+ 'label' => Mage::helper('payone_core')->__('Countries'),
49
+ 'style' => 'min-width:120px; min-height: 110px;',
50
+ ));
51
+ $this->_addAfter = false;
52
+ $this->_addButtonLabel = Mage::helper('payone_core')->__('Add Store-ID');
53
+ parent::_prepareToRender();
54
+ }
55
+
56
+ /**
57
+ * @param string $columnName
58
+ * @return string
59
+ * @throws Exception
60
+ */
61
+ protected function _renderCellTemplate($columnName)
62
+ {
63
+ if ($columnName == 'countries')
64
+ {
65
+ $selectType = Payone_Core_Block_Adminhtml_System_Config_Form_Field_Abstract::PAYONE_CORE_FIELD_MULTISELECT;
66
+ $modelConfigCode = $this->getFactory()->getModelSystemConfigKlarnaCountry();
67
+ $options = $modelConfigCode->toOptionArray();
68
+ $rendered = $this->prepareCellTemplate($columnName, $selectType, $options);
69
+
70
+ }
71
+ else {
72
+ return parent::_renderCellTemplate($columnName);
73
+ }
74
+
75
+ return $rendered;
76
+ }
77
+ }
app/code/community/Payone/Core/Block/Checkout/Onepage/Review/SepaMandate.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Block
17
+ * @subpackage Payment
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Block
28
+ * @subpackage Payment
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Block_Checkout_Onepage_Review_SepaMandate extends Mage_Core_Block_Template
34
+ {
35
+ /** @var Payone_Core_Model_Factory */
36
+ protected $factory = null;
37
+
38
+ /**
39
+ * @return string
40
+ */
41
+ public function getMandateText()
42
+ {
43
+ $mandateText = $this->getFactory()->getSingletonCheckoutSession()->getPayoneSepaMandateText();
44
+ return $mandateText;
45
+ }
46
+
47
+ /**
48
+ * @return string
49
+ */
50
+ public function getMandateTextDecoded()
51
+ {
52
+ return urldecode($this->getMandateText());
53
+ }
54
+
55
+ /**
56
+ * @return string
57
+ */
58
+ protected function getMandateStatus()
59
+ {
60
+ return $this->getFactory()->getSingletonCheckoutSession()->getPayoneSepaMandateStatus();
61
+ }
62
+
63
+ /**
64
+ * @return bool
65
+ */
66
+ public function showMandate()
67
+ {
68
+ $mandateText = $this->getMandateText();
69
+ if (!empty($mandateText) and $this->getMandateStatus() == Payone_Core_Model_Service_Management_ManageMandate::STATUS_PENDING) {
70
+ return true;
71
+ }
72
+
73
+ return false;
74
+ }
75
+
76
+ /**
77
+ * @param string $html
78
+ * @return string
79
+ */
80
+ public function _afterToHtml($html)
81
+ {
82
+ /*
83
+ * after block is rendered we should clear relevant checkout session fields to avoid
84
+ * falsy interpretation on further checkout passes
85
+ */
86
+ // do not unset mandate status as we need it in further processing
87
+ $this->getFactory()->getSingletonCheckoutSession()->unsetData('payone_sepa_mandate_text');
88
+ return parent::_afterToHtml($html);
89
+ }
90
+
91
+ /**
92
+ * @param Payone_Core_Model_Factory $factory
93
+ */
94
+ public function setFactory(Payone_Core_Model_Factory $factory)
95
+ {
96
+ $this->factory = $factory;
97
+ }
98
+
99
+ /**
100
+ * @return Payone_Core_Model_Factory
101
+ */
102
+ public function getFactory()
103
+ {
104
+ if ($this->factory === null) {
105
+ $this->factory = new Payone_Core_Model_Factory();
106
+ }
107
+ return $this->factory;
108
+ }
109
+ }
app/code/community/Payone/Core/Block/Checkout/Onepage/Success/SepaMandatePdfLink.php ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Block
17
+ * @subpackage Checkout
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Block
28
+ * @subpackage Checkout
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Block_Checkout_Onepage_Success_SepaMandatePdfLink
35
+ extends Mage_Core_Block_Template
36
+ {
37
+ /** @var Payone_Core_Model_Factory */
38
+ protected $factory = null;
39
+
40
+ /**
41
+ * after block is rendered we should clear relevant checkout session fields to avoid
42
+ * falsy interpretation on further checkout passes
43
+ *
44
+ * @param string $html
45
+ * @return string
46
+ */
47
+ protected function _afterToHtml($html)
48
+ {
49
+ $this->getCheckoutSession()->unsPayoneSepaMandateDownloadEnabled();
50
+ $this->getCheckoutSession()->unsPayoneSepaMandateIdentification();
51
+ return parent::_afterToHtml($html);
52
+ }
53
+
54
+ /**
55
+ * @return Mage_Checkout_Model_Session
56
+ */
57
+ protected function getCheckoutSession()
58
+ {
59
+ return $this->getFactory()->getSingletonCheckoutSession();
60
+ }
61
+
62
+ /**
63
+ * @return bool
64
+ */
65
+ public function showLink()
66
+ {
67
+ $orderId = $this->getOrderId();
68
+ if (!$orderId) {
69
+ return false;
70
+ }
71
+ $order = $this->getFactory()->getModelSalesOrder();
72
+ $order->load($orderId);
73
+
74
+ if ($order->getPayment()->getMethod() != Payone_Core_Model_System_Config_PaymentMethodCode::DEBITPAYMENT) {
75
+ return false;
76
+ }
77
+
78
+ $downloadEnabled = $this->getCheckoutSession()->getPayoneSepaMandateDownloadEnabled();
79
+ $mandateIdentification = $this->getMandateIdentification();
80
+
81
+ if (!$downloadEnabled or empty($mandateIdentification)) {
82
+ return false;
83
+ }
84
+
85
+ return true;
86
+ }
87
+
88
+ /**
89
+ * @return string
90
+ */
91
+ protected function getMandateIdentification()
92
+ {
93
+ return $this->getCheckoutSession()->getPayoneSepaMandateIdentification();
94
+ }
95
+
96
+ /**
97
+ * @return string
98
+ */
99
+ public function getLinkText()
100
+ {
101
+ return $this->helperPayone()->__('Your mandate as PDF');
102
+ }
103
+
104
+ /**
105
+ * @return string
106
+ */
107
+ public function getLinkHref()
108
+ {
109
+ $isSecure = Mage::app()->getStore()->isCurrentlySecure();
110
+
111
+ $url = Mage::getUrl('payone_core/checkout_onepage_success/getSepaPdf',
112
+ array(
113
+ '_nosid' => true,
114
+ '_secure' => $isSecure,
115
+ 'order_id' => $this->getOrderId(),
116
+ 'mandate_identification' => $this->getMandateIdentification()
117
+ )
118
+ );
119
+
120
+ return $url;
121
+ }
122
+
123
+ /**
124
+ * @return int
125
+ */
126
+ protected function getOrderId()
127
+ {
128
+ return $this->getCheckoutSession()->getLastOrderId();
129
+ }
130
+
131
+ /**
132
+ * @param \Payone_Core_Model_Factory $factory
133
+ */
134
+ public function setFactory(Payone_Core_Model_Factory $factory)
135
+ {
136
+ $this->factory = $factory;
137
+ }
138
+
139
+ /**
140
+ * @return \Payone_Core_Model_Factory
141
+ */
142
+ public function getFactory()
143
+ {
144
+ if ($this->factory === null) {
145
+ $this->factory = new Payone_Core_Model_Factory();
146
+ }
147
+ return $this->factory;
148
+ }
149
+
150
+ /**
151
+ * @return Payone_Core_Helper_Data
152
+ */
153
+ protected function helperPayone()
154
+ {
155
+ return $this->getFactory()->helper();
156
+ }
157
+ }
app/code/community/Payone/Core/Block/Payment/Method/Form/DebitPayment.php CHANGED
@@ -56,4 +56,32 @@ class Payone_Core_Block_Payment_Method_Form_DebitPayment
56
  $quote = $this->getQuote();
57
  return $quote->getBillingAddress()->getCountry();
58
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
56
  $quote = $this->getQuote();
57
  return $quote->getBillingAddress()->getCountry();
58
  }
59
+
60
+ /**
61
+ * Return list of selected SEPA countries for debit payment
62
+ *
63
+ * @return array
64
+ */
65
+ public function getSelectedSepaCountries()
66
+ {
67
+ $paymentConfig = $this->getPaymentConfig();
68
+ $selectedCountryCodes = $paymentConfig->getSepaCountry();
69
+
70
+ if (!$selectedCountryCodes) {
71
+ return array();
72
+ }
73
+
74
+ /** @var Mage_Directory_Model_Resource_Country_Collection $countryCollection */
75
+ $countryCollection = Mage::getResourceModel('directory/country_collection');
76
+ $allCountries = $countryCollection->loadData()->toOptionArray(false);
77
+
78
+ $resultArr = array();
79
+ foreach ($allCountries as $country) {
80
+ if (in_array($country['value'], $selectedCountryCodes)) {
81
+ $resultArr[$country['value']] = $country['label'];
82
+ }
83
+ }
84
+
85
+ return $resultArr;
86
+ }
87
  }
app/code/community/Payone/Core/Block/Payment/Method/Form/OnlineBankTransfer.php CHANGED
@@ -51,6 +51,16 @@ class Payone_Core_Block_Payment_Method_Form_OnlineBankTransfer
51
  return $quote->getBillingAddress()->getCountry();
52
  }
53
 
 
 
 
 
 
 
 
 
 
 
54
  /**
55
  * @return array
56
  */
51
  return $quote->getBillingAddress()->getCountry();
52
  }
53
 
54
+ /**
55
+ * Returns currency
56
+ * @return string
57
+ */
58
+ public function getCurrency()
59
+ {
60
+ $quote = $this->getQuote();
61
+ return $quote->getQuoteCurrencyCode();
62
+ }
63
+
64
  /**
65
  * @return array
66
  */
app/code/community/Payone/Core/Block/Payment/Method/Form/SafeInvoice.php CHANGED
@@ -81,4 +81,39 @@ class Payone_Core_Block_Payment_Method_Form_SafeInvoice
81
  return 0;
82
  }
83
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  }
81
  return 0;
82
  }
83
  }
84
+
85
+ /**
86
+ * @return string
87
+ */
88
+ public function getBlockHtmlKlarna()
89
+ {
90
+ /** @var Payone_Core_Block_Payment_Method_Form_SafeInvoice_Klarna $block */
91
+ $block = $this->getLayout()->createBlock('payone_core/payment_method_form_safeInvoice_klarna');
92
+ $block->setQuote($this->getQuote());
93
+ $block->setPaymentMethodConfig($this->getPaymentConfig());
94
+ $html = $block->toHtml();
95
+ return $html;
96
+ }
97
+
98
+ /**
99
+ * @return bool
100
+ */
101
+ public function showBlockHtmlKlarna()
102
+ {
103
+ $types = $this->getTypes();
104
+
105
+ if (count($types) == 1) {
106
+ $type = array_pop($types);
107
+ if ($type['code'] == Payone_Api_Enum_FinancingType::KLV) {
108
+ return true;
109
+ }
110
+ } elseif (count($types) > 1) {
111
+ foreach ($types as $type) {
112
+ if ($type['code'] == Payone_Api_Enum_FinancingType::KLV) {
113
+ return true;
114
+ }
115
+ }
116
+ }
117
+ return false;
118
+ }
119
  }
app/code/community/Payone/Core/Block/Payment/Method/Form/SafeInvoice/Klarna.php ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Block
17
+ * @subpackage Payment
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Block
28
+ * @subpackage Payment
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Block_Payment_Method_Form_SafeInvoice_Klarna
35
+ extends Mage_Core_Block_Template
36
+ {
37
+ /** @var Payone_Core_Model_Config_Payment_Method_Interface */
38
+ protected $paymentMethodConfig;
39
+ /** @var Mage_Sales_Model_Quote */
40
+ protected $quote;
41
+ /** @var Payone_Core_Model_Factory */
42
+ protected $factory = null;
43
+
44
+ protected function _construct()
45
+ {
46
+ parent::_construct();
47
+ $this->setTemplate('payone/core/payment/method/form/safe_invoice/klarna.phtml');
48
+ }
49
+
50
+ /**
51
+ * @param \Payone_Core_Model_Config_Payment_Method_Interface $paymentMethodConfig
52
+ */
53
+ public function setPaymentMethodConfig($paymentMethodConfig)
54
+ {
55
+ $this->paymentMethodConfig = $paymentMethodConfig;
56
+ }
57
+
58
+ /**
59
+ * @return \Payone_Core_Model_Config_Payment_Method_Interface
60
+ */
61
+ public function getPaymentMethodConfig()
62
+ {
63
+ return $this->paymentMethodConfig;
64
+ }
65
+
66
+ /**
67
+ * @param \Mage_Sales_Model_Quote $quote
68
+ */
69
+ public function setQuote($quote)
70
+ {
71
+ $this->quote = $quote;
72
+ }
73
+
74
+ /**
75
+ * @return \Mage_Sales_Model_Quote
76
+ */
77
+ public function getQuote()
78
+ {
79
+ return $this->quote;
80
+ }
81
+
82
+ /**
83
+ * @return bool
84
+ */
85
+ public function isAgreementCheckboxRequired()
86
+ {
87
+ $country = $this->getCountry();
88
+ if ($country == 'AT' or $country == 'DE') {
89
+ return true;
90
+ }
91
+ return false;
92
+ }
93
+
94
+ /**
95
+ * @return string
96
+ */
97
+ public function getKlarnaStoreId()
98
+ {
99
+ $country = $this->getCountry();
100
+ $klarnaConfig = $this->getPaymentMethodConfig()->getKlarnaConfig();
101
+ if (empty($klarnaConfig)) {
102
+ return '';
103
+ }
104
+ foreach ($klarnaConfig as $config) {
105
+ if (isset($config['countries']) and is_array($config['countries'])
106
+ and in_array($country, $config['countries'])
107
+ ) {
108
+ return $config['klarna_store_id'];
109
+ }
110
+ }
111
+ return '';
112
+ }
113
+
114
+ /**
115
+ * @return string
116
+ */
117
+ public function getCountry()
118
+ {
119
+ $quote = $this->getQuote();
120
+ $billing = $quote->getBillingAddress();
121
+ return $billing->getCountry();
122
+ }
123
+
124
+ /**
125
+ * @return bool
126
+ */
127
+ public function isDobRequired()
128
+ {
129
+ // required for all countries
130
+ // required only if customer didn't enter Dob in previous checkout step
131
+ $customerDob = $this->getQuote()->getCustomerDob();
132
+ if (empty($customerDob)) {
133
+ return true;
134
+ }
135
+ return false;
136
+ }
137
+
138
+ /**
139
+ * @return bool
140
+ */
141
+ public function canShowAdditionalFields()
142
+ {
143
+ $country = $this->getCountry();
144
+ if (empty($country)) {
145
+ return false;
146
+ }
147
+ return true;
148
+ }
149
+
150
+ /**
151
+ * @return bool
152
+ */
153
+ public function isGenderRequired()
154
+ {
155
+ // required only for Austria (AT), Germany (DE) and Netherlands (NL)
156
+ $country = $this->getCountry();
157
+ if ($country != 'AT' and $country != 'DE' and $country != 'NL') {
158
+ return false;
159
+ }
160
+ // required only if customer didn't enter gender in his customer account or previous checkout step
161
+ $customerGender = $this->getQuote()->getCustomerGender();
162
+ if (empty($customerGender)) {
163
+ return true;
164
+ }
165
+ return false;
166
+ }
167
+
168
+ /**
169
+ * @return array
170
+ */
171
+ public function getGenderOptions()
172
+ {
173
+ $customerResource = $this->getFactory()->getSingletonCustomerResource();
174
+ $options = $customerResource->getAttribute('gender')->getSource()->getAllOptions();
175
+ return $options;
176
+ }
177
+
178
+ /**
179
+ * @return bool
180
+ */
181
+ public function isPersonalidRequired()
182
+ {
183
+ $country = $this->getCountry();
184
+ // mandatory for Denmark (DK), Finland(FI), Norway (NO) and Sweden (SE)
185
+ if ($country == 'DK' or $country == 'FI' or $country == 'NO' or $country == 'SE') {
186
+ return true;
187
+ }
188
+ return false;
189
+ }
190
+
191
+ /**
192
+ * @return bool
193
+ */
194
+ public function isShippingAddressAdditionRequired()
195
+ {
196
+ $shippingAddress = $this->getQuote()->getShippingAddress();
197
+ $country = $shippingAddress->getCountry();
198
+ // required only for Netherlands (NL)
199
+ if ($country != 'NL') {
200
+ return false;
201
+ }
202
+
203
+ $addressAdditionShipping = $shippingAddress->getStreet(2);
204
+ if (empty($addressAdditionShipping)) {
205
+ return true;
206
+ }
207
+
208
+ return false;
209
+ }
210
+
211
+ public function isBillingAddressAdditionRequired()
212
+ {
213
+ $billingAddress = $this->getQuote()->getBillingAddress();
214
+ $country = $billingAddress->getCountry();
215
+ // required only for Netherlands (NL)
216
+ if ($country != 'NL') {
217
+ return false;
218
+ }
219
+ $addressAdditionBilling = $billingAddress->getStreet(2);
220
+ if (empty($addressAdditionBilling)) {
221
+ return true;
222
+ }
223
+ return false;
224
+ }
225
+
226
+ /**
227
+ * @return bool
228
+ */
229
+ public function isTelephoneRequired()
230
+ {
231
+ // telephone is mandatory for any country in case of Klarna
232
+ $telephone = $this->getQuote()->getBillingAddress()->getTelephone();
233
+ if (empty($telephone)) {
234
+ return true;
235
+ }
236
+
237
+ return false;
238
+ }
239
+
240
+ /**
241
+ * @param \Payone_Core_Model_Factory $factory
242
+ */
243
+ public function setFactory(Payone_Core_Model_Factory $factory)
244
+ {
245
+ $this->factory = $factory;
246
+ }
247
+
248
+ /**
249
+ * @return \Payone_Core_Model_Factory
250
+ */
251
+ public function getFactory()
252
+ {
253
+ if ($this->factory === null) {
254
+ $this->factory = new Payone_Core_Model_Factory();
255
+ }
256
+ return $this->factory;
257
+ }
258
+ }
app/code/community/Payone/Core/Block/Payment/Method/Info/CashOnDelivery.php CHANGED
@@ -1,41 +1,41 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Block
17
- * @subpackage Payment
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Block
28
- * @subpackage Payment
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Block_Payment_Method_Info_CashOnDelivery
34
- extends Payone_Core_Block_Payment_Method_Info_Abstract
35
- {
36
- protected function _construct()
37
- {
38
- parent::_construct();
39
- $this->setTemplate('payone/core/payment/method/info/cashondelivery.phtml');
40
- }
41
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Block
17
+ * @subpackage Payment
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Block
28
+ * @subpackage Payment
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Block_Payment_Method_Info_CashOnDelivery
34
+ extends Payone_Core_Block_Payment_Method_Info_Abstract
35
+ {
36
+ protected function _construct()
37
+ {
38
+ parent::_construct();
39
+ $this->setTemplate('payone/core/payment/method/info/cashondelivery.phtml');
40
+ }
41
  }
app/code/community/Payone/Core/Block/Payment/Method/Info/DebitPayment.php CHANGED
@@ -64,4 +64,20 @@ class Payone_Core_Block_Payment_Method_Info_DebitPayment
64
  {
65
  return $this->getInfo()->getPayoneBankCode();
66
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  }
64
  {
65
  return $this->getInfo()->getPayoneBankCode();
66
  }
67
+
68
+ /**
69
+ * @return string
70
+ */
71
+ public function getPayoneSepaIban()
72
+ {
73
+ return $this->getInfo()->getPayoneSepaIban();
74
+ }
75
+
76
+ /**
77
+ * @return string
78
+ */
79
+ public function getPayoneSepaBic()
80
+ {
81
+ return $this->getInfo()->getPayoneSepaBic();
82
+ }
83
  }
app/code/community/Payone/Core/Block/Payment/Method/Info/OnlineBankTransfer.php CHANGED
@@ -65,4 +65,20 @@ class Payone_Core_Block_Payment_Method_Info_OnlineBankTransfer
65
  {
66
  return $this->getInfo()->getPayoneBankCode();
67
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
65
  {
66
  return $this->getInfo()->getPayoneBankCode();
67
  }
68
+
69
+ /**
70
+ * @return string
71
+ */
72
+ public function getPayoneSepaIban()
73
+ {
74
+ return $this->getInfo()->getPayoneSepaIban();
75
+ }
76
+
77
+ /**
78
+ * @return string
79
+ */
80
+ public function getPayoneSepaBic()
81
+ {
82
+ return $this->getInfo()->getPayoneSepaBic();
83
+ }
84
  }
app/code/community/Payone/Core/Block/Payment/Method/Info/SafeInvoice.php CHANGED
@@ -1,164 +1,164 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Block
17
- * @subpackage Payment
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Block
28
- * @subpackage Payment
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Block_Payment_Method_Info_SafeInvoice
34
- extends Payone_Core_Block_Payment_Method_Info_Abstract
35
- {
36
- protected function _construct()
37
- {
38
- parent::_construct();
39
- $this->setTemplate('payone/core/payment/method/info/safe_invoice.phtml');
40
-
41
- }
42
-
43
- /**
44
- * @return string
45
- */
46
- public function getSafeInvoiceType()
47
- {
48
- $model = $this->getFactory()->getModelSystemConfigSafeInvoiceType();
49
- $array = $model->toSelectArray();
50
-
51
- $safeInvoiceType = $this->getInfo()->getPayoneSafeInvoiceType();
52
- if (array_key_exists($safeInvoiceType, $array)) {
53
- return $array[$safeInvoiceType];
54
- }
55
- return '';
56
- }
57
-
58
- public function toPdf()
59
- {
60
- $this->setTemplate('payone/core/payment/method/pdf/safe_invoice.phtml');
61
- return $this->toHtml();
62
- }
63
-
64
-
65
- /**
66
- * @return string
67
- */
68
- public function getPayoneClearingBankAccountholder()
69
- {
70
- return $this->getInfo()->getPayoneClearingBankAccountholder();
71
- }
72
-
73
- /**
74
- * @return string
75
- */
76
- public function getPayoneClearingBankCountry()
77
- {
78
- return $this->getInfo()->getPayoneClearingBankCountry();
79
- }
80
-
81
- /**
82
- * @return string
83
- */
84
- public function getPayoneClearingBankAccount()
85
- {
86
- return $this->getInfo()->getPayoneClearingBankAccount();
87
- }
88
-
89
- /**
90
- * @return string
91
- */
92
- public function getPayoneClearingBankCode()
93
- {
94
- return $this->getInfo()->getPayoneClearingBankCode();
95
- }
96
-
97
- /**
98
- * @return string
99
- */
100
- public function getPayoneClearingBankIban()
101
- {
102
- return $this->getInfo()->getPayoneClearingBankIban();
103
- }
104
-
105
- /**
106
- * @return string
107
- */
108
- public function getPayoneClearingBankBic()
109
- {
110
- return $this->getInfo()->getPayoneClearingBankBic();
111
- }
112
-
113
- /**
114
- * @return string
115
- */
116
- public function getPayoneClearingBankCity()
117
- {
118
- return $this->getInfo()->getPayoneClearingBankCity();
119
- }
120
-
121
- /**
122
- * @return string
123
- */
124
- public function getPayoneClearingBankName()
125
- {
126
- return $this->getInfo()->getPayoneClearingBankName();
127
- }
128
-
129
-
130
- /**
131
- * @return string
132
- */
133
- public function getPayoneClearingReference()
134
- {
135
- return $this->getInfo()->getPayoneClearingReference();
136
- }
137
-
138
-
139
- /**
140
- * @return string
141
- */
142
- public function getPayoneClearingInstructionnote()
143
- {
144
- return $this->getInfo()->getPayoneClearingInstructionnote();
145
- }
146
-
147
-
148
- /**
149
- * @return string
150
- */
151
- public function getPayoneClearingLegalnote()
152
- {
153
- return $this->getInfo()->getPayoneClearingLegalnote();
154
- }
155
-
156
-
157
- /**
158
- * @return string
159
- */
160
- public function getPayoneClearingDuedate()
161
- {
162
- return $this->getInfo()->getPayoneClearingDuedate();
163
- }
164
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Block
17
+ * @subpackage Payment
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Block
28
+ * @subpackage Payment
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Block_Payment_Method_Info_SafeInvoice
34
+ extends Payone_Core_Block_Payment_Method_Info_Abstract
35
+ {
36
+ protected function _construct()
37
+ {
38
+ parent::_construct();
39
+ $this->setTemplate('payone/core/payment/method/info/safe_invoice.phtml');
40
+
41
+ }
42
+
43
+ /**
44
+ * @return string
45
+ */
46
+ public function getSafeInvoiceType()
47
+ {
48
+ $model = $this->getFactory()->getModelSystemConfigSafeInvoiceType();
49
+ $array = $model->toSelectArray();
50
+
51
+ $safeInvoiceType = $this->getInfo()->getPayoneSafeInvoiceType();
52
+ if (array_key_exists($safeInvoiceType, $array)) {
53
+ return $array[$safeInvoiceType];
54
+ }
55
+ return '';
56
+ }
57
+
58
+ public function toPdf()
59
+ {
60
+ $this->setTemplate('payone/core/payment/method/pdf/safe_invoice.phtml');
61
+ return $this->toHtml();
62
+ }
63
+
64
+
65
+ /**
66
+ * @return string
67
+ */
68
+ public function getPayoneClearingBankAccountholder()
69
+ {
70
+ return $this->getInfo()->getPayoneClearingBankAccountholder();
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getPayoneClearingBankCountry()
77
+ {
78
+ return $this->getInfo()->getPayoneClearingBankCountry();
79
+ }
80
+
81
+ /**
82
+ * @return string
83
+ */
84
+ public function getPayoneClearingBankAccount()
85
+ {
86
+ return $this->getInfo()->getPayoneClearingBankAccount();
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getPayoneClearingBankCode()
93
+ {
94
+ return $this->getInfo()->getPayoneClearingBankCode();
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getPayoneClearingBankIban()
101
+ {
102
+ return $this->getInfo()->getPayoneClearingBankIban();
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getPayoneClearingBankBic()
109
+ {
110
+ return $this->getInfo()->getPayoneClearingBankBic();
111
+ }
112
+
113
+ /**
114
+ * @return string
115
+ */
116
+ public function getPayoneClearingBankCity()
117
+ {
118
+ return $this->getInfo()->getPayoneClearingBankCity();
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getPayoneClearingBankName()
125
+ {
126
+ return $this->getInfo()->getPayoneClearingBankName();
127
+ }
128
+
129
+
130
+ /**
131
+ * @return string
132
+ */
133
+ public function getPayoneClearingReference()
134
+ {
135
+ return $this->getInfo()->getPayoneClearingReference();
136
+ }
137
+
138
+
139
+ /**
140
+ * @return string
141
+ */
142
+ public function getPayoneClearingInstructionnote()
143
+ {
144
+ return $this->getInfo()->getPayoneClearingInstructionnote();
145
+ }
146
+
147
+
148
+ /**
149
+ * @return string
150
+ */
151
+ public function getPayoneClearingLegalnote()
152
+ {
153
+ return $this->getInfo()->getPayoneClearingLegalnote();
154
+ }
155
+
156
+
157
+ /**
158
+ * @return string
159
+ */
160
+ public function getPayoneClearingDuedate()
161
+ {
162
+ return $this->getInfo()->getPayoneClearingDuedate();
163
+ }
164
  }
app/code/community/Payone/Core/Model/Config/General/Global.php CHANGED
@@ -1,246 +1,246 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Config
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Config
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Model_Config_General_Global extends Payone_Core_Model_Config_AreaAbstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $mid = 0;
39
- /**
40
- * @var int
41
- */
42
- protected $portalid = 0;
43
- /**
44
- * @var int
45
- */
46
- protected $aid = 0;
47
- /**
48
- * @var string
49
- */
50
- protected $key = '';
51
- /**
52
- * @var int
53
- */
54
- protected $allowspecific = 0;
55
- /**
56
- * @var array
57
- */
58
- protected $specificcountry = array();
59
- /**
60
- * @var string
61
- */
62
- protected $request_type = '';
63
- /**
64
- * @var int
65
- */
66
- protected $transmit_ip = 1;
67
- /**
68
- * @var int
69
- */
70
- protected $proxy_mode = 0;
71
-
72
- /**
73
- * initialize config with specificcounty as array
74
- * @param array $data
75
- */
76
- public function init(array $data)
77
- {
78
- if(array_key_exists('specificcountry',$data) && is_string($data['specificcountry']))
79
- {
80
- $data['specificcountry_by_string'] = $data['specificcountry'];
81
- unset($data['specificcountry']);
82
- }
83
-
84
- parent::init($data);
85
- }
86
-
87
- /**
88
- * @param int $aid
89
- */
90
- public function setAid($aid)
91
- {
92
- $this->aid = $aid;
93
- }
94
-
95
- /**
96
- * @return int
97
- */
98
- public function getAid()
99
- {
100
- return $this->aid;
101
- }
102
-
103
- /**
104
- * @param int $allowspecific
105
- */
106
- public function setAllowspecific($allowspecific)
107
- {
108
- $this->allowspecific = $allowspecific;
109
- }
110
-
111
- /**
112
- * @return int
113
- */
114
- public function getAllowspecific()
115
- {
116
- return $this->allowspecific;
117
- }
118
-
119
- /**
120
- * @param string $key
121
- */
122
- public function setKey($key)
123
- {
124
- $this->key = $key;
125
- }
126
-
127
- /**
128
- * @return string
129
- */
130
- public function getKey()
131
- {
132
- return $this->key;
133
- }
134
-
135
- /**
136
- * @param int $mid
137
- */
138
- public function setMid($mid)
139
- {
140
- $this->mid = $mid;
141
- }
142
-
143
- /**
144
- * @return int
145
- */
146
- public function getMid()
147
- {
148
- return $this->mid;
149
- }
150
-
151
- /**
152
- * @param int $portalid
153
- */
154
- public function setPortalid($portalid)
155
- {
156
- $this->portalid = $portalid;
157
- }
158
-
159
- /**
160
- * @return int
161
- */
162
- public function getPortalid()
163
- {
164
- return $this->portalid;
165
- }
166
-
167
- /**
168
- * @param string $request_type
169
- */
170
- public function setRequestType($request_type)
171
- {
172
- $this->request_type = $request_type;
173
- }
174
-
175
- /**
176
- * @return string
177
- */
178
- public function getRequestType()
179
- {
180
- return $this->request_type;
181
- }
182
-
183
- /**
184
- * @param array $specificcountry
185
- */
186
- public function setSpecificcountry(array $specificcountry)
187
- {
188
- $this->specificcountry = $specificcountry;
189
- }
190
-
191
- /**
192
- * @return array
193
- */
194
- public function getSpecificcountry()
195
- {
196
- return $this->specificcountry;
197
- }
198
-
199
- /**
200
- * @param $specificcountry
201
- */
202
- public function setSpecificcountryByString($specificcountry)
203
- {
204
- $this->specificcountry = explode(',', $specificcountry);
205
- }
206
-
207
- /**
208
- * @return string
209
- */
210
- public function getSpecificcountryAsString()
211
- {
212
- return implode(',', $this->specificcountry);
213
- }
214
-
215
- /**
216
- * @param int $transmit_ip
217
- */
218
- public function setTransmitIp($transmit_ip)
219
- {
220
- $this->transmit_ip = $transmit_ip;
221
- }
222
-
223
- /**
224
- * @return int
225
- */
226
- public function getTransmitIp()
227
- {
228
- return $this->transmit_ip;
229
- }
230
-
231
- /**
232
- * @param int $proxy_mode
233
- */
234
- public function setProxyMode($proxy_mode)
235
- {
236
- $this->proxy_mode = $proxy_mode;
237
- }
238
-
239
- /**
240
- * @return int
241
- */
242
- public function getProxyMode()
243
- {
244
- return $this->proxy_mode;
245
- }
246
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Config
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Config
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_Config_General_Global extends Payone_Core_Model_Config_AreaAbstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $mid = 0;
39
+ /**
40
+ * @var int
41
+ */
42
+ protected $portalid = 0;
43
+ /**
44
+ * @var int
45
+ */
46
+ protected $aid = 0;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $key = '';
51
+ /**
52
+ * @var int
53
+ */
54
+ protected $allowspecific = 0;
55
+ /**
56
+ * @var array
57
+ */
58
+ protected $specificcountry = array();
59
+ /**
60
+ * @var string
61
+ */
62
+ protected $request_type = '';
63
+ /**
64
+ * @var int
65
+ */
66
+ protected $transmit_ip = 1;
67
+ /**
68
+ * @var int
69
+ */
70
+ protected $proxy_mode = 0;
71
+
72
+ /**
73
+ * initialize config with specificcounty as array
74
+ * @param array $data
75
+ */
76
+ public function init(array $data)
77
+ {
78
+ if(array_key_exists('specificcountry',$data) && is_string($data['specificcountry']))
79
+ {
80
+ $data['specificcountry_by_string'] = $data['specificcountry'];
81
+ unset($data['specificcountry']);
82
+ }
83
+
84
+ parent::init($data);
85
+ }
86
+
87
+ /**
88
+ * @param int $aid
89
+ */
90
+ public function setAid($aid)
91
+ {
92
+ $this->aid = $aid;
93
+ }
94
+
95
+ /**
96
+ * @return int
97
+ */
98
+ public function getAid()
99
+ {
100
+ return $this->aid;
101
+ }
102
+
103
+ /**
104
+ * @param int $allowspecific
105
+ */
106
+ public function setAllowspecific($allowspecific)
107
+ {
108
+ $this->allowspecific = $allowspecific;
109
+ }
110
+
111
+ /**
112
+ * @return int
113
+ */
114
+ public function getAllowspecific()
115
+ {
116
+ return $this->allowspecific;
117
+ }
118
+
119
+ /**
120
+ * @param string $key
121
+ */
122
+ public function setKey($key)
123
+ {
124
+ $this->key = $key;
125
+ }
126
+
127
+ /**
128
+ * @return string
129
+ */
130
+ public function getKey()
131
+ {
132
+ return $this->key;
133
+ }
134
+
135
+ /**
136
+ * @param int $mid
137
+ */
138
+ public function setMid($mid)
139
+ {
140
+ $this->mid = $mid;
141
+ }
142
+
143
+ /**
144
+ * @return int
145
+ */
146
+ public function getMid()
147
+ {
148
+ return $this->mid;
149
+ }
150
+
151
+ /**
152
+ * @param int $portalid
153
+ */
154
+ public function setPortalid($portalid)
155
+ {
156
+ $this->portalid = $portalid;
157
+ }
158
+
159
+ /**
160
+ * @return int
161
+ */
162
+ public function getPortalid()
163
+ {
164
+ return $this->portalid;
165
+ }
166
+
167
+ /**
168
+ * @param string $request_type
169
+ */
170
+ public function setRequestType($request_type)
171
+ {
172
+ $this->request_type = $request_type;
173
+ }
174
+
175
+ /**
176
+ * @return string
177
+ */
178
+ public function getRequestType()
179
+ {
180
+ return $this->request_type;
181
+ }
182
+
183
+ /**
184
+ * @param array $specificcountry
185
+ */
186
+ public function setSpecificcountry(array $specificcountry)
187
+ {
188
+ $this->specificcountry = $specificcountry;
189
+ }
190
+
191
+ /**
192
+ * @return array
193
+ */
194
+ public function getSpecificcountry()
195
+ {
196
+ return $this->specificcountry;
197
+ }
198
+
199
+ /**
200
+ * @param $specificcountry
201
+ */
202
+ public function setSpecificcountryByString($specificcountry)
203
+ {
204
+ $this->specificcountry = explode(',', $specificcountry);
205
+ }
206
+
207
+ /**
208
+ * @return string
209
+ */
210
+ public function getSpecificcountryAsString()
211
+ {
212
+ return implode(',', $this->specificcountry);
213
+ }
214
+
215
+ /**
216
+ * @param int $transmit_ip
217
+ */
218
+ public function setTransmitIp($transmit_ip)
219
+ {
220
+ $this->transmit_ip = $transmit_ip;
221
+ }
222
+
223
+ /**
224
+ * @return int
225
+ */
226
+ public function getTransmitIp()
227
+ {
228
+ return $this->transmit_ip;
229
+ }
230
+
231
+ /**
232
+ * @param int $proxy_mode
233
+ */
234
+ public function setProxyMode($proxy_mode)
235
+ {
236
+ $this->proxy_mode = $proxy_mode;
237
+ }
238
+
239
+ /**
240
+ * @return int
241
+ */
242
+ public function getProxyMode()
243
+ {
244
+ return $this->proxy_mode;
245
+ }
246
+ }
app/code/community/Payone/Core/Model/Config/Payment/Method.php CHANGED
@@ -116,6 +116,11 @@ class Payone_Core_Model_Config_Payment_Method
116
  * @var array
117
  */
118
  protected $types = array();
 
 
 
 
 
119
  /**
120
  * @var int
121
  */
@@ -131,6 +136,23 @@ class Payone_Core_Model_Config_Payment_Method
131
  /** @var string */
132
  protected $message_response_blocked = '';
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  /**
135
  * @var int
136
  */
@@ -426,6 +448,22 @@ class Payone_Core_Model_Config_Payment_Method
426
  return $this->key;
427
  }
428
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  /**
430
  * @param int $mid
431
  */
@@ -709,6 +747,70 @@ class Payone_Core_Model_Config_Payment_Method
709
  return $this->message_response_blocked;
710
  }
711
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
712
  /**
713
  * @param string $bankaccountcheck_type
714
  */
@@ -735,4 +837,25 @@ class Payone_Core_Model_Config_Payment_Method
735
  }
736
  return false;
737
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
738
  }
116
  * @var array
117
  */
118
  protected $types = array();
119
+ /**
120
+ * @var array
121
+ */
122
+ protected $klarna_config = array();
123
+
124
  /**
125
  * @var int
126
  */
136
  /** @var string */
137
  protected $message_response_blocked = '';
138
 
139
+ /**
140
+ * @var array
141
+ */
142
+ protected $sepa_country = array();
143
+ /**
144
+ * @var int
145
+ */
146
+ protected $sepa_de_show_bank_data = 0;
147
+ /**
148
+ * @var int
149
+ */
150
+ protected $sepa_mandate_enabled = 1;
151
+ /**
152
+ * @var int
153
+ */
154
+ protected $sepa_mandate_download_enabled = 1;
155
+
156
  /**
157
  * @var int
158
  */
448
  return $this->key;
449
  }
450
 
451
+ /**
452
+ * @param array $klarna_config
453
+ */
454
+ public function setKlarnaConfig($klarna_config)
455
+ {
456
+ $this->klarna_config = $klarna_config;
457
+ }
458
+
459
+ /**
460
+ * @return array
461
+ */
462
+ public function getKlarnaConfig()
463
+ {
464
+ return $this->klarna_config;
465
+ }
466
+
467
  /**
468
  * @param int $mid
469
  */
747
  return $this->message_response_blocked;
748
  }
749
 
750
+ /**
751
+ * @param array $sepaCountry
752
+ */
753
+ public function setSepaCountry($sepaCountry)
754
+ {
755
+ $this->sepa_country = $sepaCountry;
756
+ }
757
+
758
+ /**
759
+ * @return array
760
+ */
761
+ public function getSepaCountry()
762
+ {
763
+ return $this->sepa_country;
764
+ }
765
+
766
+ /**
767
+ * @param int $sepaDeShowBankData
768
+ */
769
+ public function setSepaDeShowBankData($sepaDeShowBankData)
770
+ {
771
+ $this->sepa_de_show_bank_data = $sepaDeShowBankData;
772
+ }
773
+
774
+ /**
775
+ * @return int
776
+ */
777
+ public function getSepaDeShowBankData()
778
+ {
779
+ return $this->sepa_de_show_bank_data;
780
+ }
781
+
782
+ /**
783
+ * @param int $sepaMandateEnabled
784
+ */
785
+ public function setSepaMandateEnabled($sepaMandateEnabled)
786
+ {
787
+ $this->sepa_mandate_enabled = $sepaMandateEnabled;
788
+ }
789
+
790
+ /**
791
+ * @return int
792
+ */
793
+ public function getSepaMandateEnabled()
794
+ {
795
+ return $this->sepa_mandate_enabled;
796
+ }
797
+
798
+ /**
799
+ * @param int $sepaMandateDownloadEnabled
800
+ */
801
+ public function setSepaMandateDownloadEnabled($sepaMandateDownloadEnabled)
802
+ {
803
+ $this->sepa_mandate_download_enabled = $sepaMandateDownloadEnabled;
804
+ }
805
+
806
+ /**
807
+ * @return int
808
+ */
809
+ public function getSepaMandateDownloadEnabled()
810
+ {
811
+ return $this->sepa_mandate_download_enabled;
812
+ }
813
+
814
  /**
815
  * @param string $bankaccountcheck_type
816
  */
837
  }
838
  return false;
839
  }
840
+
841
+ /**
842
+ * @return bool
843
+ */
844
+ public function isSepaMandateEnabled()
845
+ {
846
+ if ($this->getSepaMandateEnabled()) {
847
+ return true;
848
+ }
849
+ return false;
850
+ }
851
+
852
+ /**
853
+ * @return bool
854
+ */
855
+ public function isSepaDeShowBankDataEnabled() {
856
+ if ($this->getSepaDeShowBankData()) {
857
+ return true;
858
+ }
859
+ return false;
860
+ }
861
  }
app/code/community/Payone/Core/Model/Config/Payment/Method/Interface.php CHANGED
@@ -52,6 +52,16 @@ interface Payone_Core_Model_Config_Payment_Method_Interface
52
  */
53
  public function isBankAccountCheckEnabled();
54
 
 
 
 
 
 
 
 
 
 
 
55
  /**
56
  * @param string $country
57
  * @return bool
@@ -120,6 +130,46 @@ interface Payone_Core_Model_Config_Payment_Method_Interface
120
  */
121
  public function getMessageResponseBlocked();
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  /**
124
  * @param int $check_cvc
125
  */
@@ -213,6 +263,16 @@ interface Payone_Core_Model_Config_Payment_Method_Interface
213
  */
214
  public function getKey();
215
 
 
 
 
 
 
 
 
 
 
 
216
  /**
217
  * @param int $mid
218
  */
52
  */
53
  public function isBankAccountCheckEnabled();
54
 
55
+ /**
56
+ * @return bool
57
+ */
58
+ public function isSepaMandateEnabled();
59
+
60
+ /**
61
+ * @return bool
62
+ */
63
+ public function isSepaDeShowBankDataEnabled();
64
+
65
  /**
66
  * @param string $country
67
  * @return bool
130
  */
131
  public function getMessageResponseBlocked();
132
 
133
+ /**
134
+ * @param array $sepaCountry
135
+ */
136
+ public function setSepaCountry($sepaCountry);
137
+
138
+ /**
139
+ * @return array
140
+ */
141
+ public function getSepaCountry();
142
+
143
+ /**
144
+ * @param int $sepaDeShowBankData
145
+ */
146
+ public function setSepaDeShowBankData($sepaDeShowBankData);
147
+
148
+ /**
149
+ * @return int
150
+ */
151
+ public function getSepaDeShowBankData();
152
+
153
+ /**
154
+ * @param int $sepaMandateEnabled
155
+ */
156
+ public function setSepaMandateEnabled($sepaMandateEnabled);
157
+
158
+ /**
159
+ * @return int
160
+ */
161
+ public function getSepaMandateEnabled();
162
+
163
+ /**
164
+ * @param int $sepaMandateDownloadEnabled
165
+ */
166
+ public function setSepaMandateDownloadEnabled($sepaMandateDownloadEnabled);
167
+
168
+ /**
169
+ * @return int
170
+ */
171
+ public function getSepaMandateDownloadEnabled();
172
+
173
  /**
174
  * @param int $check_cvc
175
  */
263
  */
264
  public function getKey();
265
 
266
+ /**
267
+ * @param array $klarna_config
268
+ */
269
+ public function setKlarnaConfig($klarna_config);
270
+
271
+ /**
272
+ * @return array
273
+ */
274
+ public function getKlarnaConfig();
275
+
276
  /**
277
  * @param int $mid
278
  */
app/code/community/Payone/Core/Model/Domain/Config/PaymentMethod.php CHANGED
@@ -65,10 +65,18 @@
65
  * @method setInvoiceTransmit($invoiceTransmit)
66
  * @method int getInvoiceTransmit()
67
  * @method setTypes($types)
 
68
  * @method setCheckCvc($checkCvc)
69
  * @method int getCheckCvc()
70
  * @method setCheckBankAccount($checkBankaccount)
71
  * @method int getCheckBankAccount()
 
 
 
 
 
 
 
72
  * @method setMinOrderTotal($minOrderTotal)
73
  * @method float getMinOrderTotal()
74
  * @method setMaxOrderTotal($maxOrderTotal)
@@ -443,6 +451,7 @@ class Payone_Core_Model_Domain_Config_PaymentMethod
443
  else {
444
  $value = array_pop($fieldValue);
445
  switch ($fieldKey) {
 
446
  case 'fee_config':
447
  unset($value['__empty']);
448
  $value = empty($value) ? null : $value;
@@ -571,8 +580,11 @@ class Payone_Core_Model_Domain_Config_PaymentMethod
571
  {
572
  // prepare fee_config
573
  $this->unserializeData('fee_config');
 
 
574
  $this->explodeData('types');
575
  $this->explodeData('specificcountry');
 
576
  }
577
 
578
 
@@ -595,8 +607,14 @@ class Payone_Core_Model_Domain_Config_PaymentMethod
595
  // prepare specificcountry
596
  $this->implodeData('specificcountry');
597
 
 
 
 
598
  // prepare fee_config
599
  $this->serializeData('fee_config');
 
 
 
600
  }
601
 
602
  /**
@@ -663,6 +681,15 @@ class Payone_Core_Model_Domain_Config_PaymentMethod
663
  return $this->getData('fee_config');
664
  }
665
 
 
 
 
 
 
 
 
 
 
666
  /**
667
  * @return array
668
  */
@@ -672,6 +699,15 @@ class Payone_Core_Model_Domain_Config_PaymentMethod
672
  return $this->getData('specificcountry');
673
  }
674
 
 
 
 
 
 
 
 
 
 
675
  /**
676
  * @return Payone_Core_Model_Factory
677
  */
65
  * @method setInvoiceTransmit($invoiceTransmit)
66
  * @method int getInvoiceTransmit()
67
  * @method setTypes($types)
68
+ * @method setKlarnaConfig($klarnaConfig)
69
  * @method setCheckCvc($checkCvc)
70
  * @method int getCheckCvc()
71
  * @method setCheckBankAccount($checkBankaccount)
72
  * @method int getCheckBankAccount()
73
+ * @method setSepaCountry($sepaCountry)
74
+ * @method setSepaDeShowBankData($sepaDeShowBankData)
75
+ * @method int getSepaDeShowBankData()
76
+ * @method setSepaMandateEnabled($sepaMandateEnabled)
77
+ * @method int getSepaMandateEnabled()
78
+ * @method setSepaMandateDownloadEnabled($sepaMandateDownloadEnabled)
79
+ * @method int getSepaMandateDownloadEnabled()
80
  * @method setMinOrderTotal($minOrderTotal)
81
  * @method float getMinOrderTotal()
82
  * @method setMaxOrderTotal($maxOrderTotal)
451
  else {
452
  $value = array_pop($fieldValue);
453
  switch ($fieldKey) {
454
+ case 'klarna_config':
455
  case 'fee_config':
456
  unset($value['__empty']);
457
  $value = empty($value) ? null : $value;
580
  {
581
  // prepare fee_config
582
  $this->unserializeData('fee_config');
583
+ // prepare klarna config
584
+ $this->unserializeData('klarna_config');
585
  $this->explodeData('types');
586
  $this->explodeData('specificcountry');
587
+ $this->explodeData('sepa_country');
588
  }
589
 
590
 
607
  // prepare specificcountry
608
  $this->implodeData('specificcountry');
609
 
610
+ // prepare sepa_country
611
+ $this->implodeData('sepa_country');
612
+
613
  // prepare fee_config
614
  $this->serializeData('fee_config');
615
+
616
+ // prepare klarna_config
617
+ $this->serializeData('klarna_config');
618
  }
619
 
620
  /**
681
  return $this->getData('fee_config');
682
  }
683
 
684
+ /**
685
+ * @return array
686
+ */
687
+ public function getKlarnaConfig()
688
+ {
689
+ $this->unserializeData('klarna_config');
690
+ return $this->getData('klarna_config');
691
+ }
692
+
693
  /**
694
  * @return array
695
  */
699
  return $this->getData('specificcountry');
700
  }
701
 
702
+ /**
703
+ * @return array
704
+ */
705
+ public function getSepaCountry()
706
+ {
707
+ $this->explodeData('sepa_country');
708
+ return $this->getData('sepa_country');
709
+ }
710
+
711
  /**
712
  * @return Payone_Core_Model_Factory
713
  */
app/code/community/Payone/Core/Model/Factory.php CHANGED
@@ -245,6 +245,34 @@ class Payone_Core_Model_Factory
245
  return $mapper;
246
  }
247
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  /**
249
  * @param Payone_Core_Model_Config_Protect_Creditrating $config
250
  * @return Payone_Core_Model_Mapper_ApiRequest_Verification_Creditrating
@@ -358,6 +386,41 @@ class Payone_Core_Model_Factory
358
  return $service;
359
  }
360
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
  /**
362
  * @param Payone_Core_Model_Config_Protect_AddressCheck $config
363
  * @return Payone_Core_Model_Service_Verification_AddressCheck
@@ -579,6 +642,24 @@ class Payone_Core_Model_Factory
579
  return $request;
580
  }
581
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
582
  /**
583
  * @return Payone_Api_Request_AddressCheck
584
  */
@@ -690,6 +771,32 @@ class Payone_Core_Model_Factory
690
  return $service;
691
  }
692
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
693
  /**
694
  * @return Payone_Api_Service_Verification_ConsumerScore
695
  */
@@ -1061,6 +1168,17 @@ class Payone_Core_Model_Factory
1061
  return $model;
1062
  }
1063
 
 
 
 
 
 
 
 
 
 
 
 
1064
  /**
1065
  * @return Mage_Customer_Model_Address
1066
  */
@@ -1435,6 +1553,14 @@ class Payone_Core_Model_Factory
1435
  return Mage::getSingleton('payone_core/system_config_methodType');
1436
  }
1437
 
 
 
 
 
 
 
 
 
1438
  /**
1439
  * @return Mage_Core_Model_Resource_Transaction
1440
  */
245
  return $mapper;
246
  }
247
 
248
+ /**
249
+ * @param Payone_Core_Model_Config_Payment_Method_Interface $config
250
+ * @return Payone_Core_Model_Mapper_ApiRequest_Management_ManageMandate
251
+ */
252
+ public function getMapperManagementRequestManageMandate(Payone_Core_Model_Config_Payment_Method_Interface $config)
253
+ {
254
+ /** @var Payone_Core_Model_Mapper_ApiRequest_Management_ManageMandate $mapper */
255
+ $mapper = Mage::getModel('payone_core/mapper_apiRequest_management_manageMandate');
256
+ $mapper->setPaymentConfig($config);
257
+ $mapper->setFactory($this);
258
+
259
+ return $mapper;
260
+ }
261
+
262
+ /**
263
+ * @param Payone_Core_Model_Config_Payment_Method_Interface $config
264
+ * @return Payone_Core_Model_Mapper_ApiRequest_Management_GetFile
265
+ */
266
+ public function getMapperManagementRequestGetFile(Payone_Core_Model_Config_Payment_Method_Interface $config)
267
+ {
268
+ /** @var Payone_Core_Model_Mapper_ApiRequest_Management_GetFile $mapper */
269
+ $mapper = Mage::getModel('payone_core/mapper_apiRequest_management_getFile');
270
+ $mapper->setConfig($config);
271
+ $mapper->setFactory($this);
272
+
273
+ return $mapper;
274
+ }
275
+
276
  /**
277
  * @param Payone_Core_Model_Config_Protect_Creditrating $config
278
  * @return Payone_Core_Model_Mapper_ApiRequest_Verification_Creditrating
386
  return $service;
387
  }
388
 
389
+ /**
390
+ * @param $paymentMethodConfigId
391
+ * @param $storeId
392
+ * @return Payone_Core_Model_Service_Management_ManageMandate
393
+ */
394
+ public function getServiceManagementManageMandate($paymentMethodConfigId, $storeId)
395
+ {
396
+ $config = $this->helperConfig()->getConfigPaymentMethodById($paymentMethodConfigId, $storeId);
397
+ $mapper = $this->getMapperManagementRequestManageMandate($config);
398
+ /** @var Payone_Core_Model_Service_Management_ManageMandate $service */
399
+ $service = Mage::getModel('payone_core/service_management_manageMandate');
400
+ $service->setMapper($mapper);
401
+ $service->setServiceApiManageMandate($this->getServiceApiManagementManageMandate());
402
+
403
+ return $service;
404
+ }
405
+
406
+ /**
407
+ * @param $paymentMethodConfigId
408
+ * @param $storeId
409
+ * @return Payone_Core_Model_Service_Management_GetFile
410
+ */
411
+ public function getServiceManagementGetFile($paymentMethodConfigId, $storeId)
412
+ {
413
+ $config = $this->helperConfig()->getConfigPaymentMethodById($paymentMethodConfigId, $storeId);
414
+ $mapper = $this->getMapperManagementRequestGetFile($config);
415
+
416
+ /** @var Payone_Core_Model_Service_Management_GetFile $service */
417
+ $service = Mage::getModel('payone_core/service_management_getFile');
418
+ $service->setMapper($mapper);
419
+ $service->setServiceApiGetFile($this->getServiceApiManagementGetFile());
420
+
421
+ return $service;
422
+ }
423
+
424
  /**
425
  * @param Payone_Core_Model_Config_Protect_AddressCheck $config
426
  * @return Payone_Core_Model_Service_Verification_AddressCheck
642
  return $request;
643
  }
644
 
645
+ /**
646
+ * @return Payone_Api_Request_ManageMandate
647
+ */
648
+ public function getRequestManagementManageMandate()
649
+ {
650
+ $request = new Payone_Api_Request_ManageMandate();
651
+ return $request;
652
+ }
653
+
654
+ /**
655
+ * @return Payone_Api_Request_GetFile
656
+ */
657
+ public function getRequestManagementGetFile()
658
+ {
659
+ $request = new Payone_Api_Request_GetFile();
660
+ return $request;
661
+ }
662
+
663
  /**
664
  * @return Payone_Api_Request_AddressCheck
665
  */
771
  return $service;
772
  }
773
 
774
+ /**
775
+ * @return Payone_Api_Service_Management_ManageMandate
776
+ */
777
+ public function getServiceApiManagementManageMandate()
778
+ {
779
+ $builder = $this->getBuilder();
780
+ $service = $builder->buildServiceManagementManageMandate();
781
+
782
+ $this->afterBuildServiceApi($service);
783
+
784
+ return $service;
785
+ }
786
+
787
+ /**
788
+ * @return Payone_Api_Service_Management_GetFile
789
+ */
790
+ public function getServiceApiManagementGetFile()
791
+ {
792
+ $builder = $this->getBuilder();
793
+ $service = $builder->buildServiceManagementGetFile();
794
+
795
+ $this->afterBuildServiceApi($service);
796
+
797
+ return $service;
798
+ }
799
+
800
  /**
801
  * @return Payone_Api_Service_Verification_ConsumerScore
802
  */
1168
  return $model;
1169
  }
1170
 
1171
+ /**
1172
+ * @return Mage_Customer_Model_Entity_Customer
1173
+ */
1174
+ public function getSingletonCustomerResource()
1175
+ {
1176
+ /** @var Mage_Customer_Model_Entity_Customer $resource */
1177
+ $resource = Mage::getResourceSingleton('customer/customer');
1178
+
1179
+ return $resource;
1180
+ }
1181
+
1182
  /**
1183
  * @return Mage_Customer_Model_Address
1184
  */
1553
  return Mage::getSingleton('payone_core/system_config_methodType');
1554
  }
1555
 
1556
+ /**
1557
+ * @return Payone_Core_Model_System_Config_KlarnaCountry
1558
+ */
1559
+ public function getModelSystemConfigKlarnaCountry()
1560
+ {
1561
+ return Mage::getSingleton('payone_core/system_config_klarnaCountry');
1562
+ }
1563
+
1564
  /**
1565
  * @return Mage_Core_Model_Resource_Transaction
1566
  */
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Management/GetFile.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Model_Mapper_ApiRequest_Management_GetFile
35
+ extends Payone_Core_Model_Mapper_ApiRequest_Abstract
36
+ {
37
+ /** @var Payone_Core_Model_Config_Payment_Method_Interface */
38
+ protected $config;
39
+
40
+ /**
41
+ * @param string $mandateIdentification
42
+ * @return Payone_Api_Request_GetFile
43
+ */
44
+ public function map($mandateIdentification)
45
+ {
46
+ $paymentMethodConfig = $this->getConfig();
47
+ $helper = $this->helper();
48
+
49
+ $request = $this->getFactory()->getRequestManagementGetFile();
50
+
51
+ // common parameters
52
+ $request->setMid($paymentMethodConfig->getMid());
53
+ $request->setPortalid($paymentMethodConfig->getPortalid());
54
+ $request->setKey($paymentMethodConfig->getKey());
55
+ $request->setMode($paymentMethodConfig->getMode());
56
+ $request->setRequest(Payone_Api_Enum_RequestType::GETFILE);
57
+ $request->setEncoding('UTF-8');
58
+ $request->setIntegratorName('Magento');
59
+ $request->setIntegratorVersion($helper->getMagentoVersion());
60
+ $request->setSolutionName('noovias');
61
+ $request->setSolutionVersion($helper->getPayoneVersion());
62
+
63
+ // special parameters
64
+ $request->setFileReference($mandateIdentification);
65
+ $request->setFileType(Payone_Api_Enum_FileType::SEPA_MANDATE);
66
+ $request->setFileFormat(Payone_Api_Enum_FileFormat::PDF);
67
+
68
+ return $request;
69
+ }
70
+
71
+ /**
72
+ * @param \Payone_Core_Model_Config_Payment_Method_Interface $config
73
+ */
74
+ public function setConfig($config)
75
+ {
76
+ $this->config = $config;
77
+ }
78
+
79
+ /**
80
+ * @return \Payone_Core_Model_Config_Payment_Method_Interface
81
+ */
82
+ public function getConfig()
83
+ {
84
+ return $this->config;
85
+ }
86
+ }
87
+
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Management/ManageMandate.php ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Model_Mapper_ApiRequest_Management_ManageMandate
35
+ extends Payone_Core_Model_Mapper_ApiRequest_Abstract
36
+ {
37
+ /** @var Payone_Core_Model_Config_Payment_Method_Interface */
38
+ protected $paymentConfig;
39
+
40
+ /**
41
+ * @param Mage_Sales_Model_Quote $quote
42
+ * @param $bankcountry
43
+ * @param $bankaccount
44
+ * @param $bankcode
45
+ * @param $bic
46
+ * @param $iban
47
+ * @return \Payone_Api_Request_ManageMandate
48
+ */
49
+ public function mapByQuote(Mage_Sales_Model_Quote $quote, $bankcountry, $bankaccount, $bankcode, $bic, $iban)
50
+ {
51
+ $paymentConfig = $this->getPaymentConfig();
52
+ $helper = $this->helper();
53
+
54
+ $request = $this->getFactory()->getRequestManagementManageMandate();
55
+
56
+ // common parameters
57
+ $request->setMid($paymentConfig->getMid());
58
+ $request->setPortalid($paymentConfig->getPortalid());
59
+ $request->setKey($paymentConfig->getKey());
60
+ $request->setMode($paymentConfig->getMode());
61
+ $request->setRequest(Payone_Api_Enum_RequestType::MANAGEMANDATE);
62
+ $request->setEncoding('UTF-8');
63
+ $request->setIntegratorName('Magento');
64
+ $request->setIntegratorVersion($helper->getMagentoVersion());
65
+ $request->setSolutionName('noovias');
66
+ $request->setSolutionVersion($helper->getPayoneVersion());
67
+
68
+ // special parameters
69
+ $request->setAid($paymentConfig->getAid());
70
+ $request->setClearingtype(Payone_Enum_ClearingType::DEBITPAYMENT); // only allowed for debit_payment
71
+ $request->setCurrency($quote->getQuoteCurrencyCode());
72
+
73
+ $request->setPersonalData($this->mapPersonalData($quote));
74
+ $request->setPayment($this->mapBankData($bankcountry, $bankaccount, $bankcode, $bic, $iban));
75
+
76
+ return $request;
77
+ }
78
+
79
+ /**
80
+ * @param Mage_Sales_Model_Quote $quote
81
+ * @return Payone_Api_Request_Parameter_ManageMandate_PersonalData
82
+ */
83
+ protected function mapPersonalData(Mage_Sales_Model_Quote $quote)
84
+ {
85
+ $billingAddress = $quote->getBillingAddress();
86
+ $helper = $this->helper();
87
+
88
+ $personalData = new Payone_Api_Request_Parameter_ManageMandate_PersonalData();
89
+
90
+ if ($quote->getCustomerId()) {
91
+ $personalData->setCustomerid($quote->getCustomerId());
92
+ }
93
+ $personalData->setLastname($billingAddress->getLastname());
94
+ $personalData->setFirstname($billingAddress->getFirstname());
95
+ if ($billingAddress->getCompany()) {
96
+ $personalData->setCompany($billingAddress->getCompany());
97
+ }
98
+ $personalData->setStreet($helper->normalizeStreet($billingAddress->getStreet()));
99
+ $personalData->setZip($billingAddress->getPostcode());
100
+ $personalData->setCity($billingAddress->getCity());
101
+ $personalData->setCountry($billingAddress->getCountry());
102
+ $personalData->setEmail($billingAddress->getEmail());
103
+ $personalData->setLanguage($helper->getDefaultLanguage());
104
+
105
+ return $personalData;
106
+ }
107
+
108
+ /**
109
+ * @param $bankcountry
110
+ * @param $bankaccount
111
+ * @param $bankcode
112
+ * @param $bic
113
+ * @param $iban
114
+ * @return Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_BankAccount
115
+ */
116
+ protected function mapBankData($bankcountry, $bankaccount, $bankcode, $bic, $iban)
117
+ {
118
+ $bankData = new Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_BankAccount();
119
+ $bankData->setBankcountry($bankcountry);
120
+ $bankData->setBankaccount($bankaccount);
121
+ $bankData->setBankcode($bankcode);
122
+ $bankData->setBic(strtoupper($bic));
123
+ $bankData->setIban(strtoupper($iban)); // ensure bic & iban are sent uppercase
124
+
125
+ return $bankData;
126
+ }
127
+
128
+ /**
129
+ * @param \Payone_Core_Model_Config_Payment_Method_Interface $paymentConfig
130
+ */
131
+ public function setPaymentConfig($paymentConfig)
132
+ {
133
+ $this->paymentConfig = $paymentConfig;
134
+ }
135
+
136
+ /**
137
+ * @return \Payone_Core_Model_Config_Payment_Method_Interface
138
+ */
139
+ public function getPaymentConfig()
140
+ {
141
+ return $this->paymentConfig;
142
+ }
143
+ }
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Abstract.php CHANGED
@@ -1,509 +1,542 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Abstract
34
- extends Payone_Core_Model_Mapper_ApiRequest_Abstract
35
- implements Payone_Core_Model_Mapper_ApiRequest_Payment_Interface
36
- {
37
- const DEFAULT_SHIPPING_SKU = 'Shipping';
38
- const DEFAULT_ADJUSTMENT_POSITIVE_SKU = 'Adjustment Refund';
39
- const DEFAULT_ADJUSTMENT_NEGATIVE_SKU = 'Adjustment Fee';
40
-
41
- const DEFAULT_DISCOUNT_SKU = 'Discount';
42
- const DEFAULT_TAX_SKU = 'Tax';
43
-
44
- /** @var float */
45
- protected $amount = 0.00;
46
-
47
- /** @var Mage_Sales_Model_Order */
48
- protected $order = null;
49
-
50
- /** @var Payone_Core_Model_Payment_Method_Abstract */
51
- protected $paymentMethod = null;
52
-
53
- /** @var Payone_Core_Model_Config_Payment_Method_Interface */
54
- protected $configPayment = null;
55
-
56
- /** @var Payone_Core_Model_Config_Misc */
57
- protected $configMisc = null;
58
-
59
- /**
60
- * @param Mage_Sales_Model_Order_Payment $payment
61
- */
62
- protected function init(Mage_Sales_Model_Order_Payment $payment)
63
- {
64
- $this->setOrder($payment->getOrder());
65
- $this->setPaymentMethod($payment->getMethodInstance());
66
- }
67
-
68
- /**
69
- * @param Payone_Api_Request_Interface $request
70
- */
71
- protected function mapDefaultParameters(Payone_Api_Request_Interface $request)
72
- {
73
- $helper = $this->helper();
74
-
75
- $solutionName = 'noovias';
76
- $solutionVersion = $helper->getPayoneVersion();
77
- $integratorName = 'magento';
78
- $integratorVersion = $helper->getMagentoVersion();
79
-
80
- $request->setEncoding('UTF-8');
81
- $request->setMid($this->getConfigPayment()->getMid());
82
- $request->setPortalid($this->getConfigPayment()->getPortalid());
83
- $request->setMode($this->getConfigPayment()->getMode());
84
- $request->setKey($this->getConfigPayment()->getKey());
85
- $request->setIntegratorName($integratorName);
86
- $request->setIntegratorVersion($integratorVersion);
87
- $request->setSolutionName($solutionName);
88
- $request->setSolutionVersion($solutionVersion);
89
- }
90
-
91
- /**
92
- * @return Payone_Api_Request_Parameter_Invoicing_Item
93
- */
94
- protected function mapShippingFeeAsItem()
95
- {
96
- $order = $this->getOrder();
97
-
98
- $configMiscShipping = $this->getConfigMisc()->getShippingCosts();
99
- $sku = $configMiscShipping->getSku();
100
- if (empty($sku)) {
101
- $sku = $this->helper()->__(self::DEFAULT_SHIPPING_SKU);
102
- }
103
- $params['id'] = $sku;
104
- $params['de'] = $order->getShippingDescription();
105
- $params['no'] = 1;
106
- $params['pr'] = $order->getShippingInclTax();
107
- $params['va'] = $this->getShippingTaxRate();
108
-
109
- if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
110
- $params['it'] = Payone_Api_Enum_InvoicingItemType::SHIPMENT;
111
- }
112
-
113
- $item = new Payone_Api_Request_Parameter_Invoicing_Item();
114
- $item->init($params);
115
-
116
- return $item;
117
- }
118
-
119
- /**
120
- * @param float $discountAmount
121
- * @return Payone_Api_Request_Parameter_Invoicing_Item
122
- */
123
- protected function mapDiscountAsItem($discountAmount)
124
- {
125
- $configMiscDiscount = $this->getConfigMisc()->getDiscount();
126
- $sku = $configMiscDiscount->getSku();
127
- $description = $configMiscDiscount->getDescription();
128
- if (empty($sku)) {
129
- $sku = $this->helper()->__(self::DEFAULT_DISCOUNT_SKU);
130
- }
131
- if (empty($description)) {
132
- $description = $this->helper()->__(self::DEFAULT_DISCOUNT_SKU);
133
- }
134
-
135
- $params['id'] = $sku;
136
- $params['de'] = $description;
137
- $params['no'] = 1;
138
- $params['pr'] = $discountAmount;
139
-
140
- if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
141
- $params['it'] = Payone_Api_Enum_InvoicingItemType::VOUCHER;
142
- }
143
- $item = new Payone_Api_Request_Parameter_Invoicing_Item();
144
- $item->init($params);
145
-
146
- return $item;
147
- }
148
-
149
- /**
150
- * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
151
- * @return Payone_Api_Request_Parameter_Invoicing_Item
152
- *
153
- * used by Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
154
- */
155
- protected function mapRefundShippingAsItemByCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
156
- {
157
- $order = $this->getOrder();
158
-
159
- $configMiscShipping = $this->getConfigMisc()->getShippingCosts();
160
- $sku = $configMiscShipping->getSku();
161
- if (empty($sku)) {
162
- $sku = $this->helper()->__(self::DEFAULT_SHIPPING_SKU);
163
- }
164
-
165
- $params['id'] = $sku;
166
- $params['de'] = $order->getShippingDescription();
167
- $params['no'] = 1;
168
- $params['pr'] = $creditmemo->getShippingInclTax();
169
- if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
170
- $params['it'] = Payone_Api_Enum_InvoicingItemType::SHIPMENT;
171
- }
172
-
173
- $item = new Payone_Api_Request_Parameter_Invoicing_Item();
174
- $item->init($params);
175
-
176
- return $item;
177
- }
178
-
179
- /**
180
- * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
181
- * @return Payone_Api_Request_Parameter_Invoicing_Item
182
- *
183
- * used by Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
184
- */
185
- protected function mapAdjustmentPositiveAsItemByCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
186
- {
187
- $configMiscCreditmemo = $this->getConfigMisc()->getCreditmemo();
188
- $sku = $configMiscCreditmemo->getAdjustmentRefundSku();
189
- $name = $configMiscCreditmemo->getAdjustmentRefundName();
190
- if (empty($sku)) {
191
- $sku = $this->helper()->__(self::DEFAULT_ADJUSTMENT_POSITIVE_SKU);
192
- }
193
- if (empty($name)) {
194
- $name = $this->helper()->__(self::DEFAULT_ADJUSTMENT_POSITIVE_SKU);
195
- }
196
-
197
- $params['id'] = $sku;
198
- $params['de'] = $name;
199
- $params['no'] = 1;
200
- $params['pr'] = $creditmemo->getAdjustmentPositive();
201
- if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
202
- $params['it'] = Payone_Api_Enum_InvoicingItemType::VOUCHER;
203
- }
204
-
205
- $item = new Payone_Api_Request_Parameter_Invoicing_Item();
206
- $item->init($params);
207
-
208
- return $item;
209
- }
210
-
211
- /**
212
- * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
213
- * @return Payone_Api_Request_Parameter_Invoicing_Item
214
- *
215
- * used by Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
216
- */
217
-
218
- protected function mapAdjustmentNegativeAsItemByCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
219
- {
220
- $configMiscCreditmemo = $this->getConfigMisc()->getCreditmemo();
221
- $sku = $configMiscCreditmemo->getAdjustmentFeeSku();
222
- $name = $configMiscCreditmemo->getAdjustmentFeeName();
223
- if (empty($sku)) {
224
- $sku = $this->helper()->__(self::DEFAULT_ADJUSTMENT_NEGATIVE_SKU);
225
- }
226
- if (empty($name)) {
227
- $name = $this->helper()->__(self::DEFAULT_ADJUSTMENT_NEGATIVE_SKU);
228
- }
229
-
230
- $params['id'] = $sku;
231
- $params['de'] = $name;
232
- $params['no'] = 1;
233
- $params['pr'] = $creditmemo->getAdjustmentNegative() * (-1);
234
- if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
235
- $params['it'] = Payone_Api_Enum_InvoicingItemType::GOODS;
236
- }
237
-
238
- $item = new Payone_Api_Request_Parameter_Invoicing_Item();
239
- $item->init($params);
240
-
241
- return $item;
242
- }
243
-
244
-
245
- protected function getShippingTaxRate()
246
- {
247
- $order = $this->getOrder();
248
- $storeId = $this->getStoreId();
249
- $factory = $this->getFactory();
250
- $store = $factory->getModelCoreStore()->load($storeId);
251
-
252
- /** @var $taxCalculationModel Mage_Tax_Model_Calculation */
253
- $taxCalculationModel = $factory->getSingletonTaxCalculation();
254
-
255
- $shippingAddress = $order->getShippingAddress();
256
- $billingAddress = $order->getBillingAddress();
257
- $quoteId = $order->getQuoteId();
258
- $quote = $factory->getModelSalesQuote();
259
- $quote->load($quoteId);
260
-
261
- $customerTaxClassId = $quote->getCustomerTaxClassId();
262
- $request = $taxCalculationModel->getRateRequest($shippingAddress, $billingAddress, $customerTaxClassId, $store);
263
-
264
- $shippingTaxClass = $this->helperConfig()->getShippingTaxClassId($storeId);
265
- if ($shippingTaxClass) {
266
- $request->setProductClassId($shippingTaxClass);
267
- return $taxCalculationModel->getRate($request);
268
- }
269
- else {
270
- return 0.0;
271
- }
272
- }
273
-
274
-
275
- /**
276
- * Returns the invoice appendix and substitutes the placeholders, as far as possible
277
- *
278
- * @param Mage_Sales_Model_Order_Invoice|null $invoice
279
- * @return mixed|string
280
- */
281
- public function getInvoiceAppendix(Mage_Sales_Model_Order_Invoice $invoice = null)
282
- {
283
- $order = $this->getOrder();
284
-
285
- /** @var $customer Mage_Customer_Model_Customer */
286
- $customer = $this->getFactory()->getModelCustomer();
287
- $customer->load($order->getCustomerId());
288
-
289
- $invoiceIncrementId = '';
290
- if (!is_null($invoice)) {
291
- $invoiceIncrementId = $invoice->getIncrementId();
292
- }
293
-
294
- $substitutionArray = array(
295
- '{{order_increment_id}}' => $order->getIncrementId(),
296
- '{{order_id}}' => $order->getId(),
297
- '{{invoice_increment_id}}' => $invoiceIncrementId,
298
- '{{customer_increment_id}}' => $customer->getIncrementId(),
299
- '{{customer_id}}' => $order->getCustomerId(),
300
- );
301
-
302
- $appendix = $this->getConfigParameterInvoice()->getInvoiceAppendix();
303
- $appendix = str_replace(array_keys($substitutionArray), array_values($substitutionArray), $appendix);
304
-
305
- return $appendix;
306
- }
307
-
308
- /**
309
- * Returns the refund appendix and substitutes the placeholders, as far as possible
310
- *
311
- * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
312
- * @return string
313
- */
314
- public function getInvoiceAppendixRefund(Mage_Sales_Model_Order_Creditmemo $creditmemo)
315
- {
316
- $order = $this->getOrder();
317
-
318
- /** @var $customer Mage_Customer_Model_Customer */
319
- $customer = $this->getFactory()->getModelCustomer();
320
- $customer->load($order->getCustomerId());
321
-
322
- /** @var $invoice Mage_Sales_Model_Order_Invoice */
323
- $invoice = $creditmemo->getInvoice();
324
-
325
- $substitutionArray = array(
326
- '{{order_increment_id}}' => $order->getIncrementId(),
327
- '{{order_id}}' => $order->getId(),
328
- '{{creditmemo_increment_id}}' => $creditmemo->getIncrementId(),
329
- '{{invoice_increment_id}}' => $invoice->getIncrementId(),
330
- '{{invoice_id}}' => $invoice->getId(),
331
- '{{customer_increment_id}}' => $customer->getIncrementId(),
332
- '{{customer_id}}' => $order->getCustomerId(),
333
- );
334
-
335
- $appendix = $this->getConfigParameterInvoice()->getInvoiceAppendixRefund();
336
- $appendix = str_replace(array_keys($substitutionArray), array_values($substitutionArray), $appendix);
337
-
338
- return $appendix;
339
- }
340
-
341
-
342
- /**
343
- * @return bool
344
- */
345
- protected function mustTransmitInvoiceData()
346
- {
347
- if ($this->getConfigPayment()->isInvoiceTransmitEnabled()) {
348
- return true;
349
- }
350
-
351
- $paymentMethod = $this->getPaymentMethod();
352
- if ($paymentMethod->mustTransmitInvoicingData()) { // Certain payment methods require invoicing data to be transmitted ALWAYS.
353
- return true;
354
- }
355
-
356
- return false;
357
- }
358
-
359
- /**
360
- * @param Mage_Sales_Model_Abstract $object
361
- * @return string
362
- */
363
- protected function fetchNewIncrementId(Mage_Sales_Model_Abstract $object)
364
- {
365
- $entityTypeModel = $this->getFactory()->getModelEavEntityType();
366
-
367
- $code = '';
368
- if ($object instanceof Mage_Sales_Model_Order_Invoice) {
369
- $code = 'invoice';
370
- }
371
- elseif ($object instanceof Mage_Sales_Model_Order_Creditmemo) {
372
- $code = 'creditmemo';
373
- }
374
- $entityType = $entityTypeModel->loadByCode($code);
375
- $newIncrementId = $entityType->fetchNewIncrementId($this->getStoreId());
376
- if ($newIncrementId !== false) {
377
- $object->setIncrementId($newIncrementId);
378
- }
379
- return $newIncrementId;
380
- }
381
-
382
- /**
383
- * @param Payone_Core_Model_Config_Payment_Method_Interface $configPayment
384
- */
385
- public function setConfigPayment(Payone_Core_Model_Config_Payment_Method_Interface $configPayment)
386
- {
387
- $this->configPayment = $configPayment;
388
- }
389
-
390
- /**
391
- * @return Payone_Core_Model_Config_Payment_Method_Interface
392
- */
393
- public function getConfigPayment()
394
- {
395
- return $this->configPayment;
396
- }
397
-
398
- /**
399
- * @return Payone_Core_Model_Config_Misc
400
- */
401
- protected function getConfigMisc()
402
- {
403
- if ($this->configMisc === null) {
404
- $this->configMisc = $this->helperConfig()->getConfigMisc($this->getStoreId());
405
- }
406
- return $this->configMisc;
407
- }
408
-
409
-
410
- /**
411
- * @param Payone_Core_Model_Config_Misc $configMisc
412
- */
413
- public function setConfigMisc(Payone_Core_Model_Config_Misc $configMisc)
414
- {
415
- $this->configMisc = $configMisc;
416
- }
417
-
418
- /**
419
- * @return Payone_Core_Model_Config_General_ParameterInvoice
420
- */
421
- protected function getConfigParameterInvoice()
422
- {
423
- return $this->helperConfig()->getConfigGeneral($this->getStoreId())->getParameterInvoice();
424
- }
425
-
426
- /**
427
- * @return int
428
- */
429
- protected function getStoreId()
430
- {
431
- return $this->getPaymentMethod()->getStore();
432
- }
433
-
434
- /**
435
- * @param $storeId
436
- * @return Payone_Core_Model_Config_General
437
- */
438
- protected function getConfigGeneral($storeId = null)
439
- {
440
- if (is_null($storeId)) {
441
- $storeId = $this->getStoreId();
442
- }
443
- return $this->helperConfig()->getConfigGeneral($storeId);
444
- }
445
-
446
- /**
447
- * @param Mage_Sales_Model_Order $order
448
- */
449
- public function setOrder(Mage_Sales_Model_Order $order)
450
- {
451
- $this->order = $order;
452
- }
453
-
454
- /**
455
- * @return Mage_Sales_Model_Order
456
- */
457
- public function getOrder()
458
- {
459
- return $this->order;
460
- }
461
-
462
- /**
463
- * @param float $amount
464
- */
465
- public function setAmount($amount)
466
- {
467
- $this->amount = $amount;
468
- }
469
-
470
- /**
471
- * @return float
472
- */
473
- public function getAmount()
474
- {
475
- return $this->amount;
476
- }
477
-
478
- /**
479
- * @param Payone_Core_Model_Payment_Method_Abstract $paymentMethod
480
- */
481
- public function setPaymentMethod(Payone_Core_Model_Payment_Method_Abstract $paymentMethod)
482
- {
483
- $this->paymentMethod = $paymentMethod;
484
- }
485
-
486
- /**
487
- * @return Payone_Core_Model_Payment_Method_Abstract
488
- */
489
- public function getPaymentMethod()
490
- {
491
- return $this->paymentMethod;
492
- }
493
-
494
- /**
495
- * @return Payone_Core_Helper_Config
496
- */
497
- protected function helperConfig()
498
- {
499
- return $this->getFactory()->helperConfig();
500
- }
501
-
502
- /**
503
- * @return Payone_Core_Helper_Registry
504
- */
505
- protected function helperRegistry()
506
- {
507
- return $this->getFactory()->helperRegistry();
508
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Abstract
34
+ extends Payone_Core_Model_Mapper_ApiRequest_Abstract
35
+ implements Payone_Core_Model_Mapper_ApiRequest_Payment_Interface
36
+ {
37
+ const DEFAULT_SHIPPING_SKU = 'Shipping';
38
+ const DEFAULT_ADJUSTMENT_POSITIVE_SKU = 'Adjustment Refund';
39
+ const DEFAULT_ADJUSTMENT_NEGATIVE_SKU = 'Adjustment Fee';
40
+
41
+ const DEFAULT_DISCOUNT_SKU = 'Discount';
42
+ const DEFAULT_TAX_SKU = 'Tax';
43
+
44
+ const EVENT_PREFIX = 'payone_core_mapper_apirequest_payment';
45
+
46
+ /** @var float */
47
+ protected $amount = 0.00;
48
+
49
+ /** @var Mage_Sales_Model_Order */
50
+ protected $order = null;
51
+
52
+ /** @var Payone_Core_Model_Payment_Method_Abstract */
53
+ protected $paymentMethod = null;
54
+
55
+ /** @var Payone_Core_Model_Config_Payment_Method_Interface */
56
+ protected $configPayment = null;
57
+
58
+ /** @var Payone_Core_Model_Config_Misc */
59
+ protected $configMisc = null;
60
+
61
+ /**
62
+ * @return string
63
+ */
64
+ abstract public function getEventType();
65
+
66
+ /**
67
+ * @param Mage_Sales_Model_Order_Payment $payment
68
+ */
69
+ protected function init(Mage_Sales_Model_Order_Payment $payment)
70
+ {
71
+ $this->setOrder($payment->getOrder());
72
+ $this->setPaymentMethod($payment->getMethodInstance());
73
+ }
74
+
75
+ /**
76
+ * @param Payone_Api_Request_Interface $request
77
+ */
78
+ protected function mapDefaultParameters(Payone_Api_Request_Interface $request)
79
+ {
80
+ $helper = $this->helper();
81
+
82
+ $solutionName = 'noovias';
83
+ $solutionVersion = $helper->getPayoneVersion();
84
+ $integratorName = 'magento';
85
+ $integratorVersion = $helper->getMagentoVersion();
86
+
87
+ $request->setEncoding('UTF-8');
88
+ $request->setMid($this->getConfigPayment()->getMid());
89
+ $request->setPortalid($this->getConfigPayment()->getPortalid());
90
+ $request->setMode($this->getConfigPayment()->getMode());
91
+ $request->setKey($this->getConfigPayment()->getKey());
92
+ $request->setIntegratorName($integratorName);
93
+ $request->setIntegratorVersion($integratorVersion);
94
+ $request->setSolutionName($solutionName);
95
+ $request->setSolutionVersion($solutionVersion);
96
+ }
97
+
98
+ /**
99
+ * @return Payone_Api_Request_Parameter_Invoicing_Item
100
+ */
101
+ protected function mapShippingFeeAsItem()
102
+ {
103
+ $order = $this->getOrder();
104
+
105
+ $configMiscShipping = $this->getConfigMisc()->getShippingCosts();
106
+ $sku = $configMiscShipping->getSku();
107
+ if (empty($sku)) {
108
+ $sku = $this->helper()->__(self::DEFAULT_SHIPPING_SKU);
109
+ }
110
+ $params['id'] = $sku;
111
+ $params['de'] = $order->getShippingDescription();
112
+ $params['no'] = 1;
113
+ $params['pr'] = $order->getShippingInclTax();
114
+ $params['va'] = $this->getShippingTaxRate();
115
+
116
+ if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
117
+ $params['it'] = Payone_Api_Enum_InvoicingItemType::SHIPMENT;
118
+ }
119
+
120
+ $item = new Payone_Api_Request_Parameter_Invoicing_Item();
121
+ $item->init($params);
122
+
123
+ return $item;
124
+ }
125
+
126
+ /**
127
+ * @param float $discountAmount
128
+ * @return Payone_Api_Request_Parameter_Invoicing_Item
129
+ */
130
+ protected function mapDiscountAsItem($discountAmount)
131
+ {
132
+ $configMiscDiscount = $this->getConfigMisc()->getDiscount();
133
+ $sku = $configMiscDiscount->getSku();
134
+ $description = $configMiscDiscount->getDescription();
135
+ if (empty($sku)) {
136
+ $sku = $this->helper()->__(self::DEFAULT_DISCOUNT_SKU);
137
+ }
138
+ if (empty($description)) {
139
+ $description = $this->helper()->__(self::DEFAULT_DISCOUNT_SKU);
140
+ }
141
+
142
+ $params['id'] = $sku;
143
+ $params['de'] = $description;
144
+ $params['no'] = 1;
145
+ $params['pr'] = $discountAmount;
146
+
147
+ if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
148
+ $params['it'] = Payone_Api_Enum_InvoicingItemType::VOUCHER;
149
+ }
150
+ $item = new Payone_Api_Request_Parameter_Invoicing_Item();
151
+ $item->init($params);
152
+
153
+ return $item;
154
+ }
155
+
156
+ /**
157
+ * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
158
+ * @return Payone_Api_Request_Parameter_Invoicing_Item
159
+ *
160
+ * used by Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
161
+ */
162
+ protected function mapRefundShippingAsItemByCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
163
+ {
164
+ $order = $this->getOrder();
165
+
166
+ $configMiscShipping = $this->getConfigMisc()->getShippingCosts();
167
+ $sku = $configMiscShipping->getSku();
168
+ if (empty($sku)) {
169
+ $sku = $this->helper()->__(self::DEFAULT_SHIPPING_SKU);
170
+ }
171
+
172
+ $params['id'] = $sku;
173
+ $params['de'] = $order->getShippingDescription();
174
+ $params['no'] = 1;
175
+ $params['pr'] = $creditmemo->getShippingInclTax();
176
+ if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
177
+ $params['it'] = Payone_Api_Enum_InvoicingItemType::SHIPMENT;
178
+ }
179
+
180
+ $item = new Payone_Api_Request_Parameter_Invoicing_Item();
181
+ $item->init($params);
182
+
183
+ return $item;
184
+ }
185
+
186
+ /**
187
+ * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
188
+ * @return Payone_Api_Request_Parameter_Invoicing_Item
189
+ *
190
+ * used by Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
191
+ */
192
+ protected function mapAdjustmentPositiveAsItemByCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
193
+ {
194
+ $configMiscCreditmemo = $this->getConfigMisc()->getCreditmemo();
195
+ $sku = $configMiscCreditmemo->getAdjustmentRefundSku();
196
+ $name = $configMiscCreditmemo->getAdjustmentRefundName();
197
+ if (empty($sku)) {
198
+ $sku = $this->helper()->__(self::DEFAULT_ADJUSTMENT_POSITIVE_SKU);
199
+ }
200
+ if (empty($name)) {
201
+ $name = $this->helper()->__(self::DEFAULT_ADJUSTMENT_POSITIVE_SKU);
202
+ }
203
+
204
+ $params['id'] = $sku;
205
+ $params['de'] = $name;
206
+ $params['no'] = 1;
207
+ $params['pr'] = $creditmemo->getAdjustmentPositive();
208
+ if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
209
+ $params['it'] = Payone_Api_Enum_InvoicingItemType::VOUCHER;
210
+ }
211
+
212
+ $item = new Payone_Api_Request_Parameter_Invoicing_Item();
213
+ $item->init($params);
214
+
215
+ return $item;
216
+ }
217
+
218
+ /**
219
+ * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
220
+ * @return Payone_Api_Request_Parameter_Invoicing_Item
221
+ *
222
+ * used by Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
223
+ */
224
+
225
+ protected function mapAdjustmentNegativeAsItemByCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
226
+ {
227
+ $configMiscCreditmemo = $this->getConfigMisc()->getCreditmemo();
228
+ $sku = $configMiscCreditmemo->getAdjustmentFeeSku();
229
+ $name = $configMiscCreditmemo->getAdjustmentFeeName();
230
+ if (empty($sku)) {
231
+ $sku = $this->helper()->__(self::DEFAULT_ADJUSTMENT_NEGATIVE_SKU);
232
+ }
233
+ if (empty($name)) {
234
+ $name = $this->helper()->__(self::DEFAULT_ADJUSTMENT_NEGATIVE_SKU);
235
+ }
236
+
237
+ $params['id'] = $sku;
238
+ $params['de'] = $name;
239
+ $params['no'] = 1;
240
+ $params['pr'] = $creditmemo->getAdjustmentNegative() * (-1);
241
+ if ($this->getPaymentMethod()->mustTransmitInvoicingItemTypes()) {
242
+ $params['it'] = Payone_Api_Enum_InvoicingItemType::GOODS;
243
+ }
244
+
245
+ $item = new Payone_Api_Request_Parameter_Invoicing_Item();
246
+ $item->init($params);
247
+
248
+ return $item;
249
+ }
250
+
251
+
252
+ protected function getShippingTaxRate()
253
+ {
254
+ $order = $this->getOrder();
255
+ $storeId = $this->getStoreId();
256
+ $factory = $this->getFactory();
257
+ $store = $factory->getModelCoreStore()->load($storeId);
258
+
259
+ /** @var $taxCalculationModel Mage_Tax_Model_Calculation */
260
+ $taxCalculationModel = $factory->getSingletonTaxCalculation();
261
+
262
+ $shippingAddress = $order->getShippingAddress();
263
+ $billingAddress = $order->getBillingAddress();
264
+ $quoteId = $order->getQuoteId();
265
+ $quote = $factory->getModelSalesQuote();
266
+ $quote->load($quoteId);
267
+
268
+ $customerTaxClassId = $quote->getCustomerTaxClassId();
269
+ $request = $taxCalculationModel->getRateRequest($shippingAddress, $billingAddress, $customerTaxClassId, $store);
270
+
271
+ $shippingTaxClass = $this->helperConfig()->getShippingTaxClassId($storeId);
272
+ if ($shippingTaxClass) {
273
+ $request->setProductClassId($shippingTaxClass);
274
+ return $taxCalculationModel->getRate($request);
275
+ }
276
+ else {
277
+ return 0.0;
278
+ }
279
+ }
280
+
281
+
282
+ /**
283
+ * Returns the invoice appendix and substitutes the placeholders, as far as possible
284
+ *
285
+ * @param Mage_Sales_Model_Order_Invoice|null $invoice
286
+ * @return mixed|string
287
+ */
288
+ public function getInvoiceAppendix(Mage_Sales_Model_Order_Invoice $invoice = null)
289
+ {
290
+ $order = $this->getOrder();
291
+
292
+ /** @var $customer Mage_Customer_Model_Customer */
293
+ $customer = $this->getFactory()->getModelCustomer();
294
+ $customer->load($order->getCustomerId());
295
+
296
+ $invoiceIncrementId = '';
297
+ if (!is_null($invoice)) {
298
+ $invoiceIncrementId = $invoice->getIncrementId();
299
+ }
300
+
301
+ $substitutionArray = array(
302
+ '{{order_increment_id}}' => $order->getIncrementId(),
303
+ '{{order_id}}' => $order->getId(),
304
+ '{{invoice_increment_id}}' => $invoiceIncrementId,
305
+ '{{customer_increment_id}}' => $customer->getIncrementId(),
306
+ '{{customer_id}}' => $order->getCustomerId(),
307
+ );
308
+
309
+ $appendix = $this->getConfigParameterInvoice()->getInvoiceAppendix();
310
+ $appendix = str_replace(array_keys($substitutionArray), array_values($substitutionArray), $appendix);
311
+
312
+ return $appendix;
313
+ }
314
+
315
+ /**
316
+ * Returns the refund appendix and substitutes the placeholders, as far as possible
317
+ *
318
+ * @param Mage_Sales_Model_Order_Creditmemo $creditmemo
319
+ * @return string
320
+ */
321
+ public function getInvoiceAppendixRefund(Mage_Sales_Model_Order_Creditmemo $creditmemo)
322
+ {
323
+ $order = $this->getOrder();
324
+
325
+ /** @var $customer Mage_Customer_Model_Customer */
326
+ $customer = $this->getFactory()->getModelCustomer();
327
+ $customer->load($order->getCustomerId());
328
+
329
+ /** @var $invoice Mage_Sales_Model_Order_Invoice */
330
+ $invoice = $creditmemo->getInvoice();
331
+
332
+ $substitutionArray = array(
333
+ '{{order_increment_id}}' => $order->getIncrementId(),
334
+ '{{order_id}}' => $order->getId(),
335
+ '{{creditmemo_increment_id}}' => $creditmemo->getIncrementId(),
336
+ '{{invoice_increment_id}}' => $invoice->getIncrementId(),
337
+ '{{invoice_id}}' => $invoice->getId(),
338
+ '{{customer_increment_id}}' => $customer->getIncrementId(),
339
+ '{{customer_id}}' => $order->getCustomerId(),
340
+ );
341
+
342
+ $appendix = $this->getConfigParameterInvoice()->getInvoiceAppendixRefund();
343
+ $appendix = str_replace(array_keys($substitutionArray), array_values($substitutionArray), $appendix);
344
+
345
+ return $appendix;
346
+ }
347
+
348
+
349
+ /**
350
+ * @return bool
351
+ */
352
+ protected function mustTransmitInvoiceData()
353
+ {
354
+ if ($this->getConfigPayment()->isInvoiceTransmitEnabled()) {
355
+ return true;
356
+ }
357
+
358
+ $paymentMethod = $this->getPaymentMethod();
359
+ if ($paymentMethod->mustTransmitInvoicingData()) { // Certain payment methods require invoicing data to be transmitted ALWAYS.
360
+ return true;
361
+ }
362
+
363
+ return false;
364
+ }
365
+
366
+ /**
367
+ * @param Mage_Sales_Model_Abstract $object
368
+ * @return string
369
+ */
370
+ protected function fetchNewIncrementId(Mage_Sales_Model_Abstract $object)
371
+ {
372
+ $entityTypeModel = $this->getFactory()->getModelEavEntityType();
373
+
374
+ $code = '';
375
+ if ($object instanceof Mage_Sales_Model_Order_Invoice) {
376
+ $code = 'invoice';
377
+ }
378
+ elseif ($object instanceof Mage_Sales_Model_Order_Creditmemo) {
379
+ $code = 'creditmemo';
380
+ }
381
+ $entityType = $entityTypeModel->loadByCode($code);
382
+ $newIncrementId = $entityType->fetchNewIncrementId($this->getStoreId());
383
+ if ($newIncrementId !== false) {
384
+ $object->setIncrementId($newIncrementId);
385
+ }
386
+ return $newIncrementId;
387
+ }
388
+
389
+ /**
390
+ * @param Payone_Core_Model_Config_Payment_Method_Interface $configPayment
391
+ */
392
+ public function setConfigPayment(Payone_Core_Model_Config_Payment_Method_Interface $configPayment)
393
+ {
394
+ $this->configPayment = $configPayment;
395
+ }
396
+
397
+ /**
398
+ * @return Payone_Core_Model_Config_Payment_Method_Interface
399
+ */
400
+ public function getConfigPayment()
401
+ {
402
+ return $this->configPayment;
403
+ }
404
+
405
+ /**
406
+ * @return Payone_Core_Model_Config_Misc
407
+ */
408
+ protected function getConfigMisc()
409
+ {
410
+ if ($this->configMisc === null) {
411
+ $this->configMisc = $this->helperConfig()->getConfigMisc($this->getStoreId());
412
+ }
413
+ return $this->configMisc;
414
+ }
415
+
416
+
417
+ /**
418
+ * @param Payone_Core_Model_Config_Misc $configMisc
419
+ */
420
+ public function setConfigMisc(Payone_Core_Model_Config_Misc $configMisc)
421
+ {
422
+ $this->configMisc = $configMisc;
423
+ }
424
+
425
+ /**
426
+ * @return Payone_Core_Model_Config_General_ParameterInvoice
427
+ */
428
+ protected function getConfigParameterInvoice()
429
+ {
430
+ return $this->helperConfig()->getConfigGeneral($this->getStoreId())->getParameterInvoice();
431
+ }
432
+
433
+ /**
434
+ * @return int
435
+ */
436
+ protected function getStoreId()
437
+ {
438
+ return $this->getPaymentMethod()->getStore();
439
+ }
440
+
441
+ /**
442
+ * @param $storeId
443
+ * @return Payone_Core_Model_Config_General
444
+ */
445
+ protected function getConfigGeneral($storeId = null)
446
+ {
447
+ if (is_null($storeId)) {
448
+ $storeId = $this->getStoreId();
449
+ }
450
+ return $this->helperConfig()->getConfigGeneral($storeId);
451
+ }
452
+
453
+ /**
454
+ * @param Mage_Sales_Model_Order $order
455
+ */
456
+ public function setOrder(Mage_Sales_Model_Order $order)
457
+ {
458
+ $this->order = $order;
459
+ }
460
+
461
+ /**
462
+ * @return Mage_Sales_Model_Order
463
+ */
464
+ public function getOrder()
465
+ {
466
+ return $this->order;
467
+ }
468
+
469
+ /**
470
+ * @param float $amount
471
+ */
472
+ public function setAmount($amount)
473
+ {
474
+ $this->amount = $amount;
475
+ }
476
+
477
+ /**
478
+ * @return float
479
+ */
480
+ public function getAmount()
481
+ {
482
+ return $this->amount;
483
+ }
484
+
485
+ /**
486
+ * @param Payone_Core_Model_Payment_Method_Abstract $paymentMethod
487
+ */
488
+ public function setPaymentMethod(Payone_Core_Model_Payment_Method_Abstract $paymentMethod)
489
+ {
490
+ $this->paymentMethod = $paymentMethod;
491
+ }
492
+
493
+ /**
494
+ * @return Payone_Core_Model_Payment_Method_Abstract
495
+ */
496
+ public function getPaymentMethod()
497
+ {
498
+ return $this->paymentMethod;
499
+ }
500
+
501
+ /**
502
+ * @return Payone_Core_Helper_Config
503
+ */
504
+ protected function helperConfig()
505
+ {
506
+ return $this->getFactory()->helperConfig();
507
+ }
508
+
509
+ /**
510
+ * @return Payone_Core_Helper_Registry
511
+ */
512
+ protected function helperRegistry()
513
+ {
514
+ return $this->getFactory()->helperRegistry();
515
+ }
516
+
517
+ protected function getEventPrefix()
518
+ {
519
+ return self::EVENT_PREFIX;
520
+ }
521
+
522
+ /**
523
+ * @return string
524
+ */
525
+ protected function getEventName()
526
+ {
527
+ return $this->getEventPrefix() . '_' . $this->getEventType();
528
+ }
529
+
530
+ /**
531
+ * Wrapper for Mage::dispatchEvent()
532
+ *
533
+ * @param $name
534
+ * @param array $data
535
+ *
536
+ * @return Mage_Core_Model_App
537
+ */
538
+ protected function dispatchEvent($name, array $data = array())
539
+ {
540
+ return Mage::dispatchEvent($name, $data);
541
+ }
542
  }
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Authorize.php CHANGED
@@ -33,6 +33,8 @@
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
35
  {
 
 
36
  /**
37
  * @param Payone_Api_Request_Authorization_Abstract $request
38
  */
@@ -47,4 +49,12 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize
47
  {
48
  return $this->getFactory()->getRequestPaymentAuthorization();
49
  }
 
 
 
 
 
 
 
 
50
  }
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
35
  {
36
+ const EVENT_TYPE = 'authorize';
37
+
38
  /**
39
  * @param Payone_Api_Request_Authorization_Abstract $request
40
  */
49
  {
50
  return $this->getFactory()->getRequestPaymentAuthorization();
51
  }
52
+
53
+ /**
54
+ * @return string
55
+ */
56
+ public function getEventType()
57
+ {
58
+ return self::EVENT_TYPE;
59
+ }
60
  }
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Authorize/Abstract.php CHANGED
@@ -81,6 +81,8 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
81
 
82
  $this->afterMapFromPayment($request);
83
 
 
 
84
  return $request;
85
  }
86
 
@@ -117,6 +119,13 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
117
  $requestType = Payone_Api_Enum_RequestType::PREAUTHORIZATION;
118
  }
119
  }
 
 
 
 
 
 
 
120
 
121
  $request->setRequest($requestType);
122
  $request->setAid($this->configPayment->getAid());
@@ -149,6 +158,7 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
149
  $billingAddress = $order->getBillingAddress();
150
  $billingCountry = $billingAddress->getCountry();
151
  $customer = $order->getCustomer();
 
152
 
153
  $personalData = new Payone_Api_Request_Parameter_Authorization_PersonalData();
154
  $personalData->setCustomerid($customer->getIncrementId());
@@ -176,17 +186,7 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
176
  $global = $this->getConfigGeneral()->getGlobal();
177
  // Send Ip when enabled
178
  if ($global->getTransmitIp()) {
179
- if ($global->getProxyMode()) {
180
- // Use X-Forwarded-For when in Proxy-Mode
181
- $remoteIp = $order->getXForwardedFor();
182
- }
183
- else {
184
- $remoteIp = $order->getRemoteIp();
185
- }
186
-
187
- // Multiple Ips could be included, we only send the last one.
188
- $remoteIps = explode(',', $remoteIp);
189
- $ip = array_pop($remoteIps);
190
 
191
  $personalData->setIp($ip);
192
  }
@@ -196,9 +196,104 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
196
  $personalData->setState($billingAddress->getRegionCode());
197
  }
198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  return $personalData;
200
  }
201
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  /**
203
  * @return Payone_Api_Request_Parameter_Authorization_DeliveryData
204
  */
@@ -207,6 +302,7 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
207
  $helper = $this->helper();
208
  $paymentMethod = $this->getPaymentMethod();
209
  $info = $paymentMethod->getInfoInstance();
 
210
  if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice
211
  and $info->getPayoneSafeInvoiceType() === Payone_Api_Enum_FinancingType::BSV
212
  ) {
@@ -234,6 +330,20 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
234
  $deliveryData->setShippingState($address->getRegionCode());
235
  }
236
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  return $deliveryData;
238
  }
239
 
@@ -325,14 +435,35 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
325
  $isRedirect = true;
326
  }
327
  elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_OnlineBankTransfer) {
328
- $country = $this->getOrder()->getBillingAddress()->getCountry();
 
 
329
 
330
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_OnlineBankTransfer();
331
- $payment->setBankcountry($country);
332
- $payment->setBankaccount($info->getPayoneAccountNumber());
333
- $payment->setBankcode($info->getPayoneBankCode());
334
- $payment->setBankgrouptype($info->getPayoneBankGroup());
335
- $payment->setOnlinebanktransfertype($info->getPayoneOnlinebanktransferType());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
336
 
337
  $isRedirect = true;
338
  }
@@ -349,7 +480,10 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
349
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_Financing();
350
  $payment->setFinancingtype($info->getPayoneSafeInvoiceType());
351
 
352
- $isRedirect = true;
 
 
 
353
  }
354
  elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_Wallet) {
355
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet();
@@ -359,13 +493,30 @@ abstract class Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
359
  $isRedirect = true;
360
  }
361
  elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_DebitPayment) {
362
- $country = $this->getOrder()->getBillingAddress()->getCountry();
363
-
364
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_DebitPayment();
365
- $payment->setBankcountry($country);
366
- $payment->setBankaccount($info->getPayoneAccountNumber());
 
 
 
 
 
 
 
 
 
367
  $payment->setBankaccountholder($info->getPayoneAccountOwner());
368
- $payment->setBankcode($info->getPayoneBankCode());
 
 
 
 
 
 
 
 
 
 
369
  }
370
 
371
  if ($isRedirect === true) {
81
 
82
  $this->afterMapFromPayment($request);
83
 
84
+ $this->dispatchEvent($this->getEventName(), array('request' => $request, 'order' => $this->getOrder()));
85
+ $this->dispatchEvent($this->getEventPrefix() . '_all', array('request' => $request));
86
  return $request;
87
  }
88
 
119
  $requestType = Payone_Api_Enum_RequestType::PREAUTHORIZATION;
120
  }
121
  }
122
+ // Always use PREAUTHORIZATION for Safe Invoice of type "Klarna"
123
+ if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice) {
124
+ $safeInvoiceType = $paymentMethod->getInfoInstance()->getPayoneSafeInvoiceType();
125
+ if ($safeInvoiceType == Payone_Api_Enum_FinancingType::KLV) {
126
+ $requestType = Payone_Api_Enum_RequestType::PREAUTHORIZATION;
127
+ }
128
+ }
129
 
130
  $request->setRequest($requestType);
131
  $request->setAid($this->configPayment->getAid());
158
  $billingAddress = $order->getBillingAddress();
159
  $billingCountry = $billingAddress->getCountry();
160
  $customer = $order->getCustomer();
161
+ $paymentMethod = $this->getPaymentMethod();
162
 
163
  $personalData = new Payone_Api_Request_Parameter_Authorization_PersonalData();
164
  $personalData->setCustomerid($customer->getIncrementId());
186
  $global = $this->getConfigGeneral()->getGlobal();
187
  // Send Ip when enabled
188
  if ($global->getTransmitIp()) {
189
+ $ip = $this->getCustomerIp();
 
 
 
 
 
 
 
 
 
 
190
 
191
  $personalData->setIp($ip);
192
  }
196
  $personalData->setState($billingAddress->getRegionCode());
197
  }
198
 
199
+ // Safe Invoice "Klarna" specific personal parameters mapping
200
+ if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice
201
+ and $paymentMethod->getInfoInstance()->getPayoneSafeInvoiceType() == Payone_Api_Enum_FinancingType::KLV
202
+ ) {
203
+ $personalData = $this->mapPersonalParametersSafeInvoiceKlarna($personalData);
204
+ }
205
+
206
+ return $personalData;
207
+ }
208
+
209
+ /**
210
+ * @param Payone_Api_Request_Parameter_Authorization_PersonalData $personalData
211
+ * @return \Payone_Api_Request_Parameter_Authorization_PersonalData
212
+ */
213
+ protected function mapPersonalParametersSafeInvoiceKlarna($personalData)
214
+ {
215
+ $order = $this->getOrder();
216
+ $billingAddress = $order->getBillingAddress();
217
+ $billingCountry = $billingAddress->getCountry();
218
+ $info = $this->getPaymentMethod()->getInfoInstance();
219
+
220
+ // telephonenumber mandatory
221
+ $telephone = $info->getPayoneCustomerTelephone();
222
+ if (empty($telephone)) {
223
+ $telephone = $billingAddress->getTelephone();
224
+ }
225
+ $personalData->setTelephonenumber($telephone);
226
+
227
+ // birthday mandatory
228
+ $birthdayDate = $info->getPayoneCustomerDob();
229
+ if (empty($birthdayDate)) {
230
+ $birthdayDate = $order->getCustomerDob();
231
+ }
232
+ $personalData->setBirthday($this->formatBirthday($birthdayDate));
233
+
234
+ // IP Address is mandatory in case of "Klarna", even if not configured
235
+ if ($personalData->getIp() == null) {
236
+ $personalData->setIp($this->getCustomerIp());
237
+ }
238
+ if ($billingCountry == 'NL') {
239
+ // addressaddition mandatory
240
+ $addressAddition = $info->getPayoneBillingAddressaddition();
241
+ if (empty($addressAddition)) {
242
+ $addressAddition = $billingAddress->getStreet(2);
243
+ }
244
+ $personalData->setAddressaddition($addressAddition);
245
+ }
246
+
247
+ // Gender information and birthday Mandatory for Germany (DE), Netherlands (NL) and Austria (AT)
248
+ if ($billingCountry == 'DE' or $billingCountry == 'NL' or $billingCountry == 'AT') {
249
+ // gender
250
+ $genderValue = $info->getPayoneCustomerGender();
251
+ if (empty($genderValue)) {
252
+ $genderValue = $order->getCustomerGender();
253
+ }
254
+ $customerResource = $this->getFactory()->getSingletonCustomerResource();
255
+ /** @var Mage_Eav_Model_Entity_Attribute_Source_Table $genderSource */
256
+ $genderSource = $customerResource->getAttribute('gender')->getSource();
257
+ $genderLabel = $genderSource->getOptionText($genderValue);
258
+ if ($genderLabel == 'Female') {
259
+ $personalData->setGender(Payone_Api_Enum_Gender::FEMALE);
260
+ }
261
+ elseif ($genderLabel == 'Male') {
262
+ $personalData->setGender(Payone_Api_Enum_Gender::MALE);
263
+ }
264
+ }
265
+
266
+ // personalid mandatory for Denmark (DK), Finland (FI), Norway (NO) and Sweden (SE)
267
+ if ($billingCountry == 'DK' or $billingCountry == 'FI' or $billingCountry == 'NO'
268
+ or $billingCountry == 'SE'
269
+ ) {
270
+ $personalData->setPersonalid($info->getPayoneCustomerPersonalid());
271
+ }
272
+
273
  return $personalData;
274
  }
275
 
276
+ /**
277
+ * @return string
278
+ */
279
+ protected function getCustomerIp()
280
+ {
281
+ $global = $this->getConfigGeneral()->getGlobal();
282
+ $order = $this->getOrder();
283
+ if ($global->getProxyMode()) {
284
+ // Use X-Forwarded-For when in Proxy-Mode
285
+ $remoteIp = $order->getXForwardedFor();
286
+ }
287
+ else {
288
+ $remoteIp = $order->getRemoteIp();
289
+ }
290
+
291
+ // Multiple Ips could be included, we only send the last one.
292
+ $remoteIps = explode(',', $remoteIp);
293
+ $ip = array_pop($remoteIps);
294
+ return $ip;
295
+ }
296
+
297
  /**
298
  * @return Payone_Api_Request_Parameter_Authorization_DeliveryData
299
  */
302
  $helper = $this->helper();
303
  $paymentMethod = $this->getPaymentMethod();
304
  $info = $paymentMethod->getInfoInstance();
305
+ $order = $this->getOrder();
306
  if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice
307
  and $info->getPayoneSafeInvoiceType() === Payone_Api_Enum_FinancingType::BSV
308
  ) {
330
  $deliveryData->setShippingState($address->getRegionCode());
331
  }
332
 
333
+ // Safe Invoice type "Klarna"
334
+ if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice
335
+ and $info->getPayoneSafeInvoiceType() == Payone_Api_Enum_FinancingType::KLV
336
+ ) {
337
+ // shipping addressaddition mandatory for Netherlands (NL)
338
+ if ($shippingCountry == 'NL') {
339
+ $shippingAddressAddition = $info->getPayoneShippingAddressaddition();
340
+ if (empty($shippingAddressAddition)) {
341
+ $shippingAddressAddition = $address->getStreet(2);
342
+ }
343
+ $deliveryData->setShippingAddressaddition($shippingAddressAddition);
344
+ }
345
+ }
346
+
347
  return $deliveryData;
348
  }
349
 
435
  $isRedirect = true;
436
  }
437
  elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_OnlineBankTransfer) {
438
+ $payoneOnlinebanktransferType = $info->getPayoneOnlinebanktransferType();
439
+ $iban = $info->getPayoneSepaIban();
440
+ $bic = $info->getPayoneSepaBic();
441
 
442
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_OnlineBankTransfer();
443
+ $payment->setOnlinebanktransfertype($payoneOnlinebanktransferType);
444
+
445
+ switch ($payoneOnlinebanktransferType) {
446
+ case Payone_Api_Enum_OnlinebanktransferType::INSTANT_MONEY_TRANSFER:
447
+ case Payone_Api_Enum_OnlinebanktransferType::GIROPAY:
448
+ $payment->setBankcountry($info->getPayoneSepaBankCountry());
449
+ if (!empty($iban) and !empty($bic)) {
450
+ $payment->setIban(strtoupper($iban));
451
+ $payment->setBic(strtoupper($bic)); // ensure bic and iban are sent uppercase
452
+ }
453
+ else {
454
+ $payment->setBankaccount($info->getPayoneAccountNumber());
455
+ $payment->setBankcode($info->getPayoneBankCode());
456
+ }
457
+ break;
458
+ case Payone_Api_Enum_OnlinebanktransferType::IDEAL:
459
+ case Payone_Api_Enum_OnlinebanktransferType::EPS_ONLINE_BANK_TRANSFER:
460
+ $payment->setBankgrouptype($info->getPayoneBankGroup());
461
+ break;
462
+ case Payone_Api_Enum_OnlinebanktransferType::POSTFINANCE_EFINANCE:
463
+ break;
464
+ case Payone_Api_Enum_OnlinebanktransferType::POSTFINANCE_CARD:
465
+ break;
466
+ }
467
 
468
  $isRedirect = true;
469
  }
480
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_Financing();
481
  $payment->setFinancingtype($info->getPayoneSafeInvoiceType());
482
 
483
+ if ($info->getPayoneSafeInvoiceType() == Payone_Api_Enum_FinancingType::BSV) {
484
+ // BillSAFE is a redirect payment method, Klarna not
485
+ $isRedirect = true;
486
+ }
487
  }
488
  elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_Wallet) {
489
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet();
493
  $isRedirect = true;
494
  }
495
  elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_DebitPayment) {
 
 
496
  $payment = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_DebitPayment();
497
+ $payment->setBankcountry($info->getPayoneSepaBankCountry());
498
+ $iban = $info->getPayoneSepaIban();
499
+ $bic = $info->getPayoneSepaBic();
500
+ if (!empty($iban) and !empty($bic)) {
501
+ $payment->setIban(strtoupper($iban));
502
+ $payment->setBic(strtoupper($bic)); // ensure bic and iban are sent uppercase
503
+ }
504
+ else {
505
+ $payment->setBankaccount($info->getPayoneAccountNumber());
506
+ $payment->setBankcode($info->getPayoneBankCode());
507
+ }
508
  $payment->setBankaccountholder($info->getPayoneAccountOwner());
509
+ // for frontend orders set mandate identification if data provided in checkout session:
510
+ if (!$this->getIsAdmin()) {
511
+ $checkoutSession = $this->getFactory()->getSingletonCheckoutSession();
512
+ $mandateStatus = $checkoutSession->getPayoneSepaMandateStatus();
513
+ $mandateIdentification = $checkoutSession->getPayoneSepaMandateIdentification();
514
+ if ($mandateStatus == Payone_Core_Model_Service_Management_ManageMandate::STATUS_PENDING
515
+ and !empty($mandateIdentification)
516
+ ) {
517
+ $payment->setMandateIdentification($mandateIdentification);
518
+ }
519
+ }
520
  }
521
 
522
  if ($isRedirect === true) {
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Capture.php CHANGED
@@ -33,6 +33,8 @@
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Abstract
35
  {
 
 
36
  /** @var Mage_Sales_Model_Order_Invoice */
37
  protected $invoice = null;
38
 
@@ -70,6 +72,9 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
70
  }
71
  }
72
 
 
 
 
73
  return $request;
74
  }
75
 
@@ -104,8 +109,8 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
104
 
105
  // settleaccount possibilities depend on payment method:
106
  if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_AdvancePayment
107
- or $paymentMethod instanceof Payone_Core_Model_Payment_Method_OnlineBankTransfer)
108
- {
109
  $payment = $paymentMethod->getInfoInstance();
110
  // Advancepayment and OnlineBankTransfer use NO/AUTO
111
  if ($this->isInvoiceLast() || $this->helperRegistry()->isPaymentCancelRegistered($payment)) {
@@ -117,13 +122,13 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
117
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::NO);
118
  }
119
  }
120
- elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice)
121
- {
 
122
  // BillSAFE always settles account:
123
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::YES);
124
  }
125
- else
126
- {
127
  // all other can always use AUTO, regardless of complete or partial capture
128
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::AUTO);
129
  }
@@ -198,12 +203,12 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
198
  // Capture mode:
199
  $payment = $this->getPaymentMethod()->getInfoInstance();
200
  if ($this->getPaymentMethod() instanceof Payone_Core_Model_Payment_Method_SafeInvoice
201
- or $this->helperRegistry()->isPaymentCancelRegistered($payment)) {
 
202
  $invoicing->setCapturemode($this->mapCaptureMode());
203
  }
204
 
205
 
206
-
207
  return $invoicing;
208
  }
209
 
@@ -265,5 +270,11 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
265
  $this->invoice = $invoice;
266
  }
267
 
268
-
 
 
 
 
 
 
269
  }
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Abstract
35
  {
36
+ const EVENT_TYPE = 'capture';
37
+
38
  /** @var Mage_Sales_Model_Order_Invoice */
39
  protected $invoice = null;
40
 
72
  }
73
  }
74
 
75
+ $this->dispatchEvent($this->getEventName(), array('request' => $request, 'invoice' => $this->getInvoice()));
76
+ $this->dispatchEvent($this->getEventPrefix() . '_all', array('request' => $request));
77
+
78
  return $request;
79
  }
80
 
109
 
110
  // settleaccount possibilities depend on payment method:
111
  if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_AdvancePayment
112
+ or $paymentMethod instanceof Payone_Core_Model_Payment_Method_OnlineBankTransfer
113
+ ) {
114
  $payment = $paymentMethod->getInfoInstance();
115
  // Advancepayment and OnlineBankTransfer use NO/AUTO
116
  if ($this->isInvoiceLast() || $this->helperRegistry()->isPaymentCancelRegistered($payment)) {
122
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::NO);
123
  }
124
  }
125
+ elseif ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice
126
+ and $paymentMethod->getInfoInstance()->getPayoneSafeInvoiceType() == Payone_Api_Enum_FinancingType::BSV
127
+ ) {
128
  // BillSAFE always settles account:
129
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::YES);
130
  }
131
+ else {
 
132
  // all other can always use AUTO, regardless of complete or partial capture
133
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::AUTO);
134
  }
203
  // Capture mode:
204
  $payment = $this->getPaymentMethod()->getInfoInstance();
205
  if ($this->getPaymentMethod() instanceof Payone_Core_Model_Payment_Method_SafeInvoice
206
+ or $this->helperRegistry()->isPaymentCancelRegistered($payment)
207
+ ) {
208
  $invoicing->setCapturemode($this->mapCaptureMode());
209
  }
210
 
211
 
 
212
  return $invoicing;
213
  }
214
 
270
  $this->invoice = $invoice;
271
  }
272
 
273
+ /**
274
+ * @return string
275
+ */
276
+ public function getEventType()
277
+ {
278
+ return self::EVENT_TYPE;
279
+ }
280
  }
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Debit.php CHANGED
@@ -33,6 +33,8 @@
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Abstract
35
  {
 
 
36
  /** @var Mage_Sales_Model_Order_Creditmemo */
37
  protected $creditmemo = null;
38
 
@@ -67,6 +69,8 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
67
  $request->setInvoicing($invoicing);
68
  }
69
 
 
 
70
  return $request;
71
  }
72
 
@@ -101,7 +105,9 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
101
  $paymentMethod = $this->getPaymentMethod();
102
 
103
  // Some payment methods can not use settleaccount auto:
104
- if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice) {
 
 
105
  // BillSAFE always settles account:
106
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::YES);
107
  }
@@ -197,7 +203,7 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
197
  if ($this->creditmemo === null) {
198
  // we need to check registry because Magento won't give the creditmemo instance to PaymentMethodInstance
199
  $creditmemo = $this->helperRegistry()
200
- ->registry('current_creditmemo');
201
 
202
  $this->creditmemo = $creditmemo;
203
  }
@@ -212,4 +218,11 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
212
  $this->creditmemo = $creditmemo;
213
  }
214
 
 
 
 
 
 
 
 
215
  }
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Debit
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Abstract
35
  {
36
+ const EVENT_TYPE = 'debit';
37
+
38
  /** @var Mage_Sales_Model_Order_Creditmemo */
39
  protected $creditmemo = null;
40
 
69
  $request->setInvoicing($invoicing);
70
  }
71
 
72
+ $this->dispatchEvent($this->getEventName(), array('request' => $request, 'creditmemo' => $this->getCreditmemo()));
73
+ $this->dispatchEvent($this->getEventPrefix() . '_all', array('request' => $request));
74
  return $request;
75
  }
76
 
105
  $paymentMethod = $this->getPaymentMethod();
106
 
107
  // Some payment methods can not use settleaccount auto:
108
+ if ($paymentMethod instanceof Payone_Core_Model_Payment_Method_SafeInvoice
109
+ and $paymentMethod->getInfoInstance()->getPayoneSafeInvoiceType() == Payone_Api_Enum_FinancingType::BSV
110
+ ) {
111
  // BillSAFE always settles account:
112
  $business->setSettleaccount(Payone_Api_Enum_Settleaccount::YES);
113
  }
203
  if ($this->creditmemo === null) {
204
  // we need to check registry because Magento won't give the creditmemo instance to PaymentMethodInstance
205
  $creditmemo = $this->helperRegistry()
206
+ ->registry('current_creditmemo');
207
 
208
  $this->creditmemo = $creditmemo;
209
  }
218
  $this->creditmemo = $creditmemo;
219
  }
220
 
221
+ /**
222
+ * @return string
223
+ */
224
+ public function getEventType()
225
+ {
226
+ return self::EVENT_TYPE;
227
+ }
228
  }
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Preauthorize.php CHANGED
@@ -33,6 +33,8 @@
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Preauthorize
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
35
  {
 
 
36
  /**
37
  * @return Payone_Api_Request_Preauthorization
38
  */
@@ -41,4 +43,11 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Preauthorize
41
  return $this->getFactory()->getRequestPaymentPreauthorize();
42
  }
43
 
 
 
 
 
 
 
 
44
  }
33
  class Payone_Core_Model_Mapper_ApiRequest_Payment_Preauthorize
34
  extends Payone_Core_Model_Mapper_ApiRequest_Payment_Authorize_Abstract
35
  {
36
+ const EVENT_TYPE = 'preauthorize';
37
+
38
  /**
39
  * @return Payone_Api_Request_Preauthorization
40
  */
43
  return $this->getFactory()->getRequestPaymentPreauthorize();
44
  }
45
 
46
+ /**
47
+ * @return string
48
+ */
49
+ public function getEventType()
50
+ {
51
+ return self::EVENT_TYPE;
52
+ }
53
  }
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/AddressCheck.php CHANGED
@@ -1,114 +1,114 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Model_Mapper_ApiRequest_Verification_AddressCheck
34
- extends Payone_Core_Model_Mapper_ApiRequest_Verification_Abstract
35
- {
36
- /** @var Payone_Core_Model_Config_Protect_AddressCheck */
37
- protected $config = null;
38
-
39
-
40
- /**
41
- * @param Mage_Customer_Model_Address_Abstract $address
42
- * @return Payone_Api_Request_AddressCheck
43
- */
44
- public function mapFromAddress(Mage_Customer_Model_Address_Abstract $address)
45
- {
46
- $request = $this->getFactory()->getRequestVerificationAddressCheck();
47
- $helper = $this->helper();
48
- $configGlobal = $this->getConfigGlobal();
49
- $config = $this->getConfig();
50
-
51
- // @todo move addressCheckType detection to method
52
- // @todo add option to configure used Adresschecktype externaly
53
- if ($address->getAddressType() === 'billing') {
54
- $request->setAddresschecktype($config->getCheckBilling());
55
- }
56
- elseif ($address->getAddressType() === 'shipping') {
57
- $request->setAddresschecktype($config->getCheckShipping());
58
- }
59
- else {
60
- throw new Exception('Invalid Address Check Type');
61
- }
62
-
63
- $request->setAid($configGlobal->getAid());
64
- $request->setMid($configGlobal->getMid());
65
- $request->setMode($config->getMode());
66
- $request->setPortalid($configGlobal->getPortalid());
67
- $request->setKey($configGlobal->getKey());
68
-
69
-
70
- $request->setCity($address->getCity());
71
- $request->setCompany($address->getCompany());
72
- $request->setCountry($address->getCountry());
73
- $request->setFirstname($address->getFirstname());
74
- $request->setLastname($address->getLastname());
75
-
76
- $request->setIntegratorName('Magento');
77
- $request->setIntegratorVersion($helper->getMagentoVersion());
78
- $request->setSolutionName('noovias');
79
- $request->setSolutionVersion($helper->getPayoneVersion());
80
-
81
-
82
- $request->setEncoding('UTF-8');
83
- $request->setLanguage($helper->getDefaultLanguage());
84
- $request->setStreet($address->getStreetFull());
85
- $request->setTelephonenumber($address->getTelephone());
86
-
87
- $countryId = $address->getCountryId();
88
-
89
- if ($countryId == "US" || $countryId == "CA") {
90
- $request->setState($address->getRegionCode());
91
- }
92
-
93
- $request->setZip($address->getPostcode());
94
-
95
-
96
- return $request;
97
- }
98
-
99
- /**
100
- * @param Payone_Core_Model_Config_Protect_AddressCheck $configProtect
101
- */
102
- public function setConfig(Payone_Core_Model_Config_Protect_AddressCheck $configProtect)
103
- {
104
- $this->config = $configProtect;
105
- }
106
-
107
- /**
108
- * @return Payone_Core_Model_Config_Protect_AddressCheck
109
- */
110
- public function getConfig()
111
- {
112
- return $this->config;
113
- }
114
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_Mapper_ApiRequest_Verification_AddressCheck
34
+ extends Payone_Core_Model_Mapper_ApiRequest_Verification_Abstract
35
+ {
36
+ /** @var Payone_Core_Model_Config_Protect_AddressCheck */
37
+ protected $config = null;
38
+
39
+
40
+ /**
41
+ * @param Mage_Customer_Model_Address_Abstract $address
42
+ * @return Payone_Api_Request_AddressCheck
43
+ */
44
+ public function mapFromAddress(Mage_Customer_Model_Address_Abstract $address)
45
+ {
46
+ $request = $this->getFactory()->getRequestVerificationAddressCheck();
47
+ $helper = $this->helper();
48
+ $configGlobal = $this->getConfigGlobal();
49
+ $config = $this->getConfig();
50
+
51
+ // @todo move addressCheckType detection to method
52
+ // @todo add option to configure used Adresschecktype externaly
53
+ if ($address->getAddressType() === 'billing') {
54
+ $request->setAddresschecktype($config->getCheckBilling());
55
+ }
56
+ elseif ($address->getAddressType() === 'shipping') {
57
+ $request->setAddresschecktype($config->getCheckShipping());
58
+ }
59
+ else {
60
+ throw new Exception('Invalid Address Check Type');
61
+ }
62
+
63
+ $request->setAid($configGlobal->getAid());
64
+ $request->setMid($configGlobal->getMid());
65
+ $request->setMode($config->getMode());
66
+ $request->setPortalid($configGlobal->getPortalid());
67
+ $request->setKey($configGlobal->getKey());
68
+
69
+
70
+ $request->setCity($address->getCity());
71
+ $request->setCompany($address->getCompany());
72
+ $request->setCountry($address->getCountry());
73
+ $request->setFirstname($address->getFirstname());
74
+ $request->setLastname($address->getLastname());
75
+
76
+ $request->setIntegratorName('Magento');
77
+ $request->setIntegratorVersion($helper->getMagentoVersion());
78
+ $request->setSolutionName('noovias');
79
+ $request->setSolutionVersion($helper->getPayoneVersion());
80
+
81
+
82
+ $request->setEncoding('UTF-8');
83
+ $request->setLanguage($helper->getDefaultLanguage());
84
+ $request->setStreet($address->getStreetFull());
85
+ $request->setTelephonenumber($address->getTelephone());
86
+
87
+ $countryId = $address->getCountryId();
88
+
89
+ if ($countryId == "US" || $countryId == "CA") {
90
+ $request->setState($address->getRegionCode());
91
+ }
92
+
93
+ $request->setZip($address->getPostcode());
94
+
95
+
96
+ return $request;
97
+ }
98
+
99
+ /**
100
+ * @param Payone_Core_Model_Config_Protect_AddressCheck $configProtect
101
+ */
102
+ public function setConfig(Payone_Core_Model_Config_Protect_AddressCheck $configProtect)
103
+ {
104
+ $this->config = $configProtect;
105
+ }
106
+
107
+ /**
108
+ * @return Payone_Core_Model_Config_Protect_AddressCheck
109
+ */
110
+ public function getConfig()
111
+ {
112
+ return $this->config;
113
+ }
114
  }
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/BankAccountCheck.php CHANGED
@@ -42,10 +42,12 @@ class Payone_Core_Model_Mapper_ApiRequest_Verification_BankAccountCheck
42
  * @param string $bankaccount
43
  * @param string $bankcode
44
  * @param string $bankcountry
 
 
45
  *
46
  * @return Payone_Api_Request_BankAccountCheck
47
  */
48
- public function map($bankaccount, $bankcode, $bankcountry)
49
  {
50
  $request = $this->getFactory()->getRequestVerificationBankAccountCheck();
51
  $helper = $this->helper();
@@ -71,7 +73,10 @@ class Payone_Core_Model_Mapper_ApiRequest_Verification_BankAccountCheck
71
  $request->setBankaccount($bankaccount);
72
  $request->setBankcode($bankcode);
73
  $request->setBankcountry($bankcountry);
74
-
 
 
 
75
 
76
 
77
  return $request;
42
  * @param string $bankaccount
43
  * @param string $bankcode
44
  * @param string $bankcountry
45
+ * @param string $iban
46
+ * @param string $bic
47
  *
48
  * @return Payone_Api_Request_BankAccountCheck
49
  */
50
+ public function map($bankaccount, $bankcode, $bankcountry, $iban = '', $bic = '')
51
  {
52
  $request = $this->getFactory()->getRequestVerificationBankAccountCheck();
53
  $helper = $this->helper();
73
  $request->setBankaccount($bankaccount);
74
  $request->setBankcode($bankcode);
75
  $request->setBankcountry($bankcountry);
76
+ if (!empty($iban) and !empty($bic)) {
77
+ $request->setIban(strtoupper($iban));
78
+ $request->setBic(strtoupper($bic)); // ensure bic and iban are sent uppercase
79
+ }
80
 
81
 
82
  return $request;
app/code/community/Payone/Core/Model/Observer/Checkout/Onepage.php CHANGED
@@ -57,10 +57,6 @@ class Payone_Core_Model_Observer_Checkout_Onepage extends Payone_Core_Model_Obse
57
  /** @var $selectedMethod string */
58
  $selectedMethod = $observer->getEvent()->getSelectedMethod();
59
 
60
- if ($selectedMethod === 'payone_debit_payment') {
61
- $this->performBankaccountCheck();
62
- }
63
-
64
  // Check creditrating config:
65
  $configProtect = $this->helperConfig()->getConfigProtect($quote->getStoreId());
66
  $configCreditrating = $configProtect->getCreditrating();
@@ -125,41 +121,6 @@ class Payone_Core_Model_Observer_Checkout_Onepage extends Payone_Core_Model_Obse
125
  return true;
126
  }
127
 
128
- /**
129
- * @throws Payone_Core_Exception_PaymentMethodConfigNotFound|Mage_Core_Exception
130
- */
131
- protected function performBankaccountCheck()
132
- {
133
- $paymentData = $this->getPaymentData();
134
- $quote = $this->getQuote();
135
-
136
-
137
- // Determine if check must/can be performed:
138
- if (!array_key_exists('payone_config_payment_method_id', $paymentData)) {
139
- throw new Payone_Core_Exception_PaymentMethodConfigNotFound();
140
- }
141
- $paymentMethodConfigId = $paymentData['payone_config_payment_method_id'];
142
- if (empty($paymentMethodConfigId)) {
143
- throw new Payone_Core_Exception_PaymentMethodConfigNotFound();
144
- }
145
-
146
- $config = $this->helperConfig()->getConfigPaymentMethodById($paymentMethodConfigId, $quote->getStoreId());
147
- if (!$config->isBankAccountCheckEnabled()) {
148
- return; // Check disabled, abort.
149
- }
150
-
151
- // Gather data:
152
- $bankAccountNumber = array_key_exists('payone_account_number', $paymentData) ? $paymentData['payone_account_number'] : '';
153
- $bankCode = array_key_exists('payone_bank_code', $paymentData) ? $paymentData['payone_bank_code'] : '';
154
- $bankCountry = $this->getQuote()->getBillingAddress()->getCountry();
155
-
156
-
157
- // Perform check:
158
- $serviceBankaccountCheck = $this->getFactory()
159
- ->getServiceVerificationBankAccountCheck($paymentMethodConfigId, $this->getQuote()->getStoreId());
160
- $serviceBankaccountCheck->execute($bankAccountNumber, $bankCode, $bankCountry);
161
- }
162
-
163
  /**
164
  * @param int $value
165
  */
57
  /** @var $selectedMethod string */
58
  $selectedMethod = $observer->getEvent()->getSelectedMethod();
59
 
 
 
 
 
60
  // Check creditrating config:
61
  $configProtect = $this->helperConfig()->getConfigProtect($quote->getStoreId());
62
  $configCreditrating = $configProtect->getCreditrating();
121
  return true;
122
  }
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  /**
125
  * @param int $value
126
  */
app/code/community/Payone/Core/Model/Observer/Checkout/Onepage/DebitPayment.php ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Observer
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Observer
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_Observer_Checkout_Onepage_DebitPayment extends Payone_Core_Model_Observer_Abstract
34
+ {
35
+ /** @var array */
36
+ protected $paymentData = array();
37
+
38
+ /** @var Mage_Sales_Model_Quote */
39
+ protected $quote = null;
40
+
41
+ /** @var Payone_Core_Model_Config_Payment_Method_Interface */
42
+ protected $paymentConfig = null;
43
+
44
+ /**
45
+ * @param Varien_Event_Observer $observer
46
+ * @return void
47
+ */
48
+ public function performChecks(Varien_Event_Observer $observer)
49
+ {
50
+ $this->init($observer);
51
+
52
+ $paymentConfig = $this->getPaymentConfig();
53
+ $sepaMandateEnabled = $paymentConfig->isSepaMandateEnabled();
54
+ $checkBankaccountEnabled = $paymentConfig->isBankAccountCheckEnabled();
55
+ $bankaccountcheckType = $paymentConfig->getBankAccountCheckType();
56
+
57
+ if ((!$sepaMandateEnabled and $checkBankaccountEnabled)
58
+ or ($sepaMandateEnabled and $checkBankaccountEnabled and $bankaccountcheckType == Payone_Api_Enum_BankaccountCheckType::POS_BLACKLIST)) {
59
+ $this->performBankaccountCheck();
60
+ }
61
+
62
+ if ($sepaMandateEnabled) {
63
+ $this->manageMandate();
64
+ }
65
+ }
66
+
67
+ /**
68
+ * @throws Payone_Core_Exception_PaymentMethodConfigNotFound|Mage_Core_Exception
69
+ */
70
+ protected function performBankaccountCheck()
71
+ {
72
+ $paymentData = $this->getPaymentData();
73
+
74
+ $paymentConfig = $this->getPaymentConfig();
75
+ $paymentMethodConfigId = $paymentConfig->getId();
76
+
77
+ if (!$paymentConfig->isBankAccountCheckEnabled()) {
78
+ return; // Check disabled, abort.
79
+ }
80
+
81
+ // Gather data:
82
+ $bankAccountNumber = array_key_exists('payone_account_number', $paymentData) ? $paymentData['payone_account_number'] : '';
83
+ $bankCode = array_key_exists('payone_bank_code', $paymentData) ? $paymentData['payone_bank_code'] : '';
84
+ $iban = array_key_exists('payone_sepa_iban', $paymentData) ? $paymentData['payone_sepa_iban'] : '';
85
+ $bic = array_key_exists('payone_sepa_bic', $paymentData) ? $paymentData['payone_sepa_bic'] : '';
86
+ $bankCountry = array_key_exists('payone_bank_country', $paymentData) ? $paymentData['payone_bank_country'] : '';
87
+
88
+
89
+ // Perform check:
90
+ $serviceBankaccountCheck = $this->getFactory()
91
+ ->getServiceVerificationBankAccountCheck($paymentMethodConfigId, $this->getQuote()->getStoreId());
92
+ $serviceBankaccountCheck->execute($bankAccountNumber, $bankCode, $bankCountry, $iban, $bic);
93
+ }
94
+
95
+ /**
96
+ *
97
+ */
98
+ protected function manageMandate()
99
+ {
100
+ $paymentConfig = $this->getPaymentConfig();
101
+ $paymentData = $this->getPaymentData();
102
+
103
+ $paymentMethodConfigId = $paymentData['payone_config_payment_method_id'];
104
+
105
+ $manageMandateService = $this->getFactory()->getServiceManagementManageMandate($paymentMethodConfigId, $this->getQuote()->getStoreId());
106
+
107
+ // Gather Data:
108
+ $bankAccountNumber = array_key_exists('payone_account_number', $paymentData) ? $paymentData['payone_account_number'] : '';
109
+ $bankCode = array_key_exists('payone_bank_code', $paymentData) ? $paymentData['payone_bank_code'] : '';
110
+ $iban = array_key_exists('payone_sepa_iban', $paymentData) ? $paymentData['payone_sepa_iban'] : '';
111
+ $bic = array_key_exists('payone_sepa_bic', $paymentData) ? $paymentData['payone_sepa_bic'] : '';
112
+ $bankCountry = array_key_exists('payone_bank_country', $paymentData) ? $paymentData['payone_bank_country'] : '';
113
+
114
+ $response = $manageMandateService->execute($this->getQuote(), $bankCountry, $bankAccountNumber, $bankCode, $bic, $iban);
115
+ $mandateStatus = $response->getMandateStatus();
116
+ $mandateText = $response->getMandateText();
117
+ $mandateIdentification = $response->getMandateIdentification();
118
+ $sepaMandateDownloadEnabled = $paymentConfig->getSepaMandateDownloadEnabled();
119
+
120
+ $checkoutSession = $this->getFactory()->getSingletonCheckoutSession();
121
+ $checkoutSession->setPayoneSepaMandateStatus($mandateStatus);
122
+ $checkoutSession->setPayoneSepaMandateText($mandateText);
123
+ $checkoutSession->setPayoneSepaMandateIdentification($mandateIdentification);
124
+ $checkoutSession->setPayoneSepaMandateDownloadEnabled($sepaMandateDownloadEnabled);
125
+ }
126
+
127
+ /**
128
+ * @param Varien_Event_Observer $observer
129
+ * @throws Payone_Core_Exception_PaymentMethodConfigNotFound
130
+ */
131
+ protected function init(Varien_Event_Observer $observer)
132
+ {
133
+ $paymentData = $observer->getEvent()->getPaymentData();
134
+ /** @var Mage_Sales_Model_Quote $quote */
135
+ $quote = $observer->getEvent()->getQuote();
136
+ $this->setPaymentData($paymentData);
137
+ $this->setQuote($quote);
138
+
139
+ // Determine if check must/can be performed:
140
+ if (!array_key_exists('payone_config_payment_method_id', $paymentData)) {
141
+ throw new Payone_Core_Exception_PaymentMethodConfigNotFound();
142
+ }
143
+ $paymentMethodConfigId = $paymentData['payone_config_payment_method_id'];
144
+ if (empty($paymentMethodConfigId)) {
145
+ throw new Payone_Core_Exception_PaymentMethodConfigNotFound();
146
+ }
147
+
148
+ $paymentConfig = $this->helperConfig()->getConfigPaymentMethodById($paymentMethodConfigId, $quote->getStoreId());
149
+ $this->setPaymentConfig($paymentConfig);
150
+ }
151
+
152
+ /**
153
+ * @param array $paymentData
154
+ */
155
+ public function setPaymentData(array $paymentData)
156
+ {
157
+ $this->paymentData = $paymentData;
158
+ }
159
+
160
+ /**
161
+ * @return array
162
+ */
163
+ public function getPaymentData()
164
+ {
165
+ return $this->paymentData;
166
+ }
167
+
168
+ /**
169
+ * @param Mage_Sales_Model_Quote $quote
170
+ */
171
+ public function setQuote(Mage_Sales_Model_Quote $quote)
172
+ {
173
+ $this->quote = $quote;
174
+ }
175
+
176
+ /**
177
+ * @return Mage_Sales_Model_Quote
178
+ */
179
+ public function getQuote()
180
+ {
181
+ return $this->quote;
182
+ }
183
+
184
+ /**
185
+ * @param Payone_Core_Model_Config_Payment_Method_Interface $paymentConfig
186
+ */
187
+ public function setPaymentConfig($paymentConfig)
188
+ {
189
+ $this->paymentConfig = $paymentConfig;
190
+ }
191
+
192
+ /**
193
+ * @return Payone_Core_Model_Config_Payment_Method_Interface
194
+ */
195
+ public function getPaymentConfig()
196
+ {
197
+ return $this->paymentConfig;
198
+ }
199
+ }
app/code/community/Payone/Core/Model/Observer/Sales/Order.php CHANGED
@@ -1,79 +1,79 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Observer
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Observer
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Model_Observer_Sales_Order
34
- extends Payone_Core_Model_Observer_Abstract
35
- {
36
- /**
37
- * @param Varien_Event_Observer $observer
38
- * @return void
39
- */
40
- public function updateOrderGrid(Varien_Event_Observer $observer)
41
- {
42
- /**
43
- * @var $resource Mage_Sales_Model_Mysql4_Order
44
- */
45
- $resource = $observer->getEvent()->getResource();
46
-
47
- $resource->addVirtualGridColumn(
48
- 'payone_payment_method',
49
- 'order_payment',
50
- array('entity_id' => 'parent_id'),
51
- 'method'
52
- );
53
- }
54
-
55
- /**
56
- * @param Varien_Event_Observer $observer
57
- * @return void
58
- */
59
- public function incrementSampleCounter(Varien_Event_Observer $observer)
60
- {
61
- $storeId = $observer->getEvent()->getOrder()->getStoreId();
62
-
63
- $this->helperConfig()->incrementCreditratingSampleCounter($storeId);
64
- }
65
-
66
- /**
67
- *
68
- * @param Varien_Event_Observer $observer (has data 'payment' with a payment info instance (Mage_Sales_Model_Order_Payment))
69
- */
70
- public function cancelPayment(Varien_Event_Observer $observer)
71
- {
72
- /** @var $payment Mage_Sales_Model_Order_Payment */
73
- $payment = $observer->getPayment();
74
-
75
- $methodInstance = $payment->getMethodInstance();
76
-
77
- $methodInstance->cancel($payment);
78
- }
79
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Observer
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Observer
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_Observer_Sales_Order
34
+ extends Payone_Core_Model_Observer_Abstract
35
+ {
36
+ /**
37
+ * @param Varien_Event_Observer $observer
38
+ * @return void
39
+ */
40
+ public function updateOrderGrid(Varien_Event_Observer $observer)
41
+ {
42
+ /**
43
+ * @var $resource Mage_Sales_Model_Mysql4_Order
44
+ */
45
+ $resource = $observer->getEvent()->getResource();
46
+
47
+ $resource->addVirtualGridColumn(
48
+ 'payone_payment_method',
49
+ 'order_payment',
50
+ array('entity_id' => 'parent_id'),
51
+ 'method'
52
+ );
53
+ }
54
+
55
+ /**
56
+ * @param Varien_Event_Observer $observer
57
+ * @return void
58
+ */
59
+ public function incrementSampleCounter(Varien_Event_Observer $observer)
60
+ {
61
+ $storeId = $observer->getEvent()->getOrder()->getStoreId();
62
+
63
+ $this->helperConfig()->incrementCreditratingSampleCounter($storeId);
64
+ }
65
+
66
+ /**
67
+ *
68
+ * @param Varien_Event_Observer $observer (has data 'payment' with a payment info instance (Mage_Sales_Model_Order_Payment))
69
+ */
70
+ public function cancelPayment(Varien_Event_Observer $observer)
71
+ {
72
+ /** @var $payment Mage_Sales_Model_Order_Payment */
73
+ $payment = $observer->getPayment();
74
+
75
+ $methodInstance = $payment->getMethodInstance();
76
+
77
+ $methodInstance->cancel($payment);
78
+ }
79
  }
app/code/community/Payone/Core/Model/Observer/TransactionStatus/InvoiceCreate.php CHANGED
@@ -1,207 +1,207 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Observer
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Observer
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Model_Observer_TransactionStatus_InvoiceCreate
34
- extends Payone_Core_Model_Observer_Abstract
35
- {
36
- /**
37
- * @var Payone_Core_Model_Service_Sales_InvoiceCreate
38
- */
39
- protected $serviceInvoiceCreate = null;
40
-
41
- /** @var $method Payone_Core_Model_Payment_Method_Abstract */
42
- private $method = null;
43
-
44
- /** @var $order Mage_Sales_Model_Order */
45
- private $order = null;
46
-
47
- /** @var $config Payone_Core_Model_Config */
48
- private $config = null;
49
-
50
- /** @var $payment Mage_Sales_Model_Order_Payment */
51
- private $payment = null;
52
-
53
- /** @var $transactionStatus Payone_Core_Model_Domain_Protocol_TransactionStatus */
54
- private $transactionStatus = null;
55
-
56
- /**
57
- * @param Varien_Event_Observer $observer
58
- */
59
- public function onAppointed(Varien_Event_Observer $observer)
60
- {
61
- $this->initData($observer);
62
-
63
- $configMethod = $this->getConfigPaymentMethodById();
64
- // All Other PaymentMethods create Invoice if request-type is authorization
65
- if ($configMethod->isRequestAuthorization()) {
66
- if (!$this->method instanceof Payone_Core_Model_Payment_Method_AdvancePayment) {
67
- // Create Invoice
68
- $invoice = $this->getServiceInvoiceCreate()->createByOrder($this->order);
69
-
70
- $this->sendInvoiceEmail($invoice);
71
- }
72
- // Advance Payment: invoice is created on Transaction Paid
73
- }
74
- }
75
-
76
- /**
77
- * @param Varien_Event_Observer $observer
78
- */
79
- public function onPaid(Varien_Event_Observer $observer)
80
- {
81
- $this->initData($observer);
82
-
83
- $configMethod = $this->getConfigPaymentMethodById();
84
- // Advance Payment create Invoice if request-type is authorization
85
- if ($configMethod->isRequestAuthorization()) {
86
- $isAdvancePayment = $this->method instanceof Payone_Core_Model_Payment_Method_AdvancePayment;
87
-
88
- if ($isAdvancePayment) {
89
- $invoice = $this->getServiceInvoiceCreate()->createByOrder($this->order);
90
- }
91
- else {
92
- // Load Invoice which has been created in 'onAppointed'
93
- $invoice = $this->getInvoiceForOrder();
94
- }
95
-
96
- if ($invoice) {
97
- $invoice->pay();
98
-
99
- if ($isAdvancePayment) {
100
- $this->sendInvoiceEmail($invoice);
101
- }
102
-
103
- // Save invoice and it´s order as a transaction:
104
- try {
105
- $transaction = $this->getFactory()->getModelResourceTransaction();
106
- $transaction->addObject($invoice);
107
- $transaction->addObject($invoice->getOrder());
108
- $transaction->save();
109
- }
110
- catch (Mage_Core_Exception $e) {
111
- throw new Payone_Core_Exception_InvoiceSave($e->getMessage());
112
- }
113
- }
114
- }
115
- // All Other PaymentMethods already have an invoice
116
- }
117
-
118
- /**
119
- * @param Varien_Event_Observer $observer
120
- */
121
- protected function initData(Varien_Event_Observer $observer)
122
- {
123
- $event = $observer->getEvent();
124
-
125
- /** @var $transactionStatus Payone_Core_Model_Domain_Protocol_TransactionStatus */
126
- $this->transactionStatus = $event->getTransactionStatus();
127
-
128
- $order = $this->getOrderByTransactionStatus($this->transactionStatus);
129
- $payment = $order->getPayment();
130
- $this->method = $payment->getMethodInstance();
131
- /** @var $method Payone_Core_Model_Payment_Method_Abstract */
132
- $this->method = $payment->getMethodInstance();
133
- $this->order = $order;
134
- $this->config = $event->getConfig();
135
- $this->payment = $payment;
136
- }
137
-
138
- /**
139
- * @param Mage_Sales_Model_Order_Invoice $invoice
140
- */
141
- protected function sendInvoiceEmail(Mage_Sales_Model_Order_Invoice $invoice)
142
- {
143
- $invoice->setEmailSent(true);
144
- $invoice->sendEmail();
145
- $invoice->save();
146
- }
147
-
148
- /**
149
- * @param Payone_Core_Model_Service_Sales_InvoiceCreate $service
150
- */
151
- public function setServiceInvoiceCreate(Payone_Core_Model_Service_Sales_InvoiceCreate $service)
152
- {
153
- $this->serviceInvoiceCreate = $service;
154
- }
155
-
156
- /**
157
- * @return Payone_Core_Model_Service_Sales_InvoiceCreate
158
- */
159
- public function getServiceInvoiceCreate()
160
- {
161
- if ($this->serviceInvoiceCreate === null) {
162
- $this->serviceInvoiceCreate = $this->getFactory()->getServiceSalesInvoiceCreate();
163
- }
164
- return $this->serviceInvoiceCreate;
165
- }
166
-
167
- /**
168
- * @param Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus
169
- * @return Mage_Sales_Model_Order
170
- */
171
- protected function getOrderByTransactionStatus(Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus)
172
- {
173
- $order = $this->getFactory()->getModelSalesOrder();
174
- $order->load($transactionStatus->getOrderId());
175
- return $order;
176
- }
177
-
178
- /**
179
- * @return bool|Payone_Core_Model_Config_Payment_Method_Interface
180
- * @throws Payone_Core_Exception_PaymentMethodConfigNotFound
181
- */
182
- protected function getConfigPaymentMethodById()
183
- {
184
- $id = $this->payment->getPayoneConfigPaymentMethodId();
185
- $configPaymentMethod = $this->config->getPayment()->getMethodById($id);
186
-
187
- if (empty($configPaymentMethod)) {
188
- $message = 'Payment method configuration with id "' . $id . '" not found.';
189
- throw new Payone_Core_Exception_PaymentMethodConfigNotFound($message);
190
- }
191
-
192
- return $configPaymentMethod;
193
- }
194
-
195
- /**
196
- * @return Mage_Sales_Model_Order_Invoice
197
- */
198
- protected function getInvoiceForOrder()
199
- {
200
- /** @var $invoiceCollection Mage_Sales_Model_Mysql4_Order_Invoice_Collection */
201
- $invoiceCollection = $this->order->getInvoiceCollection();
202
- $invoiceCollection->addFieldToFilter('payone_sequencenumber', $this->transactionStatus->getSequencenumber());
203
- $invoice = $invoiceCollection->getFirstItem();
204
- return $invoice;
205
- }
206
-
207
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Observer
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Observer
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_Observer_TransactionStatus_InvoiceCreate
34
+ extends Payone_Core_Model_Observer_Abstract
35
+ {
36
+ /**
37
+ * @var Payone_Core_Model_Service_Sales_InvoiceCreate
38
+ */
39
+ protected $serviceInvoiceCreate = null;
40
+
41
+ /** @var $method Payone_Core_Model_Payment_Method_Abstract */
42
+ private $method = null;
43
+
44
+ /** @var $order Mage_Sales_Model_Order */
45
+ private $order = null;
46
+
47
+ /** @var $config Payone_Core_Model_Config */
48
+ private $config = null;
49
+
50
+ /** @var $payment Mage_Sales_Model_Order_Payment */
51
+ private $payment = null;
52
+
53
+ /** @var $transactionStatus Payone_Core_Model_Domain_Protocol_TransactionStatus */
54
+ private $transactionStatus = null;
55
+
56
+ /**
57
+ * @param Varien_Event_Observer $observer
58
+ */
59
+ public function onAppointed(Varien_Event_Observer $observer)
60
+ {
61
+ $this->initData($observer);
62
+
63
+ $configMethod = $this->getConfigPaymentMethodById();
64
+ // All Other PaymentMethods create Invoice if request-type is authorization
65
+ if ($configMethod->isRequestAuthorization()) {
66
+ if (!$this->method instanceof Payone_Core_Model_Payment_Method_AdvancePayment) {
67
+ // Create Invoice
68
+ $invoice = $this->getServiceInvoiceCreate()->createByOrder($this->order);
69
+
70
+ $this->sendInvoiceEmail($invoice);
71
+ }
72
+ // Advance Payment: invoice is created on Transaction Paid
73
+ }
74
+ }
75
+
76
+ /**
77
+ * @param Varien_Event_Observer $observer
78
+ */
79
+ public function onPaid(Varien_Event_Observer $observer)
80
+ {
81
+ $this->initData($observer);
82
+
83
+ $configMethod = $this->getConfigPaymentMethodById();
84
+ // Advance Payment create Invoice if request-type is authorization
85
+ if ($configMethod->isRequestAuthorization()) {
86
+ $isAdvancePayment = $this->method instanceof Payone_Core_Model_Payment_Method_AdvancePayment;
87
+
88
+ if ($isAdvancePayment) {
89
+ $invoice = $this->getServiceInvoiceCreate()->createByOrder($this->order);
90
+ }
91
+ else {
92
+ // Load Invoice which has been created in 'onAppointed'
93
+ $invoice = $this->getInvoiceForOrder();
94
+ }
95
+
96
+ if ($invoice) {
97
+ $invoice->pay();
98
+
99
+ if ($isAdvancePayment) {
100
+ $this->sendInvoiceEmail($invoice);
101
+ }
102
+
103
+ // Save invoice and it´s order as a transaction:
104
+ try {
105
+ $transaction = $this->getFactory()->getModelResourceTransaction();
106
+ $transaction->addObject($invoice);
107
+ $transaction->addObject($invoice->getOrder());
108
+ $transaction->save();
109
+ }
110
+ catch (Mage_Core_Exception $e) {
111
+ throw new Payone_Core_Exception_InvoiceSave($e->getMessage());
112
+ }
113
+ }
114
+ }
115
+ // All Other PaymentMethods already have an invoice
116
+ }
117
+
118
+ /**
119
+ * @param Varien_Event_Observer $observer
120
+ */
121
+ protected function initData(Varien_Event_Observer $observer)
122
+ {
123
+ $event = $observer->getEvent();
124
+
125
+ /** @var $transactionStatus Payone_Core_Model_Domain_Protocol_TransactionStatus */
126
+ $this->transactionStatus = $event->getTransactionStatus();
127
+
128
+ $order = $this->getOrderByTransactionStatus($this->transactionStatus);
129
+ $payment = $order->getPayment();
130
+ $this->method = $payment->getMethodInstance();
131
+ /** @var $method Payone_Core_Model_Payment_Method_Abstract */
132
+ $this->method = $payment->getMethodInstance();
133
+ $this->order = $order;
134
+ $this->config = $event->getConfig();
135
+ $this->payment = $payment;
136
+ }
137
+
138
+ /**
139
+ * @param Mage_Sales_Model_Order_Invoice $invoice
140
+ */
141
+ protected function sendInvoiceEmail(Mage_Sales_Model_Order_Invoice $invoice)
142
+ {
143
+ $invoice->setEmailSent(true);
144
+ $invoice->sendEmail();
145
+ $invoice->save();
146
+ }
147
+
148
+ /**
149
+ * @param Payone_Core_Model_Service_Sales_InvoiceCreate $service
150
+ */
151
+ public function setServiceInvoiceCreate(Payone_Core_Model_Service_Sales_InvoiceCreate $service)
152
+ {
153
+ $this->serviceInvoiceCreate = $service;
154
+ }
155
+
156
+ /**
157
+ * @return Payone_Core_Model_Service_Sales_InvoiceCreate
158
+ */
159
+ public function getServiceInvoiceCreate()
160
+ {
161
+ if ($this->serviceInvoiceCreate === null) {
162
+ $this->serviceInvoiceCreate = $this->getFactory()->getServiceSalesInvoiceCreate();
163
+ }
164
+ return $this->serviceInvoiceCreate;
165
+ }
166
+
167
+ /**
168
+ * @param Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus
169
+ * @return Mage_Sales_Model_Order
170
+ */
171
+ protected function getOrderByTransactionStatus(Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus)
172
+ {
173
+ $order = $this->getFactory()->getModelSalesOrder();
174
+ $order->load($transactionStatus->getOrderId());
175
+ return $order;
176
+ }
177
+
178
+ /**
179
+ * @return bool|Payone_Core_Model_Config_Payment_Method_Interface
180
+ * @throws Payone_Core_Exception_PaymentMethodConfigNotFound
181
+ */
182
+ protected function getConfigPaymentMethodById()
183
+ {
184
+ $id = $this->payment->getPayoneConfigPaymentMethodId();
185
+ $configPaymentMethod = $this->config->getPayment()->getMethodById($id);
186
+
187
+ if (empty($configPaymentMethod)) {
188
+ $message = 'Payment method configuration with id "' . $id . '" not found.';
189
+ throw new Payone_Core_Exception_PaymentMethodConfigNotFound($message);
190
+ }
191
+
192
+ return $configPaymentMethod;
193
+ }
194
+
195
+ /**
196
+ * @return Mage_Sales_Model_Order_Invoice
197
+ */
198
+ protected function getInvoiceForOrder()
199
+ {
200
+ /** @var $invoiceCollection Mage_Sales_Model_Mysql4_Order_Invoice_Collection */
201
+ $invoiceCollection = $this->order->getInvoiceCollection();
202
+ $invoiceCollection->addFieldToFilter('payone_sequencenumber', $this->transactionStatus->getSequencenumber());
203
+ $invoice = $invoiceCollection->getFirstItem();
204
+ return $invoice;
205
+ }
206
+
207
  }
app/code/community/Payone/Core/Model/Payment/Method/Abstract.php CHANGED
@@ -64,6 +64,33 @@ abstract class Payone_Core_Model_Payment_Method_Abstract
64
  */
65
  protected $config = null;
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  /**
68
  * @param Mage_Sales_Model_Quote $quote
69
  * @return bool
@@ -134,9 +161,15 @@ abstract class Payone_Core_Model_Payment_Method_Abstract
134
  return $this; // Don´t send cancel to PAYONE on orders without TxStatus
135
  }
136
 
137
- // Capture0, to notify PAYONE that the order is complete (invoiced/cancelled all items)
138
- $this->helperRegistry()->registerPaymentCancel($this->getInfoInstance());
139
- $this->capture($payment, 0.0000);
 
 
 
 
 
 
140
 
141
  return $this;
142
  }
@@ -345,7 +378,8 @@ abstract class Payone_Core_Model_Payment_Method_Abstract
345
  if ($field == 'sort_order') {
346
  try {
347
  $data = $this->getConfigForQuote()->getSortOrder();
348
- } catch (Payone_Core_Exception_PaymentMethodConfigNotFound $e) {
 
349
  return 0;
350
  }
351
  }
64
  */
65
  protected $config = null;
66
 
67
+ /**
68
+ * override parent method to get the user-configured title, not the one from config.xml
69
+ *
70
+ * @return string
71
+ */
72
+ public function getTitle()
73
+ {
74
+ if ($this->getConfig() instanceof Payone_Core_Model_Config_Payment_Method_Interface) {
75
+ return $this->getConfig()->getName();
76
+ }
77
+ /** @var $session Mage_Checkout_Model_Session */
78
+ $session = Mage::getSingleton('checkout/session');
79
+ $quote = $session->getQuote();
80
+ if (is_null($quote)) {
81
+ $quote = $this->getInfoInstance()->getQuote();
82
+ }
83
+ if ($quote instanceof Mage_Sales_Model_Quote) {
84
+ return $this->getConfigForQuote($quote)->getName();
85
+ }
86
+ $order = $this->getInfoInstance()->getOrder();
87
+ if ($order instanceof Mage_Sales_Model_Order) {
88
+ return $this->getConfigByOrder($order)->getName();
89
+ }
90
+ // call parent method if no config available
91
+ return parent::getTitle();
92
+ }
93
+
94
  /**
95
  * @param Mage_Sales_Model_Quote $quote
96
  * @return bool
161
  return $this; // Don´t send cancel to PAYONE on orders without TxStatus
162
  }
163
 
164
+ if ($this->getCode() == Payone_Core_Model_System_Config_PaymentMethodCode::CREDITCARD
165
+ or $this->getCode() == Payone_Core_Model_System_Config_PaymentMethodCode::SAFEINVOICE
166
+ or $this->getCode() == Payone_Core_Model_System_Config_PaymentMethodCode::FINANCING) {
167
+ // Capture with amount=0, to notify PAYONE that the order is complete (invoiced/cancelled all items)
168
+ // Only works with Creditcard at the moment (15.10.2013)
169
+ $this->helperRegistry()->registerPaymentCancel($this->getInfoInstance());
170
+ $this->capture($payment, 0.0000);
171
+ }
172
+
173
 
174
  return $this;
175
  }
378
  if ($field == 'sort_order') {
379
  try {
380
  $data = $this->getConfigForQuote()->getSortOrder();
381
+ }
382
+ catch (Payone_Core_Exception_PaymentMethodConfigNotFound $e) {
383
  return 0;
384
  }
385
  }
app/code/community/Payone/Core/Model/Payment/Method/Financing.php CHANGED
@@ -33,7 +33,6 @@
33
  class Payone_Core_Model_Payment_Method_Financing
34
  extends Payone_Core_Model_Payment_Method_Abstract
35
  {
36
- protected $_canUseForMultishipping = true;
37
  protected $_canRefund = false;
38
  protected $_canRefundInvoicePartial = false;
39
  protected $_canUseInternal = false;
33
  class Payone_Core_Model_Payment_Method_Financing
34
  extends Payone_Core_Model_Payment_Method_Abstract
35
  {
 
36
  protected $_canRefund = false;
37
  protected $_canRefundInvoicePartial = false;
38
  protected $_canUseInternal = false;
app/code/community/Payone/Core/Model/Payment/Method/SafeInvoice.php CHANGED
@@ -1,138 +1,137 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Payment
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Payment
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Model_Payment_Method_SafeInvoice
34
- extends Payone_Core_Model_Payment_Method_Abstract
35
- {
36
- protected $_canUseForMultishipping = true;
37
- protected $_canRefund = true;
38
- protected $_canRefundInvoicePartial = true;
39
- protected $_canSettleAccountAuto = false;
40
- protected $_canUseInternal = false;
41
- protected $_mustTransimitInvoicingData = true;
42
- protected $_mustTransimitInvoicingItemTypes = true;
43
-
44
- protected $methodType = Payone_Core_Model_System_Config_PaymentMethodType::SAFEINVOICE;
45
- protected $_code = Payone_Core_Model_System_Config_PaymentMethodCode::SAFEINVOICE;
46
-
47
-
48
- protected $cancelRequest = false;
49
-
50
- protected $_formBlockType = 'payone_core/payment_method_form_safeInvoice';
51
- protected $_infoBlockType = 'payone_core/payment_method_info_safeInvoice';
52
-
53
- /** @var Payone_Core_Model_Config_Payment_Method_Interface[] */
54
- protected $matchingConfigs = array();
55
-
56
- /**
57
- * @override to further restrict availability of SafeInvoice by rules
58
- *
59
- * @param null|Mage_Sales_Model_Quote $quote
60
- * @return bool
61
- */
62
- public function isAvailable($quote = null)
63
- {
64
- if (!empty($quote) &&
65
- count($this->getAllConfigsByQuote($quote)) < 1
66
- ) {
67
- return $this->dispatchPaymentMethodIsActive(false, $quote);
68
- }
69
-
70
- return parent::isAvailable($quote);
71
- }
72
-
73
- /**
74
- * @api
75
- *
76
- * To be used in Form_Block, which has to display all types
77
- *
78
- * @param Mage_Sales_Model_Quote $quote
79
- * @return Payone_Core_Model_Config_Payment_Method_Interface
80
- */
81
- public function getAllConfigsByQuote(Mage_Sales_Model_Quote $quote)
82
- {
83
- if (empty($this->matchingConfigs)) {
84
- $configStore = $this->getConfigStore($quote->getStoreId());
85
-
86
- $this->matchingConfigs = $configStore->getPayment()->getMethodsForQuote($this->methodType, $quote);
87
- }
88
-
89
- if (!$this->isAllowedBillSafe($quote)) {
90
- // Special handling for BillSAFE, virtual quotes are not allowed
91
- foreach ($this->matchingConfigs as $configKey => $config) {
92
- /** @var $config Payone_Core_Model_Config_Payment_Method_Interface */
93
- $types = $config->getTypes();
94
-
95
- foreach ($types as $key => $type) {
96
- // Remove BSV
97
- if ($type === Payone_Api_Enum_FinancingType::BSV) {
98
- unset($types[$key]);
99
- }
100
- }
101
-
102
- if (count($types) === 0) {
103
- unset($this->matchingConfigs[$configKey]);
104
- }
105
-
106
- }
107
- }
108
- return $this->matchingConfigs;
109
- }
110
-
111
- /**
112
- * BillSAFE does not allow:
113
- * - virtual quotes
114
- * - differing shipping/billing address
115
- *
116
- * @param Mage_Sales_Model_Quote $quote
117
- * @return bool
118
- */
119
- protected function isAllowedBillSafe(Mage_Sales_Model_Quote $quote)
120
- {
121
- if ($quote->isVirtual()) {
122
- return false;
123
- }
124
-
125
- $billingAddress = $quote->getBillingAddress();
126
- $shippingAddress = $quote->getShippingAddress();
127
-
128
-
129
- if (!$shippingAddress->getSameAsBilling()) {
130
- // Double check, in case the customer has chosen to enter a separate shipping address, but filled in the same values as in billing address:
131
- if (!$this->helper()->addressesAreEqual($billingAddress, $shippingAddress)) {
132
- return false;
133
- }
134
- }
135
-
136
- return true;
137
- }
138
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Payment
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Payment
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_Payment_Method_SafeInvoice
34
+ extends Payone_Core_Model_Payment_Method_Abstract
35
+ {
36
+ protected $_canRefund = true;
37
+ protected $_canRefundInvoicePartial = true;
38
+ protected $_canSettleAccountAuto = false;
39
+ protected $_canUseInternal = false;
40
+ protected $_mustTransimitInvoicingData = true;
41
+ protected $_mustTransimitInvoicingItemTypes = true;
42
+
43
+ protected $methodType = Payone_Core_Model_System_Config_PaymentMethodType::SAFEINVOICE;
44
+ protected $_code = Payone_Core_Model_System_Config_PaymentMethodCode::SAFEINVOICE;
45
+
46
+
47
+ protected $cancelRequest = false;
48
+
49
+ protected $_formBlockType = 'payone_core/payment_method_form_safeInvoice';
50
+ protected $_infoBlockType = 'payone_core/payment_method_info_safeInvoice';
51
+
52
+ /** @var Payone_Core_Model_Config_Payment_Method_Interface[] */
53
+ protected $matchingConfigs = array();
54
+
55
+ /**
56
+ * @override to further restrict availability of SafeInvoice by rules
57
+ *
58
+ * @param null|Mage_Sales_Model_Quote $quote
59
+ * @return bool
60
+ */
61
+ public function isAvailable($quote = null)
62
+ {
63
+ if (!empty($quote) &&
64
+ count($this->getAllConfigsByQuote($quote)) < 1
65
+ ) {
66
+ return $this->dispatchPaymentMethodIsActive(false, $quote);
67
+ }
68
+
69
+ return parent::isAvailable($quote);
70
+ }
71
+
72
+ /**
73
+ * @api
74
+ *
75
+ * To be used in Form_Block, which has to display all types
76
+ *
77
+ * @param Mage_Sales_Model_Quote $quote
78
+ * @return Payone_Core_Model_Config_Payment_Method_Interface
79
+ */
80
+ public function getAllConfigsByQuote(Mage_Sales_Model_Quote $quote)
81
+ {
82
+ if (empty($this->matchingConfigs)) {
83
+ $configStore = $this->getConfigStore($quote->getStoreId());
84
+
85
+ $this->matchingConfigs = $configStore->getPayment()->getMethodsForQuote($this->methodType, $quote);
86
+ }
87
+
88
+ if (!$this->isAllowedBillSafe($quote)) {
89
+ // Special handling for BillSAFE, virtual quotes are not allowed
90
+ foreach ($this->matchingConfigs as $configKey => $config) {
91
+ /** @var $config Payone_Core_Model_Config_Payment_Method_Interface */
92
+ $types = $config->getTypes();
93
+
94
+ foreach ($types as $key => $type) {
95
+ // Remove BSV
96
+ if ($type === Payone_Api_Enum_FinancingType::BSV) {
97
+ unset($types[$key]);
98
+ }
99
+ }
100
+
101
+ if (count($types) === 0) {
102
+ unset($this->matchingConfigs[$configKey]);
103
+ }
104
+
105
+ }
106
+ }
107
+ return $this->matchingConfigs;
108
+ }
109
+
110
+ /**
111
+ * BillSAFE does not allow:
112
+ * - virtual quotes
113
+ * - differing shipping/billing address
114
+ *
115
+ * @param Mage_Sales_Model_Quote $quote
116
+ * @return bool
117
+ */
118
+ protected function isAllowedBillSafe(Mage_Sales_Model_Quote $quote)
119
+ {
120
+ if ($quote->isVirtual()) {
121
+ return false;
122
+ }
123
+
124
+ $billingAddress = $quote->getBillingAddress();
125
+ $shippingAddress = $quote->getShippingAddress();
126
+
127
+
128
+ if (!$shippingAddress->getSameAsBilling()) {
129
+ // Double check, in case the customer has chosen to enter a separate shipping address, but filled in the same values as in billing address:
130
+ if (!$this->helper()->addressesAreEqual($billingAddress, $shippingAddress)) {
131
+ return false;
132
+ }
133
+ }
134
+
135
+ return true;
136
+ }
 
137
  }
app/code/community/Payone/Core/Model/Service/Config/XmlGenerate.php CHANGED
@@ -238,6 +238,32 @@ class Payone_Core_Model_Service_Config_XmlGenerate
238
  $paymentMethodConfig->setTypes($types);
239
 
240
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  $feeConfigs = $paymentMethod->getFeeConfig();
242
  $feeConfigArray = array();
243
  if (is_array($feeConfigs)) {
238
  $paymentMethodConfig->setTypes($types);
239
 
240
  }
241
+
242
+ if ($paymentMethodConfig instanceof Payone_Settings_Data_ConfigFile_PaymentMethod_Financing) {
243
+ /** @var Payone_Settings_Data_ConfigFile_PaymentMethod_Financing $paymentMethodConfig */
244
+ $klarnaConfigs = $paymentMethod->getKlarnaConfig();
245
+ $klarnaConfigArray = array();
246
+ if (is_array($klarnaConfigs)) {
247
+ foreach ($klarnaConfigs as $klarnaConfig) {
248
+ $attributeCountry = '';
249
+ if (is_array($klarnaConfig)) {
250
+ if (array_key_exists('countries', $klarnaConfig)) {
251
+ $attributeCountry = implode(',', $klarnaConfig['countries']);
252
+ }
253
+ }
254
+ $attributeArray = array(
255
+ 'countries' => $attributeCountry
256
+ );
257
+ $configArray = array(
258
+ 'value' => array_key_exists('klarna_store_id', $klarnaConfig) ? $klarnaConfig['klarna_store_id'] : '',
259
+ 'attribute' => $attributeArray
260
+ );
261
+ array_push($klarnaConfigArray, $configArray);
262
+ }
263
+ }
264
+ $paymentMethodConfig->setKlarnaConfig($klarnaConfigArray);
265
+ }
266
+
267
  $feeConfigs = $paymentMethod->getFeeConfig();
268
  $feeConfigArray = array();
269
  if (is_array($feeConfigs)) {
app/code/community/Payone/Core/Model/Service/Management/GetFile.php ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Model_Service_Management_GetFile
35
+ extends Payone_Core_Model_Service_Abstract
36
+ {
37
+ /** @var Payone_Api_Service_Management_GetFile*/
38
+ protected $serviceApiGetFile;
39
+ /** @var Payone_Core_Model_Mapper_ApiRequest_Management_GetFile */
40
+ protected $mapper;
41
+
42
+ /**
43
+ * @param string $mandateIdentification
44
+ * @return bool|string
45
+ */
46
+ public function execute($mandateIdentification)
47
+ {
48
+ $request = $this->getMapper()->map($mandateIdentification);
49
+
50
+ $response = $this->getServiceApiGetFile()->getFile($request);
51
+
52
+ if (!$response instanceof Payone_Api_Response_Management_GetFile) {
53
+ return false;
54
+ }
55
+ // return the content of the file:
56
+ // Content for pdf-file is saved in rawresponse
57
+ return $response->getRawResponse();
58
+ }
59
+
60
+ /**
61
+ * @param \Payone_Core_Model_Mapper_ApiRequest_Management_GetFile $mapper
62
+ */
63
+ public function setMapper($mapper)
64
+ {
65
+ $this->mapper = $mapper;
66
+ }
67
+
68
+ /**
69
+ * @return \Payone_Core_Model_Mapper_ApiRequest_Management_GetFile
70
+ */
71
+ public function getMapper()
72
+ {
73
+ return $this->mapper;
74
+ }
75
+
76
+ /**
77
+ * @param \Payone_Api_Service_Management_GetFile $serviceApiGetFile
78
+ */
79
+ public function setServiceApiGetFile($serviceApiGetFile)
80
+ {
81
+ $this->serviceApiGetFile = $serviceApiGetFile;
82
+ }
83
+
84
+ /**
85
+ * @return \Payone_Api_Service_Management_GetFile
86
+ */
87
+ public function getServiceApiGetFile()
88
+ {
89
+ return $this->serviceApiGetFile;
90
+ }
91
+ }
92
+
app/code/community/Payone/Core/Model/Service/Management/ManageMandate.php ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Model_Service_Management_ManageMandate
35
+ extends Payone_Core_Model_Service_Abstract
36
+ {
37
+ const STATUS_ACTIVE = 'active';
38
+ const STATUS_PENDING = 'pending';
39
+
40
+ /** @var Payone_Api_Service_Management_ManageMandate */
41
+ protected $serviceApiManageMandate = null;
42
+ /** @var Payone_Core_Model_Mapper_ApiRequest_Management_ManageMandate */
43
+ protected $mapper = null;
44
+
45
+ /**
46
+ * @param Mage_Sales_Model_Quote $quote
47
+ * @param $bankcountry
48
+ * @param $bankaccount
49
+ * @param $bankcode
50
+ * @param $bic
51
+ * @param $iban
52
+ * @throws Mage_Core_Exception
53
+ * @return Payone_Api_Response_Management_ManageMandate_Approved
54
+ */
55
+ public function execute(Mage_Sales_Model_Quote $quote, $bankcountry, $bankaccount, $bankcode, $bic, $iban)
56
+ {
57
+ $request = $this->getMapper()->mapByQuote($quote, $bankcountry, $bankaccount, $bankcode, $bic, $iban);
58
+
59
+ $response = $this->getServiceApiManageMandate()->managemandate($request);
60
+
61
+ if (!$response instanceof Payone_Api_Response_Management_ManageMandate_Approved) {
62
+ throw new Mage_Core_Exception($this->helper()->__('There has been an error processing your request.'));
63
+ }
64
+
65
+ return $response;
66
+ }
67
+
68
+ /**
69
+ * @param \Payone_Core_Model_Mapper_ApiRequest_Management_ManageMandate $mapper
70
+ */
71
+ public function setMapper($mapper)
72
+ {
73
+ $this->mapper = $mapper;
74
+ }
75
+
76
+ /**
77
+ * @return \Payone_Core_Model_Mapper_ApiRequest_Management_ManageMandate
78
+ */
79
+ public function getMapper()
80
+ {
81
+ return $this->mapper;
82
+ }
83
+
84
+ /**
85
+ * @param \Payone_Api_Service_Management_ManageMandate $serviceApiManageMandate
86
+ */
87
+ public function setServiceApiManageMandate($serviceApiManageMandate)
88
+ {
89
+ $this->serviceApiManageMandate = $serviceApiManageMandate;
90
+ }
91
+
92
+ /**
93
+ * @return \Payone_Api_Service_Management_ManageMandate
94
+ */
95
+ public function getServiceApiManageMandate()
96
+ {
97
+ return $this->serviceApiManageMandate;
98
+ }
99
+ }
100
+
app/code/community/Payone/Core/Model/Service/Payment/Abstract.php CHANGED
@@ -1,155 +1,155 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Core_Model_Service_Payment_Abstract
34
- extends Payone_Core_Model_Service_Abstract
35
- implements Payone_Core_Model_Service_Payment_Interface
36
- {
37
- const EVENT_GROUP = 'payone_core_service_payment';
38
-
39
- /** @var Payone_Core_Model_Mapper_ApiRequest_Payment_Interface */
40
- protected $mapper = null;
41
-
42
- /**
43
- * @var Payone_Core_Model_Handler_Payment_Interface
44
- */
45
- protected $handler = null;
46
-
47
- /**
48
- * @param Payone_Api_Request_Interface $request
49
- * @return mixed
50
- */
51
- abstract protected function perform(Payone_Api_Request_Interface $request);
52
-
53
- /**
54
- * @return string
55
- */
56
- abstract public function getEventType();
57
-
58
- /**
59
- * @inheritdoc
60
- */
61
- public function execute(Mage_Sales_Model_Order_Payment $payment, $amount = 0.00)
62
- {
63
- $this->getMapper()->setAmount($amount);
64
-
65
- $request = $this->getMapper()->mapFromPayment($payment);
66
-
67
- $response = $this->perform($request);
68
-
69
- $this->getHandler()->setConfigStore($this->getConfigStore());
70
- $this->getHandler()->setPayment($payment);
71
- $this->getHandler()->setRequest($request);
72
- $this->getHandler()->handle($response);
73
-
74
- // Trigger Event
75
- $params = array(
76
- 'request' => $request,
77
- 'response' => $response,
78
- 'payment_method' => $payment->getMethodInstance(),
79
- 'payment' => $payment,
80
- 'order' => $payment->getOrder()
81
- );
82
- $this->dispatchEvent($this->getEventGroup(), $params);
83
- $this->dispatchEvent($this->getEventName(), $params);
84
- $this->dispatchEvent($this->getEventName() . '_' . strtolower($response->getStatus()), $params);
85
-
86
- if ($response instanceof Payone_Api_Response_Error) {
87
- /** @var $response Payone_Api_Response_Error */
88
- $this->throwMageException($this->helper()->__('There has been an error processing your payment'));
89
- }
90
-
91
- return $response;
92
- }
93
-
94
- protected function getEventName()
95
- {
96
- return $this->getEventGroup() . '_' . $this->getEventType();
97
- }
98
-
99
- protected function getEventGroup()
100
- {
101
- return self::EVENT_GROUP;
102
- }
103
-
104
- /**
105
- * @param $message
106
- * @throws Mage_Core_Exception
107
- */
108
- protected function throwMageException($message)
109
- {
110
- Mage::throwException($message);
111
- }
112
-
113
- /**
114
- * @param $name
115
- * @param array $data
116
- *
117
- * @return Mage_Core_Model_App
118
- */
119
- protected function dispatchEvent($name, array $data = array())
120
- {
121
- return Mage::dispatchEvent($name, $data);
122
- }
123
-
124
- /**
125
- * @param Payone_Core_Model_Mapper_ApiRequest_Payment_Interface $mapper
126
- */
127
- public function setMapper(Payone_Core_Model_Mapper_ApiRequest_Payment_Interface $mapper)
128
- {
129
- $this->mapper = $mapper;
130
- }
131
-
132
- /**
133
- * @return Payone_Core_Model_Mapper_ApiRequest_Payment_Interface
134
- */
135
- public function getMapper()
136
- {
137
- return $this->mapper;
138
- }
139
-
140
- /**
141
- * @param Payone_Core_Model_Handler_Payment_Interface $handler
142
- */
143
- public function setHandler(Payone_Core_Model_Handler_Payment_Interface $handler)
144
- {
145
- $this->handler = $handler;
146
- }
147
-
148
- /**
149
- * @return Payone_Core_Model_Handler_Payment_Interface
150
- */
151
- public function getHandler()
152
- {
153
- return $this->handler;
154
- }
155
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Core_Model_Service_Payment_Abstract
34
+ extends Payone_Core_Model_Service_Abstract
35
+ implements Payone_Core_Model_Service_Payment_Interface
36
+ {
37
+ const EVENT_GROUP = 'payone_core_service_payment';
38
+
39
+ /** @var Payone_Core_Model_Mapper_ApiRequest_Payment_Interface */
40
+ protected $mapper = null;
41
+
42
+ /**
43
+ * @var Payone_Core_Model_Handler_Payment_Interface
44
+ */
45
+ protected $handler = null;
46
+
47
+ /**
48
+ * @param Payone_Api_Request_Interface $request
49
+ * @return mixed
50
+ */
51
+ abstract protected function perform(Payone_Api_Request_Interface $request);
52
+
53
+ /**
54
+ * @return string
55
+ */
56
+ abstract public function getEventType();
57
+
58
+ /**
59
+ * @inheritdoc
60
+ */
61
+ public function execute(Mage_Sales_Model_Order_Payment $payment, $amount = 0.00)
62
+ {
63
+ $this->getMapper()->setAmount($amount);
64
+
65
+ $request = $this->getMapper()->mapFromPayment($payment);
66
+
67
+ $response = $this->perform($request);
68
+
69
+ $this->getHandler()->setConfigStore($this->getConfigStore());
70
+ $this->getHandler()->setPayment($payment);
71
+ $this->getHandler()->setRequest($request);
72
+ $this->getHandler()->handle($response);
73
+
74
+ // Trigger Event
75
+ $params = array(
76
+ 'request' => $request,
77
+ 'response' => $response,
78
+ 'payment_method' => $payment->getMethodInstance(),
79
+ 'payment' => $payment,
80
+ 'order' => $payment->getOrder()
81
+ );
82
+ $this->dispatchEvent($this->getEventGroup(), $params);
83
+ $this->dispatchEvent($this->getEventName(), $params);
84
+ $this->dispatchEvent($this->getEventName() . '_' . strtolower($response->getStatus()), $params);
85
+
86
+ if ($response instanceof Payone_Api_Response_Error) {
87
+ /** @var $response Payone_Api_Response_Error */
88
+ $this->throwMageException($this->helper()->__('There has been an error processing your payment'));
89
+ }
90
+
91
+ return $response;
92
+ }
93
+
94
+ protected function getEventName()
95
+ {
96
+ return $this->getEventGroup() . '_' . $this->getEventType();
97
+ }
98
+
99
+ protected function getEventGroup()
100
+ {
101
+ return self::EVENT_GROUP;
102
+ }
103
+
104
+ /**
105
+ * @param $message
106
+ * @throws Mage_Core_Exception
107
+ */
108
+ protected function throwMageException($message)
109
+ {
110
+ Mage::throwException($message);
111
+ }
112
+
113
+ /**
114
+ * @param $name
115
+ * @param array $data
116
+ *
117
+ * @return Mage_Core_Model_App
118
+ */
119
+ protected function dispatchEvent($name, array $data = array())
120
+ {
121
+ return Mage::dispatchEvent($name, $data);
122
+ }
123
+
124
+ /**
125
+ * @param Payone_Core_Model_Mapper_ApiRequest_Payment_Interface $mapper
126
+ */
127
+ public function setMapper(Payone_Core_Model_Mapper_ApiRequest_Payment_Interface $mapper)
128
+ {
129
+ $this->mapper = $mapper;
130
+ }
131
+
132
+ /**
133
+ * @return Payone_Core_Model_Mapper_ApiRequest_Payment_Interface
134
+ */
135
+ public function getMapper()
136
+ {
137
+ return $this->mapper;
138
+ }
139
+
140
+ /**
141
+ * @param Payone_Core_Model_Handler_Payment_Interface $handler
142
+ */
143
+ public function setHandler(Payone_Core_Model_Handler_Payment_Interface $handler)
144
+ {
145
+ $this->handler = $handler;
146
+ }
147
+
148
+ /**
149
+ * @return Payone_Core_Model_Handler_Payment_Interface
150
+ */
151
+ public function getHandler()
152
+ {
153
+ return $this->handler;
154
+ }
155
  }
app/code/community/Payone/Core/Model/Service/TransactionStatus/Process.php CHANGED
@@ -1,195 +1,195 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_Model
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Model_Service_TransactionStatus_Process extends Payone_Core_Model_Service_Abstract
34
- {
35
- const EVENT_NAME_PREFIX = 'payone_core_transactionstatus_';
36
- const EVENT_NAME_ALL = 'all';
37
-
38
- const EVENT_PARAMETER_TRANSACTION = 'transaction';
39
- const EVENT_PARAMETER_TRANSACTIONSTATUS = 'transaction_status';
40
- const EVENT_PARAMETER_CONFIG = 'config';
41
-
42
- /**
43
- * @var Payone_Core_Model_Service_Transaction_Update
44
- */
45
- protected $serviceTransaction = null;
46
-
47
- /**
48
- * @var Payone_Core_Model_Service_Sales_OrderStatus
49
- */
50
- protected $serviceOrderStatus = null;
51
-
52
- /**
53
- * @var Payone_Core_Model_Service_Sales_OrderComment
54
- */
55
- protected $serviceOrderComment = null;
56
-
57
- /**
58
- * @var Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters
59
- */
60
- protected $serviceStoreClearingParams = null;
61
-
62
- /**
63
- * @param Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus
64
- * @throws Payone_Core_Exception_OrderNotFound
65
- */
66
- public function execute(Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus)
67
- {
68
- $order = $this->getFactory()->getModelSalesOrder();
69
- $order->loadByIncrementId($transactionStatus->getReference());
70
-
71
- if (!$order->hasData()) {
72
- throw new Payone_Core_Exception_OrderNotFound('Reference "'.$transactionStatus->getReference().'"."');
73
- }
74
-
75
- // Secondary validation: is Transaction Id correct?
76
- $payment = $order->getPayment();
77
- $lastTxId = $payment->getLastTransId();
78
- if($lastTxId != $transactionStatus->getTxid())
79
- {
80
- return; // Don´t throw an exception, just abort processing.
81
- }
82
-
83
- $config = $this->helperConfig()->getConfigStore($order->getStoreId());
84
-
85
- $transactionStatus->setStoreId($order->getStoreId());
86
- $transactionStatus->setOrderId($order->getId());
87
-
88
- // Update Transaction
89
- $transaction = $this->getServiceTransaction()->updateByTransactionStatus($transactionStatus);
90
-
91
- // Update Order Status
92
- $this->getServiceOrderStatus()->setConfigStore($config);
93
- $this->getServiceOrderStatus()->updateByTransactionStatus($order, $transactionStatus);
94
-
95
- // Add Order Comment
96
- $this->getServiceOrderComment()->addByTransactionStatus($order, $transactionStatus);
97
-
98
- // Store Clearing Parameters (needs to be done before the events get triggered)
99
- $this->getServiceStoreClearingParams()->execute($transactionStatus, $order);
100
-
101
- // Save before Event is triggerd
102
- $resouce = $this->getFactory()->getModelResourceTransaction();
103
- $resouce->addObject($order);
104
- $resouce->addObject($transactionStatus);
105
- $resouce->save();
106
-
107
-
108
- // Trigger Event
109
- $params = array(
110
- self::EVENT_PARAMETER_TRANSACTIONSTATUS => $transactionStatus,
111
- self::EVENT_PARAMETER_TRANSACTION => $transaction,
112
- self::EVENT_PARAMETER_CONFIG => $config,
113
- // @todo we should add order as param cause observers may need it
114
- );
115
- $this->dispatchEvent(self::EVENT_NAME_PREFIX . self::EVENT_NAME_ALL, $params);
116
- $this->dispatchEvent(self::EVENT_NAME_PREFIX . $transactionStatus->getTxaction(), $params);
117
- }
118
-
119
- /**
120
- * @param $name
121
- * @param array $data
122
- *
123
- * @return Mage_Core_Model_App
124
- */
125
- protected function dispatchEvent($name, array $data = array())
126
- {
127
- return Mage::dispatchEvent($name, $data);
128
- }
129
-
130
- /**
131
- * @param Payone_Core_Model_Service_Sales_OrderStatus $service
132
- */
133
- public function setServiceOrderStatus(Payone_Core_Model_Service_Sales_OrderStatus $service)
134
- {
135
- $this->serviceOrderStatus = $service;
136
- }
137
-
138
- /**
139
- * @return Payone_Core_Model_Service_Sales_OrderStatus
140
- */
141
- public function getServiceOrderStatus()
142
- {
143
- return $this->serviceOrderStatus;
144
- }
145
-
146
- /**
147
- * @param Payone_Core_Model_Service_Sales_OrderComment $service
148
- */
149
- public function setServiceOrderComment(Payone_Core_Model_Service_Sales_OrderComment $service)
150
- {
151
- $this->serviceOrderComment = $service;
152
- }
153
-
154
- /**
155
- * @return Payone_Core_Model_Service_Sales_OrderComment
156
- */
157
- public function getServiceOrderComment()
158
- {
159
- return $this->serviceOrderComment;
160
- }
161
-
162
- /**
163
- * @param Payone_Core_Model_Service_Transaction_Update $serviceTransaction
164
- */
165
- public function setServiceTransaction(Payone_Core_Model_Service_Transaction_Update $serviceTransaction)
166
- {
167
- $this->serviceTransaction = $serviceTransaction;
168
- }
169
-
170
- /**
171
- * @return Payone_Core_Model_Service_Transaction_Update
172
- */
173
- public function getServiceTransaction()
174
- {
175
- return $this->serviceTransaction;
176
- }
177
-
178
- /**
179
- * @param Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters $serviceStoreClearingParams
180
- */
181
- public function setServiceStoreClearingParams(Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters $serviceStoreClearingParams)
182
- {
183
- $this->serviceStoreClearingParams = $serviceStoreClearingParams;
184
- }
185
-
186
- /**
187
- * @return Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters
188
- */
189
- public function getServiceStoreClearingParams()
190
- {
191
- return $this->serviceStoreClearingParams;
192
- }
193
-
194
-
195
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_Service_TransactionStatus_Process extends Payone_Core_Model_Service_Abstract
34
+ {
35
+ const EVENT_NAME_PREFIX = 'payone_core_transactionstatus_';
36
+ const EVENT_NAME_ALL = 'all';
37
+
38
+ const EVENT_PARAMETER_TRANSACTION = 'transaction';
39
+ const EVENT_PARAMETER_TRANSACTIONSTATUS = 'transaction_status';
40
+ const EVENT_PARAMETER_CONFIG = 'config';
41
+
42
+ /**
43
+ * @var Payone_Core_Model_Service_Transaction_Update
44
+ */
45
+ protected $serviceTransaction = null;
46
+
47
+ /**
48
+ * @var Payone_Core_Model_Service_Sales_OrderStatus
49
+ */
50
+ protected $serviceOrderStatus = null;
51
+
52
+ /**
53
+ * @var Payone_Core_Model_Service_Sales_OrderComment
54
+ */
55
+ protected $serviceOrderComment = null;
56
+
57
+ /**
58
+ * @var Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters
59
+ */
60
+ protected $serviceStoreClearingParams = null;
61
+
62
+ /**
63
+ * @param Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus
64
+ * @throws Payone_Core_Exception_OrderNotFound
65
+ */
66
+ public function execute(Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus)
67
+ {
68
+ $order = $this->getFactory()->getModelSalesOrder();
69
+ $order->loadByIncrementId($transactionStatus->getReference());
70
+
71
+ if (!$order->hasData()) {
72
+ throw new Payone_Core_Exception_OrderNotFound('Reference "'.$transactionStatus->getReference().'"."');
73
+ }
74
+
75
+ // Secondary validation: is Transaction Id correct?
76
+ $payment = $order->getPayment();
77
+ $lastTxId = $payment->getLastTransId();
78
+ if($lastTxId != $transactionStatus->getTxid())
79
+ {
80
+ return; // Don´t throw an exception, just abort processing.
81
+ }
82
+
83
+ $config = $this->helperConfig()->getConfigStore($order->getStoreId());
84
+
85
+ $transactionStatus->setStoreId($order->getStoreId());
86
+ $transactionStatus->setOrderId($order->getId());
87
+
88
+ // Update Transaction
89
+ $transaction = $this->getServiceTransaction()->updateByTransactionStatus($transactionStatus);
90
+
91
+ // Update Order Status
92
+ $this->getServiceOrderStatus()->setConfigStore($config);
93
+ $this->getServiceOrderStatus()->updateByTransactionStatus($order, $transactionStatus);
94
+
95
+ // Add Order Comment
96
+ $this->getServiceOrderComment()->addByTransactionStatus($order, $transactionStatus);
97
+
98
+ // Store Clearing Parameters (needs to be done before the events get triggered)
99
+ $this->getServiceStoreClearingParams()->execute($transactionStatus, $order);
100
+
101
+ // Save before Event is triggerd
102
+ $resouce = $this->getFactory()->getModelResourceTransaction();
103
+ $resouce->addObject($order);
104
+ $resouce->addObject($transactionStatus);
105
+ $resouce->save();
106
+
107
+
108
+ // Trigger Event
109
+ $params = array(
110
+ self::EVENT_PARAMETER_TRANSACTIONSTATUS => $transactionStatus,
111
+ self::EVENT_PARAMETER_TRANSACTION => $transaction,
112
+ self::EVENT_PARAMETER_CONFIG => $config,
113
+ // @todo we should add order as param cause observers may need it
114
+ );
115
+ $this->dispatchEvent(self::EVENT_NAME_PREFIX . self::EVENT_NAME_ALL, $params);
116
+ $this->dispatchEvent(self::EVENT_NAME_PREFIX . $transactionStatus->getTxaction(), $params);
117
+ }
118
+
119
+ /**
120
+ * @param $name
121
+ * @param array $data
122
+ *
123
+ * @return Mage_Core_Model_App
124
+ */
125
+ protected function dispatchEvent($name, array $data = array())
126
+ {
127
+ return Mage::dispatchEvent($name, $data);
128
+ }
129
+
130
+ /**
131
+ * @param Payone_Core_Model_Service_Sales_OrderStatus $service
132
+ */
133
+ public function setServiceOrderStatus(Payone_Core_Model_Service_Sales_OrderStatus $service)
134
+ {
135
+ $this->serviceOrderStatus = $service;
136
+ }
137
+
138
+ /**
139
+ * @return Payone_Core_Model_Service_Sales_OrderStatus
140
+ */
141
+ public function getServiceOrderStatus()
142
+ {
143
+ return $this->serviceOrderStatus;
144
+ }
145
+
146
+ /**
147
+ * @param Payone_Core_Model_Service_Sales_OrderComment $service
148
+ */
149
+ public function setServiceOrderComment(Payone_Core_Model_Service_Sales_OrderComment $service)
150
+ {
151
+ $this->serviceOrderComment = $service;
152
+ }
153
+
154
+ /**
155
+ * @return Payone_Core_Model_Service_Sales_OrderComment
156
+ */
157
+ public function getServiceOrderComment()
158
+ {
159
+ return $this->serviceOrderComment;
160
+ }
161
+
162
+ /**
163
+ * @param Payone_Core_Model_Service_Transaction_Update $serviceTransaction
164
+ */
165
+ public function setServiceTransaction(Payone_Core_Model_Service_Transaction_Update $serviceTransaction)
166
+ {
167
+ $this->serviceTransaction = $serviceTransaction;
168
+ }
169
+
170
+ /**
171
+ * @return Payone_Core_Model_Service_Transaction_Update
172
+ */
173
+ public function getServiceTransaction()
174
+ {
175
+ return $this->serviceTransaction;
176
+ }
177
+
178
+ /**
179
+ * @param Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters $serviceStoreClearingParams
180
+ */
181
+ public function setServiceStoreClearingParams(Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters $serviceStoreClearingParams)
182
+ {
183
+ $this->serviceStoreClearingParams = $serviceStoreClearingParams;
184
+ }
185
+
186
+ /**
187
+ * @return Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters
188
+ */
189
+ public function getServiceStoreClearingParams()
190
+ {
191
+ return $this->serviceStoreClearingParams;
192
+ }
193
+
194
+
195
  }
app/code/community/Payone/Core/Model/Service/TransactionStatus/StoreClearingParameters.php CHANGED
@@ -1,84 +1,84 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_Model_Service_Abstract
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@payone.de> - www.noovias.com
19
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
- * @link http://www.noovias.com
21
- */
22
-
23
- /**
24
- *
25
- * @category Payone
26
- * @package Payone_Core_Model_Service_Abstract
27
- * @subpackage Response
28
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
- * @link http://www.noovias.com
31
- *
32
- */
33
- class Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters
34
- extends Payone_Core_Model_Service_Abstract
35
- {
36
- /**
37
- * @param Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus
38
- * @param Mage_Sales_Model_Order $order
39
- * @return void
40
- */
41
- public function execute(Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus, Mage_Sales_Model_Order $order = null)
42
- {
43
-
44
- if(!$transactionStatus->isAppointed())
45
- return;
46
-
47
- if(is_null($order))
48
- {
49
- $order = $this->getFactory()->getModelSalesOrder();
50
- $order->load($transactionStatus->getOrderId());
51
- }
52
- $payment = $order->getPayment();
53
- $methodInstance = $payment->getMethodInstance();
54
-
55
- // Clearing params need only to be mapped on SafeInvoice with request mode "authorization" abort otherwise.
56
- if (!($methodInstance instanceof Payone_Core_Model_Payment_Method_SafeInvoice)) {
57
- return;
58
- }
59
-
60
-
61
- $config = $this->helperConfig()->getConfigPaymentMethodByOrder($order);
62
-
63
-
64
- if (!$config->isRequestAuthorization()) {
65
- return;
66
- }
67
-
68
- $payment->setPayoneClearingBankAccountholder($transactionStatus->getClearingBankaccountholder());
69
- $payment->setPayoneClearingBankCountry($transactionStatus->getClearingBankcountry());
70
- $payment->setPayoneClearingBankAccount($transactionStatus->getClearingBankaccount());
71
- $payment->setPayoneClearingBankCode($transactionStatus->getClearingBankcode());
72
- $payment->setPayoneClearingBankIban($transactionStatus->getClearingBankiban());
73
- $payment->setPayoneClearingBankBic($transactionStatus->getClearingBankbic());
74
- $payment->setPayoneClearingBankCity($transactionStatus->getClearingBankcity());
75
- $payment->setPayoneClearingBankName($transactionStatus->getClearingBankname());
76
- $payment->setPayoneClearingReference($transactionStatus->getClearingReference());
77
- $payment->setPayoneClearingInstructionnote($transactionStatus->getClearingInstructionnote());
78
- $payment->setPayoneClearingLegalnote($transactionStatus->getClearingLegalnote());
79
- $payment->setPayoneClearingDuedate($transactionStatus->getClearingDuedate());
80
-
81
- $payment->save();
82
-
83
- }
84
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model_Service_Abstract
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@payone.de> - www.noovias.com
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Core_Model_Service_Abstract
27
+ * @subpackage Response
28
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
+ * @link http://www.noovias.com
31
+ *
32
+ */
33
+ class Payone_Core_Model_Service_TransactionStatus_StoreClearingParameters
34
+ extends Payone_Core_Model_Service_Abstract
35
+ {
36
+ /**
37
+ * @param Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus
38
+ * @param Mage_Sales_Model_Order $order
39
+ * @return void
40
+ */
41
+ public function execute(Payone_Core_Model_Domain_Protocol_TransactionStatus $transactionStatus, Mage_Sales_Model_Order $order = null)
42
+ {
43
+
44
+ if(!$transactionStatus->isAppointed())
45
+ return;
46
+
47
+ if(is_null($order))
48
+ {
49
+ $order = $this->getFactory()->getModelSalesOrder();
50
+ $order->load($transactionStatus->getOrderId());
51
+ }
52
+ $payment = $order->getPayment();
53
+ $methodInstance = $payment->getMethodInstance();
54
+
55
+ // Clearing params need only to be mapped on SafeInvoice with request mode "authorization" abort otherwise.
56
+ if (!($methodInstance instanceof Payone_Core_Model_Payment_Method_SafeInvoice)) {
57
+ return;
58
+ }
59
+
60
+
61
+ $config = $this->helperConfig()->getConfigPaymentMethodByOrder($order);
62
+
63
+
64
+ if (!$config->isRequestAuthorization()) {
65
+ return;
66
+ }
67
+
68
+ $payment->setPayoneClearingBankAccountholder($transactionStatus->getClearingBankaccountholder());
69
+ $payment->setPayoneClearingBankCountry($transactionStatus->getClearingBankcountry());
70
+ $payment->setPayoneClearingBankAccount($transactionStatus->getClearingBankaccount());
71
+ $payment->setPayoneClearingBankCode($transactionStatus->getClearingBankcode());
72
+ $payment->setPayoneClearingBankIban($transactionStatus->getClearingBankiban());
73
+ $payment->setPayoneClearingBankBic($transactionStatus->getClearingBankbic());
74
+ $payment->setPayoneClearingBankCity($transactionStatus->getClearingBankcity());
75
+ $payment->setPayoneClearingBankName($transactionStatus->getClearingBankname());
76
+ $payment->setPayoneClearingReference($transactionStatus->getClearingReference());
77
+ $payment->setPayoneClearingInstructionnote($transactionStatus->getClearingInstructionnote());
78
+ $payment->setPayoneClearingLegalnote($transactionStatus->getClearingLegalnote());
79
+ $payment->setPayoneClearingDuedate($transactionStatus->getClearingDuedate());
80
+
81
+ $payment->save();
82
+
83
+ }
84
  }
app/code/community/Payone/Core/Model/Service/Verification/BankAccountCheck.php CHANGED
@@ -46,13 +46,15 @@ class Payone_Core_Model_Service_Verification_BankAccountCheck
46
  * @param $bankaccount
47
  * @param $bankcode
48
  * @param $bankcountry
 
 
49
  *
50
  * @return void
51
  * @throws Mage_Core_Exception
52
  */
53
- public function execute($bankaccount, $bankcode, $bankcountry)
54
  {
55
- $request = $this->getMapper()->map($bankaccount, $bankcode, $bankcountry);
56
 
57
  $response = $this->getServiceApiBankAccountCheck()->check($request);
58
 
@@ -80,11 +82,13 @@ class Payone_Core_Model_Service_Verification_BankAccountCheck
80
  $bankaccount = $payment->getPayoneAccountNumber();
81
  $bankcode = $payment->getPayoneBankCode();
82
  $bankcountry = $payment->getPayoneBankCountry();
 
 
83
  if (empty($bankcountry)) {
84
  $bankcountry = $payment->getQuote()->getBillingAddress()->getCountry();
85
  }
86
 
87
- $this->execute($bankaccount, $bankcode, $bankcountry);
88
  }
89
 
90
  /**
46
  * @param $bankaccount
47
  * @param $bankcode
48
  * @param $bankcountry
49
+ * @param $iban
50
+ * @param $bic
51
  *
52
  * @return void
53
  * @throws Mage_Core_Exception
54
  */
55
+ public function execute($bankaccount, $bankcode, $bankcountry, $iban = '', $bic = '')
56
  {
57
+ $request = $this->getMapper()->map($bankaccount, $bankcode, $bankcountry, $iban, $bic);
58
 
59
  $response = $this->getServiceApiBankAccountCheck()->check($request);
60
 
82
  $bankaccount = $payment->getPayoneAccountNumber();
83
  $bankcode = $payment->getPayoneBankCode();
84
  $bankcountry = $payment->getPayoneBankCountry();
85
+ $iban = $payment->getPayoneSepaIban();
86
+ $bic = $payment->getPayoneSepaBic();
87
  if (empty($bankcountry)) {
88
  $bankcountry = $payment->getQuote()->getBillingAddress()->getCountry();
89
  }
90
 
91
+ $this->execute($bankaccount, $bankcode, $bankcountry, $iban, $bic);
92
  }
93
 
94
  /**
app/code/community/Payone/Core/Model/System/Config/Abstract.php CHANGED
@@ -33,6 +33,8 @@
33
  abstract class Payone_Core_Model_System_Config_Abstract
34
  {
35
  protected $dataArray;
 
 
36
 
37
  /**
38
  * @abstract
@@ -72,4 +74,23 @@ abstract class Payone_Core_Model_System_Config_Abstract
72
  return Mage::helper('payone_core');
73
  }
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  }
33
  abstract class Payone_Core_Model_System_Config_Abstract
34
  {
35
  protected $dataArray;
36
+ /** @var Payone_Core_Model_Factory */
37
+ protected $factory = null;
38
 
39
  /**
40
  * @abstract
74
  return Mage::helper('payone_core');
75
  }
76
 
77
+ /**
78
+ * @param \Payone_Core_Model_Factory $factory
79
+ */
80
+ public function setFactory(Payone_Core_Model_Factory $factory)
81
+ {
82
+ $this->factory = $factory;
83
+ }
84
+
85
+ /**
86
+ * @return \Payone_Core_Model_Factory
87
+ */
88
+ public function getFactory()
89
+ {
90
+ if ($this->factory === null) {
91
+ $this->factory = new Payone_Core_Model_Factory();
92
+ }
93
+ return $this->factory;
94
+ }
95
+
96
  }
app/code/community/Payone/Core/Model/System/Config/FinancingType.php CHANGED
@@ -42,6 +42,8 @@ class Payone_Core_Model_System_Config_FinancingType extends Payone_Core_Model_Sy
42
  $types = $settings->getTypes();
43
  if(array_key_exists(Payone_Api_Enum_FinancingType::BSV, $types))
44
  unset($types[Payone_Api_Enum_FinancingType::BSV]); // BSV has a separate Payment method.
 
 
45
  return $types;
46
  }
47
  }
42
  $types = $settings->getTypes();
43
  if(array_key_exists(Payone_Api_Enum_FinancingType::BSV, $types))
44
  unset($types[Payone_Api_Enum_FinancingType::BSV]); // BSV has a separate Payment method.
45
+ if(array_key_exists(Payone_Api_Enum_FinancingType::KLV, $types))
46
+ unset($types[Payone_Api_Enum_FinancingType::KLV]); // KLV has a separate Payment method.
47
  return $types;
48
  }
49
  }
app/code/community/Payone/Core/Model/System/Config/KlarnaCountry.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage System
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage System
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ class Payone_Core_Model_System_Config_KlarnaCountry extends Payone_Core_Model_System_Config_Abstract
35
+ {
36
+ /** @var Mage_Adminhtml_Model_System_Config_Source_Country_Full */
37
+ protected $sourceModelCountry = null;
38
+ /**
39
+ * @return array
40
+ */
41
+ public function toArray()
42
+ {
43
+ $fullOptionArray = $this->getSourceModelCountry()->toOptionArray(true);
44
+ $klarnaIsoCodes = $this->getKlarnaCountriesIsoCodes();
45
+ $result = array();
46
+ foreach ($fullOptionArray as $countryOption) {
47
+ if (in_array($countryOption['value'], $klarnaIsoCodes)) {
48
+ $result[$countryOption['value']] = $countryOption['label'];
49
+ }
50
+ }
51
+ return $result;
52
+ }
53
+
54
+ /**
55
+ * @return array
56
+ */
57
+ protected function getKlarnaCountriesIsoCodes()
58
+ {
59
+ return array('AT', 'DE', 'DK', 'FI', 'NL', 'NO', 'SE');
60
+ }
61
+
62
+ /**
63
+ * @param \Mage_Adminhtml_Model_System_Config_Source_Country_Full $sourceModelCountry
64
+ */
65
+ public function setSourceModelCountry(Mage_Adminhtml_Model_System_Config_Source_Country_Full $sourceModelCountry)
66
+ {
67
+ $this->sourceModelCountry = $sourceModelCountry;
68
+ }
69
+
70
+ /**
71
+ * @return \Mage_Adminhtml_Model_System_Config_Source_Country_Full
72
+ */
73
+ public function getSourceModelCountry()
74
+ {
75
+ if ($this->sourceModelCountry === null) {
76
+ $this->sourceModelCountry = $this->getFactory()->getModelSystemConfigCountryFull();
77
+ }
78
+ return $this->sourceModelCountry;
79
+ }
80
+ }
81
+
app/code/community/Payone/Core/Model/System/Config/SafeInvoiceType.php CHANGED
@@ -37,7 +37,10 @@ class Payone_Core_Model_System_Config_SafeInvoiceType extends Payone_Core_Model_
37
  */
38
  public function toArray()
39
  {
40
- $types = array(Payone_Api_Enum_FinancingType::BSV => Payone_Api_Enum_FinancingType::BSV);
 
 
 
41
 
42
  return $types;
43
  }
37
  */
38
  public function toArray()
39
  {
40
+ $types = array(
41
+ Payone_Api_Enum_FinancingType::BSV => Payone_Api_Enum_FinancingType::BSV,
42
+ Payone_Api_Enum_FinancingType::KLV => Payone_Api_Enum_FinancingType::KLV,
43
+ );
44
 
45
  return $types;
46
  }
app/code/community/Payone/Core/Model/System/Config/SepaCountry.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_Model
17
+ * @subpackage System
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_Model
28
+ * @subpackage System
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Model_System_Config_SepaCountry extends Payone_Core_Model_System_Config_Abstract
34
+ {
35
+ /**
36
+ * @return array
37
+ */
38
+ public function toArray()
39
+ {
40
+ $sepaCountryCodes = array(
41
+ "AX", "AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GF", "DE", "GI",
42
+ "GR", "GP", "HU", "IS", "IE", "IT", "LV", "LI", "LT", "LU", "MT", "MQ", "YT", "MC",
43
+ "NL", "NO", "PL", "PT", "RE", "RO", "BL", "MF", "PM", "SK", "SI", "ES", "SE", "CH", "GB"
44
+ );
45
+
46
+ /** @var Mage_Directory_Model_Resource_Country_Collection $countryCollection */
47
+ $countryCollection = Mage::getResourceModel('directory/country_collection');
48
+ $allCountries = $countryCollection->loadData()->toOptionArray(false);
49
+
50
+ $resultArr = array();
51
+ foreach ($allCountries as $country) {
52
+ if (in_array($country['value'], $sepaCountryCodes)) {
53
+ $resultArr[$country['value']] = $this->helper()->__($country['label']);
54
+ }
55
+ }
56
+
57
+ return $resultArr;
58
+ }
59
+ }
app/code/community/Payone/Core/controllers/Checkout/Onepage/PaymentController.php CHANGED
@@ -1,208 +1,208 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core_controllers
17
- * @subpackage Checkout
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Core_controllers
28
- * @subpackage Checkout
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Core_Checkout_Onepage_PaymentController extends Payone_Core_Controller_Abstract
34
- {
35
- /**
36
- * Payment has been canceled by user.
37
- *
38
- * Cancel order and redirect user to the shopping cart. Reactivate quote.
39
- */
40
- public function backAction()
41
- {
42
- try {
43
- $this->checkoutCancel(true);
44
- } catch (Exception $e) {
45
- $this->handleException($e);
46
- }
47
- // Redirect customer to cart
48
- $this->_redirect('checkout/cart');
49
- }
50
-
51
- /**
52
- * @return mixed
53
- */
54
- public function successAction()
55
- {
56
- try {
57
- $success = $this->checkoutSucccess();
58
-
59
- if ($success === true) {
60
- // Payment is okay. Redirect to standard Magento success page:
61
- $this->_redirect('checkout/onepage/success');
62
- return;
63
- }
64
- } catch (Exception $e) {
65
- $this->handleException($e);
66
- }
67
-
68
- $this->_redirect('checkout/cart');
69
- }
70
-
71
- /**
72
- * An error occured during the payment process.
73
- * Cancel order and redirect user to the shopping cart.
74
- */
75
- public function errorAction()
76
- {
77
- try {
78
- $this->checkoutCancel(true);
79
- } catch (Exception $e) {
80
- $this->handleException($e);
81
- }
82
- // Redirect customer to cart
83
- $this->_redirect('checkout/cart');
84
- }
85
-
86
- /**
87
- * @return bool
88
- */
89
- protected function checkoutSucccess()
90
- {
91
- // Get singleton of Checkout Session Model
92
- $checkoutSession = $this->getFactory()->getSingletonCheckoutSession();
93
-
94
- // Load actors:
95
- $order = $this->getOrderByCheckoutSession($checkoutSession);
96
- $quote = $this->getQuoteByCheckoutSession($checkoutSession);
97
- $helper = $this->helper();
98
-
99
- if ($order->getStatus() == Mage_Sales_Model_Order::STATE_CANCELED) {
100
- // Order was cancelled, reactivate quote, notify customer:
101
- $this->reactivateQuote($quote);
102
-
103
- $message = $helper->__('The order has been canceled.');
104
- $checkoutSession->addError($message);
105
- return false;
106
- }
107
-
108
- // Load transaction status via order id, check for APPOINTED:
109
- $txStatus = $this->getFactory()->getModelTransactionStatus();
110
- $txStatus->load($order->getIncrementId(), 'reference');
111
-
112
- if (!$txStatus->hasData() or !$txStatus->getId() or !$txStatus->isAppointed()) {
113
- // Wrong or no transactionStatus for this order, failure.
114
- $message = $helper->__('Sorry, your payment has not been confirmed by the payment provider.');
115
- $checkoutSession->addError($message);
116
- return false;
117
- }
118
-
119
- // Success!
120
- $checkoutSession->setLastSuccessQuoteId($quote->getId());
121
-
122
- return true;
123
- }
124
-
125
- /**
126
- * @param bool $reactivateQuote
127
- */
128
- protected function checkoutCancel($reactivateQuote = false)
129
- {
130
- // Get singleton of Checkout Session Model
131
- $checkoutSession = $this->getFactory()->getSingletonCheckoutSession();
132
-
133
- // Load order
134
- $order = $this->getOrderByCheckoutSession($checkoutSession);
135
-
136
- // Cancel order and add history comment:
137
- if ($order->canCancel()) {
138
- $order->cancel();
139
- $statusMessage = $this->helper()->__('The Payone transaction has been canceled.');
140
- $order->addStatusHistoryComment($statusMessage, Mage_Sales_Model_Order::STATE_CANCELED);
141
- $order->save();
142
- }
143
-
144
- // Reactivate quote
145
- if ($reactivateQuote === true) {
146
- // Load quote
147
- $quote = $this->getQuoteByCheckoutSession($checkoutSession);
148
- $this->reactivateQuote($quote);
149
- }
150
-
151
- // Add error message to Magento checkout:
152
- $errorMessage = $this->helper()->__('The order has been canceled.');
153
- $checkoutSession->addError($errorMessage);
154
- }
155
-
156
- /**
157
- * @param Mage_Sales_Model_Quote $quote
158
- */
159
- protected function reactivateQuote(Mage_Sales_Model_Quote $quote)
160
- {
161
- if ($quote->getId()) {
162
- /* @note: Reset reserved_order_id, Magento up to and including version 1.7 has a bug in Mage_Sales_Model_Resource_Quote::isOrderIncrementIdUsed()
163
- * They cast the orderIncrementId to (int), which breaks the checkout/cart for all non-numerical incrementIds
164
- * (Causes Integrity Constraint Violation, because orderIncrementId already exists */
165
- $quote->setData('reserved_order_id', '');
166
-
167
- $quote->setIsActive(true);
168
- $quote->save();
169
- }
170
- }
171
-
172
- /**
173
- * @param Mage_Checkout_Model_Session $session
174
- * @return Mage_Sales_Model_Order
175
- */
176
- protected function getOrderByCheckoutSession(Mage_Checkout_Model_Session $session)
177
- {
178
- $orderId = $session->getLastOrderId();
179
-
180
- $order = $this->getFactory()->getModelSalesOrder();
181
- $order->load($orderId);
182
-
183
- return $order;
184
- }
185
-
186
- /**
187
- * @param Mage_Checkout_Model_Session $session
188
- * @return Mage_Sales_Model_Quote
189
- */
190
- protected function getQuoteByCheckoutSession(Mage_Checkout_Model_Session $session)
191
- {
192
- $quoteId = $session->getLastQuoteId();
193
-
194
- $quote = $this->getFactory()->getModelSalesQuote();
195
- $quote->load($quoteId);
196
-
197
- return $quote;
198
- }
199
-
200
- /**
201
- * @param Exception $exception
202
- */
203
- protected function handleException(Exception $exception)
204
- {
205
- // Log exceptions, any messages relevant to customer have been set to the session by service
206
- Mage::logException($exception);
207
- }
208
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_controllers
17
+ * @subpackage Checkout
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_controllers
28
+ * @subpackage Checkout
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Checkout_Onepage_PaymentController extends Payone_Core_Controller_Abstract
34
+ {
35
+ /**
36
+ * Payment has been canceled by user.
37
+ *
38
+ * Cancel order and redirect user to the shopping cart. Reactivate quote.
39
+ */
40
+ public function backAction()
41
+ {
42
+ try {
43
+ $this->checkoutCancel(true);
44
+ } catch (Exception $e) {
45
+ $this->handleException($e);
46
+ }
47
+ // Redirect customer to cart
48
+ $this->_redirect('checkout/cart');
49
+ }
50
+
51
+ /**
52
+ * @return mixed
53
+ */
54
+ public function successAction()
55
+ {
56
+ try {
57
+ $success = $this->checkoutSucccess();
58
+
59
+ if ($success === true) {
60
+ // Payment is okay. Redirect to standard Magento success page:
61
+ $this->_redirect('checkout/onepage/success');
62
+ return;
63
+ }
64
+ } catch (Exception $e) {
65
+ $this->handleException($e);
66
+ }
67
+
68
+ $this->_redirect('checkout/cart');
69
+ }
70
+
71
+ /**
72
+ * An error occured during the payment process.
73
+ * Cancel order and redirect user to the shopping cart.
74
+ */
75
+ public function errorAction()
76
+ {
77
+ try {
78
+ $this->checkoutCancel(true);
79
+ } catch (Exception $e) {
80
+ $this->handleException($e);
81
+ }
82
+ // Redirect customer to cart
83
+ $this->_redirect('checkout/cart');
84
+ }
85
+
86
+ /**
87
+ * @return bool
88
+ */
89
+ protected function checkoutSucccess()
90
+ {
91
+ // Get singleton of Checkout Session Model
92
+ $checkoutSession = $this->getFactory()->getSingletonCheckoutSession();
93
+
94
+ // Load actors:
95
+ $order = $this->getOrderByCheckoutSession($checkoutSession);
96
+ $quote = $this->getQuoteByCheckoutSession($checkoutSession);
97
+ $helper = $this->helper();
98
+
99
+ if ($order->getStatus() == Mage_Sales_Model_Order::STATE_CANCELED) {
100
+ // Order was cancelled, reactivate quote, notify customer:
101
+ $this->reactivateQuote($quote);
102
+
103
+ $message = $helper->__('The order has been canceled.');
104
+ $checkoutSession->addError($message);
105
+ return false;
106
+ }
107
+
108
+ // Load transaction status via order id, check for APPOINTED:
109
+ $txStatus = $this->getFactory()->getModelTransactionStatus();
110
+ $txStatus->load($order->getIncrementId(), 'reference');
111
+
112
+ if (!$txStatus->hasData() or !$txStatus->getId() or !$txStatus->isAppointed()) {
113
+ // Wrong or no transactionStatus for this order, failure.
114
+ $message = $helper->__('Sorry, your payment has not been confirmed by the payment provider.');
115
+ $checkoutSession->addError($message);
116
+ return false;
117
+ }
118
+
119
+ // Success!
120
+ $checkoutSession->setLastSuccessQuoteId($quote->getId());
121
+
122
+ return true;
123
+ }
124
+
125
+ /**
126
+ * @param bool $reactivateQuote
127
+ */
128
+ protected function checkoutCancel($reactivateQuote = false)
129
+ {
130
+ // Get singleton of Checkout Session Model
131
+ $checkoutSession = $this->getFactory()->getSingletonCheckoutSession();
132
+
133
+ // Load order
134
+ $order = $this->getOrderByCheckoutSession($checkoutSession);
135
+
136
+ // Cancel order and add history comment:
137
+ if ($order->canCancel()) {
138
+ $order->cancel();
139
+ $statusMessage = $this->helper()->__('The Payone transaction has been canceled.');
140
+ $order->addStatusHistoryComment($statusMessage, Mage_Sales_Model_Order::STATE_CANCELED);
141
+ $order->save();
142
+ }
143
+
144
+ // Reactivate quote
145
+ if ($reactivateQuote === true) {
146
+ // Load quote
147
+ $quote = $this->getQuoteByCheckoutSession($checkoutSession);
148
+ $this->reactivateQuote($quote);
149
+ }
150
+
151
+ // Add error message to Magento checkout:
152
+ $errorMessage = $this->helper()->__('The order has been canceled.');
153
+ $checkoutSession->addError($errorMessage);
154
+ }
155
+
156
+ /**
157
+ * @param Mage_Sales_Model_Quote $quote
158
+ */
159
+ protected function reactivateQuote(Mage_Sales_Model_Quote $quote)
160
+ {
161
+ if ($quote->getId()) {
162
+ /* @note: Reset reserved_order_id, Magento up to and including version 1.7 has a bug in Mage_Sales_Model_Resource_Quote::isOrderIncrementIdUsed()
163
+ * They cast the orderIncrementId to (int), which breaks the checkout/cart for all non-numerical incrementIds
164
+ * (Causes Integrity Constraint Violation, because orderIncrementId already exists */
165
+ $quote->setData('reserved_order_id', '');
166
+
167
+ $quote->setIsActive(true);
168
+ $quote->save();
169
+ }
170
+ }
171
+
172
+ /**
173
+ * @param Mage_Checkout_Model_Session $session
174
+ * @return Mage_Sales_Model_Order
175
+ */
176
+ protected function getOrderByCheckoutSession(Mage_Checkout_Model_Session $session)
177
+ {
178
+ $orderId = $session->getLastOrderId();
179
+
180
+ $order = $this->getFactory()->getModelSalesOrder();
181
+ $order->load($orderId);
182
+
183
+ return $order;
184
+ }
185
+
186
+ /**
187
+ * @param Mage_Checkout_Model_Session $session
188
+ * @return Mage_Sales_Model_Quote
189
+ */
190
+ protected function getQuoteByCheckoutSession(Mage_Checkout_Model_Session $session)
191
+ {
192
+ $quoteId = $session->getLastQuoteId();
193
+
194
+ $quote = $this->getFactory()->getModelSalesQuote();
195
+ $quote->load($quoteId);
196
+
197
+ return $quote;
198
+ }
199
+
200
+ /**
201
+ * @param Exception $exception
202
+ */
203
+ protected function handleException(Exception $exception)
204
+ {
205
+ // Log exceptions, any messages relevant to customer have been set to the session by service
206
+ Mage::logException($exception);
207
+ }
208
  }
app/code/community/Payone/Core/controllers/Checkout/Onepage/SuccessController.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core_controllers
17
+ * @subpackage Checkout
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Core_controllers
28
+ * @subpackage Checkout
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Core_Checkout_Onepage_SuccessController extends Payone_Core_Controller_Abstract
34
+ {
35
+ /**
36
+ *
37
+ */
38
+ public function getSepaPdfAction()
39
+ {
40
+ $orderId = $this->getRequest()->getParam('order_id');
41
+ $mandateIdentification = $this->getRequest()->getParam('mandate_identification');
42
+ /** @var Mage_Sales_Model_Order $order */
43
+ $order = $this->getFactory()->getModelSalesOrder()->load($orderId);
44
+ $payment = $order->getPayment();
45
+
46
+ $paymentMethodConfigId = $payment->getData('payone_config_payment_method_id');
47
+ $storeId = $order->getStoreId();
48
+ $getFileService = $this->getFactory()->getServiceManagementGetFile($paymentMethodConfigId, $storeId);
49
+
50
+ try{
51
+ $response = $getFileService->execute($mandateIdentification);
52
+ if (!$response) {
53
+ Mage::getSingleton('customer/session')->addError($this->helper()->__("Error trying to download the pdf"));
54
+ $this->_redirect('');
55
+ } else {
56
+ $this->_prepareDownloadResponse("payone_sepa_mandate.pdf", $response, 'application/pdf');
57
+ }
58
+ }
59
+ catch (Exception $e) {
60
+ $this->handleException($e);
61
+ Mage::getSingleton('customer/session')->addError($this->helper()->__("Error trying to download the pdf"));
62
+ $this->_redirect('');
63
+ }
64
+ }
65
+
66
+ /**
67
+ * @param Exception $exception
68
+ */
69
+ protected function handleException(Exception $exception)
70
+ {
71
+ // Log exceptions, any messages relevant to customer have been set to the session by service
72
+ Mage::logException($exception);
73
+ }
74
+ }
app/code/community/Payone/Core/controllers/Checkout/OnepageController.php CHANGED
@@ -46,12 +46,39 @@ class Payone_Core_Checkout_OnepageController extends Mage_Checkout_OnepageContro
46
  if ($this->_expireAjax()) {
47
  return;
48
  }
49
- try {
50
- if (!$this->getRequest()->isPost()) {
51
- $this->_ajaxRedirectResponse();
52
- return;
53
- }
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  // Dispatch Event
56
  $settings = $this->dispatchEvent();
57
 
@@ -88,8 +115,28 @@ class Payone_Core_Checkout_OnepageController extends Mage_Checkout_OnepageContro
88
  }
89
 
90
  $this->getResponse()->setBody(
91
- Mage::helper('core')->jsonEncode($result)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  );
 
 
 
93
  }
94
 
95
  /**
@@ -120,4 +167,11 @@ class Payone_Core_Checkout_OnepageController extends Mage_Checkout_OnepageContro
120
  return $settings;
121
  }
122
 
 
 
 
 
 
 
 
123
  }
46
  if ($this->_expireAjax()) {
47
  return;
48
  }
 
 
 
 
 
49
 
50
+ if (!$this->getRequest()->isPost()) {
51
+ $this->_ajaxRedirectResponse();
52
+ return;
53
+ }
54
+
55
+ try { // trigger event for debit payment checks
56
+ $this->dispatchEventDebitPayment();
57
+ }
58
+ catch (Mage_Core_Exception $e) {
59
+ $result['error'] = $e->getMessage();
60
+ }
61
+ catch (Exception $e) {
62
+ Mage::logException($e);
63
+ $result['error'] = $this->__('Unable to set Payment Method.');
64
+ }
65
+
66
+ if (isset($result['error'])) {
67
+ $this->getResponse()->setBody(
68
+ Mage::helper('core')->jsonEncode($result)
69
+ );
70
+ return;
71
+ }
72
+
73
+ $helperConfig = $this->helperConfig();
74
+
75
+ if ($helperConfig->getStoreConfig('payone_protect/general/enabled') != 1) {
76
+ $this->_forward('savePayment', 'onepage', 'checkout');
77
+ return;
78
+ }
79
+
80
+ // the following event will only be triggered if one of PAYONE PROTECT components is enabled
81
+ try {
82
  // Dispatch Event
83
  $settings = $this->dispatchEvent();
84
 
115
  }
116
 
117
  $this->getResponse()->setBody(
118
+ Mage::helper('core')->jsonEncode($result)
119
+ );
120
+ }
121
+
122
+ /**
123
+ *
124
+ */
125
+ protected function dispatchEventDebitPayment()
126
+ {
127
+ $paymentData = $this->getRequest()->getPost('payment', array());
128
+ $selectedMethod = $paymentData['method'];
129
+ if ($selectedMethod != Payone_Core_Model_System_Config_PaymentMethodCode::DEBITPAYMENT) {
130
+ return;
131
+ }
132
+ $parameters = array(
133
+ 'quote' => $this->getOnepage()->getQuote(),
134
+ 'payment_data' => $paymentData,
135
+ 'full_action_name' => $this->getFullActionName('/'),
136
  );
137
+
138
+ // Dispatch Event
139
+ Mage::dispatchEvent($this->eventPrefix . '_debit_payment_checks', $parameters);
140
  }
141
 
142
  /**
167
  return $settings;
168
  }
169
 
170
+ /**
171
+ * @return Payone_Core_Helper_Config
172
+ */
173
+ protected function helperConfig()
174
+ {
175
+ return Mage::helper('payone_core/config');
176
+ }
177
  }
app/code/community/Payone/Core/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
  <config>
25
  <modules>
26
  <Payone_Core>
27
- <version>3.1.6</version>
28
  </Payone_Core>
29
  </modules>
30
 
@@ -177,6 +177,14 @@
177
  <!-- Bank Account Code for: OnlineBankTransfer, DebitPayment -->
178
  <to_order_payment>*</to_order_payment>
179
  </payone_bank_code>
 
 
 
 
 
 
 
 
180
  <payone_bank_group>
181
  <!-- Online Bank Transfer: Bank Group -->
182
  <to_order_payment>*</to_order_payment>
@@ -185,6 +193,30 @@
185
  <!-- Creditcard: Pseudo Card PAN-->
186
  <to_order_payment>*</to_order_payment>
187
  </payone_pseudocardpan>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  </sales_convert_quote_payment>
189
  <sales_convert_quote_address>
190
  <payone_addresscheck_score>
@@ -270,6 +302,15 @@
270
  </payone_core_observer>
271
  </observers>
272
  </payone_core_checkout_onepage_verify_payment>
 
 
 
 
 
 
 
 
 
273
  <sales_order_resource_init_virtual_grid_columns>
274
  <observers>
275
  <payone_core_observer>
@@ -507,6 +548,9 @@
507
  <template_debit_payment>
508
  <use_global>1</use_global>
509
  <check_bankaccount>0</check_bankaccount>
 
 
 
510
  </template_debit_payment>
511
  <template_online_bank_transfer>
512
  <use_global>1</use_global>
24
  <config>
25
  <modules>
26
  <Payone_Core>
27
+ <version>3.1.8</version>
28
  </Payone_Core>
29
  </modules>
30
 
177
  <!-- Bank Account Code for: OnlineBankTransfer, DebitPayment -->
178
  <to_order_payment>*</to_order_payment>
179
  </payone_bank_code>
180
+ <payone_sepa_iban>
181
+ <!-- Online Bank Transfer, DebitPayment: SEPA IBAN -->
182
+ <to_order_payment>*</to_order_payment>
183
+ </payone_sepa_iban>
184
+ <payone_sepa_bic>
185
+ <!-- Online Bank Transfer, DebitPayment: SEPA BIC -->
186
+ <to_order_payment>*</to_order_payment>
187
+ </payone_sepa_bic>
188
  <payone_bank_group>
189
  <!-- Online Bank Transfer: Bank Group -->
190
  <to_order_payment>*</to_order_payment>
193
  <!-- Creditcard: Pseudo Card PAN-->
194
  <to_order_payment>*</to_order_payment>
195
  </payone_pseudocardpan>
196
+ <payone_customer_dob>
197
+ <!-- Safe Invoice Klarna: Customer Date Of Birth -->
198
+ <to_order_payment>*</to_order_payment>
199
+ </payone_customer_dob>
200
+ <payone_customer_gender>
201
+ <!-- Safe Invoice Klarna: Customer Gender -->
202
+ <to_order_payment>*</to_order_payment>
203
+ </payone_customer_gender>
204
+ <payone_customer_personalid>
205
+ <!-- Safe Invoice Klarna: Customer Personalid -->
206
+ <to_order_payment>*</to_order_payment>
207
+ </payone_customer_personalid>
208
+ <payone_billing_addressaddition>
209
+ <!-- Safe Invoice Klarna: Billing Address Addition -->
210
+ <to_order_payment>*</to_order_payment>
211
+ </payone_billing_addressaddition>
212
+ <payone_shipping_addressaddition>
213
+ <!-- Safe Invoice Klarna: Shipping Address Addition -->
214
+ <to_order_payment>*</to_order_payment>
215
+ </payone_shipping_addressaddition>
216
+ <payone_customer_telephone>
217
+ <!-- Safe Invoice Klarna: Customer Telephone -->
218
+ <to_order_payment>*</to_order_payment>
219
+ </payone_customer_telephone>
220
  </sales_convert_quote_payment>
221
  <sales_convert_quote_address>
222
  <payone_addresscheck_score>
302
  </payone_core_observer>
303
  </observers>
304
  </payone_core_checkout_onepage_verify_payment>
305
+ <payone_core_checkout_onepage_debit_payment_checks>
306
+ <observers>
307
+ <payone_core_observer>
308
+ <type>singleton</type>
309
+ <class>payone_core/observer_checkout_onepage_debitPayment</class>
310
+ <method>performChecks</method>
311
+ </payone_core_observer>
312
+ </observers>
313
+ </payone_core_checkout_onepage_debit_payment_checks>
314
  <sales_order_resource_init_virtual_grid_columns>
315
  <observers>
316
  <payone_core_observer>
548
  <template_debit_payment>
549
  <use_global>1</use_global>
550
  <check_bankaccount>0</check_bankaccount>
551
+ <sepa_de_show_bank_data>0</sepa_de_show_bank_data>
552
+ <sepa_mandate_enabled>1</sepa_mandate_enabled>
553
+ <sepa_mandate_download_enabled>1</sepa_mandate_download_enabled>
554
  </template_debit_payment>
555
  <template_online_bank_transfer>
556
  <use_global>1</use_global>
app/code/community/Payone/Core/etc/system.xml CHANGED
@@ -667,6 +667,45 @@
667
  <show_in_website>1</show_in_website>
668
  <show_in_store>1</show_in_store>
669
  </message_response_blocked>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
670
  </fields>
671
  </template_debit_payment>
672
  <template_online_bank_transfer translate="label" module="payone_core">
@@ -714,6 +753,16 @@
714
  <show_in_website>1</show_in_website>
715
  <show_in_store>1</show_in_store>
716
  </types>
 
 
 
 
 
 
 
 
 
 
717
  </fields>
718
  </template_safe_invoice>
719
  <template_financing translate="label" module="payone_core">
667
  <show_in_website>1</show_in_website>
668
  <show_in_store>1</show_in_store>
669
  </message_response_blocked>
670
+ <sepa_country translate="label">
671
+ <label>List of supported SEPA countries</label>
672
+ <frontend_type>multiselect</frontend_type>
673
+ <source_model>payone_core/system_config_sepaCountry</source_model>
674
+ <sort_order>230</sort_order>
675
+ <show_in_default>1</show_in_default>
676
+ <show_in_website>1</show_in_website>
677
+ <show_in_store>1</show_in_store>
678
+ </sepa_country>
679
+ <sepa_de_show_bank_data translate="label,comment">
680
+ <label>Show additional account number/bank code number</label>
681
+ <comment>Only for German accounts</comment>
682
+ <frontend_type>select</frontend_type>
683
+ <source_model>adminhtml/system_config_source_yesno</source_model>
684
+ <sort_order>240</sort_order>
685
+ <show_in_default>1</show_in_default>
686
+ <show_in_website>1</show_in_website>
687
+ <show_in_store>1</show_in_store>
688
+ </sepa_de_show_bank_data>
689
+ <sepa_mandate_enabled translate="label,comment">
690
+ <label>Mandate enabled</label>
691
+ <comment>Pay request 'managemandate', includes bankaccountcheck. No query of the POS block list is possible</comment>
692
+ <frontend_type>select</frontend_type>
693
+ <source_model>adminhtml/system_config_source_yesno</source_model>
694
+ <sort_order>250</sort_order>
695
+ <show_in_default>1</show_in_default>
696
+ <show_in_website>1</show_in_website>
697
+ <show_in_store>1</show_in_store>
698
+ </sepa_mandate_enabled>
699
+ <sepa_mandate_download_enabled translate="label,comment">
700
+ <label>Mandate download enabled</label>
701
+ <comment>Can be selected only if the product in PAYONE was posted 'SEPA-Mandate as PDF'</comment>
702
+ <frontend_type>select</frontend_type>
703
+ <source_model>adminhtml/system_config_source_yesno</source_model>
704
+ <sort_order>260</sort_order>
705
+ <show_in_default>1</show_in_default>
706
+ <show_in_website>1</show_in_website>
707
+ <show_in_store>1</show_in_store>
708
+ </sepa_mandate_download_enabled>
709
  </fields>
710
  </template_debit_payment>
711
  <template_online_bank_transfer translate="label" module="payone_core">
753
  <show_in_website>1</show_in_website>
754
  <show_in_store>1</show_in_store>
755
  </types>
756
+ <klarna_config translate="label">
757
+ <label>Klarna Store-IDs</label>
758
+ <comment>Required when using Klarna</comment>
759
+ <frontend_model>payone_core/adminhtml_system_config_form_field_klarnaStoreId</frontend_model>
760
+ <backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
761
+ <sort_order>250</sort_order>
762
+ <show_in_default>1</show_in_default>
763
+ <show_in_website>1</show_in_website>
764
+ <show_in_store>1</show_in_store>
765
+ </klarna_config>
766
  </fields>
767
  </template_safe_invoice>
768
  <template_financing translate="label" module="payone_core">
app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.0.3-3.0.4.php CHANGED
@@ -1,51 +1,51 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core
17
- * @subpackage sql
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /** @var $this Mage_Core_Model_Resource_Setup */
25
- /** @var $installer Mage_Core_Model_Resource_Setup */
26
-
27
- $installer = $this;
28
- $installer->startSetup();
29
-
30
- // German Description
31
- $title = 'PAYONE Payment Extension 3.0 Installation';
32
- $description = 'Die PAYONE Payment Extension 3.0 Installation wurde erfolgreich beendet.<br>';
33
- $description .= 'Bitte starten Sie den Konfigurationsassistenten, um die Konfiguration abzuschließen. (PAYONE > Konfigurationsassistent)<br>';
34
- $description .= 'Stellen Sie weiterhin sicher, dass die Cronjobs für ihr System korrekt eingerichtet sind.<br>';
35
- $description .= '<br><hr><br>';
36
-
37
- // English Description
38
- $description .= 'PAYONE Payment Extension 3.0 successfully installed.<br>';
39
- $description .= 'Please run the configuration wizard to configure PAYONE. (PAYONE > Configuration-Wizard)';
40
- $description .= 'Also ensure that cronjobs are configured for your system.<br>';
41
-
42
- // Queue a message with priority "major"
43
- $message = new Mage_AdminNotification_Model_Inbox();
44
- $message->setSeverity(Mage_AdminNotification_Model_Inbox::SEVERITY_MAJOR);
45
- $message->setTitle($title);
46
- $message->setDescription($description);
47
- $message->setUrl('');
48
- $message->setDateAdded(date('Y-m-d H:i:s'));
49
- $message->save();
50
-
51
  $installer->endSetup();
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core
17
+ * @subpackage sql
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /** @var $this Mage_Core_Model_Resource_Setup */
25
+ /** @var $installer Mage_Core_Model_Resource_Setup */
26
+
27
+ $installer = $this;
28
+ $installer->startSetup();
29
+
30
+ // German Description
31
+ $title = 'PAYONE Payment Extension 3.0 Installation';
32
+ $description = 'Die PAYONE Payment Extension 3.0 Installation wurde erfolgreich beendet.<br>';
33
+ $description .= 'Bitte starten Sie den Konfigurationsassistenten, um die Konfiguration abzuschließen. (PAYONE > Konfigurationsassistent)<br>';
34
+ $description .= 'Stellen Sie weiterhin sicher, dass die Cronjobs für ihr System korrekt eingerichtet sind.<br>';
35
+ $description .= '<br><hr><br>';
36
+
37
+ // English Description
38
+ $description .= 'PAYONE Payment Extension 3.0 successfully installed.<br>';
39
+ $description .= 'Please run the configuration wizard to configure PAYONE. (PAYONE > Configuration-Wizard)';
40
+ $description .= 'Also ensure that cronjobs are configured for your system.<br>';
41
+
42
+ // Queue a message with priority "major"
43
+ $message = new Mage_AdminNotification_Model_Inbox();
44
+ $message->setSeverity(Mage_AdminNotification_Model_Inbox::SEVERITY_MAJOR);
45
+ $message->setTitle($title);
46
+ $message->setDescription($description);
47
+ $message->setUrl('');
48
+ $message->setDateAdded(date('Y-m-d H:i:s'));
49
+ $message->save();
50
+
51
  $installer->endSetup();
app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.0.8-3.0.9.php CHANGED
@@ -1,60 +1,60 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core
17
- * @subpackage sql
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /** @var $this Mage_Core_Model_Resource_Setup */
25
- /** @var $installer Mage_Core_Model_Resource_Setup */
26
-
27
- $installer = $this;
28
- $installer->startSetup();
29
-
30
- /** @var $helper Payone_Core_Helper_Data */
31
- $helper = Mage::helper('payone_core');
32
-
33
-
34
- if ($helper->isCronEnabled() === false) {
35
-
36
-
37
- $title = 'PAYONE Payment Extension 3.0: Cronjob Configuration';
38
- $wikiUrl = 'http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job';
39
-
40
- // German Description
41
- $description = 'Um den Betrieb der PAYONE Extension zu gewährleisten, richten Sie bitte Cronjobs für ihr System ein. Weitere Informationen finden Sie unter:<br>';
42
- $description .= $wikiUrl;
43
- $description .= '<br><hr><br>';
44
-
45
- // English Description
46
- $description .= 'To ensure proper operation of the PAYONE Extension, please configure cronjobs for your system. Further information can be found here:<br>';
47
- $description .= $wikiUrl;
48
-
49
-
50
- // Queue a message with priority "critical"
51
- $message = new Mage_AdminNotification_Model_Inbox();
52
- $message->setSeverity(Mage_AdminNotification_Model_Inbox::SEVERITY_CRITICAL);
53
- $message->setTitle($title);
54
- $message->setDescription($description);
55
- $message->setUrl($wikiUrl);
56
- $message->setDateAdded(date('Y-m-d H:i:s'));
57
- $message->save();
58
-
59
- }
60
  $installer->endSetup();
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core
17
+ * @subpackage sql
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /** @var $this Mage_Core_Model_Resource_Setup */
25
+ /** @var $installer Mage_Core_Model_Resource_Setup */
26
+
27
+ $installer = $this;
28
+ $installer->startSetup();
29
+
30
+ /** @var $helper Payone_Core_Helper_Data */
31
+ $helper = Mage::helper('payone_core');
32
+
33
+
34
+ if ($helper->isCronEnabled() === false) {
35
+
36
+
37
+ $title = 'PAYONE Payment Extension 3.0: Cronjob Configuration';
38
+ $wikiUrl = 'http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job';
39
+
40
+ // German Description
41
+ $description = 'Um den Betrieb der PAYONE Extension zu gewährleisten, richten Sie bitte Cronjobs für ihr System ein. Weitere Informationen finden Sie unter:<br>';
42
+ $description .= $wikiUrl;
43
+ $description .= '<br><hr><br>';
44
+
45
+ // English Description
46
+ $description .= 'To ensure proper operation of the PAYONE Extension, please configure cronjobs for your system. Further information can be found here:<br>';
47
+ $description .= $wikiUrl;
48
+
49
+
50
+ // Queue a message with priority "critical"
51
+ $message = new Mage_AdminNotification_Model_Inbox();
52
+ $message->setSeverity(Mage_AdminNotification_Model_Inbox::SEVERITY_CRITICAL);
53
+ $message->setTitle($title);
54
+ $message->setDescription($description);
55
+ $message->setUrl($wikiUrl);
56
+ $message->setDateAdded(date('Y-m-d H:i:s'));
57
+ $message->save();
58
+
59
+ }
60
  $installer->endSetup();
app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.3-3.1.4.php CHANGED
@@ -1,60 +1,60 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core
17
- * @subpackage sql
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /** @var $this Mage_Core_Model_Resource_Setup */
25
- /** @var $installer Mage_Core_Model_Resource_Setup */
26
-
27
- $installer = $this;
28
- $installer->startSetup();
29
-
30
- $tablePaymentMethod = $this->getTable('payone_core/config_payment_method');
31
-
32
- /** @var $helper Payone_Core_Helper_Data */
33
- $helper = Mage::helper('payone_core');
34
- $useSqlInstaller = $helper->mustUseSqlInstaller();
35
-
36
- if ($useSqlInstaller) {
37
- $sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'upgrade-3.1.3-3.1.4.sql');
38
-
39
- $installSqlConfig = array(
40
- '{{payone_config_payment_method}}' => $tablePaymentMethod,
41
- );
42
-
43
- $installSql = str_replace(array_keys($installSqlConfig), array_values($installSqlConfig), $sql);
44
- $installer->run($installSql);
45
- }
46
- else {
47
- $connection = $installer->getConnection();
48
-
49
- $connection->modifyColumn($tablePaymentMethod, 'bankaccountcheck_type',
50
- array(
51
- 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
52
- 'LENGTH' => 2,
53
- 'NULLABLE' => true,
54
- 'DEFAULT' => NULL)
55
- );
56
-
57
- // update table content
58
- $connection->update($tablePaymentMethod,array('bankaccountcheck_type' => null),"bankaccountcheck_type = '' AND code = 'debit_payment'");
59
- }
60
  $installer->endSetup();
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core
17
+ * @subpackage sql
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /** @var $this Mage_Core_Model_Resource_Setup */
25
+ /** @var $installer Mage_Core_Model_Resource_Setup */
26
+
27
+ $installer = $this;
28
+ $installer->startSetup();
29
+
30
+ $tablePaymentMethod = $this->getTable('payone_core/config_payment_method');
31
+
32
+ /** @var $helper Payone_Core_Helper_Data */
33
+ $helper = Mage::helper('payone_core');
34
+ $useSqlInstaller = $helper->mustUseSqlInstaller();
35
+
36
+ if ($useSqlInstaller) {
37
+ $sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'upgrade-3.1.3-3.1.4.sql');
38
+
39
+ $installSqlConfig = array(
40
+ '{{payone_config_payment_method}}' => $tablePaymentMethod,
41
+ );
42
+
43
+ $installSql = str_replace(array_keys($installSqlConfig), array_values($installSqlConfig), $sql);
44
+ $installer->run($installSql);
45
+ }
46
+ else {
47
+ $connection = $installer->getConnection();
48
+
49
+ $connection->modifyColumn($tablePaymentMethod, 'bankaccountcheck_type',
50
+ array(
51
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
52
+ 'LENGTH' => 2,
53
+ 'NULLABLE' => true,
54
+ 'DEFAULT' => NULL)
55
+ );
56
+
57
+ // update table content
58
+ $connection->update($tablePaymentMethod,array('bankaccountcheck_type' => null),"bankaccountcheck_type = '' AND code = 'debit_payment'");
59
+ }
60
  $installer->endSetup();
app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.4-3.1.5.php CHANGED
@@ -1,59 +1,59 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Core
17
- * @subpackage sql
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /** @var $this Mage_Core_Model_Resource_Setup */
25
- /** @var $installer Mage_Core_Model_Resource_Setup */
26
-
27
- $installer = $this;
28
- $installer->startSetup();
29
-
30
- $tablePaymentMethod = $this->getTable('payone_core/config_payment_method');
31
-
32
- /** @var $helper Payone_Core_Helper_Data */
33
- $helper = Mage::helper('payone_core');
34
- $useSqlInstaller = $helper->mustUseSqlInstaller();
35
-
36
- if ($useSqlInstaller) {
37
- $sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'upgrade-3.1.4-3.1.5.sql');
38
-
39
- $installSqlConfig = array(
40
- '{{payone_config_payment_method}}' => $tablePaymentMethod,
41
- );
42
-
43
- $installSql = str_replace(array_keys($installSqlConfig), array_values($installSqlConfig), $sql);
44
- $installer->run($installSql);
45
- }
46
- else {
47
- $connection = $installer->getConnection();
48
-
49
- $connection->modifyColumn($tablePaymentMethod, 'key',
50
- array(
51
- 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
52
- 'LENGTH' => 255,
53
- 'NULLABLE' => true,
54
- 'DEFAULT' => NULL,
55
- 'COMMENT' => 'Key'
56
- )
57
- );
58
- }
59
  $installer->endSetup();
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core
17
+ * @subpackage sql
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /** @var $this Mage_Core_Model_Resource_Setup */
25
+ /** @var $installer Mage_Core_Model_Resource_Setup */
26
+
27
+ $installer = $this;
28
+ $installer->startSetup();
29
+
30
+ $tablePaymentMethod = $this->getTable('payone_core/config_payment_method');
31
+
32
+ /** @var $helper Payone_Core_Helper_Data */
33
+ $helper = Mage::helper('payone_core');
34
+ $useSqlInstaller = $helper->mustUseSqlInstaller();
35
+
36
+ if ($useSqlInstaller) {
37
+ $sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'upgrade-3.1.4-3.1.5.sql');
38
+
39
+ $installSqlConfig = array(
40
+ '{{payone_config_payment_method}}' => $tablePaymentMethod,
41
+ );
42
+
43
+ $installSql = str_replace(array_keys($installSqlConfig), array_values($installSqlConfig), $sql);
44
+ $installer->run($installSql);
45
+ }
46
+ else {
47
+ $connection = $installer->getConnection();
48
+
49
+ $connection->modifyColumn($tablePaymentMethod, 'key',
50
+ array(
51
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
52
+ 'LENGTH' => 255,
53
+ 'NULLABLE' => true,
54
+ 'DEFAULT' => NULL,
55
+ 'COMMENT' => 'Key'
56
+ )
57
+ );
58
+ }
59
  $installer->endSetup();
app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.6-3.1.7.php ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core
17
+ * @subpackage sql
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /** @var $this Mage_Core_Model_Resource_Setup */
25
+ /** @var $installer Mage_Core_Model_Resource_Setup */
26
+
27
+ $installer = $this;
28
+ $installer->startSetup();
29
+
30
+ $tablePaymentMethod = $this->getTable('payone_core/config_payment_method');
31
+ $tableOrderPayment = $this->getTable('sales/order_payment');
32
+ $tableQuotePayment = $this->getTable('sales/quote_payment');
33
+
34
+ /** @var $helper Payone_Core_Helper_Data */
35
+ $helper = Mage::helper('payone_core');
36
+ $useSqlInstaller = $helper->mustUseSqlInstaller();
37
+
38
+ if ($useSqlInstaller) {
39
+ $sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'upgrade-3.1.6-3.1.7.sql');
40
+
41
+ $installSqlConfig = array(
42
+ '{{sales_flat_order_payment}}' => $tableOrderPayment,
43
+ '{{sales_flat_quote_payment}}' => $tableQuotePayment,
44
+ '{{payone_config_payment_method}}' => $tablePaymentMethod,
45
+ );
46
+
47
+ $installSql = str_replace(array_keys($installSqlConfig), array_values($installSqlConfig), $sql);
48
+ $installer->run($installSql);
49
+ }
50
+ else {
51
+ $connection = $installer->getConnection();
52
+
53
+ // payone_config_payment_method table:
54
+
55
+ $connection->addColumn($tablePaymentMethod, 'klarna_config',
56
+ // using string definition as AFTER is not supported via array
57
+ 'TEXT COMMENT \'Klarna Config\' AFTER `types`'
58
+ );
59
+
60
+ // sales_flat_quote_payment table:
61
+
62
+ $connection->addColumn($tableQuotePayment, 'payone_customer_dob',
63
+ array(
64
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_DATETIME,
65
+ 'NULLABLE' => true,
66
+ 'COMMENT' => 'Customer Date Of Birth'
67
+ )
68
+ );
69
+
70
+ $connection->addColumn($tableQuotePayment, 'payone_customer_gender',
71
+ array(
72
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_INTEGER,
73
+ 'NULLABLE' => true,
74
+ 'COMMENT' => 'Customer Gender'
75
+ )
76
+ );
77
+
78
+ $connection->addColumn($tableQuotePayment, 'payone_customer_personalid',
79
+ array(
80
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
81
+ 'LENGTH' => 255,
82
+ 'NULLABLE' => true,
83
+ 'COMMENT' => 'Customer Personalid'
84
+ )
85
+ );
86
+
87
+ $connection->addColumn($tableQuotePayment, 'payone_billing_addressaddition',
88
+ array(
89
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
90
+ 'LENGTH' => 255,
91
+ 'NULLABLE' => true,
92
+ 'COMMENT' => 'Billing Address Addition'
93
+ )
94
+ );
95
+
96
+ $connection->addColumn($tableQuotePayment, 'payone_shipping_addressaddition',
97
+ array(
98
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
99
+ 'LENGTH' => 255,
100
+ 'NULLABLE' => true,
101
+ 'COMMENT' => 'Shipping Address Addition'
102
+ )
103
+ );
104
+
105
+ $connection->addColumn($tableQuotePayment, 'payone_customer_telephone',
106
+ array(
107
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
108
+ 'LENGTH' => 255,
109
+ 'NULLABLE' => true,
110
+ 'COMMENT' => 'Customer Telephone'
111
+ )
112
+ );
113
+
114
+ // sales_flat_order_payment table:
115
+
116
+ $connection->addColumn($tableOrderPayment, 'payone_customer_dob',
117
+ array(
118
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_DATETIME,
119
+ 'NULLABLE' => true,
120
+ 'COMMENT' => 'Customer Date Of Birth'
121
+ )
122
+ );
123
+
124
+ $connection->addColumn($tableOrderPayment, 'payone_customer_gender',
125
+ array(
126
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_INTEGER,
127
+ 'NULLABLE' => true,
128
+ 'COMMENT' => 'Customer Gender'
129
+ )
130
+ );
131
+
132
+ $connection->addColumn($tableOrderPayment, 'payone_customer_personalid',
133
+ array(
134
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
135
+ 'LENGTH' => 255,
136
+ 'NULLABLE' => true,
137
+ 'COMMENT' => 'Customer Personalid'
138
+ )
139
+ );
140
+
141
+ $connection->addColumn($tableOrderPayment, 'payone_billing_addressaddition',
142
+ array(
143
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
144
+ 'LENGTH' => 255,
145
+ 'NULLABLE' => true,
146
+ 'COMMENT' => 'Billing Address Addition'
147
+ )
148
+ );
149
+
150
+ $connection->addColumn($tableOrderPayment, 'payone_shipping_addressaddition',
151
+ array(
152
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
153
+ 'LENGTH' => 255,
154
+ 'NULLABLE' => true,
155
+ 'COMMENT' => 'Shipping Address Addition'
156
+ )
157
+ );
158
+
159
+ $connection->addColumn($tableOrderPayment, 'payone_customer_telephone',
160
+ array(
161
+ 'TYPE' => Varien_Db_Ddl_Table::TYPE_TEXT,
162
+ 'LENGTH' => 255,
163
+ 'NULLABLE' => true,
164
+ 'COMMENT' => 'Customer Telephone'
165
+ )
166
+ );
167
+ }
168
+ $installer->endSetup();
169
+
app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.1.7-3.1.8.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Core
17
+ * @subpackage sql
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /** @var $this Mage_Core_Model_Resource_Setup */
25
+ /** @var $installer Mage_Core_Model_Resource_Setup */
26
+
27
+ $installer = $this;
28
+ $installer->startSetup();
29
+
30
+ $tablePaymentMethod = $this->getTable('payone_core/config_payment_method');
31
+ $tableSalesOrderPayment = $this->getTable('sales/order_payment');
32
+ $tableSalesQuotePayment = $this->getTable('sales/quote_payment');
33
+
34
+ /** @var $helper Payone_Core_Helper_Data */
35
+ $helper = Mage::helper('payone_core');
36
+ $useSqlInstaller = $helper->mustUseSqlInstaller();
37
+
38
+ if ($useSqlInstaller) {
39
+ $sql = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'upgrade-3.1.7-3.1.8.sql');
40
+
41
+ $installSqlConfig = array(
42
+ '{{payone_config_payment_method}}' => $tablePaymentMethod,
43
+ '{{sales_flat_order_payment}}' => $tableSalesOrderPayment,
44
+ '{{sales_flat_quote_payment}}' => $tableSalesQuotePayment
45
+ );
46
+
47
+ $installSql = str_replace(array_keys($installSqlConfig), array_values($installSqlConfig), $sql);
48
+ $installer->run($installSql);
49
+ }
50
+ else {
51
+ $connection = $installer->getConnection();
52
+
53
+ // using string definition as AFTER is not supported via array:
54
+ $connection->addColumn($tablePaymentMethod, 'sepa_country',
55
+ 'TEXT COMMENT \'SEPA Country\' AFTER `message_response_blocked`'
56
+ );
57
+
58
+ $connection->addColumn($tablePaymentMethod, 'sepa_de_show_bank_data',
59
+ 'INT(1) COMMENT \'SEPA Germany Show Bank Data\' AFTER `sepa_country`'
60
+ );
61
+
62
+ $connection->addColumn($tablePaymentMethod, 'sepa_mandate_enabled',
63
+ 'INT(1) COMMENT \'SEPA Mandate Enabled\' AFTER `sepa_de_show_bank_data`'
64
+ );
65
+
66
+ $connection->addColumn($tablePaymentMethod, 'sepa_mandate_download_enabled',
67
+ 'INT(1) COMMENT \'SEPA Mandate Download Enabled\' AFTER `sepa_mandate_enabled`'
68
+ );
69
+
70
+ // Update table sales_flat_order_payment
71
+ $connection->addColumn($tableSalesOrderPayment, 'payone_sepa_bic',
72
+ 'VARCHAR(11) COMMENT \'SEPA BIC\' AFTER `payone_bank_group`'
73
+ );
74
+
75
+ $connection->addColumn($tableSalesOrderPayment, 'payone_sepa_iban',
76
+ 'VARCHAR(34) COMMENT \'SEPA IBAN\' AFTER `payone_bank_group`'
77
+ );
78
+
79
+ // Update table sales_flat_quote_payment
80
+ $connection->addColumn($tableSalesQuotePayment, 'payone_sepa_bic',
81
+ 'VARCHAR(11) COMMENT \'SEPA BIC\' AFTER `payone_bank_group`'
82
+ );
83
+
84
+ $connection->addColumn($tableSalesQuotePayment, 'payone_sepa_iban',
85
+ 'VARCHAR(34) COMMENT \'SEPA IBAN\' AFTER `payone_bank_group`'
86
+ );
87
+ }
88
+ $installer->endSetup();
app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.3-3.1.4.sql CHANGED
@@ -1,10 +1,10 @@
1
-
2
- #-----------------------------------------------------------------
3
- #-- Alter Table payone_transaction
4
- #-----------------------------------------------------------------
5
-
6
- ALTER TABLE `{{payone_config_payment_method}}`
7
- CHANGE `bankaccountcheck_type` `bankaccountcheck_type` varchar(2) DEFAULT NULL ;
8
-
9
- UPDATE `{{payone_config_payment_method}}` SET `bankaccountcheck_type` = NULL
10
- WHERE `bankaccountcheck_type` = '' AND `code` = 'debit_payment';
1
+
2
+ #-----------------------------------------------------------------
3
+ #-- Alter Table payone_transaction
4
+ #-----------------------------------------------------------------
5
+
6
+ ALTER TABLE `{{payone_config_payment_method}}`
7
+ CHANGE `bankaccountcheck_type` `bankaccountcheck_type` varchar(2) DEFAULT NULL ;
8
+
9
+ UPDATE `{{payone_config_payment_method}}` SET `bankaccountcheck_type` = NULL
10
+ WHERE `bankaccountcheck_type` = '' AND `code` = 'debit_payment';
app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.4-3.1.5.sql CHANGED
@@ -1,7 +1,7 @@
1
-
2
- #-----------------------------------------------------------------
3
- #-- Alter Table payone_transaction
4
- #-----------------------------------------------------------------
5
-
6
- ALTER TABLE `{{payone_config_payment_method}}`
7
  CHANGE `key` `key` varchar(255) DEFAULT NULL COMMENT 'Key' ;
1
+
2
+ #-----------------------------------------------------------------
3
+ #-- Alter Table payone_transaction
4
+ #-----------------------------------------------------------------
5
+
6
+ ALTER TABLE `{{payone_config_payment_method}}`
7
  CHANGE `key` `key` varchar(255) DEFAULT NULL COMMENT 'Key' ;
app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.6-3.1.7.sql ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ #-----------------------------------------------------------------
3
+ #-- Alter Table payone_config_payment_method, add klarna_config
4
+ #-----------------------------------------------------------------
5
+
6
+ ALTER TABLE `{{payone_config_payment_method}}`
7
+ ADD `klarna_config` TEXT COMMENT 'Klarna Config' AFTER `types`;
8
+
9
+ #-----------------------------------------------------------------
10
+ #-- Alter Table sales_flat_quote_payment
11
+ #-----------------------------------------------------------------
12
+
13
+ ALTER TABLE `{{sales_flat_quote_payment}}`
14
+ ADD `payone_customer_dob` DATETIME COMMENT 'Customer Date Of Birth',
15
+ ADD `payone_customer_gender` INT(11) COMMENT 'Customer Gender',
16
+ ADD `payone_customer_personalid` VARCHAR(255) COMMENT 'Customer Personalid',
17
+ ADD `payone_billing_addressaddition` VARCHAR(255) COMMENT 'Billing Address Addition',
18
+ ADD `payone_shipping_addressaddition` VARCHAR(255) COMMENT 'Shipping Address Addition',
19
+ ADD `payone_customer_telephone` VARCHAR(255) COMMENT 'Customer Telephone';
20
+
21
+ #-----------------------------------------------------------------
22
+ #-- Alter Table sales_flat_order_payment
23
+ #-----------------------------------------------------------------
24
+
25
+ ALTER TABLE `{{sales_flat_order_payment}}`
26
+ ADD `payone_customer_dob` DATETIME COMMENT 'Customer Date Of Birth',
27
+ ADD `payone_customer_gender` INT(11) COMMENT 'Customer Gender',
28
+ ADD `payone_customer_personalid` VARCHAR(255) COMMENT 'Customer Personalid',
29
+ ADD `payone_billing_addressaddition` VARCHAR(255) COMMENT 'Billing Address Addition',
30
+ ADD `payone_shipping_addressaddition` VARCHAR(255) COMMENT 'Shipping Address Addition',
31
+ ADD `payone_customer_telephone` VARCHAR(255) COMMENT 'Customer Telephone';
app/code/community/Payone/Core/sql/payone_core_setup/upgrade-3.1.7-3.1.8.sql ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ #-----------------------------------------------------------------
3
+ #-- Alter Table payone_config_payment_method, add sepa specific fields
4
+ #-----------------------------------------------------------------
5
+
6
+ ALTER TABLE `{{payone_config_payment_method}}`
7
+ ADD `sepa_country` TEXT COMMENT 'SEPA Country' AFTER `message_response_blocked`;
8
+
9
+ ALTER TABLE `{{payone_config_payment_method}}`
10
+ ADD `sepa_de_show_bank_data` INT(1) COMMENT 'SEPA Germany Show Bank Data' AFTER `sepa_country`;
11
+
12
+ ALTER TABLE `{{payone_config_payment_method}}`
13
+ ADD `sepa_mandate_enabled` INT(1) COMMENT 'SEPA Mandate Enabled' AFTER `sepa_de_show_bank_data`;
14
+
15
+ ALTER TABLE `{{payone_config_payment_method}}`
16
+ ADD `sepa_mandate_download_enabled` INT(1) COMMENT 'SEPA Mandate Download Enabled' AFTER `sepa_mandate_enabled`;
17
+
18
+ -- Update table sales_flat_order_payment
19
+ ALTER TABLE `{{sales_flat_order_payment}}`
20
+ ADD `payone_sepa_bic` VARCHAR(11) COMMENT 'SEPA BIC' AFTER `payone_bank_group`;
21
+
22
+ ALTER TABLE `{{sales_flat_order_payment}}`
23
+ ADD `payone_sepa_iban` VARCHAR(34) COMMENT 'SEPA IBAN' AFTER `payone_bank_group`;
24
+
25
+ -- Update table sales_flat_quote_payment
26
+ ALTER TABLE `{{sales_flat_quote_payment}}`
27
+ ADD `payone_sepa_bic` VARCHAR(11) COMMENT 'SEPA BIC' AFTER `payone_bank_group`;
28
+
29
+ ALTER TABLE `{{sales_flat_quote_payment}}`
30
+ ADD `payone_sepa_iban` VARCHAR(34) COMMENT 'SEPA IBAN' AFTER `payone_bank_group`;
app/design/adminhtml/default/default/layout/payone/core.xml CHANGED
@@ -94,6 +94,9 @@
94
  <reference name="head">
95
  <action method="addJs"><script>payone/core/client_api.js</script></action>
96
  <action method="addJs"><script>payone/core/creditcard.js</script></action>
 
 
 
97
  </reference>
98
  <reference name="js">
99
  <block type="adminhtml/template" name="payone_core_clientapi"
94
  <reference name="head">
95
  <action method="addJs"><script>payone/core/client_api.js</script></action>
96
  <action method="addJs"><script>payone/core/creditcard.js</script></action>
97
+ <action method="addJs"><script>payone/core/debitpayment.js</script></action>
98
+ <action method="addJs"><script>payone/core/sepa_input.js</script></action>
99
+ <action method="addJs"><script>payone/core/sepa_validation.js</script></action>
100
  </reference>
101
  <reference name="js">
102
  <block type="adminhtml/template" name="payone_core_clientapi"
app/design/adminhtml/default/default/template/payone/core/payment/method/form/debitpayment.phtml CHANGED
@@ -13,7 +13,7 @@
13
  * needs please refer to http://www.payone.de for more information.
14
  *
15
  * @category Payone
16
- * @package design_adminhtml_default_default
17
  * @subpackage template
18
  * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
  * @author Matthias Walter <info@noovias.com>
@@ -27,49 +27,101 @@ $code = $this->getMethodCode();
27
  $paymentConfigId = $this->getPaymentConfig()->getId();
28
  $owner = $this->escapeHtml($this->getInfoData('payone_account_owner') ? $this->getInfoData('payone_account_owner') : $this->getBillingName());
29
 
30
- $maxLengthAccountNumber = 10;
31
- if ($this->getCountry() == 'AT') {
32
- $maxLengthAccountNumber = 11;
33
- }
34
  ?>
35
- <ul id="payment_form_<?php echo $code ?>" style="display:none">
36
- <li>
37
- <span><?php echo $this->getMethodLabelAfterHtml()?></span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
- <div class="input-box">
40
- <label for="<?php echo $code ?>_owner">
41
- <?php echo $this->__('Account holder') ?>&nbsp;<span class="required">*</span>
42
- </label>
43
- <br/>
44
- <input type="text" id="<?php echo $code ?>_owner" name="payment[payone_account_owner]"
45
- title="<?php echo $this->__('Account holder') ?>" class="required-entry input-text"
46
- value="<?php echo $owner; ?>"/>
47
- </div>
48
- </li>
49
- <li>
50
- <div class="input-box">
51
- <label for="<?php echo $code ?>_account_number">
52
- <?php echo $this->__('Account number') ?>&nbsp;<span class="required">*</span>
53
- </label>
54
- <br/>
55
- <input type="text" id="<?php echo $code ?>_account_number" name="payment[payone_account_number]"
56
- title="<?php echo $this->__('Account number') ?>"
57
- class="validate-digits required-entry input-text" value=""
58
- autocomplete="off" maxlength="<?php echo $maxLengthAccountNumber; ?>"/>
59
- </div>
60
- </li>
61
- <li>
62
- <div class="input-box">
63
- <label for="<?php echo $code ?>_bank_code">
64
- <?php echo $this->__('Bank code') ?>&nbsp;<span class="required">*</span>
65
- </label>
66
- <br/>
67
- <input type="text" id="<?php echo $code ?>_bank_code" name="payment[payone_bank_code]"
68
- title="<?php echo $this->__('Bank code') ?>" class="validate-digits required-entry input-text"
69
- value="" maxlength="8"/>
70
- </div>
71
- </li>
72
- <li>
73
- <input type="hidden" name="payment[payone_config_payment_method_id]" value="<?php echo $paymentConfigId; ?>"/>
74
- </li>
75
- </ul>
13
  * needs please refer to http://www.payone.de for more information.
14
  *
15
  * @category Payone
16
+ * @package design_frontend_base_default
17
  * @subpackage template
18
  * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
  * @author Matthias Walter <info@noovias.com>
27
  $paymentConfigId = $this->getPaymentConfig()->getId();
28
  $owner = $this->escapeHtml($this->getInfoData('payone_account_owner') ? $this->getInfoData('payone_account_owner') : $this->getBillingName());
29
 
30
+ $configShowBankData = $this->getPaymentConfig()->isSepaDeShowBankDataEnabled();
 
 
 
31
  ?>
32
+ <fieldset class="form-list">
33
+ <ul id="payment_form_<?php echo $code ?>" style="display:none">
34
+ <li>
35
+ <div class="input-box">
36
+ <label for="<?php echo $code ?>_bank_country">
37
+ <?php echo $this->__('Bank country') ?>&nbsp;<span class="required">*</span>
38
+ </label>
39
+ <br/>
40
+ <select id="<?php echo $code ?>_bank_country" name="payment[payone_bank_country]"
41
+ class="no-submit required-entry" onchange="showBankData('<?php echo $code ?>', <?php echo $configShowBankData; ?>);">
42
+ <option value=""><?php echo $this->__('--Please Select--') ?></option>
43
+ <?php
44
+ foreach ($this->getSelectedSepaCountries() as $key => $country):
45
+ $selected = $this->getCountry() == $key ? 'selected="selected"' : '';
46
+ ?>
47
+ <option value="<?php echo $key ?>"<?php echo $selected; ?>>
48
+ <?php echo $this->__($country) ?>
49
+ </option>
50
+ <?php endforeach; ?>
51
+ </select>
52
+ </div>
53
+ </li>
54
+ <li id="input_box_payone_sepa_iban">
55
+ <div class="input-box">
56
+ <label for="<?php echo $code ?>_sepa_iban">
57
+ <?php echo $this->__('IBAN') ?>
58
+ </label>
59
+ <br/>
60
+ <input type="text" id="<?php echo $code ?>_sepa_iban" name="payment[payone_sepa_iban]"
61
+ title="<?php echo $this->__('IBAN') ?>"
62
+ class="validate-sepa-iban required-entry input-text" value=""
63
+ autocomplete="off" maxlength="34"
64
+ onchange="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>); checkIbanCountryCode('<?php echo $code ?>');"
65
+ oninput="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>); checkIbanCountryCode('<?php echo $code ?>');"/>
66
+ </div>
67
+ </li>
68
+ <li id="input_box_payone_sepa_bic">
69
+ <div class="input-box">
70
+ <label for="<?php echo $code ?>_sepa_bic">
71
+ <?php echo $this->__('BIC') ?>
72
+ </label>
73
+ <br/>
74
+ <input type="text" id="<?php echo $code ?>_sepa_bic" name="payment[payone_sepa_bic]"
75
+ title="<?php echo $this->__('BIC') ?>"
76
+ class="validate-sepa-bic required-entry input-text" value=""
77
+ autocomplete="off" maxlength="11"
78
+ onchange="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"
79
+ oninput="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"/>
80
+ </div>
81
+ </li>
82
+ <?php if ($configShowBankData): ?>
83
+ <li id="input_box_payone_account_number">
84
+ <?php echo $this->__('or enter your bank account data (only for German accounts):'); ?>
85
+ <div class="input-box">
86
+ <label for="<?php echo $code ?>_account_number">
87
+ <?php echo $this->__('Account number') ?>
88
+ </label>
89
+ <br class="clear"/>
90
+ <input type="text" id="<?php echo $code ?>_account_number" name="payment[payone_account_number]"
91
+ title="<?php echo $this->__('Account number') ?>"
92
+ class="validate-digits input-text" value=""
93
+ autocomplete="off" maxlength="10"
94
+ onchange="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"
95
+ oninput="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"/>
96
+ </div>
97
+ </li>
98
+ <li id="input_box_payone_bank_code">
99
+ <div class="input-box">
100
+ <label for="<?php echo $code ?>_bank_code">
101
+ <?php echo $this->__('Bank code') ?>
102
+ </label>
103
+ <br class="clear"/>
104
+ <input type="text" id="<?php echo $code ?>_bank_code" name="payment[payone_bank_code]"
105
+ title="<?php echo $this->__('Bank code') ?>" class="validate-bank-code validate-digits input-text"
106
+ value="" maxlength="8"
107
+ onchange="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"
108
+ oninput="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"/>
109
+ </div>
110
+ </li>
111
+ <?php endif; ?>
112
+ <li>
113
+ <input type="hidden" name="payment[payone_config_payment_method_id]"
114
+ value="<?php echo $paymentConfigId; ?>"/>
115
+ </li>
116
+ </ul>
117
+ </fieldset>
118
 
119
+ <script type="text/javascript">
120
+ // Add validation messages translation
121
+ Translator.add('Bank code must contain 8 digits', '<?php echo $this->__('Bank code must contain 8 digits'); ?>');
122
+ Translator.add('IBAN should contain only letters and digits', '<?php echo $this->__('IBAN should contain nur letters and digits'); ?>');
123
+ Translator.add('BIC can contain only 8-11 characters (letters and digits)', '<?php echo $this->__('BIC can contain only 8-11 characters (letters and digits)'); ?>');
124
+ Translator.add('Entered IBAN is not valid for selected bank country', '<?php echo $this->__('IBAN ist nicht gültig für gewähltes Bankland'); ?>');
125
+
126
+ showBankData('<?php echo $code ?>', <?php echo $configShowBankData; ?>);
127
+ </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/payone/core/payment/method/info/cashondelivery.phtml CHANGED
@@ -1,33 +1,33 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package design_adminhtml_default_default
17
- * @subpackage template
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /** @var $this Payone_Core_Block_Payment_Method_Info_CashOnDelivery */
25
- ?>
26
- <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
- <br/>
28
- <?php if ($this->getLastTransId() == ''): ?>
29
- <?php echo $this->__('Payment has not been processed yet.') ?>
30
- <?php else: ?>
31
- <?php echo $this->__('Payment reference: %s', $this->escapeHtml($this->getLastTransId())) ?><br/>
32
- <?php endif; ?>
33
  <br/>
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package design_adminhtml_default_default
17
+ * @subpackage template
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /** @var $this Payone_Core_Block_Payment_Method_Info_CashOnDelivery */
25
+ ?>
26
+ <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
+ <br/>
28
+ <?php if ($this->getLastTransId() == ''): ?>
29
+ <?php echo $this->__('Payment has not been processed yet.') ?>
30
+ <?php else: ?>
31
+ <?php echo $this->__('Payment reference: %s', $this->escapeHtml($this->getLastTransId())) ?><br/>
32
+ <?php endif; ?>
33
  <br/>
app/design/adminhtml/default/default/template/payone/core/payment/method/info/debitpayment.phtml CHANGED
@@ -25,14 +25,25 @@
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
- <?php if($this->getInfo()): ?>
29
- <?php echo $this->__('Account holder: %s', $this->escapeHtml($this->getPayoneAccountOwner())) ?><br/>
30
- <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
31
- <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
 
 
 
 
 
 
 
 
 
 
 
32
  <?php endif; ?>
33
  <?php if ($this->getLastTransId() == ''): ?>
34
- <?php echo $this->__('Payment has not been processed yet.') ?>
35
  <?php else: ?>
36
- <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
37
  <?php endif; ?>
38
  <br/>
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
+ <?php if ($this->getPayoneSepaIban()): ?>
29
+ <?php $iban = $this->getPayoneSepaIban();
30
+ echo $this->__('IBAN: %s', $this->escapeHtml(substr($iban, 0, 2) . " " . chunk_split(substr($iban, 2), 4, ' '))) ?><br/>
31
+ <?php endif; ?>
32
+ <?php if ($this->getPayoneSepaBic()): ?>
33
+ <?php echo $this->__('BIC: %s', $this->escapeHtml($this->getPayoneSepaBic())) ?><br/>
34
+ <?php endif; ?>
35
+ <?php if ($this->getPayoneAccountOwner()): ?>
36
+ <?php echo $this->__('Account holder: %s', $this->escapeHtml($this->getPayoneAccountOwner())) ?><br/>
37
+ <?php endif; ?>
38
+ <?php if ($this->getPayoneAccountNumber()): ?>
39
+ <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
40
+ <?php endif; ?>
41
+ <?php if ($this->getPayoneBankCode()): ?>
42
+ <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
43
  <?php endif; ?>
44
  <?php if ($this->getLastTransId() == ''): ?>
45
+ <?php echo $this->__('Payment has not been processed yet.') ?>
46
  <?php else: ?>
47
+ <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
48
  <?php endif; ?>
49
  <br/>
app/design/adminhtml/default/default/template/payone/core/payment/method/info/onlinebanktransfer.phtml CHANGED
@@ -13,7 +13,7 @@
13
  * needs please refer to http://www.payone.de for more information.
14
  *
15
  * @category Payone
16
- * @package design_adminhtml_default_default
17
  * @subpackage template
18
  * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
  * @author Matthias Walter <info@noovias.com>
@@ -25,14 +25,25 @@
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
- <?php if($this->getInfo()): ?>
29
- <?php echo $this->__('Transfer Type: %s', $this->escapeHtml($this->getOnlinebanktransferType())) ?><br/>
30
- <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
31
- <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
 
 
 
 
 
 
 
 
 
 
 
32
  <?php endif; ?>
33
  <?php if ($this->getLastTransId() == ''): ?>
34
- <?php echo $this->__('Payment has not been processed yet.') ?>
35
  <?php else: ?>
36
- <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
37
  <?php endif; ?>
38
  <br/>
13
  * needs please refer to http://www.payone.de for more information.
14
  *
15
  * @category Payone
16
+ * @package design_frontend_base_default
17
  * @subpackage template
18
  * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
  * @author Matthias Walter <info@noovias.com>
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
+ <?php if ($this->getOnlinebanktransferType()): ?>
29
+ <?php echo $this->__('Transfer Type: %s', $this->escapeHtml($this->getOnlinebanktransferType())) ?><br/>
30
+ <?php endif; ?>
31
+ <?php if ($this->getPayoneSepaIban()): ?>
32
+ <?php $iban = $this->getPayoneSepaIban();
33
+ echo $this->__('IBAN: %s', $this->escapeHtml(substr($iban, 0, 2) . " " . chunk_split(substr($iban, 2), 4, ' '))) ?><br/>
34
+ <?php endif; ?>
35
+ <?php if ($this->getPayoneSepaBic()): ?>
36
+ <?php echo $this->__('BIC: %s', $this->escapeHtml($this->getPayoneSepaBic())) ?><br/>
37
+ <?php endif; ?>
38
+ <?php if ($this->getPayoneAccountNumber()): ?>
39
+ <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
40
+ <?php endif; ?>
41
+ <?php if ($this->getPayoneBankCode()): ?>
42
+ <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
43
  <?php endif; ?>
44
  <?php if ($this->getLastTransId() == ''): ?>
45
+ <?php echo $this->__('Payment has not been processed yet.') ?>
46
  <?php else: ?>
47
+ <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
48
  <?php endif; ?>
49
  <br/>
app/design/frontend/base/default/layout/payone/core.xml CHANGED
@@ -28,16 +28,25 @@
28
  <action method="addJs"><script>payone/core/creditcard.js</script></action>
29
  <action method="addJs"><script>payone/core/financing.js</script></action>
30
  <action method="addJs"><script>payone/core/onlinebanktransfer.js</script></action>
 
31
  <action method="addJs"><script>payone/core/wallet.js</script></action>
 
 
 
 
32
  <action method="addJs" ifconfig="payone_protect/general/enabled">
33
  <script>payone/core/addresscheck.js</script>
34
  </action>
 
35
  </reference>
36
 
37
  <reference name="head">
38
  <block type="core/template" name="payone_core_clientapi" template="payone/core/client_api.phtml" />
39
  <block type="core/template" name="payone_core_protect" template="payone/core/checkout/protect.phtml" />
40
  <block type="core/template" name="payone_core_payment" template="payone/core/checkout/onepage/init.phtml" />
 
 
 
41
  </reference>
42
 
43
  <reference name="checkout.payment.methods">
@@ -48,4 +57,20 @@
48
  </block>
49
  </reference>
50
  </checkout_onepage_index>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  </layout>
28
  <action method="addJs"><script>payone/core/creditcard.js</script></action>
29
  <action method="addJs"><script>payone/core/financing.js</script></action>
30
  <action method="addJs"><script>payone/core/onlinebanktransfer.js</script></action>
31
+ <action method="addJs"><script>payone/core/safe_invoice.js</script></action>
32
  <action method="addJs"><script>payone/core/wallet.js</script></action>
33
+ <action method="addJs"><script>payone/core/debitpayment.js</script></action>
34
+ <action method="addJs"><script>payone/core/sepa_input.js</script></action>
35
+ <action method="addJs"><script>payone/core/sepa_validation.js</script></action>
36
+ <action method="addJs"><script>payone/core/klarna.js</script></action>
37
  <action method="addJs" ifconfig="payone_protect/general/enabled">
38
  <script>payone/core/addresscheck.js</script>
39
  </action>
40
+ <action method="addCss"><name>payone/core/mandate.css</name></action>
41
  </reference>
42
 
43
  <reference name="head">
44
  <block type="core/template" name="payone_core_clientapi" template="payone/core/client_api.phtml" />
45
  <block type="core/template" name="payone_core_protect" template="payone/core/checkout/protect.phtml" />
46
  <block type="core/template" name="payone_core_payment" template="payone/core/checkout/onepage/init.phtml" />
47
+ <!-- add Klarna external JS: -->
48
+ <block type="core/template" name="payone_core_klarna_scripts"
49
+ template="payone/core/payment/method/form/safe_invoice/klarna/scripts.phtml" />
50
  </reference>
51
 
52
  <reference name="checkout.payment.methods">
57
  </block>
58
  </reference>
59
  </checkout_onepage_index>
60
+
61
+ <checkout_onepage_review>
62
+ <reference name="checkout.onepage.review.info.items.after">
63
+ <block type="payone_core/checkout_onepage_review_sepaMandate"
64
+ template="payone/core/checkout/onepage/review/sepamandate.phtml"
65
+ name="payone_core_checkout_onepage_review_sepamandate" />
66
+ </reference>
67
+ </checkout_onepage_review>
68
+
69
+ <checkout_onepage_success>
70
+ <reference name="content">
71
+ <block type="payone_core/checkout_onepage_success_sepaMandatePdfLink"
72
+ template="payone/core/checkout/onepage/success/sepamandatepdflink.phtml"
73
+ after="checkout.success" />
74
+ </reference>
75
+ </checkout_onepage_success>
76
  </layout>
app/design/frontend/base/default/template/payone/core/checkout/onepage/review/sepamandate.phtml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @var Payone_Core_Block_Checkout_Onepage_Review_SepaMandate $this
4
+ */
5
+ ?>
6
+
7
+ <?php if ($this->showMandate()): ?>
8
+ <div style="border: 1px solid #d9dde3; border-width: 0 1px;">
9
+ <div class="mandate">
10
+ <?php echo $this->getMandateTextDecoded(); ?>
11
+ </div>
12
+ <br/>
13
+ <label style="margin-left: 30px;">
14
+ <input type="checkbox" id="payone_sepa_mandate_accept" name="payone[sepa_mandate_accept]"
15
+ onchange="changeSubmitButtonStatus(this);" value="payone_sepa_mandate_accept">
16
+ <?php echo $this->__("I want to grant the mandate (transmitted electronically)"); ?>
17
+ </label>
18
+ </div>
19
+
20
+ <script type="text/javascript">
21
+ $$('.btn-checkout')[0].disable();
22
+ $$('.btn-checkout')[0].hide();
23
+ </script>
24
+ <?php endif; ?>
app/design/frontend/base/default/template/payone/core/checkout/onepage/success/sepamandatepdflink.phtml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package design_frontend_base_default
17
+ * @subpackage template
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+ ?>
24
+ <?php
25
+ /** @var $this Payone_Core_Block_Checkout_Onepage_Success_SepaMandatePdfLink*/
26
+
27
+ if ($this->showLink()):
28
+ ?>
29
+ <p><?php printf('<a href="%s">%s</a>', $this->escapeHtml($this->getLinkHref()), $this->escapeHtml($this->getLinkText()));?> </p>
30
+ <?php endif;?>
app/design/frontend/base/default/template/payone/core/checkout/protect.phtml CHANGED
@@ -24,11 +24,9 @@
24
  /**
25
  * @var $this Mage_Core_Block_Template
26
  */
27
- if (Mage::getStoreConfig('payone_protect/general/enabled') == 1)
28
- {
29
- $url = Mage::helper('payone_core/url')->getMagentoUrl('payone_core/checkout_onepage/verifyPayment');
30
 
31
- ?>
32
  <script type="text/javascript">
33
  //<![CDATA[
34
  Event.observe(window, 'load', function () {
@@ -36,6 +34,3 @@ if (Mage::getStoreConfig('payone_protect/general/enabled') == 1)
36
  });
37
  //]]>
38
  </script>
39
- <?php
40
-
41
- }
24
  /**
25
  * @var $this Mage_Core_Block_Template
26
  */
27
+ $url = Mage::helper('payone_core/url')->getMagentoUrl('payone_core/checkout_onepage/verifyPayment');
 
 
28
 
29
+ ?>
30
  <script type="text/javascript">
31
  //<![CDATA[
32
  Event.observe(window, 'load', function () {
34
  });
35
  //]]>
36
  </script>
 
 
 
app/design/frontend/base/default/template/payone/core/payment/method/form/creditcard.phtml CHANGED
@@ -33,7 +33,7 @@ $displayCvc = null;
33
  <label for="<?php echo $code ?>_cc_owner"><?php echo $this->__('Name on Card') ?>
34
  <span class="required">*</span>
35
  </label>
36
- <br/>
37
  <input type="text" id="<?php echo $code ?>_cc_owner" name="payment[cc_owner]"
38
  value="<?php echo $this->getBillingName(); ?>"
39
  title="<?php echo $this->__('Name on Card') ?>"
@@ -45,7 +45,7 @@ $displayCvc = null;
45
  <div class="input-box">
46
  <label for="<?php echo $code; ?>_cc_type"><?php echo $this->__('Credit Card Type'); ?>
47
  <span class="required">*</span>
48
- </label><br/>
49
  <select id="<?php echo $code ?>_cc_type_select" name="<?php echo $code ?>_cc_type_select"
50
  onchange="payone.displayCheckCvc(this);" class="no-submit required-entry">
51
  <option value=""><?php echo $this->__('--Please Select--') ?></option>
@@ -69,7 +69,7 @@ $displayCvc = null;
69
  <div class="input-box">
70
  <label for="<?php echo $code; ?>_cc_number">
71
  <?php echo $this->__('Credit Card Number'); ?>&nbsp;<span class="required">*</span>
72
- </label><br/>
73
  <input type="text" id="<?php echo $code; ?>_cc_number" value=""
74
  name="payment[cc_number]" title="<?php echo $this->__('Credit Card Number'); ?>"
75
  class="input-text validate-cc-number validate-payone-cc-type no-submit"/>
@@ -80,7 +80,7 @@ $displayCvc = null;
80
  <div class="input-box">
81
  <label for="<?php echo $code ?>_expiration">
82
  <?php echo $this->__('Expiration Date') ?>&nbsp;<span class="required">*</span>
83
- </label><br/>
84
 
85
  <div class="v-fix">
86
  <select id="<?php echo $code ?>_cc_expiration_month" name="payment[cc_exp_month]"
@@ -109,7 +109,7 @@ $displayCvc = null;
109
  style="<?php echo $displayCvc == '0' ? 'display: none; ' : '';?>">
110
  <label for="<?php echo $code ?>_cc_cid">
111
  <?php echo $this->__('Card Verification Number') ?>&nbsp;<span class="required">*</span>
112
- </label><br/>
113
  <input type="text" title="<?php echo $this->__('Card Verification Number') ?>"
114
  class="required-entry input-text no-submit" id="<?php echo $code ?>_cc_cid"
115
  name="payment[cc_cid]" style="width:3em;" value="" autocomplete="off" maxlength="4"/>
33
  <label for="<?php echo $code ?>_cc_owner"><?php echo $this->__('Name on Card') ?>
34
  <span class="required">*</span>
35
  </label>
36
+ <br class="clear"/>
37
  <input type="text" id="<?php echo $code ?>_cc_owner" name="payment[cc_owner]"
38
  value="<?php echo $this->getBillingName(); ?>"
39
  title="<?php echo $this->__('Name on Card') ?>"
45
  <div class="input-box">
46
  <label for="<?php echo $code; ?>_cc_type"><?php echo $this->__('Credit Card Type'); ?>
47
  <span class="required">*</span>
48
+ </label><br class="clear"/>
49
  <select id="<?php echo $code ?>_cc_type_select" name="<?php echo $code ?>_cc_type_select"
50
  onchange="payone.displayCheckCvc(this);" class="no-submit required-entry">
51
  <option value=""><?php echo $this->__('--Please Select--') ?></option>
69
  <div class="input-box">
70
  <label for="<?php echo $code; ?>_cc_number">
71
  <?php echo $this->__('Credit Card Number'); ?>&nbsp;<span class="required">*</span>
72
+ </label><br class="clear"/>
73
  <input type="text" id="<?php echo $code; ?>_cc_number" value=""
74
  name="payment[cc_number]" title="<?php echo $this->__('Credit Card Number'); ?>"
75
  class="input-text validate-cc-number validate-payone-cc-type no-submit"/>
80
  <div class="input-box">
81
  <label for="<?php echo $code ?>_expiration">
82
  <?php echo $this->__('Expiration Date') ?>&nbsp;<span class="required">*</span>
83
+ </label><br class="clear"/>
84
 
85
  <div class="v-fix">
86
  <select id="<?php echo $code ?>_cc_expiration_month" name="payment[cc_exp_month]"
109
  style="<?php echo $displayCvc == '0' ? 'display: none; ' : '';?>">
110
  <label for="<?php echo $code ?>_cc_cid">
111
  <?php echo $this->__('Card Verification Number') ?>&nbsp;<span class="required">*</span>
112
+ </label><br class="clear"/>
113
  <input type="text" title="<?php echo $this->__('Card Verification Number') ?>"
114
  class="required-entry input-text no-submit" id="<?php echo $code ?>_cc_cid"
115
  name="payment[cc_cid]" style="width:3em;" value="" autocomplete="off" maxlength="4"/>
app/design/frontend/base/default/template/payone/core/payment/method/form/debitpayment.phtml CHANGED
@@ -27,50 +27,101 @@ $code = $this->getMethodCode();
27
  $paymentConfigId = $this->getPaymentConfig()->getId();
28
  $owner = $this->escapeHtml($this->getInfoData('payone_account_owner') ? $this->getInfoData('payone_account_owner') : $this->getBillingName());
29
 
30
- $maxLengthAccountNumber = 10;
31
- if ($this->getCountry() == 'AT') {
32
- $maxLengthAccountNumber = 11;
33
- }
34
  ?>
35
  <fieldset class="form-list">
36
  <ul id="payment_form_<?php echo $code ?>" style="display:none">
37
  <li>
38
  <div class="input-box">
39
- <label for="<?php echo $code ?>_owner">
40
- <?php echo $this->__('Account holder') ?>&nbsp;<span class="required">*</span>
41
  </label>
42
- <br/>
43
- <input type="text" id="<?php echo $code ?>_owner" name="payment[payone_account_owner]"
44
- title="<?php echo $this->__('Account holder') ?>" class="required-entry input-text"
45
- value="<?php echo $owner; ?>"/>
 
 
 
 
 
 
 
 
 
46
  </div>
47
  </li>
48
- <li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  <div class="input-box">
50
  <label for="<?php echo $code ?>_account_number">
51
- <?php echo $this->__('Account number') ?>&nbsp;<span class="required">*</span>
52
  </label>
53
- <br/>
54
  <input type="text" id="<?php echo $code ?>_account_number" name="payment[payone_account_number]"
55
  title="<?php echo $this->__('Account number') ?>"
56
- class="validate-digits required-entry input-text" value=""
57
- autocomplete="off" maxlength="<?php echo $maxLengthAccountNumber; ?>"/>
 
 
58
  </div>
59
  </li>
60
- <li>
61
  <div class="input-box">
62
  <label for="<?php echo $code ?>_bank_code">
63
- <?php echo $this->__('Bank code') ?>&nbsp;<span class="required">*</span>
64
  </label>
65
- <br/>
66
  <input type="text" id="<?php echo $code ?>_bank_code" name="payment[payone_bank_code]"
67
- title="<?php echo $this->__('Bank code') ?>" class="validate-digits required-entry input-text"
68
- value="" maxlength="8"/>
 
 
69
  </div>
70
  </li>
 
71
  <li>
72
  <input type="hidden" name="payment[payone_config_payment_method_id]"
73
  value="<?php echo $paymentConfigId; ?>"/>
74
  </li>
75
  </ul>
76
- </fieldset>
 
 
 
 
 
 
 
 
 
 
27
  $paymentConfigId = $this->getPaymentConfig()->getId();
28
  $owner = $this->escapeHtml($this->getInfoData('payone_account_owner') ? $this->getInfoData('payone_account_owner') : $this->getBillingName());
29
 
30
+ $configShowBankData = $this->getPaymentConfig()->getSepaDeShowBankData();
 
 
 
31
  ?>
32
  <fieldset class="form-list">
33
  <ul id="payment_form_<?php echo $code ?>" style="display:none">
34
  <li>
35
  <div class="input-box">
36
+ <label for="<?php echo $code ?>_bank_country">
37
+ <?php echo $this->__('Bank country') ?>&nbsp;<span class="required">*</span>
38
  </label>
39
+ <br class="clear"/>
40
+ <select id="<?php echo $code ?>_bank_country" name="payment[payone_bank_country]"
41
+ class="no-submit required-entry" onchange="showBankData('<?php echo $code ?>', <?php echo $configShowBankData; ?>);">
42
+ <option value=""><?php echo $this->__('--Please Select--') ?></option>
43
+ <?php
44
+ foreach ($this->getSelectedSepaCountries() as $key => $country):
45
+ $selected = $this->getCountry() == $key ? 'selected="selected"' : '';
46
+ ?>
47
+ <option value="<?php echo $key ?>"<?php echo $selected; ?>>
48
+ <?php echo $this->__($country) ?>
49
+ </option>
50
+ <?php endforeach; ?>
51
+ </select>
52
  </div>
53
  </li>
54
+ <li id="input_box_payone_sepa_iban">
55
+ <div class="input-box">
56
+ <label for="<?php echo $code ?>_sepa_iban">
57
+ <?php echo $this->__('IBAN') ?>
58
+ </label>
59
+ <br class="clear"/>
60
+ <input type="text" id="<?php echo $code ?>_sepa_iban" name="payment[payone_sepa_iban]"
61
+ title="<?php echo $this->__('IBAN') ?>"
62
+ class="validate-sepa-iban required-entry input-text" value=""
63
+ autocomplete="off" maxlength="34"
64
+ onchange="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>); checkIbanCountryCode('<?php echo $code ?>');"
65
+ oninput="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>); checkIbanCountryCode('<?php echo $code ?>');"/>
66
+ </div>
67
+ </li>
68
+ <li id="input_box_payone_sepa_bic">
69
+ <div class="input-box">
70
+ <label for="<?php echo $code ?>_sepa_bic">
71
+ <?php echo $this->__('BIC') ?>
72
+ </label>
73
+ <br class="clear"/>
74
+ <input type="text" id="<?php echo $code ?>_sepa_bic" name="payment[payone_sepa_bic]"
75
+ title="<?php echo $this->__('BIC') ?>"
76
+ class="validate-sepa-bic required-entry input-text" value=""
77
+ autocomplete="off" maxlength="11"
78
+ onchange="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"
79
+ oninput="inputToUpperCase(this); blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"/>
80
+ </div>
81
+ </li>
82
+ <?php if ($configShowBankData): ?>
83
+ <li id="input_box_payone_account_number">
84
+ <?php echo $this->__('or enter your bank account data (only for German accounts):'); ?>
85
  <div class="input-box">
86
  <label for="<?php echo $code ?>_account_number">
87
+ <?php echo $this->__('Account number') ?>
88
  </label>
89
+ <br class="clear"/>
90
  <input type="text" id="<?php echo $code ?>_account_number" name="payment[payone_account_number]"
91
  title="<?php echo $this->__('Account number') ?>"
92
+ class="validate-digits input-text" value=""
93
+ autocomplete="off" maxlength="10"
94
+ onchange="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"
95
+ oninput="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"/>
96
  </div>
97
  </li>
98
+ <li id="input_box_payone_bank_code">
99
  <div class="input-box">
100
  <label for="<?php echo $code ?>_bank_code">
101
+ <?php echo $this->__('Bank code') ?>
102
  </label>
103
+ <br class="clear"/>
104
  <input type="text" id="<?php echo $code ?>_bank_code" name="payment[payone_bank_code]"
105
+ title="<?php echo $this->__('Bank code') ?>" class="validate-bank-code validate-digits input-text"
106
+ value="" maxlength="8"
107
+ onchange="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"
108
+ oninput="blockPaymentMethodInputs('<?php echo $code ?>', <?php echo $configShowBankData; ?>);"/>
109
  </div>
110
  </li>
111
+ <?php endif; ?>
112
  <li>
113
  <input type="hidden" name="payment[payone_config_payment_method_id]"
114
  value="<?php echo $paymentConfigId; ?>"/>
115
  </li>
116
  </ul>
117
+ </fieldset>
118
+
119
+ <script type="text/javascript">
120
+ // Add validation messages translation
121
+ Translator.add('Bank code must contain 8 digits', '<?php echo $this->__('Bank code must contain 8 digits'); ?>');
122
+ Translator.add('IBAN should contain only letters and digits', '<?php echo $this->__('IBAN should contain nur letters and digits'); ?>');
123
+ Translator.add('BIC can contain only 8-11 characters (letters and digits)', '<?php echo $this->__('BIC can contain only 8-11 characters (letters and digits)'); ?>');
124
+ Translator.add('Entered IBAN is not valid for selected bank country', '<?php echo $this->__('IBAN ist nicht gültig für gewähltes Bankland'); ?>');
125
+
126
+ showBankData('<?php echo $code ?>', <?php echo $configShowBankData; ?>);
127
+ </script>
app/design/frontend/base/default/template/payone/core/payment/method/form/financing.phtml CHANGED
@@ -31,7 +31,7 @@ $paymentConfigId = $this->getPaymentConfig()->getId();
31
  <div class="input-box">
32
  <label for="<?php echo $code; ?>_fnc_type">
33
  <?php echo $this->__('Financing Type'); ?>&nbsp;<span class="required">*</span>
34
- </label><br/>
35
 
36
  <?php
37
  $types = $this->getTypes();
31
  <div class="input-box">
32
  <label for="<?php echo $code; ?>_fnc_type">
33
  <?php echo $this->__('Financing Type'); ?>&nbsp;<span class="required">*</span>
34
+ </label><br class="clear"/>
35
 
36
  <?php
37
  $types = $this->getTypes();
app/design/frontend/base/default/template/payone/core/payment/method/form/onlinebanktransfer.phtml CHANGED
@@ -24,13 +24,9 @@
24
  /** @var $this Payone_Core_Block_Payment_Method_Form_OnlineBankTransfer */
25
  $code = $this->getMethodCode();
26
  $country = $this->getCountry();
 
27
  $paymentConfigId = $this->getPaymentMethodConfigId();
28
  $paymentType = $this->getInfoData('payone_onlinebanktransfer_type');
29
-
30
- $maxLengthAccountNumber = 10;
31
- if ($country == 'AT') {
32
- $maxLengthAccountNumber = 11;
33
- }
34
  ?>
35
  <fieldset class="form-list">
36
  <ul id="payment_form_<?php echo $code; ?>" style="display:none">
@@ -38,9 +34,9 @@ if ($country == 'AT') {
38
  <div class="input-box">
39
  <label for="<?php echo $code; ?>_account_number">
40
  <?php echo $this->__('Online bank transfer type'); ?>&nbsp;<span class="required">*</span>
41
- </label><br/>
42
  <select id="<?php echo $code ?>_obt_type_select" name="<?php echo $code ?>_obt_type_select"
43
- class="required-entry" onchange="payoneSwitchOnlineBankTransfer(this);">
44
  <option value=""><?php echo $this->__('--Please Select--') ?></option>
45
  <?php
46
  foreach ($this->getTypes() as $key => $type):
@@ -63,27 +59,83 @@ if ($country == 'AT') {
63
  id="<?php echo $code ?>_config_id" value="<?php echo $paymentConfigId; ?>"/>
64
  </div>
65
  </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  <li id="account_number_wrap" style="display:none;">
67
  <div class="input-box">
68
  <label for="<?php echo $code ?>_account_number">
69
  <?php echo $this->__('Account number') ?>&nbsp;<span class="required">*</span>
70
- </label><br/>
71
  <input type="text" id="<?php echo $code ?>_account_number" name="payment[payone_account_number]"
72
  title="<?php echo $this->__('Account number') ?>"
73
  class="validate-digits required-entry input-text" value="" autocomplete="off"
74
- maxlength="<?php echo $maxLengthAccountNumber; ?>"/>
75
  </div>
76
  </li>
77
  <li id="bank_code_wrap" style="display:none;">
78
  <div class="input-box">
79
  <label for="<?php echo $code ?>_bank_code">
80
  <?php echo $this->__('Bank code') ?>&nbsp;<span class="required">*</span>
81
- </label><br/>
82
  <input type="text" id="<?php echo $code ?>_bank_code" name="payment[payone_bank_code]"
83
- title="<?php echo $this->__('Bank code') ?>" class="validate-digits required-entry input-text"
84
- value="" maxlength="10"/>
 
85
  </div>
86
  </li>
87
  <?php echo $this->getBlockHtmlBankGroup(); ?>
88
  </ul>
89
- </fieldset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  /** @var $this Payone_Core_Block_Payment_Method_Form_OnlineBankTransfer */
25
  $code = $this->getMethodCode();
26
  $country = $this->getCountry();
27
+ $currency = $this->getCurrency();
28
  $paymentConfigId = $this->getPaymentMethodConfigId();
29
  $paymentType = $this->getInfoData('payone_onlinebanktransfer_type');
 
 
 
 
 
30
  ?>
31
  <fieldset class="form-list">
32
  <ul id="payment_form_<?php echo $code; ?>" style="display:none">
34
  <div class="input-box">
35
  <label for="<?php echo $code; ?>_account_number">
36
  <?php echo $this->__('Online bank transfer type'); ?>&nbsp;<span class="required">*</span>
37
+ </label><br class="clear"/>
38
  <select id="<?php echo $code ?>_obt_type_select" name="<?php echo $code ?>_obt_type_select"
39
+ class="required-entry" onchange="payoneSwitchOnlineBankTransfer(this, '<?php echo $country ?>', '<?php echo $currency ?>');">
40
  <option value=""><?php echo $this->__('--Please Select--') ?></option>
41
  <?php
42
  foreach ($this->getTypes() as $key => $type):
59
  id="<?php echo $code ?>_config_id" value="<?php echo $paymentConfigId; ?>"/>
60
  </div>
61
  </li>
62
+ <li id="sepa_iban_wrap" style="display:none;">
63
+ <div class="input-box">
64
+ <label for="<?php echo $code ?>_sepa_iban">
65
+ <?php echo $this->__('IBAN') ?>&nbsp;<span class="required">*</span>
66
+ </label><br class="clear"/>
67
+ <input type="text" id="<?php echo $code ?>_sepa_iban" name="payment[payone_sepa_iban]"
68
+ title="<?php echo $this->__('IBAN') ?>"
69
+ class="validate-sepa-iban required-entry input-text" value=""
70
+ autocomplete="off" maxlength="34"
71
+ onchange="inputToUpperCase(this);"
72
+ oninput="inputToUpperCase(this);"/>
73
+ </div>
74
+ </li>
75
+ <li id="sepa_bic_wrap" style="display:none;">
76
+ <div class="input-box">
77
+ <label for="<?php echo $code ?>_sepa_bic">
78
+ <?php echo $this->__('BIC') ?>&nbsp;<span class="required">*</span>
79
+ </label><br class="clear"/>
80
+ <input type="text" id="<?php echo $code ?>_sepa_bic" name="payment[payone_sepa_bic]"
81
+ title="<?php echo $this->__('BIC') ?>"
82
+ class="validate-sepa-bic required-entry input-text" value=""
83
+ autocomplete="off" maxlength="11"
84
+ onchange="inputToUpperCase(this);"
85
+ oninput="inputToUpperCase(this);"/>
86
+ </div>
87
+ </li>
88
  <li id="account_number_wrap" style="display:none;">
89
  <div class="input-box">
90
  <label for="<?php echo $code ?>_account_number">
91
  <?php echo $this->__('Account number') ?>&nbsp;<span class="required">*</span>
92
+ </label><br class="clear"/>
93
  <input type="text" id="<?php echo $code ?>_account_number" name="payment[payone_account_number]"
94
  title="<?php echo $this->__('Account number') ?>"
95
  class="validate-digits required-entry input-text" value="" autocomplete="off"
96
+ maxlength="10"/>
97
  </div>
98
  </li>
99
  <li id="bank_code_wrap" style="display:none;">
100
  <div class="input-box">
101
  <label for="<?php echo $code ?>_bank_code">
102
  <?php echo $this->__('Bank code') ?>&nbsp;<span class="required">*</span>
103
+ </label><br class="clear"/>
104
  <input type="text" id="<?php echo $code ?>_bank_code" name="payment[payone_bank_code]"
105
+ title="<?php echo $this->__('Bank code') ?>"
106
+ class="validate-bank-code validate-digits required-entry input-text"
107
+ value="" maxlength="8"/>
108
  </div>
109
  </li>
110
  <?php echo $this->getBlockHtmlBankGroup(); ?>
111
  </ul>
112
+ </fieldset>
113
+
114
+ <script type="text/javascript">
115
+ var country = '<?php echo $country ?>';
116
+ var currency = '<?php echo $currency ?>';
117
+ var code = '<?php echo $code ?>';
118
+ payoneSwitchOnlineBankTransfer($(code + '_obt_type_select'), country, currency);
119
+
120
+ Event.observe(document, "dom:loaded", function () {
121
+ payoneSwitchOnlineBankTransfer($(code + '_obt_type_select'), country, currency);
122
+ });
123
+ Event.observe(document, "dom:ready", function () {
124
+ payoneSwitchOnlineBankTransfer($(code + '_obt_type_select'), country, currency);
125
+ });
126
+
127
+ // we need to call the switch method after refreshing payment section via ajax
128
+ // unfortunately there is no specific property to identify the needed ajax request
129
+ Ajax.Responders.register({
130
+ onComplete: function(transport, element) {
131
+ var typeSelect = $(code + '_obt_type_select');
132
+ if (typeSelect == undefined) {
133
+ return;
134
+ }
135
+ var url = element.request.url;
136
+ if (url.indexOf('checkout/onepage/saveShippingMethod') !== -1 || url.indexOf('checkout/onepage/progress') !== 1) {
137
+ payoneSwitchOnlineBankTransfer(typeSelect, country, currency);
138
+ }
139
+ }
140
+ });
141
+ </script>
app/design/frontend/base/default/template/payone/core/payment/method/form/onlinebanktransfer/bankgroup.phtml CHANGED
@@ -1,75 +1,75 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package design_frontend_base_default
17
- * @subpackage template
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
- ?>
24
- <?php
25
- $code = $this->getMethodCode();
26
- ?>
27
- <li id="bank_group_wrap_at" style="display: none;">
28
- <div class="input-box">
29
- <label for="<?php echo $code ?>_bank_group_at">
30
- <?php echo $this->__('Bank group') ?>&nbsp;<span class="required">*</span>
31
- </label><br/>
32
- <select name="payment[payone_bank_group]" id="<?php echo $code ?>_bank_group_at">
33
- <option value="ARZ_OVB">Commercial credit cooperatives (Volksbank)</option>
34
- <option value="ARZ_BAF">Bank for doctors and independent professions</option>
35
- <option value="ARZ_NLH">Hypo state bank Lower Austria</option>
36
- <option value="ARZ_VLH">Hypo state bank Voralberg</option>
37
- <option value="ARZ_BCS">Bankhaus Carl Spängler & Co. AG</option>
38
- <option value="ARZ_HTB">Hypo bank Tyrol</option>
39
- <option value="ARZ_HAA">Hypo Alpe Adria</option>
40
- <option value="ARZ_IKB">Investkredit bank</option>
41
- <option value="ARZ_OAB">Österreichische Apothekerbank</option>
42
- <option value="ARZ_IMB">Immobank</option>
43
- <option value="ARZ_GRB">Gärtnerbank</option>
44
- <option value="ARZ_HIB">HYPO Investment bank</option>
45
- <option value="BA_AUS">Bank Austria</option>
46
- <option value="BAWAG_BWG">BAWAG</option>
47
- <option value="BAWAG_PSK">PSK Bank</option>
48
- <option value="BAWAG_ESY">easybank</option>
49
- <option value="BAWAG_SPD">Sparda Bank</option>
50
- <option value="SPARDAT_EBS">Erste Bank</option>
51
- <option value="SPARDAT_BBL">Bank Burgenland</option>
52
- <option value="RAC_RAC">Raiffeisen bank</option>
53
- <option value="HRAC_OOS">Hypo bank Upper Austria</option>
54
- <option value="HRAC_SLB">Hypo bank Salzburg</option>
55
- <option value="HRAC_STM">Hypo bank Styria</option>
56
- </select>
57
- </div>
58
- </li>
59
- <li id="bank_group_wrap_nl" style="display: none;">
60
- <div class="input-box">
61
- <label for="<?php echo $code ?>_bank_group_nl"><?php echo $this->__('Bank group') ?> <span
62
- class="required">*</span></label><br/>
63
- <select name="payment[payone_bank_group]" id="<?php echo $code ?>_bank_group_nl">
64
- <option value="ABN_AMRO_BANK">ABN AMRO</option>
65
- <option value="FORTIS_BANK">Fortis</option>
66
- <option value="FRIESLAND_BANK">Friesland Bank</option>
67
- <option value="ING_BANK">ING</option>
68
- <option value="RABOBANK">Rabobank</option>
69
- <option value="SNS_BANK">SNS BANK</option>
70
- <option value="ASN_BANK">ASN Bank</option>
71
- <option value="SNS_REGIO_BANK">SNS Regio Bank</option>
72
- <option value="TRIODOS_BANK">Triodos Bank</option>
73
- </select>
74
- </div>
75
  </li>
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package design_frontend_base_default
17
+ * @subpackage template
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+ ?>
24
+ <?php
25
+ $code = $this->getMethodCode();
26
+ ?>
27
+ <li id="bank_group_wrap_at" style="display: none;">
28
+ <div class="input-box">
29
+ <label for="<?php echo $code ?>_bank_group_at">
30
+ <?php echo $this->__('Bank group') ?>&nbsp;<span class="required">*</span>
31
+ </label><br class="clear"/>
32
+ <select name="payment[payone_bank_group]" id="<?php echo $code ?>_bank_group_at">
33
+ <option value="ARZ_OVB">Commercial credit cooperatives (Volksbank)</option>
34
+ <option value="ARZ_BAF">Bank for doctors and independent professions</option>
35
+ <option value="ARZ_NLH">Hypo state bank Lower Austria</option>
36
+ <option value="ARZ_VLH">Hypo state bank Voralberg</option>
37
+ <option value="ARZ_BCS">Bankhaus Carl Spängler & Co. AG</option>
38
+ <option value="ARZ_HTB">Hypo bank Tyrol</option>
39
+ <option value="ARZ_HAA">Hypo Alpe Adria</option>
40
+ <option value="ARZ_IKB">Investkredit bank</option>
41
+ <option value="ARZ_OAB">Österreichische Apothekerbank</option>
42
+ <option value="ARZ_IMB">Immobank</option>
43
+ <option value="ARZ_GRB">Gärtnerbank</option>
44
+ <option value="ARZ_HIB">HYPO Investment bank</option>
45
+ <option value="BA_AUS">Bank Austria</option>
46
+ <option value="BAWAG_BWG">BAWAG</option>
47
+ <option value="BAWAG_PSK">PSK Bank</option>
48
+ <option value="BAWAG_ESY">easybank</option>
49
+ <option value="BAWAG_SPD">Sparda Bank</option>
50
+ <option value="SPARDAT_EBS">Erste Bank</option>
51
+ <option value="SPARDAT_BBL">Bank Burgenland</option>
52
+ <option value="RAC_RAC">Raiffeisen bank</option>
53
+ <option value="HRAC_OOS">Hypo bank Upper Austria</option>
54
+ <option value="HRAC_SLB">Hypo bank Salzburg</option>
55
+ <option value="HRAC_STM">Hypo bank Styria</option>
56
+ </select>
57
+ </div>
58
+ </li>
59
+ <li id="bank_group_wrap_nl" style="display: none;">
60
+ <div class="input-box">
61
+ <label for="<?php echo $code ?>_bank_group_nl"><?php echo $this->__('Bank group') ?> <span
62
+ class="required">*</span></label><br class="clear"/>
63
+ <select name="payment[payone_bank_group]" id="<?php echo $code ?>_bank_group_nl">
64
+ <option value="ABN_AMRO_BANK">ABN AMRO</option>
65
+ <option value="FORTIS_BANK">Fortis</option>
66
+ <option value="FRIESLAND_BANK">Friesland Bank</option>
67
+ <option value="ING_BANK">ING</option>
68
+ <option value="RABOBANK">Rabobank</option>
69
+ <option value="SNS_BANK">SNS BANK</option>
70
+ <option value="ASN_BANK">ASN Bank</option>
71
+ <option value="SNS_REGIO_BANK">SNS Regio Bank</option>
72
+ <option value="TRIODOS_BANK">Triodos Bank</option>
73
+ </select>
74
+ </div>
75
  </li>
app/design/frontend/base/default/template/payone/core/payment/method/form/safe_invoice.phtml CHANGED
@@ -31,7 +31,7 @@ $paymentConfigId = $this->getPaymentMethodConfigId();
31
  <div class="input-box">
32
  <label for="<?php echo $code; ?>_sin_type">
33
  <?php echo $this->__('Safe Invoice Type'); ?>&nbsp;<span class="required">*</span>
34
- </label><br/>
35
 
36
  <?php
37
  $types = $this->getTypes();
@@ -69,5 +69,11 @@ $paymentConfigId = $this->getPaymentMethodConfigId();
69
  id="<?php echo $code ?>_config_id" value="<?php echo $paymentConfigId; ?>"/>
70
  </div>
71
  </li>
 
 
 
 
 
 
72
  </ul>
73
  </fieldset>
31
  <div class="input-box">
32
  <label for="<?php echo $code; ?>_sin_type">
33
  <?php echo $this->__('Safe Invoice Type'); ?>&nbsp;<span class="required">*</span>
34
+ </label><br class="clear"/>
35
 
36
  <?php
37
  $types = $this->getTypes();
69
  id="<?php echo $code ?>_config_id" value="<?php echo $paymentConfigId; ?>"/>
70
  </div>
71
  </li>
72
+ <li>
73
+ <?php if ($this->showBlockHtmlKlarna()) :
74
+ echo $this->getBlockHtmlKlarna();
75
+ endif;
76
+ ?>
77
+ </li>
78
  </ul>
79
  </fieldset>
app/design/frontend/base/default/template/payone/core/payment/method/form/safe_invoice/klarna.phtml ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package design_frontend_base_default
17
+ * @subpackage template
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+ ?>
24
+ <?php
25
+ /** @var $this Payone_Core_Block_Payment_Method_Form_SafeInvoice_Klarna */
26
+ /** @var string $country */
27
+ $country = $this->getCountry();
28
+ /** @var Mage_Sales_Model_Quote $quote */
29
+ $quote = $this->getQuote();
30
+ /** @var Payone_Core_Model_Config_Payment_Method_Interface $paymentMethodConfig */
31
+ $paymentMethodConfig = $this->getPaymentMethodConfig();
32
+ ?>
33
+ <?php if ($this->canShowAdditionalFields()): ?>
34
+ <div id="payone_klarna_invoice_terms_div">
35
+ <span id="payone_klarna_invoice_terms"></span>
36
+ </div>
37
+ <div id="payone_klarna_additional_fields">
38
+ <ul>
39
+ <?php if ($this->isDobRequired()): ?>
40
+ <li class="fields">
41
+ <div class="field">
42
+ <label for="payone_klarna_additional_fields_customer_dob_month"
43
+ class="required"><em>*</em><?php echo $this->__('Date of birth (DD MM YYYY)') ?>
44
+ </label>
45
+ <br class="clear"/>
46
+ <select id="payone_klarna_additional_fields_customer_dob_day" class="required-entry"
47
+ style="width: 60px;" onchange="payoneKlarnaCustomerDobInput()">
48
+ <option value="">--</option>
49
+ <?php for ($x = 1; $x <= 31; $x++): ?>
50
+ <option value="<?php echo sprintf('%02d', $x); ?>">
51
+ <?php echo sprintf('%02d', $x); ?>
52
+ </option>
53
+ <?php endfor; ?>
54
+ </select>
55
+ <select id="payone_klarna_additional_fields_customer_dob_month" class="required-entry"
56
+ style="width: 60px;" onchange="payoneKlarnaCustomerDobInput()">
57
+ <option value="">--</option>
58
+ <?php for ($x = 1; $x <= 12; $x++) : ?>
59
+ <option value="<?php echo sprintf('%02d', $x); ?>">
60
+ <?php echo sprintf('%02d', $x); ?>
61
+ </option>
62
+ <?php endfor; ?>
63
+ </select>
64
+ <select id="payone_klarna_additional_fields_customer_dob_year" class="required-entry"
65
+ style="width: 60px;" onchange="payoneKlarnaCustomerDobInput()">
66
+ <option value="">----</option>
67
+ <?php for ($x = date('Y'); $x > (date('Y') - 100); $x--) : ?>
68
+ <option value="<?php echo $x; ?>">
69
+ <?php echo $x; ?>
70
+ </option>
71
+ <?php endfor; ?>
72
+ </select>
73
+
74
+ <div class="dob-full" style="display:none;">
75
+ <input type="hidden" id="payone_klarna_additional_fields_customer_dob_full"
76
+ name="payment[payone_customer_dob]">
77
+ </div>
78
+ </div>
79
+ </li>
80
+ <?php endif;
81
+ if ($this->isGenderRequired()) : ?>
82
+ <li class="fields">
83
+ <div class="field">
84
+ <label for="payone_klarna_additional_fields_customer_gender" class="required">
85
+ <em>*</em> <?php echo $this->__('Gender') ?>
86
+ </label>
87
+ <br class="clear"/>
88
+ <select id="payone_klarna_additional_fields_customer_gender" class="required-entry"
89
+ name="payment[payone_customer_gender]">
90
+ <?php $genderOptions = $this->getGenderOptions();
91
+ foreach ($genderOptions as $genderOption): ?>
92
+ <option value="<?php echo $genderOption['value'] ?>">
93
+ <?php echo $genderOption['label'] ?>
94
+ </option>
95
+ <?php endforeach; ?>
96
+ </select>
97
+ </div>
98
+ </li>
99
+ <?php endif;
100
+ if ($this->isPersonalidRequired()) : ?>
101
+ <li class="fields">
102
+ <div class="field">
103
+ <label for="payone_klarna_additional_fields_customer_personalid" class="required">
104
+ <em>*</em> <?php echo $this->__('Personal-ID') ?>
105
+ </label>
106
+ <br class="clear"/>
107
+ <input type="text" name="payment[payone_customer_personalid]"
108
+ id="payone_klarna_additional_fields_customer_personalid"
109
+ class="input-text required-entry"/>
110
+ </div>
111
+ </li>
112
+ <?php endif;
113
+ if ($this->isBillingAddressAdditionRequired()) : ?>
114
+ <li class="fields">
115
+ <div class="field">
116
+ <label for="payone_klarna_additional_fields_billing_addressaddition" class="required">
117
+ <em>*</em> <?php echo $this->__('House number extension (billing address)') ?>
118
+ </label>
119
+ <br class="clear"/>
120
+ <input type="text" name="payment[payone_billing_addressaddition]"
121
+ id="payone_klarna_additional_fields_billing_addressaddition"
122
+ class="input-text required-entry"/>
123
+ </div>
124
+ </li>
125
+ <?php endif;
126
+ if ($this->isShippingAddressAdditionRequired()) : ?>
127
+ <li class="fields">
128
+ <div class="field">
129
+ <label for="payone_klarna_additional_fields_shipping_addressaddition" class="required">
130
+ <em>*</em> <?php echo $this->__('House number extension (shipping address)') ?>
131
+ </label>
132
+ <br class="clear"/>
133
+ <input type="text" name="payment[payone_shipping_addressaddition]"
134
+ id="payone_klarna_additional_fields_shipping_addressaddition"
135
+ class="input-text required-entry"/>
136
+ </div>
137
+ </li>
138
+ <?php endif;
139
+ if ($this->isTelephoneRequired()) : ?>
140
+ <li class="fields">
141
+ <div class="field">
142
+ <label for="payone_klarna_additional_fields_customer_telephone" class="required">
143
+ <em>*</em><?php echo $this->__('Telephone') ?>
144
+ </label>
145
+ <br class="clear"/>
146
+ <input type="text" name="payment[payone_customer_telephone]"
147
+ id="payone_klarna_additional_fields_customer_telephone"
148
+ class="input-text required-entry"/>
149
+ </div>
150
+ </li>
151
+ <?php endif;
152
+ if ($this->isAgreementCheckboxRequired()): ?>
153
+ <li class="fields">
154
+ <div class="field">
155
+ <input type="checkbox" id="payone_klarna_additional_fields_agreement_checkbox"
156
+ class="checkbox required-entry"/>
157
+ <label for="payone_klarna_additional_fields_agreement_checkbox" class="required"
158
+ style="float:none;">
159
+ <?php if ($this->getCountry() == 'DE'): ?>
160
+ Mit der &Uuml;bermittlung der für die Abwicklung der gew&auml;hlten Klarna Zahlungsmethode und einer Identit&auml;ts- und Bonit&auml;tspr&uuml;fung
161
+ erforderlichen Daten an Klarna bin ich einverstanden. Meine
162
+ <a href="https://cdn.klarna.com/1.0/shared/content/legal/terms/<?php echo $this->getKlarnaStoreId() ?>/de_de/consent"
163
+ target="_blank">Einwilligung</a>
164
+ kann ich jederzeit mit Wirkung f&uuml;r die Zukunft
165
+ widerrufen. Es gelten die AGB des H&auml;ndlers.
166
+ <?php endif; ?>
167
+ <?php if ($this->getCountry() == 'AT'): ?>
168
+ Mit der Datenverarbeitung der f&uuml;r die Abwicklung des Rechnungskaufes und einer Identit&auml;ts- und Bonit&auml;tspr&uuml;fung erforderlichen Daten durch Klarna
169
+ bin ich einverstanden. Meine
170
+ <a href="https://cdn.klarna.com/1.0/shared/content/legal/terms/<?php echo $this->getKlarnaStoreId() ?>/de_at/consent"
171
+ target="_blank">Einwilligung</a>
172
+ kann ich jederzeit mit Wirkung f&uuml;r die Zukunft widerrufen. Es gelten die AGB des H&auml;ndlers.
173
+ <?php endif; ?>
174
+ <em style="float:none; position:relative;">*</em>
175
+ </label>
176
+ </div>
177
+ </li>
178
+ <?php endif; ?>
179
+ </ul>
180
+ </div>
181
+ <?php if ($this->getKlarnaStoreId() and $this->getCountry()): ?>
182
+ <script type="text/javascript">
183
+ var terms = new Klarna.Terms.Invoice({
184
+ el: $('payone_klarna_invoice_terms'),
185
+ eid: <?php echo $this->getKlarnaStoreId() ?>, // Your merchant ID
186
+ country: '<?php echo strtolower($this->getCountry()) ?>',
187
+ charge: 0
188
+ });
189
+ </script>
190
+ <?php endif;
191
+ endif; ?>
app/design/frontend/base/default/template/payone/core/payment/method/form/safe_invoice/klarna/scripts.phtml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package design_frontend_base_default
17
+ * @subpackage template
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Alexander Dite <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+ ?>
24
+ <script type="text/javascript" src="https://cdn.klarna.com/public/kitt/core/v1.0/js/klarna.min.js"></script>
25
+ <script type="text/javascript" src="https://cdn.klarna.com/public/kitt/toc/v1.1/js/klarna.terms.min.js"></script>
app/design/frontend/base/default/template/payone/core/payment/method/form/wallet.phtml CHANGED
@@ -33,7 +33,7 @@ $paymentType = '';
33
  <div class="input-box">
34
  <label for="<?php echo $code; ?>_wlt_type">
35
  <?php echo $this->__('Wallet Type'); ?>&nbsp;<span class="required">*</span>
36
- </label><br/>
37
 
38
  <?php
39
  $types = $this->getTypes();
33
  <div class="input-box">
34
  <label for="<?php echo $code; ?>_wlt_type">
35
  <?php echo $this->__('Wallet Type'); ?>&nbsp;<span class="required">*</span>
36
+ </label><br class="clear"/>
37
 
38
  <?php
39
  $types = $this->getTypes();
app/design/frontend/base/default/template/payone/core/payment/method/info/debitpayment.phtml CHANGED
@@ -13,7 +13,7 @@
13
  * needs please refer to http://www.payone.de for more information.
14
  *
15
  * @category Payone
16
- * @package design_frontend_base_default
17
  * @subpackage template
18
  * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
  * @author Matthias Walter <info@noovias.com>
@@ -25,14 +25,25 @@
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
- <?php if($this->getInfo()): ?>
29
- <?php echo $this->__('Account holder: %s', $this->escapeHtml($this->getPayoneAccountOwner())) ?><br/>
30
- <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
31
- <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
 
 
 
 
 
 
 
 
 
 
 
32
  <?php endif; ?>
33
  <?php if ($this->getLastTransId() == ''): ?>
34
- <?php echo $this->__('Payment has not been processed yet.') ?>
35
  <?php else: ?>
36
- <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
37
  <?php endif; ?>
38
  <br/>
13
  * needs please refer to http://www.payone.de for more information.
14
  *
15
  * @category Payone
16
+ * @package design_adminhtml_default_default
17
  * @subpackage template
18
  * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
  * @author Matthias Walter <info@noovias.com>
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
+ <?php if ($this->getPayoneSepaIban()): ?>
29
+ <?php $iban = $this->getPayoneSepaIban();
30
+ echo $this->__('IBAN: %s', $this->escapeHtml(substr($iban, 0, 2) . " " . chunk_split(substr($iban, 2), 4, ' '))) ?><br/>
31
+ <?php endif; ?>
32
+ <?php if ($this->getPayoneSepaBic()): ?>
33
+ <?php echo $this->__('BIC: %s', $this->escapeHtml($this->getPayoneSepaBic())) ?><br/>
34
+ <?php endif; ?>
35
+ <?php if ($this->getPayoneAccountOwner()): ?>
36
+ <?php echo $this->__('Account holder: %s', $this->escapeHtml($this->getPayoneAccountOwner())) ?><br/>
37
+ <?php endif; ?>
38
+ <?php if ($this->getPayoneAccountNumber()): ?>
39
+ <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
40
+ <?php endif; ?>
41
+ <?php if ($this->getPayoneBankCode()): ?>
42
+ <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
43
  <?php endif; ?>
44
  <?php if ($this->getLastTransId() == ''): ?>
45
+ <?php echo $this->__('Payment has not been processed yet.') ?>
46
  <?php else: ?>
47
+ <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
48
  <?php endif; ?>
49
  <br/>
app/design/frontend/base/default/template/payone/core/payment/method/info/onlinebanktransfer.phtml CHANGED
@@ -25,14 +25,25 @@
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
- <?php if($this->getInfo()): ?>
29
- <?php echo $this->__('Transfer Type: %s', $this->escapeHtml($this->getOnlinebanktransferType())) ?><br/>
30
- <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
31
- <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
 
 
 
 
 
 
 
 
 
 
 
32
  <?php endif; ?>
33
  <?php if ($this->getLastTransId() == ''): ?>
34
- <?php echo $this->__('Payment has not been processed yet.') ?>
35
  <?php else: ?>
36
- <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
37
  <?php endif; ?>
38
  <br/>
25
  ?>
26
  <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
27
  <br/>
28
+ <?php if ($this->getOnlinebanktransferType()): ?>
29
+ <?php echo $this->__('Transfer Type: %s', $this->escapeHtml($this->getOnlinebanktransferType())) ?><br/>
30
+ <?php endif; ?>
31
+ <?php if ($this->getPayoneSepaIban()): ?>
32
+ <?php $iban = $this->getPayoneSepaIban();
33
+ echo $this->__('IBAN: %s', $this->escapeHtml(substr($iban, 0, 2) . " " . chunk_split(substr($iban, 2), 4, ' '))) ?><br/>
34
+ <?php endif; ?>
35
+ <?php if ($this->getPayoneSepaBic()): ?>
36
+ <?php echo $this->__('BIC: %s', $this->escapeHtml($this->getPayoneSepaBic())) ?><br/>
37
+ <?php endif; ?>
38
+ <?php if ($this->getPayoneAccountNumber()): ?>
39
+ <?php echo $this->__('Account number: %s', $this->escapeHtml($this->getPayoneAccountNumber())) ?><br/>
40
+ <?php endif; ?>
41
+ <?php if ($this->getPayoneBankCode()): ?>
42
+ <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneBankCode())) ?><br/>
43
  <?php endif; ?>
44
  <?php if ($this->getLastTransId() == ''): ?>
45
+ <?php echo $this->__('Payment has not been processed yet.') ?>
46
  <?php else: ?>
47
+ <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?>
48
  <?php endif; ?>
49
  <br/>
app/design/frontend/base/default/template/payone/core/payment/method/info/safe_invoice.phtml CHANGED
@@ -1,48 +1,48 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
- * versions in the future. If you wish to customize Payone_Core for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package design_frontend_base_default
17
- * @subpackage template
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
- /** @var $this Payone_Core_Block_Payment_Method_Info_SafeInvoice */
24
- ?>
25
- <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
26
- <br/>
27
- <?php if($this->getInfo()): ?>
28
- <?php echo $this->__('Safe Invoice Type: %s', $this->escapeHtml($this->getSafeInvoiceType())) ?><br/>
29
- <?php endif; ?>
30
- <?php if ($this->getLastTransId() == ''): ?>
31
- <?php echo $this->__('Payment has not been processed yet.') ?>
32
- <?php else: ?>
33
- <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?><br/>
34
- <?php echo $this->__('Accountholder: %s', $this->escapeHtml($this->getPayoneClearingBankAccountholder())) ?><br/>
35
- <?php echo $this->__('Country: %s', $this->escapeHtml($this->getPayoneClearingBankCountry())) ?><br/>
36
- <?php echo $this->__('Accountnumber: %s', $this->escapeHtml($this->getPayoneClearingBankAccount())) ?><br/>
37
- <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneClearingBankCode())) ?><br/>
38
- <?php echo $this->__('IBAN: %s', $this->escapeHtml($this->getPayoneClearingBankIban())) ?><br/>
39
- <?php echo $this->__('BIC: %s', $this->escapeHtml($this->getPayoneClearingBankBic())) ?><br/>
40
- <?php echo $this->__('City: %s', $this->escapeHtml($this->getPayoneClearingBankCity())) ?><br/>
41
- <?php echo $this->__('Bank: %s', $this->escapeHtml($this->getPayoneClearingBankName())) ?><br/>
42
- <?php echo $this->__('Payment Reference: %s', $this->escapeHtml($this->getPayoneClearingReference())) ?><br/>
43
- <?php echo $this->__('Legal note: %s', $this->escapeHtml($this->getPayoneClearingLegalnote())) ?><br/>
44
- <?php echo $this->__('Instruction note: %s', $this->escapeHtml($this->getPayoneClearingInstructionnote())) ?><br/>
45
- <?php echo $this->__('Due date: %s', $this->escapeHtml($this->getPayoneClearingDuedate())) ?><br/>
46
-
47
- <?php endif; ?>
48
  <br/>
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
12
+ * versions in the future. If you wish to customize Payone_Core for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package design_frontend_base_default
17
+ * @subpackage template
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+ /** @var $this Payone_Core_Block_Payment_Method_Info_SafeInvoice */
24
+ ?>
25
+ <?php echo $this->escapeHtml($this->getMethodTitle()) ?>
26
+ <br/>
27
+ <?php if($this->getInfo()): ?>
28
+ <?php echo $this->__('Safe Invoice Type: %s', $this->escapeHtml($this->getSafeInvoiceType())) ?><br/>
29
+ <?php endif; ?>
30
+ <?php if ($this->getLastTransId() == ''): ?>
31
+ <?php echo $this->__('Payment has not been processed yet.') ?>
32
+ <?php else: ?>
33
+ <?php echo $this->__('Payone Transaction ID: %s', $this->escapeHtml($this->getLastTransId())) ?><br/>
34
+ <?php echo $this->__('Accountholder: %s', $this->escapeHtml($this->getPayoneClearingBankAccountholder())) ?><br/>
35
+ <?php echo $this->__('Country: %s', $this->escapeHtml($this->getPayoneClearingBankCountry())) ?><br/>
36
+ <?php echo $this->__('Accountnumber: %s', $this->escapeHtml($this->getPayoneClearingBankAccount())) ?><br/>
37
+ <?php echo $this->__('Bank code: %s', $this->escapeHtml($this->getPayoneClearingBankCode())) ?><br/>
38
+ <?php echo $this->__('IBAN: %s', $this->escapeHtml($this->getPayoneClearingBankIban())) ?><br/>
39
+ <?php echo $this->__('BIC: %s', $this->escapeHtml($this->getPayoneClearingBankBic())) ?><br/>
40
+ <?php echo $this->__('City: %s', $this->escapeHtml($this->getPayoneClearingBankCity())) ?><br/>
41
+ <?php echo $this->__('Bank: %s', $this->escapeHtml($this->getPayoneClearingBankName())) ?><br/>
42
+ <?php echo $this->__('Payment Reference: %s', $this->escapeHtml($this->getPayoneClearingReference())) ?><br/>
43
+ <?php echo $this->__('Legal note: %s', $this->escapeHtml($this->getPayoneClearingLegalnote())) ?><br/>
44
+ <?php echo $this->__('Instruction note: %s', $this->escapeHtml($this->getPayoneClearingInstructionnote())) ?><br/>
45
+ <?php echo $this->__('Due date: %s', $this->escapeHtml($this->getPayoneClearingDuedate())) ?><br/>
46
+
47
+ <?php endif; ?>
48
  <br/>
app/locale/de_DE/Payone_Core.csv CHANGED
@@ -68,6 +68,9 @@
68
  "Add Safe Invoice","Sicheren Rechnungskauf hinzufügen"
69
  "Edit Safe Invoice","Sicheren Rechnungskauf bearbeiten"
70
  "Type","Art"
 
 
 
71
  "Scope","Geltungsbereich"
72
  "Countries","Länder"
73
  "Fee","Gebühr"
@@ -75,6 +78,14 @@
75
  "Creditcard-Type","Kartentyp"
76
  "Check Card Validation Code","Prüfe Kartenprüfnummer"
77
  "Validate bank code","Prüfe Bankverbindung"
 
 
 
 
 
 
 
 
78
  "Bank code validation type", "Art der Bankverbindungsprüfung"
79
  "Banktransfer-Type","Überweisungsart"
80
  "Requires PAYONE API access.","Benötigt PAYONE API-Zugang"
@@ -204,6 +215,8 @@
204
  "Account holder","Kontoinhaber"
205
  "Account number","Kontonummer"
206
  "Bank code","Bankleitzahl"
 
 
207
 
208
  "PAYONE successfully processed the payment-request.","Die Zahlungsanfrage wurde von PAYONE erfolgreich bearbeitet"
209
  "PAYONE successfully processed and confirmed the payment-request.","Die Zahlungsanfrage wurde von PAYONE erfolgreich bearbeitet und bestätigt."
@@ -322,6 +335,11 @@
322
  "Account holder: %s","Kontoinhaber: %s"
323
  "Account number: xxx%s","Kontonummer: xxx%s"
324
  "Bank code: %s","Bankleitzahl: %s"
 
 
 
 
 
325
 
326
  "Online bank transfer type","Typ"
327
 
@@ -360,6 +378,8 @@
360
  "BANKACCOUNTCHECK","Bankdatenprüfung (bankaccountcheck)"
361
  "CREDITCARDCHECK","Kreditkartenprüfung (creditcardcheck)"
362
  "GETINVOICE","Rechnungsdownload (getinvoice)"
 
 
363
 
364
  "INSTANT_MONEY_TRANSFER","Sofort-Überweisung"
365
  "GIROPAY","giropay"
@@ -395,6 +415,7 @@
395
 
396
  "CFR","Commerz Finanz"
397
  "BSV","BillSAFE"
 
398
  "INFOSCORE_HARD","Infoscore (Harte Merkmale)"
399
  "INFOSCORE_ALL","Infoscore (Alle Merkmale)"
400
  "INFOSCORE_ALL_BONI","Infoscore (Alle Merkmale + Boniscore)"
@@ -472,4 +493,9 @@
472
  "VAUTHORIZATION","Buchung (vauthorization)"
473
  "VSETTLEMENT","Abrechnung (vsettlement)"
474
  "TRANSFER","Umbuchung (transfer)"
475
- "INVOICE","Rechnungsbeleg (invoice)"
 
 
 
 
 
68
  "Add Safe Invoice","Sicheren Rechnungskauf hinzufügen"
69
  "Edit Safe Invoice","Sicheren Rechnungskauf bearbeiten"
70
  "Type","Art"
71
+ "Store-ID","Store-ID"
72
+ "Add Store-ID","Store-ID hinzufügen"
73
+ "Required when using Klarna","Pflicht bei Verwendung von Klarna"
74
  "Scope","Geltungsbereich"
75
  "Countries","Länder"
76
  "Fee","Gebühr"
78
  "Creditcard-Type","Kartentyp"
79
  "Check Card Validation Code","Prüfe Kartenprüfnummer"
80
  "Validate bank code","Prüfe Bankverbindung"
81
+ "List of supported SEPA countries","Liste der unterstützten Kontoländer"
82
+ "Show additional account number/bank code number","Zusätzlich Kontonummer/Bankleitzahl anzeigen"
83
+ "Only for German accounts","Nur bei Deutschen Konten"
84
+ "Mandate enabled","Mandatserteilung aktivieren"
85
+ "Pay request 'managemandate', includes bankaccountcheck. No query of the POS block list is possible","Der Kostenpflichtiger Request 'managemandate', beinhaltet einen bankaccountcheck. Keine Abfrage der POS-Sperrliste ist möglich"
86
+ "Mandate download enabled","Download Mandat als PDF"
87
+ "Can be selected only if the product in PAYONE was posted 'SEPA-Mandate as PDF'", "Diese Option kann nur ausgewählt werden, wenn bei PAYONE das Produkt 'SEPA-Mandate als PDF' gebucht wurde"
88
+ "Your mandate as PDF","Ihr Mandat als PDF"
89
  "Bank code validation type", "Art der Bankverbindungsprüfung"
90
  "Banktransfer-Type","Überweisungsart"
91
  "Requires PAYONE API access.","Benötigt PAYONE API-Zugang"
215
  "Account holder","Kontoinhaber"
216
  "Account number","Kontonummer"
217
  "Bank code","Bankleitzahl"
218
+ "Bank country","Land der Bank"
219
+ "I want to grant the mandate (transmitted electronically)","Ich möchte das Mandat erteilen (elektronische Übermittlung)"
220
 
221
  "PAYONE successfully processed the payment-request.","Die Zahlungsanfrage wurde von PAYONE erfolgreich bearbeitet"
222
  "PAYONE successfully processed and confirmed the payment-request.","Die Zahlungsanfrage wurde von PAYONE erfolgreich bearbeitet und bestätigt."
335
  "Account holder: %s","Kontoinhaber: %s"
336
  "Account number: xxx%s","Kontonummer: xxx%s"
337
  "Bank code: %s","Bankleitzahl: %s"
338
+ "or enter your bank account data (only for German accounts):","oder bezahlen Sie wie gewohnt mit Ihren bekannten Kontodaten (nur für Deutsche Kontoverbindungen):"
339
+
340
+ "Bank code must contain 8 digits","Bankleitzahl muss 8 Ziffern enthalten"
341
+ "IBAN should contain only letters and digits","IBAN sollte nur Buchstaben und Ziffern enthalten"
342
+ "BIC can contain only 8-11 characters (letters and digits)","BIC kann nur aus 8-11 Zeichen bestehen (Buchstaben und Ziffern)"
343
 
344
  "Online bank transfer type","Typ"
345
 
378
  "BANKACCOUNTCHECK","Bankdatenprüfung (bankaccountcheck)"
379
  "CREDITCARDCHECK","Kreditkartenprüfung (creditcardcheck)"
380
  "GETINVOICE","Rechnungsdownload (getinvoice)"
381
+ "MANAGEMANDATE","Mandatserteilung (managemandate)"
382
+ "GETFILE","Download Mandat als PDF (getfile)"
383
 
384
  "INSTANT_MONEY_TRANSFER","Sofort-Überweisung"
385
  "GIROPAY","giropay"
415
 
416
  "CFR","Commerz Finanz"
417
  "BSV","BillSAFE"
418
+ "KLV","Klarna"
419
  "INFOSCORE_HARD","Infoscore (Harte Merkmale)"
420
  "INFOSCORE_ALL","Infoscore (Alle Merkmale)"
421
  "INFOSCORE_ALL_BONI","Infoscore (Alle Merkmale + Boniscore)"
493
  "VAUTHORIZATION","Buchung (vauthorization)"
494
  "VSETTLEMENT","Abrechnung (vsettlement)"
495
  "TRANSFER","Umbuchung (transfer)"
496
+ "INVOICE","Rechnungsbeleg (invoice)"
497
+
498
+ "Date of birth (DD MM YYYY)","Geburtsdatum (TT MM JJJJ)"
499
+ "Gender","Geschlecht"
500
+ "House number extension (billing address)","Adresszusatz (Rechnungsadresse)"
501
+ "House number extension (shipping address)","Adresszusatz (Lieferadresse)"
app/locale/en_US/Payone_Core.csv CHANGED
@@ -18,4 +18,5 @@
18
  "IDL", "IDEAL"
19
 
20
  "CFR","Commerz Finanz"
21
- "BSV","BillSAFE"
 
18
  "IDL", "IDEAL"
19
 
20
  "CFR","Commerz Finanz"
21
+ "BSV","BillSAFE"
22
+ "KLV","Klarna"
js/payone/core/creditcard.js CHANGED
@@ -283,7 +283,7 @@ PAYONE.Validation.CreditCard = function (config) {
283
  var year = $('payone_creditcard_cc_expiration_year').value;
284
  var validityCc = new Date(year, v, 1); // Start of next month
285
 
286
- return validityCc > this.options.get('config').allowed_validity;
287
  };
288
 
289
  /**
283
  var year = $('payone_creditcard_cc_expiration_year').value;
284
  var validityCc = new Date(year, v, 1); // Start of next month
285
 
286
+ return validityCc.getTime() > this.options.get('config').allowed_validity * 1000; // milliseconds vs. seconds
287
  };
288
 
289
  /**
js/payone/core/debitpayment.js ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * This source file is subject to the GNU General Public License (GPL 3)
6
+ * that is bundled with this package in the file LICENSE.txt
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
11
+ * versions in the future. If you wish to customize Payone_Core for your
12
+ * needs please refer to http://www.payone.de for more information.
13
+ *
14
+ * @category Payone
15
+ * @package js
16
+ * @subpackage payone
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ function showBankData(code, configShowBankData) {
24
+ var bankCountry = $(code + '_bank_country').getValue();
25
+ if (configShowBankData && configShowBankData == 1) {
26
+ if (bankCountry == "DE") {
27
+ $('input_box_payone_account_number').show();
28
+ $('input_box_payone_bank_code').show();
29
+ } else {
30
+ $('input_box_payone_account_number').hide();
31
+ $('input_box_payone_bank_code').hide();
32
+ }
33
+ }
34
+ }
35
+
36
+ /**
37
+ *
38
+ * @param code
39
+ */
40
+ function checkIbanCountryCode(code) {
41
+ var ibanEl = $(code + '_sepa_iban');
42
+ if (!ibanEl || typeof ibanEl === 'undefined') {
43
+ return;
44
+ }
45
+ var bankCountryEl = $(code + '_bank_country');
46
+ if (!bankCountryEl || typeof bankCountryEl === 'undefined') {
47
+ return;
48
+ }
49
+ var bankCountryCode = bankCountryEl.value;
50
+ var value = ibanEl.value;
51
+ if (value.length < 2) {
52
+ return;
53
+ }
54
+ var countryCode = value.substring(0, 2).toUpperCase();
55
+ var validationAdvice = $("advice-validate-sepa-iban-countrycode");
56
+ if (countryCode != bankCountryCode) {
57
+ ibanEl.value = "";
58
+ ibanEl.addClassName("validation-failed");
59
+ if (!validationAdvice || typeof validationAdvice === 'undefined') {
60
+ var valText = Translator.translate("Entered IBAN is not valid for selected bank country");
61
+ ibanEl.insert({
62
+ after: '<div class="validation-advice" id="advice-validate-sepa-iban-countrycode">' + valText + '</div>'
63
+ });
64
+ }
65
+ } else {
66
+ ibanEl.removeClassName('validation-failed');
67
+ if (validationAdvice && typeof validationAdvice !== 'undefined') {
68
+ validationAdvice.remove();
69
+ }
70
+ }
71
+ }
72
+
73
+ function disableElement(element) {
74
+ element.value = '';
75
+ element.disabled = true;
76
+ element.removeClassName('required-entry');
77
+ element.removeClassName('validation-failed');
78
+ var validationHint = element.next('div .validation-advice');
79
+ if (typeof validationHint !== 'undefined') {
80
+ validationHint.remove();
81
+ }
82
+ }
83
+
84
+ function enableElement(element) {
85
+ element.disabled = false;
86
+ element.toggleClassName('require-entry');
87
+ }
88
+
89
+ function blockPaymentMethodInputs(code, configShowBankData) {
90
+ var input_sepa_iban_el = $(code + '_sepa_iban');
91
+ var input_sepa_bic_el = $(code + '_sepa_bic');
92
+ var input_account_number_el = $(code + '_account_number');
93
+ var input_bank_code_el = $(code + '_bank_code');
94
+
95
+ if (input_sepa_iban_el.value != ''
96
+ && Validation.get('validate-sepa-iban').test(input_sepa_iban_el.value) == true
97
+ && input_sepa_bic_el.value != ''
98
+ && Validation.get('validate-sepa-bic').test(input_sepa_bic_el.value) == true) {
99
+ disableElement(input_account_number_el);
100
+ $('input_box_payone_account_number').hide();
101
+ disableElement(input_bank_code_el);
102
+ $('input_box_payone_bank_code').hide();
103
+ } else {
104
+ enableElement(input_account_number_el);
105
+ enableElement(input_bank_code_el);
106
+ showBankData(code, configShowBankData);
107
+ }
108
+
109
+ if (input_account_number_el.value != ''
110
+ && Validation.get('validate-digits').test(input_account_number_el.value) == true
111
+ && input_bank_code_el.value != ''
112
+ && Validation.get('validate-bank-code').test(input_bank_code_el.value) == true
113
+ && Validation.get('validate-digits').test(input_bank_code_el.value) == true) {
114
+ disableElement(input_sepa_iban_el);
115
+ $('input_box_payone_sepa_iban').hide();
116
+ disableElement(input_sepa_bic_el);
117
+ $('input_box_payone_sepa_bic').hide();
118
+ } else {
119
+ enableElement(input_sepa_iban_el);
120
+ $('input_box_payone_sepa_iban').show();
121
+ enableElement(input_sepa_bic_el);
122
+ $('input_box_payone_sepa_bic').show();
123
+ }
124
+ }
125
+
126
+ /**
127
+ *
128
+ * @param checkboxEl
129
+ */
130
+ function changeSubmitButtonStatus(checkboxEl) {
131
+ if (checkboxEl.checked) {
132
+ $$('.btn-checkout')[0].enable();
133
+ $$('.btn-checkout')[0].show();
134
+ } else {
135
+ $$('.btn-checkout')[0].disable();
136
+ $$('.btn-checkout')[0].hide();
137
+ }
138
+ }
js/payone/core/klarna.js ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * This source file is subject to the GNU General Public License (GPL 3)
6
+ * that is bundled with this package in the file LICENSE.txt
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
11
+ * versions in the future. If you wish to customize Payone_Core for your
12
+ * needs please refer to http://www.payone.de for more information.
13
+ *
14
+ * @category Payone
15
+ * @package js
16
+ * @subpackage payone
17
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
18
+ * @author Alexander Dite <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ function payoneKlarnaCustomerDobInput()
24
+ {
25
+ var daySelect = $('payone_klarna_additional_fields_customer_dob_day');
26
+ var monthSelect = $('payone_klarna_additional_fields_customer_dob_month');
27
+ var yearSelect = $('payone_klarna_additional_fields_customer_dob_year');
28
+
29
+ var hiddenDobFull = $('payone_klarna_additional_fields_customer_dob_full');
30
+
31
+ if (daySelect == undefined || monthSelect == undefined || yearSelect == undefined
32
+ || hiddenDobFull == undefined) {
33
+ return;
34
+ }
35
+
36
+ hiddenDobFull.value = yearSelect.value + "-" + monthSelect.value + "-" + daySelect.value
37
+ + " 00:00:00";
38
+ }
js/payone/core/onlinebanktransfer.js CHANGED
@@ -21,10 +21,13 @@
21
  */
22
 
23
  /**
 
24
  * @param element
 
 
25
  */
26
- function payoneSwitchOnlineBankTransfer(element) {
27
- if(element == undefined){
28
  return;
29
  }
30
  var ElementValue = element.value;
@@ -37,20 +40,33 @@ function payoneSwitchOnlineBankTransfer(element) {
37
 
38
  var accountNumberWrap = $('account_number_wrap');
39
  var bankCodeWrap = $('bank_code_wrap');
 
 
40
  var bankGroupWrapAt = $('bank_group_wrap_at');
41
  var bankGroupWrapNl = $('bank_group_wrap_nl');
42
 
43
  var accountNumberInput = $('payone_online_bank_transfer_account_number');
44
  var bankCodeInput = $('payone_online_bank_transfer_bank_code');
 
 
45
  var bankGroupSelectAt = $('payone_online_bank_transfer_bank_group_at');
46
  var bankGroupSelectNl = $('payone_online_bank_transfer_bank_group_nl');
47
 
48
  if (ElementValue == '' || typeCode == 'PFF' || typeCode == 'PFC') {
49
  disableAll();
50
- } else if (typeCode == 'PNT' || typeCode == 'GPY') {
 
 
 
 
 
 
 
 
 
51
  disableAll();
52
- enableAccountNumber();
53
- enableBankCode()
54
  } else if (typeCode == 'EPS') {
55
  disableAll();
56
  enableBankGroupAt();
@@ -64,6 +80,10 @@ function payoneSwitchOnlineBankTransfer(element) {
64
  accountNumberInput.setAttribute("disabled", "disabled");
65
  bankCodeWrap.hide();
66
  bankCodeInput.setAttribute("disabled", "disabled");
 
 
 
 
67
  bankGroupWrapAt.hide();
68
  bankGroupSelectAt.setAttribute("disabled", "disabled");
69
  bankGroupWrapNl.hide();
@@ -80,6 +100,16 @@ function payoneSwitchOnlineBankTransfer(element) {
80
  bankCodeInput.removeAttribute("disabled");
81
  }
82
 
 
 
 
 
 
 
 
 
 
 
83
  function enableBankGroupAt() {
84
  bankGroupWrapAt.show();
85
  bankGroupSelectAt.removeAttribute("disabled");
@@ -90,25 +120,3 @@ function payoneSwitchOnlineBankTransfer(element) {
90
  bankGroupSelectNl.removeAttribute("disabled");
91
  }
92
  }
93
-
94
- Event.observe(document, "dom:loaded", function () {
95
- payoneSwitchOnlineBankTransfer($('payone_online_bank_transfer_obt_type_select'));
96
- });
97
- Event.observe(document, "dom:ready", function () {
98
- payoneSwitchOnlineBankTransfer($('payone_online_bank_transfer_obt_type_select'));
99
- });
100
-
101
- // we need to call the switch method after refreshing payment section via ajax
102
- // unfortunately there is no specific property to identify the needed ajax request
103
- Ajax.Responders.register({
104
- onComplete: function(transport, element) {
105
- var typeSelect = $('payone_online_bank_transfer_obt_type_select');
106
- if (typeSelect == undefined) {
107
- return;
108
- }
109
- var url = element.request.url;
110
- if (url.indexOf('checkout/onepage/saveShippingMethod') !== -1 || url.indexOf('checkout/onepage/progress') !== 1) {
111
- payoneSwitchOnlineBankTransfer(typeSelect);
112
- }
113
- }
114
- });
21
  */
22
 
23
  /**
24
+ *
25
  * @param element
26
+ * @param country
27
+ * @param currency
28
  */
29
+ function payoneSwitchOnlineBankTransfer(element, country, currency) {
30
+ if (element == undefined) {
31
  return;
32
  }
33
  var ElementValue = element.value;
40
 
41
  var accountNumberWrap = $('account_number_wrap');
42
  var bankCodeWrap = $('bank_code_wrap');
43
+ var sepaIbanWrap = $('sepa_iban_wrap');
44
+ var sepaBicWrap = $('sepa_bic_wrap');
45
  var bankGroupWrapAt = $('bank_group_wrap_at');
46
  var bankGroupWrapNl = $('bank_group_wrap_nl');
47
 
48
  var accountNumberInput = $('payone_online_bank_transfer_account_number');
49
  var bankCodeInput = $('payone_online_bank_transfer_bank_code');
50
+ var sepaIbanInput = $('payone_online_bank_transfer_sepa_iban');
51
+ var sepaBicInput = $('payone_online_bank_transfer_sepa_bic');
52
  var bankGroupSelectAt = $('payone_online_bank_transfer_bank_group_at');
53
  var bankGroupSelectNl = $('payone_online_bank_transfer_bank_group_nl');
54
 
55
  if (ElementValue == '' || typeCode == 'PFF' || typeCode == 'PFC') {
56
  disableAll();
57
+ } else if (typeCode == 'PNT') {
58
+ disableAll();
59
+ if (country == 'CH' && currency == 'CHF') {
60
+ enableAccountNumber();
61
+ enableBankCode();
62
+ } else {
63
+ enableSepaIban();
64
+ enableSepaBic();
65
+ }
66
+ } else if (typeCode == 'GPY') {
67
  disableAll();
68
+ enableSepaIban();
69
+ enableSepaBic();
70
  } else if (typeCode == 'EPS') {
71
  disableAll();
72
  enableBankGroupAt();
80
  accountNumberInput.setAttribute("disabled", "disabled");
81
  bankCodeWrap.hide();
82
  bankCodeInput.setAttribute("disabled", "disabled");
83
+ sepaIbanWrap.hide();
84
+ sepaIbanInput.setAttribute("disabled", "disabled");
85
+ sepaBicWrap.hide();
86
+ sepaBicInput.setAttribute("disabled", "disabled");
87
  bankGroupWrapAt.hide();
88
  bankGroupSelectAt.setAttribute("disabled", "disabled");
89
  bankGroupWrapNl.hide();
100
  bankCodeInput.removeAttribute("disabled");
101
  }
102
 
103
+ function enableSepaIban() {
104
+ sepaIbanWrap.show();
105
+ sepaIbanInput.removeAttribute("disabled");
106
+ }
107
+
108
+ function enableSepaBic() {
109
+ sepaBicWrap.show();
110
+ sepaBicInput.removeAttribute("disabled");
111
+ }
112
+
113
  function enableBankGroupAt() {
114
  bankGroupWrapAt.show();
115
  bankGroupSelectAt.removeAttribute("disabled");
120
  bankGroupSelectNl.removeAttribute("disabled");
121
  }
122
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/payone/core/safe_invoice.js CHANGED
@@ -25,10 +25,50 @@
25
  */
26
  function payoneSwitchSafeInvoice(element)
27
  {
 
 
 
 
28
  var ElementValue = element.value;
29
  var ElementValueSplit = ElementValue.split('_');
30
  var typeId = ElementValueSplit[0];
31
  var typeCode = ElementValueSplit[1];
32
- $("payone_financing_sin_type").setValue(typeCode);
33
- $("payone_financing_config_id").setValue(typeId);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  */
26
  function payoneSwitchSafeInvoice(element)
27
  {
28
+ if (element == undefined) {
29
+ return;
30
+ }
31
+
32
  var ElementValue = element.value;
33
  var ElementValueSplit = ElementValue.split('_');
34
  var typeId = ElementValueSplit[0];
35
  var typeCode = ElementValueSplit[1];
36
+ $("payone_safe_invoice_sin_type").setValue(typeCode);
37
+ $("payone_safe_invoice_config_id").setValue(typeId);
38
+
39
+ var divOne = $('payone_klarna_invoice_terms_div');
40
+ var divTwo = $('payone_klarna_additional_fields');
41
+
42
+ if (divOne == undefined || divTwo == undefined) {
43
+ return;
44
+ }
45
+
46
+ if (typeCode == 'KLV'){
47
+ divOne.show();
48
+ divTwo.show();
49
+ } else {
50
+ divOne.hide();
51
+ divTwo.hide();
52
+ }
53
  }
54
+
55
+ Event.observe(document, "dom:loaded", function() {
56
+ payoneSwitchSafeInvoice($('payone_safe_invoice_sin_type_select'));
57
+ });
58
+
59
+ Event.observe(document, "dom:ready", function() {
60
+ payoneSwitchSafeInvoice($('payone_safe_invoice_sin_type_select'));
61
+ });
62
+
63
+ Ajax.Responders.register({
64
+ onComplete: function(transport, element) {
65
+ var typeSelect = $('payone_safe_invoice_sin_type_select');
66
+ if (typeSelect == undefined) {
67
+ return;
68
+ }
69
+ var url = element.request.url;
70
+ if (url.indexOf('checkout/onepage/saveShippingMethod') !== -1 || url.indexOf('checkout/onepage/progress') !== 1) {
71
+ payoneSwitchSafeInvoice(typeSelect);
72
+ }
73
+ }
74
+ });
js/payone/core/sepa_input.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * This source file is subject to the GNU General Public License (GPL 3)
6
+ * that is bundled with this package in the file LICENSE.txt
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
11
+ * versions in the future. If you wish to customize Payone_Core for your
12
+ * needs please refer to http://www.payone.de for more information.
13
+ *
14
+ * @category Payone
15
+ * @package js
16
+ * @subpackage payone
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @param input
26
+ */
27
+ function inputToUpperCase(input) {
28
+ var caretPosition = getCaretPos(input);
29
+ input.value = input.value.toUpperCase().replace(/\s/g, '');
30
+ setCaretPos(input, caretPosition);
31
+ }
32
+
33
+ /**
34
+ *
35
+ * @param oField
36
+ * @returns {number}
37
+ */
38
+ function getCaretPos(oField) {
39
+ var iCaretPos = 0;
40
+ if (Prototype.Browser.IE) {
41
+ var oSel = document.selection.createRange();
42
+ oSel.moveStart('character', -oField.value.length);
43
+ iCaretPos = oSel.text.length;
44
+ } else {
45
+ iCaretPos = oField.selectionEnd;
46
+ }
47
+ return iCaretPos;
48
+ }
49
+
50
+ /**
51
+ *
52
+ * @param oField
53
+ * @param iCaretPos
54
+ */
55
+ function setCaretPos(oField, iCaretPos) {
56
+ if (Prototype.Browser.IE) {
57
+ var oSel = document.selection.createRange();
58
+ oSel.moveStart('character', -oField.value.length);
59
+ oSel.moveStart('character', iCaretPos);
60
+ oSel.moveEnd('character', 0);
61
+ oSel.select();
62
+ } else {
63
+ oField.selectionStart = iCaretPos;
64
+ oField.selectionEnd = iCaretPos;
65
+ oField.focus();
66
+ }
67
+ }
js/payone/core/sepa_validation.js ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * This source file is subject to the GNU General Public License (GPL 3)
6
+ * that is bundled with this package in the file LICENSE.txt
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
11
+ * versions in the future. If you wish to customize Payone_Core for your
12
+ * needs please refer to http://www.payone.de for more information.
13
+ *
14
+ * @category Payone
15
+ * @package js
16
+ * @subpackage payone
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ var Translator = new Translate([]);
24
+
25
+ Validation.add('validate-bank-code', Translator.translate('Bank code must contain 8 digits'), function (value) {
26
+ value = value.replace(/\s/g, '');
27
+ if (value == '') {
28
+ return true;
29
+ }
30
+ if (value.length != 8) {
31
+ return false;
32
+ }
33
+ return true;
34
+ });
35
+
36
+ Validation.add('validate-sepa-iban', Translator.translate('IBAN should contain only letters and digits'), function (value) {
37
+ value = value.replace(/\s/g, '');
38
+ if (value == '') {
39
+ return true;
40
+ }
41
+ if (!/[a-zA-Z]{2}[A-Za-z0-9]{10,}$/.test(value)) {
42
+ return false;
43
+ }
44
+ return true;
45
+ });
46
+
47
+ Validation.add('validate-sepa-bic', Translator.translate('BIC can contain only 8-11 characters: digits and letters'), function (value) {
48
+ value = value.replace(/\s/g, '');
49
+ if (value == '') {
50
+ return true;
51
+ }
52
+ if (!/[A-Za-z0-9]{8,11}$/.test(value)) {
53
+ return false;
54
+ }
55
+ return true;
56
+ });
lib/Payone/Api/Enum/AccessAction.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AccessAction
34
+ {
35
+ const UPDATE = 'update';
36
+ const CANCEL = 'cancel';
37
+ const REVERSE_CANCEL = 'reverse_cancel';
38
+ const LOCK = 'lock';
39
+ const UNLOCK = 'unlock';
40
+ }
lib/Payone/Api/Enum/FileFormat.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Enum
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Enum
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_Api_Enum_FileFormat
32
+ {
33
+ const PDF = 'PDF';
34
+ }
lib/Payone/Api/Enum/FileType.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Enum
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Enum
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_Api_Enum_FileType
32
+ {
33
+ const SEPA_MANDATE = 'SEPA_MANDATE';
34
+ }
lib/Payone/Api/Enum/FinancingType.php CHANGED
@@ -34,4 +34,5 @@ class Payone_Api_Enum_FinancingType
34
  {
35
  const BSV = 'BSV'; // BILLSAFE
36
  const CFR = 'CFR'; // COMMERZ FINANZ
 
37
  }
34
  {
35
  const BSV = 'BSV'; // BILLSAFE
36
  const CFR = 'CFR'; // COMMERZ FINANZ
37
+ const KLV = 'KLV'; // KLARNA INVOICING
38
  }
lib/Payone/Api/Enum/Gender.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Gender
34
+ {
35
+ const FEMALE = 'f';
36
+ const MALE = 'm';
37
+ }
lib/Payone/Api/Enum/PayoutOpenBalance.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_PayoutOpenBalance
34
+ {
35
+ const YES = 'yes';
36
+ const NO = 'no';
37
+ }
lib/Payone/Api/Enum/PeriodUnit.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_PeriodUnit
34
+ {
35
+ const YEAR = 'Y';
36
+ const MONTH = 'M';
37
+ const DAY = 'D';
38
+ }
lib/Payone/Api/Enum/PeriodUnitRecurring.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_PeriodUnitRecurring
34
+ {
35
+ const YEAR = 'Y';
36
+ const MONTH = 'M';
37
+ const DAY = 'D';
38
+ const NONE = 'N';
39
+ }
lib/Payone/Api/Enum/RequestType.php CHANGED
@@ -43,4 +43,9 @@ class Payone_Api_Enum_RequestType
43
  const BANKACCOUNTCHECK = 'bankaccountcheck';
44
  const CREDITCARDCHECK = 'creditcardcheck';
45
  const GETINVOICE = 'getinvoice';
 
 
 
 
 
46
  }
43
  const BANKACCOUNTCHECK = 'bankaccountcheck';
44
  const CREDITCARDCHECK = 'creditcardcheck';
45
  const GETINVOICE = 'getinvoice';
46
+ const CREATEACCESS = 'createaccess';
47
+ const UPDATEACCESS = 'updateaccess';
48
+ const MANAGEMANDATE = 'managemandate';
49
+ const GETFILE = 'getfile';
50
+ const VAUTHORIZATION = 'vauthorization';
51
  }
lib/Payone/Api/Factory.php CHANGED
@@ -152,6 +152,36 @@ class Payone_Api_Factory
152
  return $mapper;
153
  }
154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  /**
156
  * @return Payone_Api_Mapper_Response_Preauthorization
157
  */
@@ -252,6 +282,51 @@ class Payone_Api_Factory
252
  return $mapper;
253
  }
254
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  /**
256
  * @return Payone_Api_Service_Payment_Preauthorize
257
  */
@@ -401,6 +476,71 @@ class Payone_Api_Factory
401
 
402
  }
403
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  /**
405
  * @return Payone_Api_Service_ProtocolRequest
406
  */
152
  return $mapper;
153
  }
154
 
155
+ /**
156
+ * @return Payone_Api_Mapper_Request_Payment_Vauthorization
157
+ */
158
+ public function buildMapperRequestVauthorize()
159
+ {
160
+ $mapper = new Payone_Api_Mapper_Request_Payment_Vauthorization();
161
+ $mapper->setMapperCurrency($this->buildMapperCurrency());
162
+ return $mapper;
163
+ }
164
+
165
+ /**
166
+ * @return Payone_Api_Mapper_Request_Payment_CreateAccess
167
+ */
168
+ public function buildMapperRequestCreateAccess()
169
+ {
170
+ $mapper = new Payone_Api_Mapper_Request_Payment_CreateAccess();
171
+ $mapper->setMapperCurrency($this->buildMapperCurrency());
172
+ return $mapper;
173
+ }
174
+
175
+ /**
176
+ * @return Payone_Api_Mapper_Request_Management_UpdateAccess
177
+ */
178
+ public function buildMapperRequestUpdateAccess()
179
+ {
180
+ $mapper = new Payone_Api_Mapper_Request_Management_UpdateAccess();
181
+ $mapper->setMapperCurrency($this->buildMapperCurrency());
182
+ return $mapper;
183
+ }
184
+
185
  /**
186
  * @return Payone_Api_Mapper_Response_Preauthorization
187
  */
282
  return $mapper;
283
  }
284
 
285
+ /**
286
+ * @return Payone_Api_Mapper_Response_GetFile
287
+ */
288
+ protected function buildMapperResponseGetFile()
289
+ {
290
+ $mapper = new Payone_Api_Mapper_Response_GetFile();
291
+ return $mapper;
292
+ }
293
+
294
+ /**
295
+ * @return Payone_Api_Mapper_Response_Vauthorization
296
+ */
297
+ public function buildMapperResponseVauthorize()
298
+ {
299
+ $mapper = new Payone_Api_Mapper_Response_Vauthorization();
300
+ return $mapper;
301
+ }
302
+
303
+ /**
304
+ * @return Payone_Api_Mapper_Response_CreateAccess
305
+ */
306
+ public function buildMapperResponseCreateAccess()
307
+ {
308
+ $mapper = new Payone_Api_Mapper_Response_CreateAccess();
309
+ return $mapper;
310
+ }
311
+
312
+ /**
313
+ * @return Payone_Api_Mapper_Response_UpdateAccess
314
+ */
315
+ public function buildMapperResponseUpdateAccess()
316
+ {
317
+ $mapper = new Payone_Api_Mapper_Response_UpdateAccess();
318
+ return $mapper;
319
+ }
320
+
321
+ /**
322
+ * @return Payone_Api_Mapper_Response_ManageMandate
323
+ */
324
+ public function buildMapperResponseManageMandate()
325
+ {
326
+ $mapper = new Payone_Api_Mapper_Response_ManageMandate();
327
+ return $mapper;
328
+ }
329
+
330
  /**
331
  * @return Payone_Api_Service_Payment_Preauthorize
332
  */
476
 
477
  }
478
 
479
+ /**
480
+ * @return Payone_Api_Service_Management_GetFile
481
+ */
482
+ public function buildServiceManagementGetFile()
483
+ {
484
+ $service = new Payone_Api_Service_Management_GetFile();
485
+ $service->setAdapter($this->buildHttpClient());
486
+ $service->setMapperResponse($this->buildMapperResponseGetFile());
487
+ $service->setValidator($this->buildValidatorDefault());
488
+ return $service;
489
+
490
+ }
491
+
492
+ /**
493
+ * @return Payone_Api_Service_Management_ManageMandate
494
+ */
495
+ public function buildServiceManagementManageMandate()
496
+ {
497
+ $service = new Payone_Api_Service_Management_ManageMandate();
498
+ $service->setAdapter($this->buildHttpClient());
499
+ $service->setMapperResponse($this->buildMapperResponseManageMandate());
500
+ $service->setValidator($this->buildValidatorDefault());
501
+ return $service;
502
+
503
+ }
504
+
505
+ /**
506
+ * @return Payone_Api_Service_Payment_Vauthorize
507
+ */
508
+ public function buildServicePaymentVauthorize()
509
+ {
510
+ $service = new Payone_Api_Service_Payment_Vauthorize();
511
+ $service->setAdapter($this->buildHttpClient());
512
+ $service->setMapperRequest($this->buildMapperRequestVauthorize());
513
+ $service->setMapperResponse($this->buildMapperResponseVauthorize());
514
+ $service->setValidator($this->buildValidatorDefault());
515
+ return $service;
516
+ }
517
+
518
+ /**
519
+ * @return Payone_Api_Service_Payment_CreateAccess
520
+ */
521
+ public function buildServicePaymentCreateAccess()
522
+ {
523
+ $service = new Payone_Api_Service_Payment_CreateAccess();
524
+ $service->setAdapter($this->buildHttpClient());
525
+ $service->setMapperRequest($this->buildMapperRequestCreateAccess());
526
+ $service->setMapperResponse($this->buildMapperResponseCreateAccess());
527
+ $service->setValidator($this->buildValidatorDefault());
528
+ return $service;
529
+ }
530
+
531
+ /**
532
+ * @return Payone_Api_Service_Management_UpdateAccess
533
+ */
534
+ public function buildServiceManagementUpdateAccess()
535
+ {
536
+ $service = new Payone_Api_Service_Management_UpdateAccess();
537
+ $service->setAdapter($this->buildHttpClient());
538
+ $service->setMapperRequest($this->buildMapperRequestUpdateAccess());
539
+ $service->setMapperResponse($this->buildMapperResponseUpdateAccess());
540
+ $service->setValidator($this->buildValidatorDefault());
541
+ return $service;
542
+ }
543
+
544
  /**
545
  * @return Payone_Api_Service_ProtocolRequest
546
  */
lib/Payone/Api/Mapper/Request/Management/UpdateAccess.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Management_UpdateAccess
34
+ extends Payone_Api_Mapper_Request_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_UpdateAccess */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ /**
47
+ * @param Payone_Api_Request_Interface $request
48
+ * @return bool
49
+ */
50
+ protected function mapAmount(Payone_Api_Request_Interface $request)
51
+ {
52
+ /** @var $request Payone_Api_Request_UpdateAccess */
53
+ $currency = $request->getCurrency();
54
+
55
+ $amountTrail = $request->getAmountTrail();
56
+ $mappedAmountTrail = $this->getMapperCurrency()->mapAmountToSub($amountTrail, $currency);
57
+ $request->setAmountTrail($mappedAmountTrail);
58
+
59
+ $amountRecurring = $request->getAmountRecurring();
60
+ $mappedAmountRecurring = $this->getMapperCurrency()->mapAmountToSub($amountRecurring, $currency);
61
+ $request->setAmountRecurring($mappedAmountRecurring);
62
+
63
+ return true;
64
+ }
65
+
66
+ /**
67
+ * @param Payone_Api_Request_Interface $request
68
+ * @return bool
69
+ */
70
+ protected function mapInvoicingData(Payone_Api_Request_Interface $request)
71
+ {
72
+ /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
73
+ /** @var $request Payone_Api_Request_UpdateAccess */
74
+ $invoicing = $request->getInvoicing();
75
+ if ($invoicing == null) {
76
+ return false;
77
+ }
78
+ if ($invoicing->hasItems()) {
79
+ $currency = $request->getCurrency();
80
+ $invoicingItems = $invoicing->getItems();
81
+ foreach ($invoicingItems as $item) {
82
+ /** @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item */
83
+ $priceTrail = $item->getPrTrail();
84
+ $mappedPriceTrail = $this->getMapperCurrency()->mapAmountToSub($priceTrail, $currency);
85
+ $item->setPrTrail($mappedPriceTrail);
86
+
87
+ $priceRecurring = $item->getPrRecurring();
88
+ $mappedPriceRecurring = $this->getMapperCurrency()->mapAmountToSub($priceRecurring, $currency);
89
+ $item->setPrRecurring($mappedPriceRecurring);
90
+ }
91
+ }
92
+ return true;
93
+ }
94
+
95
+ }
lib/Payone/Api/Mapper/Request/Payment/CreateAccess.php ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_CreateAccess
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_CreateAccess */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ /**
47
+ * @param Payone_Api_Request_Interface $request
48
+ * @return bool
49
+ */
50
+ protected function mapAmount(Payone_Api_Request_Interface $request)
51
+ {
52
+ /** @var $request Payone_Api_Request_CreateAccess */
53
+ $currency = $request->getCurrency();
54
+
55
+ $amountTrail = $request->getAmountTrail();
56
+ $mappedAmountTrail = $this->getMapperCurrency()->mapAmountToSub($amountTrail, $currency);
57
+ $request->setAmountTrail($mappedAmountTrail);
58
+
59
+ $amountRecurring = $request->getAmountRecurring();
60
+ $mappedAmountRecurring = $this->getMapperCurrency()->mapAmountToSub($amountRecurring, $currency);
61
+ $request->setAmountRecurring($mappedAmountRecurring);
62
+
63
+ return true;
64
+ }
65
+
66
+ /**
67
+ *
68
+ * @param Payone_Api_Request_Interface $request
69
+ * @return bool
70
+ */
71
+ protected function mapInvoicingData(Payone_Api_Request_Interface $request)
72
+ {
73
+ /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
74
+ /** @var $request Payone_Api_Request_CreateAccess */
75
+ $invoicing = $request->getInvoicing();
76
+ if ($invoicing == null) {
77
+ return false;
78
+ }
79
+ if ($invoicing->hasItems()) {
80
+ $currency = $request->getCurrency();
81
+ $invoicingItems = $invoicing->getItems();
82
+ foreach ($invoicingItems as $item) {
83
+ /** @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item */
84
+ $priceTrail = $item->getPrTrail();
85
+ $mappedPriceTrail = $this->getMapperCurrency()->mapAmountToSub($priceTrail, $currency);
86
+ $item->setPrTrail($mappedPriceTrail);
87
+
88
+ $priceRecurring = $item->getPrRecurring();
89
+ $mappedPriceRecurring = $this->getMapperCurrency()->mapAmountToSub($priceRecurring, $currency);
90
+ $item->setPrRecurring($mappedPriceRecurring);
91
+ }
92
+ }
93
+ return true;
94
+ }
95
+
96
+ }
lib/Payone/Api/Mapper/Request/Payment/Vauthorization.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_Vauthorization
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_Vauthorization */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ }
lib/Payone/Api/Mapper/Response/Abstract.php CHANGED
@@ -122,6 +122,18 @@ abstract class Payone_Api_Mapper_Response_Abstract extends Payone_Api_Mapper_Abs
122
  return false;
123
  }
124
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  /**
126
  * @param array $responseRaw
127
  */
122
  return false;
123
  }
124
 
125
+ /**
126
+ * @return bool
127
+ */
128
+ protected function isOk()
129
+ {
130
+ $status = $this->getParam('status');
131
+ if ($status === 'OK') {
132
+ return true;
133
+ }
134
+ return false;
135
+ }
136
+
137
  /**
138
  * @param array $responseRaw
139
  */
lib/Payone/Api/Mapper/Response/CreateAccess.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_CreateAccess
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isApproved()) {
49
+ $response = new Payone_Api_Response_CreateAccess_Approved($params);
50
+ }
51
+ elseif ($this->isError()) {
52
+ $response = new Payone_Api_Response_Error($params);
53
+ }
54
+ else {
55
+ throw new Payone_Api_Exception_UnknownStatus();
56
+ }
57
+
58
+ return $response;
59
+ }
60
+
61
+ }
lib/Payone/Api/Mapper/Response/GetFile.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_GetFile
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Management_GetFile|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isError()) {
49
+ $response = new Payone_Api_Response_Error($params);
50
+ }
51
+ elseif (empty($params) || $this->isApproved() || $this->isBlocked() || $this->isEnrolled() ||
52
+ $this->isInvalid() || $this->isRedirect() || $this->isValid()
53
+ ) {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+ else {
57
+ $params = array('response' => $params);
58
+ $response = new Payone_Api_Response_Management_GetFile($params);
59
+ $response->setStatus(Payone_Api_Enum_ResponseType::VALID);
60
+ }
61
+
62
+ return $response;
63
+ }
64
+ }
lib/Payone/Api/Mapper/Response/ManageMandate.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_ManageMandate
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isApproved()) {
48
+ $response = new Payone_Api_Response_Management_ManageMandate_Approved($params);
49
+ }
50
+ elseif ($this->isError()) {
51
+ $response = new Payone_Api_Response_Error($params);
52
+ }
53
+ else {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+
57
+ return $response;
58
+ }
59
+
60
+ }
lib/Payone/Api/Mapper/Response/UpdateAccess.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_UpdateAccess
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isOk()) {
49
+ $response = new Payone_Api_Response_Management_UpdateAccess_Ok($params);
50
+ }
51
+ elseif ($this->isError()) {
52
+ $response = new Payone_Api_Response_Error($params);
53
+ }
54
+ else {
55
+ throw new Payone_Api_Exception_UnknownStatus();
56
+ }
57
+
58
+ return $response;
59
+ }
60
+
61
+ }
lib/Payone/Api/Mapper/Response/Vauthorization.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Vauthorization
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isApproved()) {
48
+ $response = new Payone_Api_Response_Vauthorization_Approved($params);
49
+ }
50
+ elseif ($this->isError()) {
51
+ $response = new Payone_Api_Response_Error($params);
52
+ }
53
+ else {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+
57
+ return $response;
58
+ }
59
+
60
+ }
lib/Payone/Api/Request/BankAccountCheck.php CHANGED
@@ -45,15 +45,31 @@ class Payone_Api_Request_BankAccountCheck extends Payone_Api_Request_Abstract
45
  /**
46
  * @var string
47
  */
48
- protected $bankaccount = NULL;
49
  /**
50
  * @var string
51
  */
 
 
 
 
52
  protected $bankcode = NULL;
 
 
 
 
 
 
 
 
53
  /**
54
  * @var string
55
  */
56
- protected $bankcountry = NULL;
 
 
 
 
57
  /**
58
  * @var string
59
  */
@@ -75,6 +91,22 @@ class Payone_Api_Request_BankAccountCheck extends Payone_Api_Request_Abstract
75
  return $this->aid;
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  /**
79
  * @param string $bankaccount
80
  */
@@ -92,7 +124,39 @@ class Payone_Api_Request_BankAccountCheck extends Payone_Api_Request_Abstract
92
  }
93
 
94
  /**
95
- * @param string $bankcode
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  */
97
  public function setBankcode($bankcode)
98
  {
@@ -100,7 +164,7 @@ class Payone_Api_Request_BankAccountCheck extends Payone_Api_Request_Abstract
100
  }
101
 
102
  /**
103
- * @return string
104
  */
105
  public function getBankcode()
106
  {
@@ -124,19 +188,35 @@ class Payone_Api_Request_BankAccountCheck extends Payone_Api_Request_Abstract
124
  }
125
 
126
  /**
127
- * @param string $checktype
128
  */
129
- public function setChecktype($checktype)
130
  {
131
- $this->checktype = $checktype;
132
  }
133
 
134
  /**
135
  * @return string
136
  */
137
- public function getChecktype()
138
  {
139
- return $this->checktype;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  }
141
 
142
  /**
45
  /**
46
  * @var string
47
  */
48
+ protected $bankcountry = NULL;
49
  /**
50
  * @var string
51
  */
52
+ protected $bankaccount = NULL;
53
+ /**
54
+ * @var int
55
+ */
56
  protected $bankcode = NULL;
57
+ /**
58
+ * @var int
59
+ */
60
+ protected $bankbranchcode = NULL;
61
+ /**
62
+ * @var int
63
+ */
64
+ protected $bankcheckdigit = NULL;
65
  /**
66
  * @var string
67
  */
68
+ protected $iban = NULL;
69
+ /**
70
+ * @var string
71
+ */
72
+ protected $bic = NULL;
73
  /**
74
  * @var string
75
  */
91
  return $this->aid;
92
  }
93
 
94
+ /**
95
+ * @param string $checktype
96
+ */
97
+ public function setChecktype($checktype)
98
+ {
99
+ $this->checktype = $checktype;
100
+ }
101
+
102
+ /**
103
+ * @return string
104
+ */
105
+ public function getChecktype()
106
+ {
107
+ return $this->checktype;
108
+ }
109
+
110
  /**
111
  * @param string $bankaccount
112
  */
124
  }
125
 
126
  /**
127
+ * @param int $bankbranchcode
128
+ */
129
+ public function setBankbranchcode($bankbranchcode)
130
+ {
131
+ $this->bankbranchcode = $bankbranchcode;
132
+ }
133
+
134
+ /**
135
+ * @return int
136
+ */
137
+ public function getBankbranchcode()
138
+ {
139
+ return $this->bankbranchcode;
140
+ }
141
+
142
+ /**
143
+ * @param int $bankcheckdigit
144
+ */
145
+ public function setBankcheckdigit($bankcheckdigit)
146
+ {
147
+ $this->bankcheckdigit = $bankcheckdigit;
148
+ }
149
+
150
+ /**
151
+ * @return int
152
+ */
153
+ public function getBankcheckdigit()
154
+ {
155
+ return $this->bankcheckdigit;
156
+ }
157
+
158
+ /**
159
+ * @param int $bankcode
160
  */
161
  public function setBankcode($bankcode)
162
  {
164
  }
165
 
166
  /**
167
+ * @return int
168
  */
169
  public function getBankcode()
170
  {
188
  }
189
 
190
  /**
191
+ * @param string $iban
192
  */
193
+ public function setIban($iban)
194
  {
195
+ $this->iban = $iban;
196
  }
197
 
198
  /**
199
  * @return string
200
  */
201
+ public function getIban()
202
  {
203
+ return $this->iban;
204
+ }
205
+
206
+ /**
207
+ * @param string $bic
208
+ */
209
+ public function setBic($bic)
210
+ {
211
+ $this->bic = $bic;
212
+ }
213
+
214
+ /**
215
+ * @return string
216
+ */
217
+ public function getBic()
218
+ {
219
+ return $this->bic;
220
  }
221
 
222
  /**
lib/Payone/Api/Request/CreateAccess.php ADDED
@@ -0,0 +1,526 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_CreateAccess extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::CREATEACCESS;
36
+
37
+ /**
38
+ * Sub account ID
39
+ *
40
+ * @var int
41
+ */
42
+ protected $aid = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $clearingtype = NULL;
47
+ /**
48
+ * Merchant reference number for the payment process. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
49
+ *
50
+ * @var string
51
+ */
52
+ protected $reference = NULL;
53
+
54
+ /**
55
+ * Offer ID
56
+ *
57
+ * @var int
58
+ */
59
+ protected $productid = NULL;
60
+
61
+ /**
62
+ * Individual Parameter
63
+ *
64
+ * @var string
65
+ */
66
+ protected $param = NULL;
67
+
68
+ /**
69
+ * Username of customer
70
+ *
71
+ * @var string
72
+ */
73
+ protected $accessname = NULL;
74
+
75
+ /**
76
+ * Pass of customer
77
+ *
78
+ * @var string
79
+ */
80
+ protected $accesscode = NULL;
81
+
82
+ /**
83
+ * Startdate of access as unixtimestamp
84
+ *
85
+ * @var int
86
+ */
87
+ protected $access_starttime = NULL;
88
+
89
+ /**
90
+ * Expiredate of first term or timestamp of renewal as unixtimestamp
91
+ *
92
+ * @var int
93
+ */
94
+ protected $access_expiretime = NULL;
95
+
96
+ /**
97
+ * Canelationdate as unixtimestamp
98
+ *
99
+ * @var int
100
+ */
101
+ protected $access_canceltime = NULL;
102
+
103
+ /**
104
+ * Entire price of first term, must be equal to sum of amount * price. Must be in smallest currency unit
105
+ *
106
+ * @var int
107
+ */
108
+ protected $amount_trail = NULL;
109
+
110
+ /**
111
+ * Time unit of first term
112
+ *
113
+ * @var string
114
+ */
115
+ protected $period_unit_trail = NULL;
116
+
117
+ /**
118
+ * Lenght of first term
119
+ *
120
+ * @var int
121
+ */
122
+ protected $period_length_trail = NULL;
123
+
124
+ /**
125
+ * Entire price of all products in one renewal term. Must be in smallest currency unit
126
+ *
127
+ * @var int
128
+ */
129
+ protected $amount_recurring = NULL;
130
+
131
+ /**
132
+ * Time unit of renewal term
133
+ *
134
+ * @var string
135
+ */
136
+ protected $period_unit_recurring = NULL;
137
+
138
+ /**
139
+ * Length of renewal term
140
+ *
141
+ * @var int
142
+ */
143
+ protected $period_length_recurring = NULL;
144
+
145
+ /**
146
+ * Currency (ISO-4217)
147
+ *
148
+ * @var string
149
+ */
150
+ protected $currency = NULL;
151
+
152
+ /**
153
+ * @var Payone_Api_Request_Parameter_CreateAccess_Billing
154
+ */
155
+ protected $billing = null;
156
+ /**
157
+ * @var Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
158
+ */
159
+ protected $invoicing = null;
160
+ /**
161
+ * @var Payone_Api_Request_Parameter_CreateAccess_PersonalData
162
+ */
163
+ protected $personaldata = null;
164
+ /**
165
+ * @var Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
166
+ */
167
+ protected $payment = null;
168
+ /**
169
+ * @var Payone_Api_Request_Parameter_CreateAccess_3dsecure
170
+ */
171
+ protected $_3dsecure = null;
172
+
173
+
174
+ /**
175
+ * @param int $access_canceltime
176
+ */
177
+ public function setAccessCanceltime($access_canceltime)
178
+ {
179
+ $this->access_canceltime = $access_canceltime;
180
+ }
181
+
182
+ /**
183
+ * @return int
184
+ */
185
+ public function getAccessCanceltime()
186
+ {
187
+ return $this->access_canceltime;
188
+ }
189
+
190
+ /**
191
+ * @param int $access_expiretime
192
+ */
193
+ public function setAccessExpiretime($access_expiretime)
194
+ {
195
+ $this->access_expiretime = $access_expiretime;
196
+ }
197
+
198
+ /**
199
+ * @return int
200
+ */
201
+ public function getAccessExpiretime()
202
+ {
203
+ return $this->access_expiretime;
204
+ }
205
+
206
+ /**
207
+ * @param int $access_starttime
208
+ */
209
+ public function setAccessStarttime($access_starttime)
210
+ {
211
+ $this->access_starttime = $access_starttime;
212
+ }
213
+
214
+ /**
215
+ * @return int
216
+ */
217
+ public function getAccessStarttime()
218
+ {
219
+ return $this->access_starttime;
220
+ }
221
+
222
+ /**
223
+ * @param string $accesscode
224
+ */
225
+ public function setAccesscode($accesscode)
226
+ {
227
+ $this->accesscode = $accesscode;
228
+ }
229
+
230
+ /**
231
+ * @return string
232
+ */
233
+ public function getAccesscode()
234
+ {
235
+ return $this->accesscode;
236
+ }
237
+
238
+ /**
239
+ * @param string $accessname
240
+ */
241
+ public function setAccessname($accessname)
242
+ {
243
+ $this->accessname = $accessname;
244
+ }
245
+
246
+ /**
247
+ * @return string
248
+ */
249
+ public function getAccessname()
250
+ {
251
+ return $this->accessname;
252
+ }
253
+
254
+ /**
255
+ * @param int $aid
256
+ */
257
+ public function setAid($aid)
258
+ {
259
+ $this->aid = $aid;
260
+ }
261
+
262
+ /**
263
+ * @return int
264
+ */
265
+ public function getAid()
266
+ {
267
+ return $this->aid;
268
+ }
269
+
270
+ /**
271
+ * @param int $amount_recurring
272
+ */
273
+ public function setAmountRecurring($amount_recurring)
274
+ {
275
+ $this->amount_recurring = $amount_recurring;
276
+ }
277
+
278
+ /**
279
+ * @return int
280
+ */
281
+ public function getAmountRecurring()
282
+ {
283
+ return $this->amount_recurring;
284
+ }
285
+
286
+ /**
287
+ * @param int $amount_trail
288
+ */
289
+ public function setAmountTrail($amount_trail)
290
+ {
291
+ $this->amount_trail = $amount_trail;
292
+ }
293
+
294
+ /**
295
+ * @return int
296
+ */
297
+ public function getAmountTrail()
298
+ {
299
+ return $this->amount_trail;
300
+ }
301
+
302
+ /**
303
+ * @param string $clearingtype
304
+ */
305
+ public function setClearingtype($clearingtype)
306
+ {
307
+ $this->clearingtype = $clearingtype;
308
+ }
309
+
310
+ /**
311
+ * @return string
312
+ */
313
+ public function getClearingtype()
314
+ {
315
+ return $this->clearingtype;
316
+ }
317
+
318
+ /**
319
+ * @param string $param
320
+ */
321
+ public function setParam($param)
322
+ {
323
+ $this->param = $param;
324
+ }
325
+
326
+ /**
327
+ * @return string
328
+ */
329
+ public function getParam()
330
+ {
331
+ return $this->param;
332
+ }
333
+
334
+ /**
335
+ * @param int $period_length_recurring
336
+ */
337
+ public function setPeriodLengthRecurring($period_length_recurring)
338
+ {
339
+ $this->period_length_recurring = $period_length_recurring;
340
+ }
341
+
342
+ /**
343
+ * @return int
344
+ */
345
+ public function getPeriodLengthRecurring()
346
+ {
347
+ return $this->period_length_recurring;
348
+ }
349
+
350
+ /**
351
+ * @param int $period_length_trail
352
+ */
353
+ public function setPeriodLengthTrail($period_length_trail)
354
+ {
355
+ $this->period_length_trail = $period_length_trail;
356
+ }
357
+
358
+ /**
359
+ * @return int
360
+ */
361
+ public function getPeriodLengthTrail()
362
+ {
363
+ return $this->period_length_trail;
364
+ }
365
+
366
+ /**
367
+ * @param string $period_unit_recurring
368
+ */
369
+ public function setPeriodUnitRecurring($period_unit_recurring)
370
+ {
371
+ $this->period_unit_recurring = $period_unit_recurring;
372
+ }
373
+
374
+ /**
375
+ * @return string
376
+ */
377
+ public function getPeriodUnitRecurring()
378
+ {
379
+ return $this->period_unit_recurring;
380
+ }
381
+
382
+ /**
383
+ * @param string $period_unit_trail
384
+ */
385
+ public function setPeriodUnitTrail($period_unit_trail)
386
+ {
387
+ $this->period_unit_trail = $period_unit_trail;
388
+ }
389
+
390
+ /**
391
+ * @return string
392
+ */
393
+ public function getPeriodUnitTrail()
394
+ {
395
+ return $this->period_unit_trail;
396
+ }
397
+
398
+ /**
399
+ * @param int $productid
400
+ */
401
+ public function setProductid($productid)
402
+ {
403
+ $this->productid = $productid;
404
+ }
405
+
406
+ /**
407
+ * @return int
408
+ */
409
+ public function getProductid()
410
+ {
411
+ return $this->productid;
412
+ }
413
+
414
+ /**
415
+ * @param string $reference
416
+ */
417
+ public function setReference($reference)
418
+ {
419
+ $this->reference = $reference;
420
+ }
421
+
422
+ /**
423
+ * @return string
424
+ */
425
+ public function getReference()
426
+ {
427
+ return $this->reference;
428
+ }
429
+
430
+ /**
431
+ * @param \Payone_Api_Request_Parameter_CreateAccess_Billing $billing
432
+ */
433
+ public function setBilling(Payone_Api_Request_Parameter_CreateAccess_Billing $billing)
434
+ {
435
+ $this->billing = $billing;
436
+ }
437
+
438
+ /**
439
+ * @return \Payone_Api_Request_Parameter_CreateAccess_Billing
440
+ */
441
+ public function getBilling()
442
+ {
443
+ return $this->billing;
444
+ }
445
+
446
+ /**
447
+ * @param \Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction $invoicing
448
+ */
449
+ public function setInvoicing(Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction $invoicing)
450
+ {
451
+ $this->invoicing = $invoicing;
452
+ }
453
+
454
+ /**
455
+ * @return \Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
456
+ */
457
+ public function getInvoicing()
458
+ {
459
+ return $this->invoicing;
460
+ }
461
+
462
+ /**
463
+ * @param \Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract $payment
464
+ */
465
+ public function setPayment(Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract $payment)
466
+ {
467
+ $this->payment = $payment;
468
+ }
469
+
470
+ /**
471
+ * @return \Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
472
+ */
473
+ public function getPayment()
474
+ {
475
+ return $this->payment;
476
+ }
477
+
478
+ /**
479
+ * @param \Payone_Api_Request_Parameter_CreateAccess_PersonalData $personaldata
480
+ */
481
+ public function setPersonaldata(Payone_Api_Request_Parameter_CreateAccess_PersonalData $personaldata)
482
+ {
483
+ $this->personaldata = $personaldata;
484
+ }
485
+
486
+ /**
487
+ * @return \Payone_Api_Request_Parameter_CreateAccess_PersonalData
488
+ */
489
+ public function getPersonaldata()
490
+ {
491
+ return $this->personaldata;
492
+ }
493
+
494
+ /**
495
+ * @param \Payone_Api_Request_Parameter_CreateAccess_3dsecure $secure
496
+ */
497
+ public function set3dsecure(Payone_Api_Request_Parameter_CreateAccess_3dsecure $secure)
498
+ {
499
+ $this->_3dsecure = $secure;
500
+ }
501
+
502
+ /**
503
+ * @return \Payone_Api_Request_Parameter_CreateAccess_3dsecure
504
+ */
505
+ public function get3dsecure()
506
+ {
507
+ return $this->_3dsecure;
508
+ }
509
+
510
+ /**
511
+ * @param string $currency
512
+ */
513
+ public function setCurrency($currency)
514
+ {
515
+ $this->currency = $currency;
516
+ }
517
+
518
+ /**
519
+ * @return string
520
+ */
521
+ public function getCurrency()
522
+ {
523
+ return $this->currency;
524
+ }
525
+
526
+ }
lib/Payone/Api/Request/GetFile.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_GetFile extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::GETFILE;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $file_reference = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $file_type = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $file_format = NULL;
49
+
50
+
51
+ /**
52
+ * @param int $fileReference
53
+ */
54
+ public function setFileReference($fileReference)
55
+ {
56
+ $this->file_reference = $fileReference;
57
+ }
58
+
59
+ /**
60
+ * @return int
61
+ */
62
+ public function getFileReference()
63
+ {
64
+ return $this->file_reference;
65
+ }
66
+
67
+ /**
68
+ * @param string $fileType
69
+ */
70
+ public function setFileType($fileType)
71
+ {
72
+ $this->file_type = $fileType;
73
+ }
74
+
75
+ /**
76
+ * @return string
77
+ */
78
+ public function getFileType()
79
+ {
80
+ return $this->file_type;
81
+ }
82
+
83
+ /**
84
+ * @param string $fileFormat
85
+ */
86
+ public function setFileFormat($fileFormat)
87
+ {
88
+ $this->file_format = $fileFormat;
89
+ }
90
+
91
+ /**
92
+ * @return string
93
+ */
94
+ public function getFileFormat()
95
+ {
96
+ return $this->file_format;
97
+ }
98
+ }
lib/Payone/Api/Request/ManageMandate.php ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_ManageMandate extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::MANAGEMANDATE;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $aid = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $clearingtype = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $mandate_identification = NULL;
49
+ /**
50
+ * Currency (ISO 4217)
51
+ *
52
+ * @var string
53
+ */
54
+ protected $currency = NULL;
55
+
56
+
57
+ /**
58
+ * @var Payone_Api_Request_Parameter_ManageMandate_PersonalData
59
+ */
60
+ protected $personalData = null;
61
+ /**
62
+ * @var Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
63
+ */
64
+ protected $payment = null;
65
+
66
+ /**
67
+ * @param int $aid
68
+ */
69
+ public function setAid($aid)
70
+ {
71
+ $this->aid = $aid;
72
+ }
73
+
74
+ /**
75
+ * @return int
76
+ */
77
+ public function getAid()
78
+ {
79
+ return $this->aid;
80
+ }
81
+
82
+ /**
83
+ * @param string $clearingtype
84
+ */
85
+ public function setClearingtype($clearingtype)
86
+ {
87
+ $this->clearingtype = $clearingtype;
88
+ }
89
+
90
+ /**
91
+ * @return string
92
+ */
93
+ public function getClearingtype()
94
+ {
95
+ return $this->clearingtype;
96
+ }
97
+
98
+ /**
99
+ * @param string $mandateIdentification
100
+ */
101
+ public function setMandateIdentification($mandateIdentification)
102
+ {
103
+ $this->mandate_identification = $mandateIdentification;
104
+ }
105
+
106
+ /**
107
+ * @return string
108
+ */
109
+ public function getMandateIdentification()
110
+ {
111
+ return $this->mandate_identification;
112
+ }
113
+
114
+ /**
115
+ * @param string $currency
116
+ */
117
+ public function setCurrency($currency)
118
+ {
119
+ $this->currency = $currency;
120
+ }
121
+
122
+ /**
123
+ * @return string
124
+ */
125
+ public function getCurrency()
126
+ {
127
+ return $this->currency;
128
+ }
129
+
130
+ /**
131
+ * @param \Payone_Api_Request_Parameter_ManageMandate_PersonalData $personalData
132
+ */
133
+ public function setPersonalData($personalData)
134
+ {
135
+ $this->personalData = $personalData;
136
+ }
137
+
138
+ /**
139
+ * @return \Payone_Api_Request_Parameter_ManageMandate_PersonalData
140
+ */
141
+ public function getPersonalData()
142
+ {
143
+ return $this->personalData;
144
+ }
145
+
146
+ /**
147
+ * @param \Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract $payment
148
+ */
149
+ public function setPayment($payment)
150
+ {
151
+ $this->payment = $payment;
152
+ }
153
+
154
+ /**
155
+ * @return \Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
156
+ */
157
+ public function getPayment()
158
+ {
159
+ return $this->payment;
160
+ }
161
+ }
lib/Payone/Api/Request/Parameter/Authorization/DeliveryData.php CHANGED
@@ -70,6 +70,26 @@ class Payone_Api_Request_Parameter_Authorization_DeliveryData
70
  * @var string
71
  */
72
  protected $shipping_country = NULL;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
  /**
75
  * @param string $shipping_city
70
  * @var string
71
  */
72
  protected $shipping_country = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $shipping_addressaddition = NULL;
77
+
78
+ /**
79
+ * @param string $shipping_addressaddition
80
+ */
81
+ public function setShippingAddressaddition($shipping_addressaddition)
82
+ {
83
+ $this->shipping_addressaddition = $shipping_addressaddition;
84
+ }
85
+
86
+ /**
87
+ * @return string
88
+ */
89
+ public function getShippingAddressaddition()
90
+ {
91
+ return $this->shipping_addressaddition;
92
+ }
93
 
94
  /**
95
  * @param string $shipping_city
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/DebitPayment.php CHANGED
@@ -49,6 +49,18 @@ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_DebitPayment
49
  * @var string
50
  */
51
  protected $bankaccountholder = NULL;
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
  /**
54
  * @param string $bankaccount
@@ -113,4 +125,52 @@ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_DebitPayment
113
  {
114
  return $this->bankcountry;
115
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  }
49
  * @var string
50
  */
51
  protected $bankaccountholder = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $iban = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $bic = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $mandate_identification = NULL;
64
 
65
  /**
66
  * @param string $bankaccount
125
  {
126
  return $this->bankcountry;
127
  }
128
+
129
+ /**
130
+ * @param string $iban
131
+ */
132
+ public function setIban($iban)
133
+ {
134
+ $this->iban = $iban;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getIban()
141
+ {
142
+ return $this->iban;
143
+ }
144
+
145
+ /**
146
+ * @param string $bic
147
+ */
148
+ public function setBic($bic)
149
+ {
150
+ $this->bic = $bic;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getBic()
157
+ {
158
+ return $this->bic;
159
+ }
160
+
161
+ /**
162
+ * @param string $mandateIdentification
163
+ */
164
+ public function setMandateIdentification($mandateIdentification)
165
+ {
166
+ $this->mandate_identification = $mandateIdentification;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getMandateIdentification()
173
+ {
174
+ return $this->mandate_identification;
175
+ }
176
  }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/OnlineBankTransfer.php CHANGED
@@ -53,6 +53,14 @@ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_OnlineBankTransfe
53
  * @var string
54
  */
55
  protected $bankgrouptype = NULL;
 
 
 
 
 
 
 
 
56
  /**
57
  * @var string
58
  */
@@ -146,6 +154,38 @@ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_OnlineBankTransfe
146
  return $this->bankgrouptype;
147
  }
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  /**
150
  * @param string $errorurl
151
  */
53
  * @var string
54
  */
55
  protected $bankgrouptype = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $iban = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $bic = NULL;
64
  /**
65
  * @var string
66
  */
154
  return $this->bankgrouptype;
155
  }
156
 
157
+ /**
158
+ * @param string $iban
159
+ */
160
+ public function setIban($iban)
161
+ {
162
+ $this->iban = $iban;
163
+ }
164
+
165
+ /**
166
+ * @return string
167
+ */
168
+ public function getIban()
169
+ {
170
+ return $this->iban;
171
+ }
172
+
173
+ /**
174
+ * @param string $bic
175
+ */
176
+ public function setBic($bic)
177
+ {
178
+ $this->bic = $bic;
179
+ }
180
+
181
+ /**
182
+ * @return string
183
+ */
184
+ public function getBic()
185
+ {
186
+ return $this->bic;
187
+ }
188
+
189
  /**
190
  * @param string $errorurl
191
  */
lib/Payone/Api/Request/Parameter/Authorization/PersonalData.php CHANGED
@@ -76,6 +76,15 @@ class Payone_Api_Request_Parameter_Authorization_PersonalData
76
  protected $language = null;
77
  protected $vatid = null;
78
  protected $ip = null;
 
 
 
 
 
 
 
 
 
79
 
80
  public function setAddressaddition($addressaddition)
81
  {
@@ -175,6 +184,22 @@ class Payone_Api_Request_Parameter_Authorization_PersonalData
175
  return $this->firstname;
176
  }
177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  public function setIp($ip)
179
  {
180
  $this->ip = $ip;
@@ -211,6 +236,22 @@ class Payone_Api_Request_Parameter_Authorization_PersonalData
211
  return $this->lastname;
212
  }
213
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  public function setSalutation($salutation)
215
  {
216
  $this->salutation = $salutation;
76
  protected $language = null;
77
  protected $vatid = null;
78
  protected $ip = null;
79
+ /**
80
+ * Enum Gender
81
+ * @var string
82
+ */
83
+ protected $gender = null;
84
+ /**
85
+ * @var string
86
+ */
87
+ protected $personalid = null;
88
 
89
  public function setAddressaddition($addressaddition)
90
  {
184
  return $this->firstname;
185
  }
186
 
187
+ /**
188
+ * @param string $gender
189
+ */
190
+ public function setGender($gender)
191
+ {
192
+ $this->gender = $gender;
193
+ }
194
+
195
+ /**
196
+ * @return string
197
+ */
198
+ public function getGender()
199
+ {
200
+ return $this->gender;
201
+ }
202
+
203
  public function setIp($ip)
204
  {
205
  $this->ip = $ip;
236
  return $this->lastname;
237
  }
238
 
239
+ /**
240
+ * @param string $personalid
241
+ */
242
+ public function setPersonalid($personalid)
243
+ {
244
+ $this->personalid = $personalid;
245
+ }
246
+
247
+ /**
248
+ * @return string
249
+ */
250
+ public function getPersonalid()
251
+ {
252
+ return $this->personalid;
253
+ }
254
+
255
  public function setSalutation($salutation)
256
  {
257
  $this->salutation = $salutation;
lib/Payone/Api/Request/Parameter/CreateAccess/3dsecure.php ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_3dsecure
34
+ extends Payone_Api_Request_Parameter_CreateAccess_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $xid = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cavv = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $eci = NULL;
48
+
49
+ /**
50
+ * @param string $cavv
51
+ */
52
+ public function setCavv($cavv)
53
+ {
54
+ $this->cavv = $cavv;
55
+ }
56
+
57
+ /**
58
+ * @return string
59
+ */
60
+ public function getCavv()
61
+ {
62
+ return $this->cavv;
63
+ }
64
+
65
+ /**
66
+ * @param string $eci
67
+ */
68
+ public function setEci($eci)
69
+ {
70
+ $this->eci = $eci;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getEci()
77
+ {
78
+ return $this->eci;
79
+ }
80
+
81
+ /**
82
+ * @param string $xid
83
+ */
84
+ public function setXid($xid)
85
+ {
86
+ $this->xid = $xid;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getXid()
93
+ {
94
+ return $this->xid;
95
+ }
96
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/Abstract.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ abstract class Payone_Api_Request_Parameter_CreateAccess_Abstract
35
+ extends Payone_Api_Request_Parameter_Abstract
36
+ {
37
+
38
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/Billing.php ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_Billing
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+
37
+ /**
38
+ * ID or Name of booking account. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
39
+ *
40
+ * @var string
41
+ */
42
+ protected $vaccountname = NULL;
43
+
44
+ /**
45
+ * Length of payroll cycle
46
+ *
47
+ * @var int
48
+ */
49
+ protected $settle_period_length = NULL;
50
+
51
+ /**
52
+ * Time unit of payroll cycle
53
+ *
54
+ * @var string
55
+ */
56
+ protected $settle_period_unit = NULL;
57
+
58
+ /**
59
+ * Date of next billing as unixtimestamp
60
+ *
61
+ * @var int
62
+ */
63
+ protected $settletime = NULL;
64
+
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $payout_open_balance = NULL;
69
+
70
+ /**
71
+ * @param string $payout_open_balance
72
+ */
73
+ public function setPayoutOpenBalance($payout_open_balance)
74
+ {
75
+ $this->payout_open_balance = $payout_open_balance;
76
+ }
77
+
78
+ /**
79
+ * @return string
80
+ */
81
+ public function getPayoutOpenBalance()
82
+ {
83
+ return $this->payout_open_balance;
84
+ }
85
+
86
+ /**
87
+ * @param int $settle_period_length
88
+ */
89
+ public function setSettlePeriodLength($settle_period_length)
90
+ {
91
+ $this->settle_period_length = $settle_period_length;
92
+ }
93
+
94
+ /**
95
+ * @return int
96
+ */
97
+ public function getSettlePeriodLength()
98
+ {
99
+ return $this->settle_period_length;
100
+ }
101
+
102
+ /**
103
+ * @param string $settle_period_unit
104
+ */
105
+ public function setSettlePeriodUnit($settle_period_unit)
106
+ {
107
+ $this->settle_period_unit = $settle_period_unit;
108
+ }
109
+
110
+ /**
111
+ * @return string
112
+ */
113
+ public function getSettlePeriodUnit()
114
+ {
115
+ return $this->settle_period_unit;
116
+ }
117
+
118
+ /**
119
+ * @param int $settletime
120
+ */
121
+ public function setSettletime($settletime)
122
+ {
123
+ $this->settletime = $settletime;
124
+ }
125
+
126
+ /**
127
+ * @return int
128
+ */
129
+ public function getSettletime()
130
+ {
131
+ return $this->settletime;
132
+ }
133
+
134
+ /**
135
+ * @param string $vaccountname
136
+ */
137
+ public function setVaccountname($vaccountname)
138
+ {
139
+ $this->vaccountname = $vaccountname;
140
+ }
141
+
142
+ /**
143
+ * @return string
144
+ */
145
+ public function getVaccountname()
146
+ {
147
+ return $this->vaccountname;
148
+ }
149
+
150
+
151
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/Invoicing/Transaction.php ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $invoice_deliverymode = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $invoiceappendix = NULL;
44
+
45
+
46
+ /**
47
+ * @var Payone_Api_Request_Parameter_Invoicing_Access_Item[]
48
+ */
49
+ protected $items = array();
50
+
51
+ public function toArray()
52
+ {
53
+ $data = parent::toArray();
54
+
55
+ $i = 1;
56
+ foreach ($this->items as $key => $item) {
57
+ /**
58
+ * @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item
59
+ */
60
+
61
+ $data = array_merge($data, $item->toArrayByKey($i));
62
+
63
+ $i++;
64
+ }
65
+
66
+ return $data;
67
+ }
68
+
69
+ /**
70
+ * @return bool
71
+ */
72
+ public function hasItems()
73
+ {
74
+ return count($this->items) ? true : false;
75
+ }
76
+
77
+ /**
78
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item $item
79
+ */
80
+ public function addItem(Payone_Api_Request_Parameter_Invoicing_Access_Item $item)
81
+ {
82
+ $this->items[] = $item;
83
+ }
84
+
85
+ /**
86
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item[] $items
87
+ */
88
+ public function setItems($items)
89
+ {
90
+ $this->items = $items;
91
+ }
92
+
93
+ /**
94
+ * @return Payone_Api_Request_Parameter_Invoicing_Access_Item[]
95
+ */
96
+ public function getItems()
97
+ {
98
+ return $this->items;
99
+ }
100
+
101
+ /**
102
+ * @param string $invoice_deliverymode
103
+ */
104
+ public function setInvoiceDeliverymode($invoice_deliverymode)
105
+ {
106
+ $this->invoice_deliverymode = $invoice_deliverymode;
107
+ }
108
+
109
+ /**
110
+ * @return string
111
+ */
112
+ public function getInvoiceDeliverymode()
113
+ {
114
+ return $this->invoice_deliverymode;
115
+ }
116
+
117
+ /**
118
+ * @param string $invoiceappendix
119
+ */
120
+ public function setInvoiceappendix($invoiceappendix)
121
+ {
122
+ $this->invoiceappendix = $invoiceappendix;
123
+ }
124
+
125
+ /**
126
+ * @return string
127
+ */
128
+ public function getInvoiceappendix()
129
+ {
130
+ return $this->invoiceappendix;
131
+ }
132
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/Abstract.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/CreditCard.php ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_CreditCard
34
+ extends Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $cardpan = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cardtype = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $cardexpiredate = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $cardcvc2 = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $cardholder = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $pseudocardpan = NULL;
60
+
61
+ /**
62
+ * @param int $cardcvc2
63
+ */
64
+ public function setCardcvc2($cardcvc2)
65
+ {
66
+ $this->cardcvc2 = $cardcvc2;
67
+ }
68
+
69
+ /**
70
+ * @return int
71
+ */
72
+ public function getCardcvc2()
73
+ {
74
+ return $this->cardcvc2;
75
+ }
76
+
77
+ /**
78
+ * @param int $cardexpiredate
79
+ */
80
+ public function setCardexpiredate($cardexpiredate)
81
+ {
82
+ $this->cardexpiredate = $cardexpiredate;
83
+ }
84
+
85
+ /**
86
+ * @return int
87
+ */
88
+ public function getCardexpiredate()
89
+ {
90
+ return $this->cardexpiredate;
91
+ }
92
+
93
+ /**
94
+ * @param string $cardholder
95
+ */
96
+ public function setCardholder($cardholder)
97
+ {
98
+ $this->cardholder = $cardholder;
99
+ }
100
+
101
+ /**
102
+ * @return string
103
+ */
104
+ public function getCardholder()
105
+ {
106
+ return $this->cardholder;
107
+ }
108
+
109
+ /**
110
+ * @param string $cardpan
111
+ */
112
+ public function setCardpan($cardpan)
113
+ {
114
+ $this->cardpan = $cardpan;
115
+ }
116
+
117
+ /**
118
+ * @return string
119
+ */
120
+ public function getCardpan()
121
+ {
122
+ return $this->cardpan;
123
+ }
124
+
125
+ /**
126
+ * @param string $cardtype
127
+ */
128
+ public function setCardtype($cardtype)
129
+ {
130
+ $this->cardtype = $cardtype;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getCardtype()
137
+ {
138
+ return $this->cardtype;
139
+ }
140
+
141
+ /**
142
+ * @param string $pseudocardpan
143
+ */
144
+ public function setPseudocardpan($pseudocardpan)
145
+ {
146
+ $this->pseudocardpan = $pseudocardpan;
147
+ }
148
+
149
+ /**
150
+ * @return string
151
+ */
152
+ public function getPseudocardpan()
153
+ {
154
+ return $this->pseudocardpan;
155
+ }
156
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/DebitPayment.php ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_DebitPayment
34
+ extends Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $bankaccountholder = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $iban = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $bic = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $mandate_identification = NULL;
64
+
65
+ /**
66
+ * @param string $bankaccount
67
+ */
68
+ public function setBankaccount($bankaccount)
69
+ {
70
+ $this->bankaccount = $bankaccount;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getBankaccount()
77
+ {
78
+ return $this->bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @param string $bankaccountholder
83
+ */
84
+ public function setBankaccountholder($bankaccountholder)
85
+ {
86
+ $this->bankaccountholder = $bankaccountholder;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getBankaccountholder()
93
+ {
94
+ return $this->bankaccountholder;
95
+ }
96
+
97
+ /**
98
+ * @param string $bankcode
99
+ */
100
+ public function setBankcode($bankcode)
101
+ {
102
+ $this->bankcode = $bankcode;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getBankcode()
109
+ {
110
+ return $this->bankcode;
111
+ }
112
+
113
+ /**
114
+ * @param string $bankcountry
115
+ */
116
+ public function setBankcountry($bankcountry)
117
+ {
118
+ $this->bankcountry = $bankcountry;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getBankcountry()
125
+ {
126
+ return $this->bankcountry;
127
+ }
128
+
129
+ /**
130
+ * @param string $iban
131
+ */
132
+ public function setIban($iban)
133
+ {
134
+ $this->iban = $iban;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getIban()
141
+ {
142
+ return $this->iban;
143
+ }
144
+
145
+ /**
146
+ * @param string $bic
147
+ */
148
+ public function setBic($bic)
149
+ {
150
+ $this->bic = $bic;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getBic()
157
+ {
158
+ return $this->bic;
159
+ }
160
+
161
+ /**
162
+ * @param string $mandateIdentification
163
+ */
164
+ public function setMandateIdentification($mandateIdentification)
165
+ {
166
+ $this->mandate_identification = $mandateIdentification;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getMandateIdentification()
173
+ {
174
+ return $this->mandate_identification;
175
+ }
176
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PersonalData.php ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PersonalData
34
+ extends Payone_Api_Request_Parameter_CreateAccess_Abstract
35
+ {
36
+ /**
37
+ * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
+ * @var string
39
+ */
40
+ protected $customerid = null;
41
+ /**
42
+ * PAYONE debitor ID
43
+ *
44
+ * @var int
45
+ */
46
+ protected $userid = NULL;
47
+ protected $salutation = null;
48
+ protected $title = null;
49
+ protected $firstname = null;
50
+ protected $lastname = null;
51
+ protected $company = null;
52
+ protected $street = null;
53
+ protected $addressaddition = null;
54
+ protected $zip = null;
55
+ protected $city = null;
56
+ /**
57
+ * Country (ISO-3166)
58
+ *
59
+ * @var string
60
+ */
61
+ protected $country = null;
62
+ protected $email = null;
63
+ protected $telephonenumber = null;
64
+ /**
65
+ * Date of birth (YYYYMMDD)
66
+ *
67
+ * @var int
68
+ */
69
+ protected $birthday = NULL;
70
+ /**
71
+ * Language indicator (ISO639)
72
+ *
73
+ * @var string
74
+ */
75
+ protected $language = null;
76
+ protected $vatid = null;
77
+ protected $ip = null;
78
+
79
+ public function setAddressaddition($addressaddition)
80
+ {
81
+ $this->addressaddition = $addressaddition;
82
+ }
83
+
84
+ public function getAddressaddition()
85
+ {
86
+ return $this->addressaddition;
87
+ }
88
+
89
+ /**
90
+ * @param string $birthday
91
+ */
92
+ public function setBirthday($birthday)
93
+ {
94
+ $this->birthday = $birthday;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getBirthday()
101
+ {
102
+ return $this->birthday;
103
+ }
104
+
105
+ public function setCity($city)
106
+ {
107
+ $this->city = $city;
108
+ }
109
+
110
+ public function getCity()
111
+ {
112
+ return $this->city;
113
+ }
114
+
115
+ public function setCompany($company)
116
+ {
117
+ $this->company = $company;
118
+ }
119
+
120
+ public function getCompany()
121
+ {
122
+ return $this->company;
123
+ }
124
+
125
+ /**
126
+ * @param string $country
127
+ */
128
+ public function setCountry($country)
129
+ {
130
+ $this->country = $country;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getCountry()
137
+ {
138
+ return $this->country;
139
+ }
140
+
141
+ /**
142
+ * @param string $customerid
143
+ */
144
+ public function setCustomerid($customerid)
145
+ {
146
+ $this->customerid = $customerid;
147
+ }
148
+
149
+ /**
150
+ * @return string
151
+ */
152
+ public function getCustomerid()
153
+ {
154
+ return $this->customerid;
155
+ }
156
+
157
+ public function setEmail($email)
158
+ {
159
+ $this->email = $email;
160
+ }
161
+
162
+ public function getEmail()
163
+ {
164
+ return $this->email;
165
+ }
166
+
167
+ public function setFirstname($firstname)
168
+ {
169
+ $this->firstname = $firstname;
170
+ }
171
+
172
+ public function getFirstname()
173
+ {
174
+ return $this->firstname;
175
+ }
176
+
177
+ public function setIp($ip)
178
+ {
179
+ $this->ip = $ip;
180
+ }
181
+
182
+ public function getIp()
183
+ {
184
+ return $this->ip;
185
+ }
186
+
187
+ /**
188
+ * @param string $language
189
+ */
190
+ public function setLanguage($language)
191
+ {
192
+ $this->language = $language;
193
+ }
194
+
195
+ /**
196
+ * @return string
197
+ */
198
+ public function getLanguage()
199
+ {
200
+ return $this->language;
201
+ }
202
+
203
+ public function setLastname($lastname)
204
+ {
205
+ $this->lastname = $lastname;
206
+ }
207
+
208
+ public function getLastname()
209
+ {
210
+ return $this->lastname;
211
+ }
212
+
213
+ public function setSalutation($salutation)
214
+ {
215
+ $this->salutation = $salutation;
216
+ }
217
+
218
+ public function getSalutation()
219
+ {
220
+ return $this->salutation;
221
+ }
222
+
223
+ public function setStreet($street)
224
+ {
225
+ $this->street = $street;
226
+ }
227
+
228
+ public function getStreet()
229
+ {
230
+ return $this->street;
231
+ }
232
+
233
+ public function setTelephonenumber($telephonenumber)
234
+ {
235
+ $this->telephonenumber = $telephonenumber;
236
+ }
237
+
238
+ public function getTelephonenumber()
239
+ {
240
+ return $this->telephonenumber;
241
+ }
242
+
243
+ public function setTitle($title)
244
+ {
245
+ $this->title = $title;
246
+ }
247
+
248
+ public function getTitle()
249
+ {
250
+ return $this->title;
251
+ }
252
+
253
+ /**
254
+ * @param string $userid
255
+ */
256
+ public function setUserid($userid)
257
+ {
258
+ $this->userid = $userid;
259
+ }
260
+
261
+ /**
262
+ * @return string
263
+ */
264
+ public function getUserid()
265
+ {
266
+ return $this->userid;
267
+ }
268
+
269
+ public function setVatid($vatid)
270
+ {
271
+ $this->vatid = $vatid;
272
+ }
273
+
274
+ public function getVatid()
275
+ {
276
+ return $this->vatid;
277
+ }
278
+
279
+ public function setZip($zip)
280
+ {
281
+ $this->zip = $zip;
282
+ }
283
+
284
+ public function getZip()
285
+ {
286
+ return $this->zip;
287
+ }
288
+ }
lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/BankAccount.php CHANGED
@@ -57,6 +57,18 @@ class Payone_Api_Request_Parameter_Debit_PaymentMethod_BankAccount
57
  * @var string
58
  */
59
  protected $bankaccountholder = NULL;
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
  /**
62
  * @param string $bankaccount
@@ -153,4 +165,52 @@ class Payone_Api_Request_Parameter_Debit_PaymentMethod_BankAccount
153
  {
154
  return $this->bankcountry;
155
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  }
57
  * @var string
58
  */
59
  protected $bankaccountholder = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $iban = NULL;
64
+ /**
65
+ * @var string
66
+ */
67
+ protected $bic = NULL;
68
+ /**
69
+ * @var string
70
+ */
71
+ protected $mandate_identification = NULL;
72
 
73
  /**
74
  * @param string $bankaccount
165
  {
166
  return $this->bankcountry;
167
  }
168
+
169
+ /**
170
+ * @param string $iban
171
+ */
172
+ public function setIban($iban)
173
+ {
174
+ $this->iban = $iban;
175
+ }
176
+
177
+ /**
178
+ * @return string
179
+ */
180
+ public function getIban()
181
+ {
182
+ return $this->iban;
183
+ }
184
+
185
+ /**
186
+ * @param string $bic
187
+ */
188
+ public function setBic($bic)
189
+ {
190
+ $this->bic = $bic;
191
+ }
192
+
193
+ /**
194
+ * @return string
195
+ */
196
+ public function getBic()
197
+ {
198
+ return $this->bic;
199
+ }
200
+
201
+ /**
202
+ * @param string $mandateIdentification
203
+ */
204
+ public function setMandateIdentification($mandateIdentification)
205
+ {
206
+ $this->mandate_identification = $mandateIdentification;
207
+ }
208
+
209
+ /**
210
+ * @return string
211
+ */
212
+ public function getMandateIdentification()
213
+ {
214
+ return $this->mandate_identification;
215
+ }
216
  }
lib/Payone/Api/Request/Parameter/Invoicing/Access/Item.php ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Invoicing_Access_Item
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $id_trail = NULL;
40
+ /**
41
+ * @var int
42
+ */
43
+ protected $no_trail = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $pr_trail = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $de_trail = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $va_trail = NULL;
56
+
57
+ /**
58
+ * @var string
59
+ */
60
+ protected $id_recurring = NULL;
61
+ /**
62
+ * @var int
63
+ */
64
+ protected $no_recurring = NULL;
65
+ /**
66
+ * @var int
67
+ */
68
+ protected $pr_recurring = NULL;
69
+ /**
70
+ * @var string
71
+ */
72
+ protected $de_recurring = NULL;
73
+ /**
74
+ * @var int
75
+ */
76
+ protected $va_recurring = NULL;
77
+
78
+ /**
79
+ * @param int $key
80
+ * @return array
81
+ */
82
+ public function toArrayByKey($key)
83
+ {
84
+ $data = array();
85
+ $data['id_trail[' . $key . ']'] = $this->getIdTrail();
86
+ $data['no_trail[' . $key . ']'] = $this->getNoTrail();
87
+ $data['pr_trail[' . $key . ']'] = $this->getPrTrail();
88
+ $data['de_trail[' . $key . ']'] = $this->getDeTrail();
89
+ $data['va_trail[' . $key . ']'] = $this->getVaTrail();
90
+ $data['id_recurring[' . $key . ']'] = $this->getIdRecurring();
91
+ $data['no_recurring[' . $key . ']'] = $this->getNoRecurring();
92
+ $data['pr_recurring[' . $key . ']'] = $this->getPrRecurring();
93
+ $data['de_recurring[' . $key . ']'] = $this->getDeRecurring();
94
+ $data['va_recurring[' . $key . ']'] = $this->getVaRecurring();
95
+ return $data;
96
+ }
97
+
98
+ /**
99
+ * @param string $de_recurring
100
+ */
101
+ public function setDeRecurring($de_recurring)
102
+ {
103
+ $this->de_recurring = $de_recurring;
104
+ }
105
+
106
+ /**
107
+ * @return string
108
+ */
109
+ public function getDeRecurring()
110
+ {
111
+ return $this->de_recurring;
112
+ }
113
+
114
+ /**
115
+ * @param string $de_trail
116
+ */
117
+ public function setDeTrail($de_trail)
118
+ {
119
+ $this->de_trail = $de_trail;
120
+ }
121
+
122
+ /**
123
+ * @return string
124
+ */
125
+ public function getDeTrail()
126
+ {
127
+ return $this->de_trail;
128
+ }
129
+
130
+ /**
131
+ * @param string $id_recurring
132
+ */
133
+ public function setIdRecurring($id_recurring)
134
+ {
135
+ $this->id_recurring = $id_recurring;
136
+ }
137
+
138
+ /**
139
+ * @return string
140
+ */
141
+ public function getIdRecurring()
142
+ {
143
+ return $this->id_recurring;
144
+ }
145
+
146
+ /**
147
+ * @param string $id_trail
148
+ */
149
+ public function setIdTrail($id_trail)
150
+ {
151
+ $this->id_trail = $id_trail;
152
+ }
153
+
154
+ /**
155
+ * @return string
156
+ */
157
+ public function getIdTrail()
158
+ {
159
+ return $this->id_trail;
160
+ }
161
+
162
+ /**
163
+ * @param int $no_recurring
164
+ */
165
+ public function setNoRecurring($no_recurring)
166
+ {
167
+ $this->no_recurring = $no_recurring;
168
+ }
169
+
170
+ /**
171
+ * @return int
172
+ */
173
+ public function getNoRecurring()
174
+ {
175
+ return $this->no_recurring;
176
+ }
177
+
178
+ /**
179
+ * @param int $no_trail
180
+ */
181
+ public function setNoTrail($no_trail)
182
+ {
183
+ $this->no_trail = $no_trail;
184
+ }
185
+
186
+ /**
187
+ * @return int
188
+ */
189
+ public function getNoTrail()
190
+ {
191
+ return $this->no_trail;
192
+ }
193
+
194
+ /**
195
+ * @param int $pr_recurring
196
+ */
197
+ public function setPrRecurring($pr_recurring)
198
+ {
199
+ $this->pr_recurring = $pr_recurring;
200
+ }
201
+
202
+ /**
203
+ * @return int
204
+ */
205
+ public function getPrRecurring()
206
+ {
207
+ return $this->pr_recurring;
208
+ }
209
+
210
+ /**
211
+ * @param int $pr_trail
212
+ */
213
+ public function setPrTrail($pr_trail)
214
+ {
215
+ $this->pr_trail = $pr_trail;
216
+ }
217
+
218
+ /**
219
+ * @return int
220
+ */
221
+ public function getPrTrail()
222
+ {
223
+ return $this->pr_trail;
224
+ }
225
+
226
+ /**
227
+ * @param int $va_recurring
228
+ */
229
+ public function setVaRecurring($va_recurring)
230
+ {
231
+ $this->va_recurring = $va_recurring;
232
+ }
233
+
234
+ /**
235
+ * @return int
236
+ */
237
+ public function getVaRecurring()
238
+ {
239
+ return $this->va_recurring;
240
+ }
241
+
242
+ /**
243
+ * @param int $va_trail
244
+ */
245
+ public function setVaTrail($va_trail)
246
+ {
247
+ $this->va_trail = $va_trail;
248
+ }
249
+
250
+ /**
251
+ * @return int
252
+ */
253
+ public function getVaTrail()
254
+ {
255
+ return $this->va_trail;
256
+ }
257
+
258
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/Abstract.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_Api_Request_Parameter_ManageMandate_Abstract
37
+ extends Payone_Api_Request_Parameter_Abstract
38
+ {
39
+
40
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/Abstract.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
37
+ extends Payone_Api_Request_Parameter_Abstract
38
+ {
39
+
40
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/BankAccount.php ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_BankAccount
34
+ extends Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $iban = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $bic = NULL;
56
+
57
+ /**
58
+ * @param string $bankcountry
59
+ */
60
+ public function setBankcountry($bankcountry)
61
+ {
62
+ $this->bankcountry = $bankcountry;
63
+ }
64
+
65
+ /**
66
+ * @return string
67
+ */
68
+ public function getBankcountry()
69
+ {
70
+ return $this->bankcountry;
71
+ }
72
+
73
+ /**
74
+ * @param string $bankaccount
75
+ */
76
+ public function setBankaccount($bankaccount)
77
+ {
78
+ $this->bankaccount = $bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @return string
83
+ */
84
+ public function getBankaccount()
85
+ {
86
+ return $this->bankaccount;
87
+ }
88
+
89
+ /**
90
+ * @param string $bankcode
91
+ */
92
+ public function setBankcode($bankcode)
93
+ {
94
+ $this->bankcode = $bankcode;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getBankcode()
101
+ {
102
+ return $this->bankcode;
103
+ }
104
+
105
+ /**
106
+ * @param string $iban
107
+ */
108
+ public function setIban($iban)
109
+ {
110
+ $this->iban = $iban;
111
+ }
112
+
113
+ /**
114
+ * @return string
115
+ */
116
+ public function getIban()
117
+ {
118
+ return $this->iban;
119
+ }
120
+
121
+ /**
122
+ * @param string $bic
123
+ */
124
+ public function setBic($bic)
125
+ {
126
+ $this->bic = $bic;
127
+ }
128
+
129
+ /**
130
+ * @return string
131
+ */
132
+ public function getBic()
133
+ {
134
+ return $this->bic;
135
+ }
136
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/PersonalData.php ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_ManageMandate_PersonalData
34
+ extends Payone_Api_Request_Parameter_ManageMandate_Abstract
35
+ {
36
+ /**
37
+ * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
+ * @var string
39
+ */
40
+ protected $customerid = null;
41
+ /**
42
+ * PAYONE debtor ID
43
+ *
44
+ * @var int
45
+ */
46
+ protected $userid = NULL;
47
+ protected $firstname = null;
48
+ protected $lastname = null;
49
+ protected $company = null;
50
+ protected $street = null;
51
+ protected $zip = null;
52
+ protected $city = null;
53
+ /**
54
+ * Country (ISO-3166)
55
+ *
56
+ * @var string
57
+ */
58
+ protected $country = null;
59
+ protected $email = null;
60
+ /**
61
+ * Language indicator (ISO639)
62
+ *
63
+ * @var string
64
+ */
65
+ protected $language = null;
66
+
67
+ public function setCity($city)
68
+ {
69
+ $this->city = $city;
70
+ }
71
+
72
+ public function getCity()
73
+ {
74
+ return $this->city;
75
+ }
76
+
77
+ public function setCompany($company)
78
+ {
79
+ $this->company = $company;
80
+ }
81
+
82
+ public function getCompany()
83
+ {
84
+ return $this->company;
85
+ }
86
+
87
+ /**
88
+ * @param string $country
89
+ */
90
+ public function setCountry($country)
91
+ {
92
+ $this->country = $country;
93
+ }
94
+
95
+ /**
96
+ * @return string
97
+ */
98
+ public function getCountry()
99
+ {
100
+ return $this->country;
101
+ }
102
+
103
+ /**
104
+ * @param string $customerid
105
+ */
106
+ public function setCustomerid($customerid)
107
+ {
108
+ $this->customerid = $customerid;
109
+ }
110
+
111
+ /**
112
+ * @return string
113
+ */
114
+ public function getCustomerid()
115
+ {
116
+ return $this->customerid;
117
+ }
118
+
119
+ public function setEmail($email)
120
+ {
121
+ $this->email = $email;
122
+ }
123
+
124
+ public function getEmail()
125
+ {
126
+ return $this->email;
127
+ }
128
+
129
+ public function setFirstname($firstname)
130
+ {
131
+ $this->firstname = $firstname;
132
+ }
133
+
134
+ public function getFirstname()
135
+ {
136
+ return $this->firstname;
137
+ }
138
+
139
+ /**
140
+ * @param string $language
141
+ */
142
+ public function setLanguage($language)
143
+ {
144
+ $this->language = $language;
145
+ }
146
+
147
+ /**
148
+ * @return string
149
+ */
150
+ public function getLanguage()
151
+ {
152
+ return $this->language;
153
+ }
154
+
155
+ public function setLastname($lastname)
156
+ {
157
+ $this->lastname = $lastname;
158
+ }
159
+
160
+ public function getLastname()
161
+ {
162
+ return $this->lastname;
163
+ }
164
+
165
+ public function setStreet($street)
166
+ {
167
+ $this->street = $street;
168
+ }
169
+
170
+ public function getStreet()
171
+ {
172
+ return $this->street;
173
+ }
174
+
175
+ /**
176
+ * @param string $userid
177
+ */
178
+ public function setUserid($userid)
179
+ {
180
+ $this->userid = $userid;
181
+ }
182
+
183
+ /**
184
+ * @return string
185
+ */
186
+ public function getUserid()
187
+ {
188
+ return $this->userid;
189
+ }
190
+
191
+ public function setZip($zip)
192
+ {
193
+ $this->zip = $zip;
194
+ }
195
+
196
+ public function getZip()
197
+ {
198
+ return $this->zip;
199
+ }
200
+ }
lib/Payone/Api/Request/Parameter/Refund/PaymentMethod/BankAccount.php CHANGED
@@ -53,6 +53,18 @@ class Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
53
  * @var int
54
  */
55
  protected $bankcheckdigit = NULL;
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  /**
58
  * @param string $bankaccount
@@ -133,4 +145,52 @@ class Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
133
  {
134
  return $this->bankcountry;
135
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  }
53
  * @var int
54
  */
55
  protected $bankcheckdigit = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $iban = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $bic = NULL;
64
+ /**
65
+ * @var string
66
+ */
67
+ protected $mandate_identification = NULL;
68
 
69
  /**
70
  * @param string $bankaccount
145
  {
146
  return $this->bankcountry;
147
  }
148
+
149
+ /**
150
+ * @param string $iban
151
+ */
152
+ public function setIban($iban)
153
+ {
154
+ $this->iban = $iban;
155
+ }
156
+
157
+ /**
158
+ * @return string
159
+ */
160
+ public function getIban()
161
+ {
162
+ return $this->iban;
163
+ }
164
+
165
+ /**
166
+ * @param string $bic
167
+ */
168
+ public function setBic($bic)
169
+ {
170
+ $this->bic = $bic;
171
+ }
172
+
173
+ /**
174
+ * @return string
175
+ */
176
+ public function getBic()
177
+ {
178
+ return $this->bic;
179
+ }
180
+
181
+ /**
182
+ * @param string $mandateIdentification
183
+ */
184
+ public function setMandateIdentification($mandateIdentification)
185
+ {
186
+ $this->mandate_identification = $mandateIdentification;
187
+ }
188
+
189
+ /**
190
+ * @return string
191
+ */
192
+ public function getMandateIdentification()
193
+ {
194
+ return $this->mandate_identification;
195
+ }
196
  }
lib/Payone/Api/Request/Parameter/UpdateAccess/Invoicing/Transaction.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var Payone_Api_Request_Parameter_Invoicing_Access_Item[]
38
+ */
39
+ protected $items = array();
40
+
41
+ public function toArray()
42
+ {
43
+ $data = parent::toArray();
44
+
45
+ $i = 1;
46
+ foreach ($this->items as $key => $item) {
47
+ /**
48
+ * @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item
49
+ */
50
+
51
+ $data = array_merge($data, $item->toArrayByKey($i));
52
+
53
+ $i++;
54
+ }
55
+
56
+ return $data;
57
+ }
58
+
59
+ /**
60
+ * @return bool
61
+ */
62
+ public function hasItems()
63
+ {
64
+ return count($this->items) ? true : false;
65
+ }
66
+
67
+ /**
68
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item $item
69
+ */
70
+ public function addItem(Payone_Api_Request_Parameter_Invoicing_Access_Item $item)
71
+ {
72
+ $this->items[] = $item;
73
+ }
74
+
75
+ /**
76
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item[] $items
77
+ */
78
+ public function setItems($items)
79
+ {
80
+ $this->items = $items;
81
+ }
82
+
83
+ /**
84
+ * @return Payone_Api_Request_Parameter_Invoicing_Access_Item[]
85
+ */
86
+ public function getItems()
87
+ {
88
+ return $this->items;
89
+ }
90
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/Abstract.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ abstract class Payone_Api_Request_Parameter_Vauthorization_Abstract
35
+ extends Payone_Api_Request_Parameter_Abstract
36
+ {
37
+
38
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/Invoicing/Transaction.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $invoice_deliverymode = NULL;
40
+
41
+
42
+ /**
43
+ * @var Payone_Api_Request_Parameter_Invoicing_Item[]
44
+ */
45
+ protected $items = array();
46
+
47
+ public function toArray()
48
+ {
49
+ $data = parent::toArray();
50
+
51
+ $i = 1;
52
+ foreach ($this->items as $key => $item) {
53
+ /**
54
+ * @var $item Payone_Api_Request_Parameter_Invoicing_Item
55
+ */
56
+
57
+ $data = array_merge($data, $item->toArrayByKey($i));
58
+
59
+ $i++;
60
+ }
61
+
62
+ return $data;
63
+ }
64
+
65
+ /**
66
+ * @return bool
67
+ */
68
+ public function hasItems()
69
+ {
70
+ return count($this->items) ? true : false;
71
+ }
72
+
73
+ /**
74
+ * @param Payone_Api_Request_Parameter_Invoicing_Item $item
75
+ */
76
+ public function addItem(Payone_Api_Request_Parameter_Invoicing_Item $item)
77
+ {
78
+ $this->items[] = $item;
79
+ }
80
+
81
+ /**
82
+ * @param Payone_Api_Request_Parameter_Invoicing_Item[] $items
83
+ */
84
+ public function setItems($items)
85
+ {
86
+ $this->items = $items;
87
+ }
88
+
89
+ /**
90
+ * @return Payone_Api_Request_Parameter_Invoicing_Item[]
91
+ */
92
+ public function getItems()
93
+ {
94
+ return $this->items;
95
+ }
96
+
97
+ /**
98
+ * @param string $invoice_deliverymode
99
+ */
100
+ public function setInvoiceDeliverymode($invoice_deliverymode)
101
+ {
102
+ $this->invoice_deliverymode = $invoice_deliverymode;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getInvoiceDeliverymode()
109
+ {
110
+ return $this->invoice_deliverymode;
111
+ }
112
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/Abstract.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/CreditCard.php ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_CreditCard
34
+ extends Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $cardpan = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cardtype = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $cardexpiredate = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $cardcvc2 = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $cardissuenumber = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $cardholder = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $pseudocardpan = NULL;
64
+
65
+ /**
66
+ * @param int $cardcvc2
67
+ */
68
+ public function setCardcvc2($cardcvc2)
69
+ {
70
+ $this->cardcvc2 = $cardcvc2;
71
+ }
72
+
73
+ /**
74
+ * @return int
75
+ */
76
+ public function getCardcvc2()
77
+ {
78
+ return $this->cardcvc2;
79
+ }
80
+
81
+ /**
82
+ * @param int $cardexpiredate
83
+ */
84
+ public function setCardexpiredate($cardexpiredate)
85
+ {
86
+ $this->cardexpiredate = $cardexpiredate;
87
+ }
88
+
89
+ /**
90
+ * @return int
91
+ */
92
+ public function getCardexpiredate()
93
+ {
94
+ return $this->cardexpiredate;
95
+ }
96
+
97
+ /**
98
+ * @param string $cardholder
99
+ */
100
+ public function setCardholder($cardholder)
101
+ {
102
+ $this->cardholder = $cardholder;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getCardholder()
109
+ {
110
+ return $this->cardholder;
111
+ }
112
+
113
+ /**
114
+ * @param string $cardpan
115
+ */
116
+ public function setCardpan($cardpan)
117
+ {
118
+ $this->cardpan = $cardpan;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getCardpan()
125
+ {
126
+ return $this->cardpan;
127
+ }
128
+
129
+ /**
130
+ * @param string $cardtype
131
+ */
132
+ public function setCardtype($cardtype)
133
+ {
134
+ $this->cardtype = $cardtype;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getCardtype()
141
+ {
142
+ return $this->cardtype;
143
+ }
144
+
145
+ /**
146
+ * @param string $pseudocardpan
147
+ */
148
+ public function setPseudocardpan($pseudocardpan)
149
+ {
150
+ $this->pseudocardpan = $pseudocardpan;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getPseudocardpan()
157
+ {
158
+ return $this->pseudocardpan;
159
+ }
160
+
161
+ /**
162
+ * @param int $cardissuenumber
163
+ */
164
+ public function setCardissuenumber($cardissuenumber)
165
+ {
166
+ $this->cardissuenumber = $cardissuenumber;
167
+ }
168
+
169
+ /**
170
+ * @return int
171
+ */
172
+ public function getCardissuenumber()
173
+ {
174
+ return $this->cardissuenumber;
175
+ }
176
+
177
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/DebitPayment.php ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_DebitPayment
34
+ extends Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $bankaccountholder = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $iban = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $bic = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $mandate_identification = NULL;
64
+
65
+ /**
66
+ * @param string $bankaccount
67
+ */
68
+ public function setBankaccount($bankaccount)
69
+ {
70
+ $this->bankaccount = $bankaccount;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getBankaccount()
77
+ {
78
+ return $this->bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @param string $bankaccountholder
83
+ */
84
+ public function setBankaccountholder($bankaccountholder)
85
+ {
86
+ $this->bankaccountholder = $bankaccountholder;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getBankaccountholder()
93
+ {
94
+ return $this->bankaccountholder;
95
+ }
96
+
97
+ /**
98
+ * @param string $bankcode
99
+ */
100
+ public function setBankcode($bankcode)
101
+ {
102
+ $this->bankcode = $bankcode;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getBankcode()
109
+ {
110
+ return $this->bankcode;
111
+ }
112
+
113
+ /**
114
+ * @param string $bankcountry
115
+ */
116
+ public function setBankcountry($bankcountry)
117
+ {
118
+ $this->bankcountry = $bankcountry;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getBankcountry()
125
+ {
126
+ return $this->bankcountry;
127
+ }
128
+
129
+ /**
130
+ * @param string $iban
131
+ */
132
+ public function setIban($iban)
133
+ {
134
+ $this->iban = $iban;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getIban()
141
+ {
142
+ return $this->iban;
143
+ }
144
+
145
+ /**
146
+ * @param string $bic
147
+ */
148
+ public function setBic($bic)
149
+ {
150
+ $this->bic = $bic;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getBic()
157
+ {
158
+ return $this->bic;
159
+ }
160
+
161
+ /**
162
+ * @param string $mandateIdentification
163
+ */
164
+ public function setMandateIdentification($mandateIdentification)
165
+ {
166
+ $this->mandate_identification = $mandateIdentification;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getMandateIdentification()
173
+ {
174
+ return $this->mandate_identification;
175
+ }
176
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PersonalData.php ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PersonalData
34
+ extends Payone_Api_Request_Parameter_Vauthorization_Abstract
35
+ {
36
+ /**
37
+ * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
+ * @var string
39
+ */
40
+ protected $customerid = null;
41
+ /**
42
+ * PAYONE debitor ID
43
+ *
44
+ * @var int
45
+ */
46
+ protected $userid = NULL;
47
+ protected $salutation = null;
48
+ protected $title = null;
49
+ protected $firstname = null;
50
+ protected $lastname = null;
51
+ protected $company = null;
52
+ protected $street = null;
53
+ protected $addressaddition = null;
54
+ protected $zip = null;
55
+ protected $city = null;
56
+ /**
57
+ * Country (ISO-3166)
58
+ *
59
+ * @var string
60
+ */
61
+ protected $country = null;
62
+ protected $email = null;
63
+ protected $telephonenumber = null;
64
+ /**
65
+ * Date of birth (YYYYMMDD)
66
+ *
67
+ * @var int
68
+ */
69
+ protected $birthday = NULL;
70
+ /**
71
+ * Language indicator (ISO639)
72
+ *
73
+ * @var string
74
+ */
75
+ protected $language = null;
76
+ protected $vatid = null;
77
+ protected $ip = null;
78
+
79
+ public function setAddressaddition($addressaddition)
80
+ {
81
+ $this->addressaddition = $addressaddition;
82
+ }
83
+
84
+ public function getAddressaddition()
85
+ {
86
+ return $this->addressaddition;
87
+ }
88
+
89
+ /**
90
+ * @param string $birthday
91
+ */
92
+ public function setBirthday($birthday)
93
+ {
94
+ $this->birthday = $birthday;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getBirthday()
101
+ {
102
+ return $this->birthday;
103
+ }
104
+
105
+ public function setCity($city)
106
+ {
107
+ $this->city = $city;
108
+ }
109
+
110
+ public function getCity()
111
+ {
112
+ return $this->city;
113
+ }
114
+
115
+ public function setCompany($company)
116
+ {
117
+ $this->company = $company;
118
+ }
119
+
120
+ public function getCompany()
121
+ {
122
+ return $this->company;
123
+ }
124
+
125
+ /**
126
+ * @param string $country
127
+ */
128
+ public function setCountry($country)
129
+ {
130
+ $this->country = $country;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getCountry()
137
+ {
138
+ return $this->country;
139
+ }
140
+
141
+ /**
142
+ * @param string $customerid
143
+ */
144
+ public function setCustomerid($customerid)
145
+ {
146
+ $this->customerid = $customerid;
147
+ }
148
+
149
+ /**
150
+ * @return string
151
+ */
152
+ public function getCustomerid()
153
+ {
154
+ return $this->customerid;
155
+ }
156
+
157
+ public function setEmail($email)
158
+ {
159
+ $this->email = $email;
160
+ }
161
+
162
+ public function getEmail()
163
+ {
164
+ return $this->email;
165
+ }
166
+
167
+ public function setFirstname($firstname)
168
+ {
169
+ $this->firstname = $firstname;
170
+ }
171
+
172
+ public function getFirstname()
173
+ {
174
+ return $this->firstname;
175
+ }
176
+
177
+ public function setIp($ip)
178
+ {
179
+ $this->ip = $ip;
180
+ }
181
+
182
+ public function getIp()
183
+ {
184
+ return $this->ip;
185
+ }
186
+
187
+ /**
188
+ * @param string $language
189
+ */
190
+ public function setLanguage($language)
191
+ {
192
+ $this->language = $language;
193
+ }
194
+
195
+ /**
196
+ * @return string
197
+ */
198
+ public function getLanguage()
199
+ {
200
+ return $this->language;
201
+ }
202
+
203
+ public function setLastname($lastname)
204
+ {
205
+ $this->lastname = $lastname;
206
+ }
207
+
208
+ public function getLastname()
209
+ {
210
+ return $this->lastname;
211
+ }
212
+
213
+ public function setSalutation($salutation)
214
+ {
215
+ $this->salutation = $salutation;
216
+ }
217
+
218
+ public function getSalutation()
219
+ {
220
+ return $this->salutation;
221
+ }
222
+
223
+ public function setStreet($street)
224
+ {
225
+ $this->street = $street;
226
+ }
227
+
228
+ public function getStreet()
229
+ {
230
+ return $this->street;
231
+ }
232
+
233
+ public function setTelephonenumber($telephonenumber)
234
+ {
235
+ $this->telephonenumber = $telephonenumber;
236
+ }
237
+
238
+ public function getTelephonenumber()
239
+ {
240
+ return $this->telephonenumber;
241
+ }
242
+
243
+ public function setTitle($title)
244
+ {
245
+ $this->title = $title;
246
+ }
247
+
248
+ public function getTitle()
249
+ {
250
+ return $this->title;
251
+ }
252
+
253
+ /**
254
+ * @param string $userid
255
+ */
256
+ public function setUserid($userid)
257
+ {
258
+ $this->userid = $userid;
259
+ }
260
+
261
+ /**
262
+ * @return string
263
+ */
264
+ public function getUserid()
265
+ {
266
+ return $this->userid;
267
+ }
268
+
269
+ public function setVatid($vatid)
270
+ {
271
+ $this->vatid = $vatid;
272
+ }
273
+
274
+ public function getVatid()
275
+ {
276
+ return $this->vatid;
277
+ }
278
+
279
+ public function setZip($zip)
280
+ {
281
+ $this->zip = $zip;
282
+ }
283
+
284
+ public function getZip()
285
+ {
286
+ return $this->zip;
287
+ }
288
+ }
lib/Payone/Api/Request/UpdateAccess.php ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_UpdateAccess extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::UPDATEACCESS;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $accessid = null;
41
+
42
+ /**
43
+ * @var string
44
+ * @see Payone_Api_Enum_AccessAction
45
+ */
46
+ protected $action = null;
47
+
48
+ /**
49
+ * Offer ID
50
+ *
51
+ * @var int
52
+ */
53
+ protected $productid = NULL;
54
+
55
+ /**
56
+ * Startdate of access as unixtimestamp
57
+ *
58
+ * @var int
59
+ */
60
+ protected $access_starttime = NULL;
61
+
62
+ /**
63
+ * Expiredate of first term or timestamp of renewal as unixtimestamp
64
+ *
65
+ * @var int
66
+ */
67
+ protected $access_expiretime = NULL;
68
+
69
+ /**
70
+ * Canelationdate as unixtimestamp
71
+ *
72
+ * @var int
73
+ */
74
+ protected $access_canceltime = NULL;
75
+
76
+ /**
77
+ * Entire price of first term, must be equal to sum of amount * price. Must be in smallest currency unit
78
+ *
79
+ * @var int
80
+ */
81
+ protected $amount_trail = NULL;
82
+
83
+ /**
84
+ * Time unit of first term
85
+ *
86
+ * @var string
87
+ */
88
+ protected $period_unit_trail = NULL;
89
+
90
+ /**
91
+ * Lenght of first term
92
+ *
93
+ * @var int
94
+ */
95
+ protected $period_length_trail = NULL;
96
+
97
+ /**
98
+ * Entire price of all products in one renewal term. Must be in smallest currency unit
99
+ *
100
+ * @var int
101
+ */
102
+ protected $amount_recurring = NULL;
103
+
104
+ /**
105
+ * Time unit of renewal term
106
+ *
107
+ * @var string
108
+ */
109
+ protected $period_unit_recurring = NULL;
110
+
111
+ /**
112
+ * Length of renewal term
113
+ *
114
+ * @var int
115
+ */
116
+ protected $period_length_recurring = NULL;
117
+
118
+ /**
119
+ * Currency (ISO-4217)
120
+ *
121
+ * @var string
122
+ */
123
+ protected $currency = NULL;
124
+
125
+ /**
126
+ * @var Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
127
+ */
128
+ protected $invoicing = null;
129
+
130
+ /**
131
+ * @param int $access_canceltime
132
+ */
133
+ public function setAccessCanceltime($access_canceltime)
134
+ {
135
+ $this->access_canceltime = $access_canceltime;
136
+ }
137
+
138
+ /**
139
+ * @return int
140
+ */
141
+ public function getAccessCanceltime()
142
+ {
143
+ return $this->access_canceltime;
144
+ }
145
+
146
+ /**
147
+ * @param int $access_expiretime
148
+ */
149
+ public function setAccessExpiretime($access_expiretime)
150
+ {
151
+ $this->access_expiretime = $access_expiretime;
152
+ }
153
+
154
+ /**
155
+ * @return int
156
+ */
157
+ public function getAccessExpiretime()
158
+ {
159
+ return $this->access_expiretime;
160
+ }
161
+
162
+ /**
163
+ * @param int $access_starttime
164
+ */
165
+ public function setAccessStarttime($access_starttime)
166
+ {
167
+ $this->access_starttime = $access_starttime;
168
+ }
169
+
170
+ /**
171
+ * @return int
172
+ */
173
+ public function getAccessStarttime()
174
+ {
175
+ return $this->access_starttime;
176
+ }
177
+
178
+ /**
179
+ * @param int $accessid
180
+ */
181
+ public function setAccessid($accessid)
182
+ {
183
+ $this->accessid = $accessid;
184
+ }
185
+
186
+ /**
187
+ * @return int
188
+ */
189
+ public function getAccessid()
190
+ {
191
+ return $this->accessid;
192
+ }
193
+
194
+ /**
195
+ * @param string $action
196
+ */
197
+ public function setAction($action)
198
+ {
199
+ $this->action = $action;
200
+ }
201
+
202
+ /**
203
+ * @return string
204
+ */
205
+ public function getAction()
206
+ {
207
+ return $this->action;
208
+ }
209
+
210
+ /**
211
+ * @param int $amount_recurring
212
+ */
213
+ public function setAmountRecurring($amount_recurring)
214
+ {
215
+ $this->amount_recurring = $amount_recurring;
216
+ }
217
+
218
+ /**
219
+ * @return int
220
+ */
221
+ public function getAmountRecurring()
222
+ {
223
+ return $this->amount_recurring;
224
+ }
225
+
226
+ /**
227
+ * @param int $amount_trail
228
+ */
229
+ public function setAmountTrail($amount_trail)
230
+ {
231
+ $this->amount_trail = $amount_trail;
232
+ }
233
+
234
+ /**
235
+ * @return int
236
+ */
237
+ public function getAmountTrail()
238
+ {
239
+ return $this->amount_trail;
240
+ }
241
+
242
+ /**
243
+ * @param \Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction $invoicing
244
+ */
245
+ public function setInvoicing($invoicing)
246
+ {
247
+ $this->invoicing = $invoicing;
248
+ }
249
+
250
+ /**
251
+ * @return \Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
252
+ */
253
+ public function getInvoicing()
254
+ {
255
+ return $this->invoicing;
256
+ }
257
+
258
+ /**
259
+ * @param int $period_length_recurring
260
+ */
261
+ public function setPeriodLengthRecurring($period_length_recurring)
262
+ {
263
+ $this->period_length_recurring = $period_length_recurring;
264
+ }
265
+
266
+ /**
267
+ * @return int
268
+ */
269
+ public function getPeriodLengthRecurring()
270
+ {
271
+ return $this->period_length_recurring;
272
+ }
273
+
274
+ /**
275
+ * @param int $period_length_trail
276
+ */
277
+ public function setPeriodLengthTrail($period_length_trail)
278
+ {
279
+ $this->period_length_trail = $period_length_trail;
280
+ }
281
+
282
+ /**
283
+ * @return int
284
+ */
285
+ public function getPeriodLengthTrail()
286
+ {
287
+ return $this->period_length_trail;
288
+ }
289
+
290
+ /**
291
+ * @param string $period_unit_recurring
292
+ */
293
+ public function setPeriodUnitRecurring($period_unit_recurring)
294
+ {
295
+ $this->period_unit_recurring = $period_unit_recurring;
296
+ }
297
+
298
+ /**
299
+ * @return string
300
+ */
301
+ public function getPeriodUnitRecurring()
302
+ {
303
+ return $this->period_unit_recurring;
304
+ }
305
+
306
+ /**
307
+ * @param string $period_unit_trail
308
+ */
309
+ public function setPeriodUnitTrail($period_unit_trail)
310
+ {
311
+ $this->period_unit_trail = $period_unit_trail;
312
+ }
313
+
314
+ /**
315
+ * @return string
316
+ */
317
+ public function getPeriodUnitTrail()
318
+ {
319
+ return $this->period_unit_trail;
320
+ }
321
+
322
+ /**
323
+ * @param int $productid
324
+ */
325
+ public function setProductid($productid)
326
+ {
327
+ $this->productid = $productid;
328
+ }
329
+
330
+ /**
331
+ * @return int
332
+ */
333
+ public function getProductid()
334
+ {
335
+ return $this->productid;
336
+ }
337
+
338
+ /**
339
+ * @param string $currency
340
+ */
341
+ public function setCurrency($currency)
342
+ {
343
+ $this->currency = $currency;
344
+ }
345
+
346
+ /**
347
+ * @return string
348
+ */
349
+ public function getCurrency()
350
+ {
351
+ return $this->currency;
352
+ }
353
+ }
lib/Payone/Api/Request/Vauthorization.php ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Vauthorization extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::VAUTHORIZATION;
36
+
37
+ /**
38
+ * Sub account ID
39
+ *
40
+ * @var int
41
+ */
42
+ protected $aid = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $clearingtype = NULL;
47
+ /**
48
+ * Merchant reference number for the payment process. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
49
+ *
50
+ * @var string
51
+ */
52
+ protected $vreference = NULL;
53
+ /**
54
+ * @var string
55
+ */
56
+ protected $vaccountname = NULL;
57
+ /**
58
+ * Total amount (in smallest currency unit! e.g. cent)
59
+ *
60
+ * @var int
61
+ */
62
+ protected $amount = NULL;
63
+ /**
64
+ * Currency (ISO-4217)
65
+ *
66
+ * @var string
67
+ */
68
+ protected $currency = NULL;
69
+ /**
70
+ * @var int
71
+ */
72
+ protected $settle_period_length = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $settle_period_unit = NULL;
77
+ /**
78
+ * @var int
79
+ */
80
+ protected $settletime = NULL;
81
+ /**
82
+ * @var string
83
+ */
84
+ protected $payout_open_balance = NULL;
85
+ /**
86
+ * Individual parameter
87
+ *
88
+ * @var string
89
+ */
90
+ protected $param = NULL;
91
+
92
+ /**
93
+ * @var Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
94
+ */
95
+ protected $invoicing = null;
96
+ /**
97
+ * @var Payone_Api_Request_Parameter_Vauthorization_PersonalData
98
+ */
99
+ protected $personalData = null;
100
+ /**
101
+ * @var Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
102
+ */
103
+ protected $payment = null;
104
+
105
+ /**
106
+ * @param int $aid
107
+ */
108
+ public function setAid($aid)
109
+ {
110
+ $this->aid = $aid;
111
+ }
112
+
113
+ /**
114
+ * @return int
115
+ */
116
+ public function getAid()
117
+ {
118
+ return $this->aid;
119
+ }
120
+
121
+ /**
122
+ * @param int $amount
123
+ */
124
+ public function setAmount($amount)
125
+ {
126
+ $this->amount = $amount;
127
+ }
128
+
129
+ /**
130
+ * @return int
131
+ */
132
+ public function getAmount()
133
+ {
134
+ return $this->amount;
135
+ }
136
+
137
+ /**
138
+ * @param string $clearingtype
139
+ */
140
+ public function setClearingtype($clearingtype)
141
+ {
142
+ $this->clearingtype = $clearingtype;
143
+ }
144
+
145
+ /**
146
+ * @return string
147
+ */
148
+ public function getClearingtype()
149
+ {
150
+ return $this->clearingtype;
151
+ }
152
+
153
+ /**
154
+ * @param string $currency
155
+ */
156
+ public function setCurrency($currency)
157
+ {
158
+ $this->currency = $currency;
159
+ }
160
+
161
+ /**
162
+ * @return string
163
+ */
164
+ public function getCurrency()
165
+ {
166
+ return $this->currency;
167
+ }
168
+
169
+ /**
170
+ * @param \Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction $invoicing
171
+ */
172
+ public function setInvoicing($invoicing)
173
+ {
174
+ $this->invoicing = $invoicing;
175
+ }
176
+
177
+ /**
178
+ * @return \Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
179
+ */
180
+ public function getInvoicing()
181
+ {
182
+ return $this->invoicing;
183
+ }
184
+
185
+ /**
186
+ * @param string $param
187
+ */
188
+ public function setParam($param)
189
+ {
190
+ $this->param = $param;
191
+ }
192
+
193
+ /**
194
+ * @return string
195
+ */
196
+ public function getParam()
197
+ {
198
+ return $this->param;
199
+ }
200
+
201
+ /**
202
+ * @param \Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract $payment
203
+ */
204
+ public function setPayment($payment)
205
+ {
206
+ $this->payment = $payment;
207
+ }
208
+
209
+ /**
210
+ * @return \Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
211
+ */
212
+ public function getPayment()
213
+ {
214
+ return $this->payment;
215
+ }
216
+
217
+ /**
218
+ * @param string $payout_open_balance
219
+ */
220
+ public function setPayoutOpenBalance($payout_open_balance)
221
+ {
222
+ $this->payout_open_balance = $payout_open_balance;
223
+ }
224
+
225
+ /**
226
+ * @return string
227
+ */
228
+ public function getPayoutOpenBalance()
229
+ {
230
+ return $this->payout_open_balance;
231
+ }
232
+
233
+ /**
234
+ * @param \Payone_Api_Request_Parameter_Vauthorization_PersonalData $personalData
235
+ */
236
+ public function setPersonalData($personalData)
237
+ {
238
+ $this->personalData = $personalData;
239
+ }
240
+
241
+ /**
242
+ * @return \Payone_Api_Request_Parameter_Vauthorization_PersonalData
243
+ */
244
+ public function getPersonalData()
245
+ {
246
+ return $this->personalData;
247
+ }
248
+
249
+ /**
250
+ * @param int $settle_period_length
251
+ */
252
+ public function setSettlePeriodLength($settle_period_length)
253
+ {
254
+ $this->settle_period_length = $settle_period_length;
255
+ }
256
+
257
+ /**
258
+ * @return int
259
+ */
260
+ public function getSettlePeriodLength()
261
+ {
262
+ return $this->settle_period_length;
263
+ }
264
+
265
+ /**
266
+ * @param string $settle_period_unit
267
+ */
268
+ public function setSettlePeriodUnit($settle_period_unit)
269
+ {
270
+ $this->settle_period_unit = $settle_period_unit;
271
+ }
272
+
273
+ /**
274
+ * @return string
275
+ */
276
+ public function getSettlePeriodUnit()
277
+ {
278
+ return $this->settle_period_unit;
279
+ }
280
+
281
+ /**
282
+ * @param int $settletime
283
+ */
284
+ public function setSettletime($settletime)
285
+ {
286
+ $this->settletime = $settletime;
287
+ }
288
+
289
+ /**
290
+ * @return int
291
+ */
292
+ public function getSettletime()
293
+ {
294
+ return $this->settletime;
295
+ }
296
+
297
+ /**
298
+ * @param string $vaccountname
299
+ */
300
+ public function setVaccountname($vaccountname)
301
+ {
302
+ $this->vaccountname = $vaccountname;
303
+ }
304
+
305
+ /**
306
+ * @return string
307
+ */
308
+ public function getVaccountname()
309
+ {
310
+ return $this->vaccountname;
311
+ }
312
+
313
+ /**
314
+ * @param string $vreference
315
+ */
316
+ public function setVreference($vreference)
317
+ {
318
+ $this->vreference = $vreference;
319
+ }
320
+
321
+ /**
322
+ * @return string
323
+ */
324
+ public function getVreference()
325
+ {
326
+ return $this->vreference;
327
+ }
328
+
329
+
330
+ }
lib/Payone/Api/Response/Authorization/Abstract.php CHANGED
@@ -78,6 +78,10 @@ abstract class Payone_Api_Response_Authorization_Abstract
78
  */
79
  protected $clearing_bankname = NULL;
80
 
 
 
 
 
81
 
82
 
83
  /**
@@ -255,4 +259,20 @@ abstract class Payone_Api_Response_Authorization_Abstract
255
  {
256
  return $this->userid;
257
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  }
78
  */
79
  protected $clearing_bankname = NULL;
80
 
81
+ /**
82
+ * @var string
83
+ */
84
+ protected $mandate_identification = NULL;
85
 
86
 
87
  /**
259
  {
260
  return $this->userid;
261
  }
262
+
263
+ /**
264
+ * @param string $mandateIdentification
265
+ */
266
+ public function setMandateIdentification($mandateIdentification)
267
+ {
268
+ $this->mandate_identification = $mandateIdentification;
269
+ }
270
+
271
+ /**
272
+ * @return string
273
+ */
274
+ public function getMandateIdentification()
275
+ {
276
+ return $this->mandate_identification;
277
+ }
278
  }
lib/Payone/Api/Response/Authorization/Approved.php CHANGED
@@ -33,5 +33,64 @@
33
  class Payone_Api_Response_Authorization_Approved
34
  extends Payone_Api_Response_Authorization_Abstract
35
  {
 
 
 
 
 
 
 
 
 
 
 
 
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  }
33
  class Payone_Api_Response_Authorization_Approved
34
  extends Payone_Api_Response_Authorization_Abstract
35
  {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $creditor_identifier = NULL;
40
+ /**
41
+ * @var int
42
+ */
43
+ protected $clearing_date = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $clearing_amount = NULL;
48
 
49
+ /**
50
+ * @param string $creditorIdentifier
51
+ */
52
+ public function setCreditorIdentifier($creditorIdentifier)
53
+ {
54
+ $this->creditor_identifier = $creditorIdentifier;
55
+ }
56
+
57
+ /**
58
+ * @return string
59
+ */
60
+ public function getCreditorIdentifier()
61
+ {
62
+ return $this->creditor_identifier;
63
+ }
64
+
65
+ /**
66
+ * @param int $clearingDate
67
+ */
68
+ public function setClearingDate($clearingDate)
69
+ {
70
+ $this->clearing_date = $clearingDate;
71
+ }
72
+
73
+ /**
74
+ * @return int
75
+ */
76
+ public function getClearingDate()
77
+ {
78
+ return $this->clearing_date;
79
+ }
80
+
81
+ /**
82
+ * @param int $clearingAmount
83
+ */
84
+ public function setClearingAmount($clearingAmount)
85
+ {
86
+ $this->clearing_amount = $clearingAmount;
87
+ }
88
+
89
+ /**
90
+ * @return int
91
+ */
92
+ public function getClearingAmount()
93
+ {
94
+ return $this->clearing_amount;
95
+ }
96
  }
lib/Payone/Api/Response/BankAccountCheck/Valid.php CHANGED
@@ -32,5 +32,124 @@
32
  */
33
  class Payone_Api_Response_BankAccountCheck_Valid extends Payone_Api_Response_Abstract
34
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  }
32
  */
33
  class Payone_Api_Response_BankAccountCheck_Valid extends Payone_Api_Response_Abstract
34
  {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $bankcode = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $bankaccount = NULL;
43
+ /**
44
+ * @var int
45
+ */
46
+ protected $bankbranchcode = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $bankcheckdigit = NULL;
51
+ /**
52
+ * @var string
53
+ */
54
+ protected $iban = NULL;
55
+ /**
56
+ * @var string
57
+ */
58
+ protected $bic = NULL;
59
 
60
+ /**
61
+ * @param int $bankcode
62
+ */
63
+ public function setBankcode($bankcode)
64
+ {
65
+ $this->bankcode = $bankcode;
66
+ }
67
+
68
+ /**
69
+ * @return int
70
+ */
71
+ public function getBankcode()
72
+ {
73
+ return $this->bankcode;
74
+ }
75
+
76
+ /**
77
+ * @param string $bankaccount
78
+ */
79
+ public function setBankaccount($bankaccount)
80
+ {
81
+ $this->bankaccount = $bankaccount;
82
+ }
83
+
84
+ /**
85
+ * @return string
86
+ */
87
+ public function getBankaccount()
88
+ {
89
+ return $this->bankaccount;
90
+ }
91
+
92
+ /**
93
+ * @param string $bankbranchcode
94
+ */
95
+ public function setBankbranchcode($bankbranchcode)
96
+ {
97
+ $this->bankbranchcode = $bankbranchcode;
98
+ }
99
+
100
+ /**
101
+ * @return int
102
+ */
103
+ public function getBankbranchcode()
104
+ {
105
+ return $this->bankbranchcode;
106
+ }
107
+
108
+ /**
109
+ * @param string $bankcheckdigit
110
+ */
111
+ public function setBankcheckdigit($bankcheckdigit)
112
+ {
113
+ $this->bankcheckdigit = $bankcheckdigit;
114
+ }
115
+
116
+ /**
117
+ * @return string
118
+ */
119
+ public function getBankcheckdigit()
120
+ {
121
+ return $this->bankcheckdigit;
122
+ }
123
+
124
+ /**
125
+ * @param string $iban
126
+ */
127
+ public function setIban($iban)
128
+ {
129
+ $this->iban = $iban;
130
+ }
131
+
132
+ /**
133
+ * @return string
134
+ */
135
+ public function getIban()
136
+ {
137
+ return $this->iban;
138
+ }
139
+
140
+ /**
141
+ * @param string $bic
142
+ */
143
+ public function setBic($bic)
144
+ {
145
+ $this->bic = $bic;
146
+ }
147
+
148
+ /**
149
+ * @return string
150
+ */
151
+ public function getBic()
152
+ {
153
+ return $this->bic;
154
+ }
155
  }
lib/Payone/Api/Response/Capture/Approved.php CHANGED
@@ -87,6 +87,24 @@ class Payone_Api_Response_Capture_Approved extends Payone_Api_Response_Abstract
87
 
88
  /** @var string */
89
  protected $clearing_instructionnote = NULL;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  /**
91
  * @param string $clearing_bankaccount
92
  */
@@ -310,4 +328,68 @@ class Payone_Api_Response_Capture_Approved extends Payone_Api_Response_Abstract
310
  {
311
  return $this->clearing_reference;
312
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  }
87
 
88
  /** @var string */
89
  protected $clearing_instructionnote = NULL;
90
+
91
+ /**
92
+ * @var string
93
+ */
94
+ protected $mandate_identification = NULL;
95
+ /**
96
+ * @var string
97
+ */
98
+ protected $creditor_identifier = NULL;
99
+ /**
100
+ * @var int
101
+ */
102
+ protected $clearing_date = NULL;
103
+ /**
104
+ * @var int
105
+ */
106
+ protected $clearing_amount = NULL;
107
+
108
  /**
109
  * @param string $clearing_bankaccount
110
  */
328
  {
329
  return $this->clearing_reference;
330
  }
331
+
332
+ /**
333
+ * @param string $mandateIdentification
334
+ */
335
+ public function setMandateIdentification($mandateIdentification)
336
+ {
337
+ $this->mandate_identification = $mandateIdentification;
338
+ }
339
+
340
+ /**
341
+ * @return string
342
+ */
343
+ public function getMandateIdentification()
344
+ {
345
+ return $this->mandate_identification;
346
+ }
347
+
348
+ /**
349
+ * @param string $creditorIdentifier
350
+ */
351
+ public function setCreditorIdentifier($creditorIdentifier)
352
+ {
353
+ $this->creditor_identifier = $creditorIdentifier;
354
+ }
355
+
356
+ /**
357
+ * @return string
358
+ */
359
+ public function getCreditorIdentifier()
360
+ {
361
+ return $this->creditor_identifier;
362
+ }
363
+
364
+ /**
365
+ * @param int $clearingDate
366
+ */
367
+ public function setClearingDate($clearingDate)
368
+ {
369
+ $this->clearing_date = $clearingDate;
370
+ }
371
+
372
+ /**
373
+ * @return int
374
+ */
375
+ public function getClearingDate()
376
+ {
377
+ return $this->clearing_date;
378
+ }
379
+
380
+ /**
381
+ * @param int $clearingAmount
382
+ */
383
+ public function setClearingAmount($clearingAmount)
384
+ {
385
+ $this->clearing_amount = $clearingAmount;
386
+ }
387
+
388
+ /**
389
+ * @return int
390
+ */
391
+ public function getClearingAmount()
392
+ {
393
+ return $this->clearing_amount;
394
+ }
395
  }
lib/Payone/Api/Response/CreateAccess/Approved.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_CreateAccess_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $txid = NULL;
39
+ /**
40
+ * @var int
41
+ */
42
+ protected $userid = NULL;
43
+ /**
44
+ * @var int
45
+ */
46
+ protected $accessid = NULL;
47
+
48
+ /**
49
+ * @param int $txid
50
+ */
51
+ public function setTxid($txid)
52
+ {
53
+ $this->txid = $txid;
54
+ }
55
+
56
+ /**
57
+ * @return int
58
+ */
59
+ public function getTxid()
60
+ {
61
+ return $this->txid;
62
+ }
63
+
64
+ /**
65
+ * @param int $accessid
66
+ */
67
+ public function setAccessid($accessid)
68
+ {
69
+ $this->accessid = $accessid;
70
+ }
71
+
72
+ /**
73
+ * @return int
74
+ */
75
+ public function getAccessid()
76
+ {
77
+ return $this->accessid;
78
+ }
79
+
80
+ /**
81
+ * @param int $userid
82
+ */
83
+ public function setUserid($userid)
84
+ {
85
+ $this->userid = $userid;
86
+ }
87
+
88
+ /**
89
+ * @return int
90
+ */
91
+ public function getUserid()
92
+ {
93
+ return $this->userid;
94
+ }
95
+ }
lib/Payone/Api/Response/Management/GetFile.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Management_GetFile extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $response = NULL;
39
+
40
+ /**
41
+ * @param string $response
42
+ */
43
+ public function setResponse($response)
44
+ {
45
+ $this->response = $response;
46
+ }
47
+
48
+ /**
49
+ * @return string
50
+ */
51
+ public function getResponse()
52
+ {
53
+ return $this->response;
54
+ }
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function __toString()
60
+ {
61
+ if ($this->isError()) {
62
+ $result = parent::__toString();
63
+ }
64
+ else {
65
+ $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content');
66
+ $result = implode('|', $stringArray);
67
+ }
68
+ return $result;
69
+ }
70
+ }
lib/Payone/Api/Response/Management/ManageMandate/Approved.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Management_ManageMandate_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $mandate_identification = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $mandate_status = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $mandate_text = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $creditor_identifier = NULL;
51
+ /**
52
+ * @var string
53
+ */
54
+ protected $iban = NULL;
55
+ /**
56
+ * @var string
57
+ */
58
+ protected $bic = NULL;
59
+
60
+ /**
61
+ * @param string $mandateIdentification
62
+ */
63
+ public function setMandateIdentification($mandateIdentification)
64
+ {
65
+ $this->mandate_identification = $mandateIdentification;
66
+ }
67
+
68
+ /**
69
+ * @return string
70
+ */
71
+ public function getMandateIdentification()
72
+ {
73
+ return $this->mandate_identification;
74
+ }
75
+
76
+ /**
77
+ * @param string $mandateStatus
78
+ */
79
+ public function setMandateStatus($mandateStatus)
80
+ {
81
+ $this->mandate_status = $mandateStatus;
82
+ }
83
+
84
+ /**
85
+ * @return string
86
+ */
87
+ public function getMandateStatus()
88
+ {
89
+ return $this->mandate_status;
90
+ }
91
+
92
+ /**
93
+ * @param string $mandateText
94
+ */
95
+ public function setMandateText($mandateText)
96
+ {
97
+ $this->mandate_text = $mandateText;
98
+ }
99
+
100
+ /**
101
+ * @return string
102
+ */
103
+ public function getMandateText()
104
+ {
105
+ return $this->mandate_text;
106
+ }
107
+
108
+ /**
109
+ * @param string $creditorIdentifier
110
+ */
111
+ public function setCreditorIdentifier($creditorIdentifier)
112
+ {
113
+ $this->creditor_identifier = $creditorIdentifier;
114
+ }
115
+
116
+ /**
117
+ * @return string
118
+ */
119
+ public function getCreditorIdentifier()
120
+ {
121
+ return $this->creditor_identifier;
122
+ }
123
+
124
+ /**
125
+ * @param string $iban
126
+ */
127
+ public function setIban($iban)
128
+ {
129
+ $this->iban = $iban;
130
+ }
131
+
132
+ /**
133
+ * @return string
134
+ */
135
+ public function getIban()
136
+ {
137
+ return $this->iban;
138
+ }
139
+
140
+ /**
141
+ * @param string $bic
142
+ */
143
+ public function setBic($bic)
144
+ {
145
+ $this->bic = $bic;
146
+ }
147
+
148
+ /**
149
+ * @return string
150
+ */
151
+ public function getBic()
152
+ {
153
+ return $this->bic;
154
+ }
155
+ }
lib/Payone/Api/Response/Management/UpdateAccess/Ok.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Management_UpdateAccess_Ok extends Payone_Api_Response_Abstract
34
+ {
35
+ }
lib/Payone/Api/Response/Vauthorization/Approved.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Vauthorization_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $vxid = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $vaid = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $userid = NULL;
47
+
48
+ /**
49
+ * @param string $userid
50
+ */
51
+ public function setUserid($userid)
52
+ {
53
+ $this->userid = $userid;
54
+ }
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function getUserid()
60
+ {
61
+ return $this->userid;
62
+ }
63
+
64
+ /**
65
+ * @param string $vaid
66
+ */
67
+ public function setVaid($vaid)
68
+ {
69
+ $this->vaid = $vaid;
70
+ }
71
+
72
+ /**
73
+ * @return string
74
+ */
75
+ public function getVaid()
76
+ {
77
+ return $this->vaid;
78
+ }
79
+
80
+ /**
81
+ * @param int $vxid
82
+ */
83
+ public function setVxid($vxid)
84
+ {
85
+ $this->vxid = $vxid;
86
+ }
87
+
88
+ /**
89
+ * @return int
90
+ */
91
+ public function getVxid()
92
+ {
93
+ return $this->vxid;
94
+ }
95
+ }
lib/Payone/Api/Service/Management/GetFile.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Service_Management_GetFile
34
+ extends Payone_Api_Service_Abstract
35
+ {
36
+ /**
37
+ * @param Payone_Api_Request_GetFile $request
38
+ * @return Payone_Api_Response_Management_GetFile
39
+ * @throws Exception
40
+ */
41
+ public function getFile(Payone_Api_Request_GetFile $request)
42
+ {
43
+ try {
44
+ $this->validateRequest($request);
45
+
46
+ $requestParams = $request->toArray();
47
+
48
+ $adapter = $this->getAdapter();
49
+
50
+ $responseRaw = $adapter->request($requestParams);
51
+
52
+ $response = $this->getMapperResponse()->map($responseRaw);
53
+
54
+ $response->setRawResponse($adapter->getRawResponse());
55
+
56
+ $this->protocol($request, $response);
57
+ }
58
+ catch (Exception $e) {
59
+ $this->protocolException($e, $request);
60
+ throw $e;
61
+ }
62
+
63
+ return $response;
64
+ }
65
+
66
+ }
lib/Payone/Api/Service/Management/ManageMandate.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Service_Management_ManageMandate
34
+ extends Payone_Api_Service_Abstract
35
+ {
36
+ /**
37
+ * Perform ManageMandate for the injected Request
38
+ *
39
+ * @api
40
+ *
41
+ * @param Payone_Api_Request_ManageMandate $request
42
+ * @return Payone_Api_Response_Management_ManageMandate_Approved|Payone_Api_Response_Error
43
+ * @throws Exception
44
+ */
45
+ public function managemandate(Payone_Api_Request_ManageMandate $request)
46
+ {
47
+ try {
48
+ $this->validateRequest($request);
49
+
50
+ $requestParams = $request->toArray();
51
+
52
+ $adapter = $this->getAdapter();
53
+
54
+ $responseRaw = $adapter->request($requestParams);
55
+
56
+ $response = $this->getMapperResponse()->map($responseRaw);
57
+
58
+ $this->protocol($request, $response);
59
+ }
60
+ catch (Exception $e) {
61
+ $this->protocolException($e, $request);
62
+ throw $e;
63
+ }
64
+
65
+ return $response;
66
+ }
67
+ }
lib/Payone/Api/Service/Management/UpdateAccess.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * UpdateAccess by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServicePaymentUpdateAccess();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_UpdateAccess();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for a "createaccess" request
39
+ *
40
+ * // Start createaccess action:
41
+ * $response = $service->createaccess($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Management_UpdateAccess
52
+ extends Payone_Api_Service_Abstract
53
+ {
54
+ /**
55
+ * Perform UpdateAccess for the injected Request
56
+ *
57
+ * @api
58
+ *
59
+ * @param Payone_Api_Request_UpdateAccess $request
60
+ * @return Payone_Api_Response_Management_UpdateAccess_Ok|Payone_Api_Response_Error
61
+ * @throws Exception
62
+ */
63
+ public function updateaccess(Payone_Api_Request_UpdateAccess $request)
64
+ {
65
+ try {
66
+ $this->validateRequest($request);
67
+
68
+ $requestParams = $this->getMapperRequest()->map($request);
69
+
70
+ $responseRaw = $this->getAdapter()->request($requestParams);
71
+
72
+ $response = $this->getMapperResponse()->map($responseRaw);
73
+
74
+ $this->protocol($request, $response);
75
+ }
76
+ catch (Exception $e) {
77
+ $this->protocolException($e, $request);
78
+ throw $e;
79
+ }
80
+
81
+ return $response;
82
+ }
83
+ }
lib/Payone/Api/Service/Payment/CreateAccess.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * CreateAccess by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServicePaymentCreateAccess();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_CreateAccess();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for a "createaccess" request
39
+ *
40
+ * // Start createaccess action:
41
+ * $response = $service->createaccess($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Payment_CreateAccess
52
+ extends Payone_Api_Service_Payment_Abstract
53
+ implements Payone_Api_Service_Payment_CreateAccessInterface
54
+ {
55
+ /**
56
+ * Perform CreateAccess for the injected Request
57
+ *
58
+ * @api
59
+ *
60
+ * @param Payone_Api_Request_CreateAccess $request
61
+ * @return Payone_Api_Response_CreateAccess_Approved|Payone_Api_Response_Error
62
+ * @throws Exception
63
+ */
64
+ public function createaccess(Payone_Api_Request_CreateAccess $request)
65
+ {
66
+ try {
67
+ $this->validateRequest($request);
68
+
69
+ $requestParams = $this->getMapperRequest()->map($request);
70
+
71
+ $responseRaw = $this->getAdapter()->request($requestParams);
72
+
73
+ $response = $this->getMapperResponse()->map($responseRaw);
74
+
75
+ $this->protocol($request, $response);
76
+ }
77
+ catch (Exception $e) {
78
+ $this->protocolException($e, $request);
79
+ throw $e;
80
+ }
81
+
82
+ return $response;
83
+ }
84
+ }
lib/Payone/Api/Service/Payment/CreateAccessInterface.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_CreateAccessInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_CreateAccess $request
37
+ * @return Payone_Api_Response_CreateAccess_Approved|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function createaccess(Payone_Api_Request_CreateAccess $request);
41
+
42
+ }
lib/Payone/Api/Service/Payment/Vauthorize.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Vauthorize a new Payment by providing a Request Object
26
+ *
27
+ * <b>Example Using the Payone Builder</b>
28
+ * <pre class="prettyprint">
29
+ * // custom config can be injected, see Payone_Config
30
+ * $builder = new Payone_Builder();
31
+ *
32
+ * $service = $builder->buildServicePaymentVauthorize();
33
+ *
34
+ * $request = new Payone_Api_Request_Vauthorization();
35
+ *
36
+ * $service->authorize($request);
37
+ * </pre>
38
+ *
39
+ * @category Payone
40
+ * @package Payone_Api
41
+ * @subpackage Service
42
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
43
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
44
+ * @link http://www.noovias.com
45
+ *
46
+ * @api
47
+ */
48
+ class Payone_Api_Service_Payment_Vauthorize
49
+ extends Payone_Api_Service_Payment_Abstract
50
+ implements Payone_Api_Service_Payment_VauthorizeInterface
51
+ {
52
+ /**
53
+ * Execute Vauthorization for the injected Request
54
+ *
55
+ * @api
56
+ *
57
+ * @param Payone_Api_Request_Vauthorization $request
58
+ * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
59
+ * @throws Exception
60
+ */
61
+ public function vauthorize(Payone_Api_Request_Vauthorization $request)
62
+ {
63
+ try
64
+ {
65
+ $this->validateRequest($request);
66
+
67
+ $requestParams = $this->getMapperRequest()->map($request);
68
+
69
+ $responseRaw = $this->getAdapter()->request($requestParams);
70
+
71
+ $response = $this->getMapperResponse()->map($responseRaw);
72
+
73
+ $this->protocol($request, $response);
74
+ }
75
+ catch (Exception $e) {
76
+ $this->protocolException($e, $request);
77
+ throw $e;
78
+ }
79
+
80
+ return $response;
81
+ }
82
+
83
+ }
lib/Payone/Api/Service/Payment/VauthorizeInterface.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_VauthorizeInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Vauthorization $request
37
+ * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function vauthorize(Payone_Api_Request_Vauthorization $request);
41
+
42
+ }
lib/Payone/Builder.php CHANGED
@@ -35,6 +35,7 @@ class Payone_Builder
35
  const KEY_PROTOCOL = 'protocol';
36
  const KEY_SETTINGS = 'settings';
37
  const KEY_TRANSACTIONSTATUS = 'transaction_status';
 
38
 
39
  /** @var array */
40
  protected $factories = array();
@@ -57,6 +58,7 @@ class Payone_Builder
57
  $this->factories[self::KEY_PROTOCOL] = new Payone_Protocol_Factory();
58
  $this->factories[self::KEY_SETTINGS] = new Payone_Settings_Factory();
59
  $this->factories[self::KEY_TRANSACTIONSTATUS] = new Payone_TransactionStatus_Factory($config->getTransactionStatusConfig());
 
60
 
61
  }
62
 
@@ -140,6 +142,26 @@ class Payone_Builder
140
  return $this->buildService(self::KEY_API . '/management/getInvoice');
141
  }
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  /**
144
  * @api
145
  *
@@ -218,6 +240,34 @@ class Payone_Builder
218
  return $service;
219
  }
220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  /**
222
  * @param string $key Service key, e.g. "api/payment/authorize"
223
  * @return Payone_Api_Service_Payment_Abstract
35
  const KEY_PROTOCOL = 'protocol';
36
  const KEY_SETTINGS = 'settings';
37
  const KEY_TRANSACTIONSTATUS = 'transaction_status';
38
+ const KEY_SESSIONSTATUS = 'session_status';
39
 
40
  /** @var array */
41
  protected $factories = array();
58
  $this->factories[self::KEY_PROTOCOL] = new Payone_Protocol_Factory();
59
  $this->factories[self::KEY_SETTINGS] = new Payone_Settings_Factory();
60
  $this->factories[self::KEY_TRANSACTIONSTATUS] = new Payone_TransactionStatus_Factory($config->getTransactionStatusConfig());
61
+ $this->factories[self::KEY_SESSIONSTATUS] = new Payone_SessionStatus_Factory($config->getSessionStatusConfig());
62
 
63
  }
64
 
142
  return $this->buildService(self::KEY_API . '/management/getInvoice');
143
  }
144
 
145
+ /**
146
+ * @api
147
+ *
148
+ * @return Payone_Api_Service_Management_GetFile
149
+ */
150
+ public function buildServiceManagementGetFile()
151
+ {
152
+ return $this->buildService(self::KEY_API . '/management/getFile');
153
+ }
154
+
155
+ /**
156
+ * @api
157
+ *
158
+ * @return Payone_Api_Service_Management_ManageMandate
159
+ */
160
+ public function buildServiceManagementManageMandate()
161
+ {
162
+ return $this->buildService(self::KEY_API . '/management/manageMandate');
163
+ }
164
+
165
  /**
166
  * @api
167
  *
240
  return $service;
241
  }
242
 
243
+ /**
244
+ * @api
245
+ * @param $key
246
+ * @param array $validIps
247
+ * @return Payone_SessionStatus_Service_HandleRequest
248
+ */
249
+ public function buildServiceSessionStatusHandleRequest($key, array $validIps)
250
+ {
251
+ /** @var $service Payone_SessionStatus_Service_HandleRequest */
252
+ $service = $this->buildService(self::KEY_SESSIONSTATUS . '/handlerequest');
253
+ $validators = $service->getValidators();
254
+
255
+ foreach ($validators as $validator) {
256
+ if ($validator instanceof Payone_SessionStatus_Validator_DefaultParameters) {
257
+ /** @var $validator Payone_SessionStatus_Validator_DefaultParameters */
258
+ $validator->setKey($key);
259
+ }
260
+ elseif($validator instanceof Payone_SessionStatus_Validator_Ip)
261
+ {
262
+ /** @var $validator Payone_SessionStatus_Validator_Ip */
263
+ $validator->setValidIps($validIps);
264
+ $validator->setConfig($this->getConfig()->getSessionStatusConfig());
265
+ }
266
+ }
267
+
268
+ return $service;
269
+ }
270
+
271
  /**
272
  * @param string $key Service key, e.g. "api/payment/authorize"
273
  * @return Payone_Api_Service_Payment_Abstract
lib/Payone/Config.php CHANGED
@@ -80,6 +80,9 @@ class Payone_Config
80
  /** @var Payone_TransactionStatus_Config */
81
  protected $transactionStatusConfig = null;
82
 
 
 
 
83
  /**
84
  * @constructor
85
  *
@@ -96,6 +99,10 @@ class Payone_Config
96
  {
97
  $this->transactionStatusConfig = new Payone_TransactionStatus_Config();
98
  }
 
 
 
 
99
  $this->config = $this->getDefaultConfigData();
100
  }
101
  else {
@@ -103,6 +110,8 @@ class Payone_Config
103
  $this->setApiConfig($data['api']);
104
  if(array_key_exists('transaction_status',$data))
105
  $this->setTransactionStatusConfig($data['transaction_status']);
 
 
106
  $this->config = $data;
107
  }
108
  }
@@ -133,7 +142,8 @@ class Payone_Config
133
  {
134
  $configData = array(
135
  'api' => $this->getApiConfig(),
136
- 'transaction_status' => $this->getTransactionStatusConfig()
 
137
  );
138
 
139
  return $configData;
@@ -236,4 +246,19 @@ class Payone_Config
236
  return $this->transactionStatusConfig;
237
  }
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  }
80
  /** @var Payone_TransactionStatus_Config */
81
  protected $transactionStatusConfig = null;
82
 
83
+ /** @var Payone_SessionStatus_Config */
84
+ protected $sessionStatusConfig = null;
85
+
86
  /**
87
  * @constructor
88
  *
99
  {
100
  $this->transactionStatusConfig = new Payone_TransactionStatus_Config();
101
  }
102
+ if($this->getSessionStatusConfig() === null)
103
+ {
104
+ $this->sessionStatusConfig = new Payone_SessionStatus_Config();
105
+ }
106
  $this->config = $this->getDefaultConfigData();
107
  }
108
  else {
110
  $this->setApiConfig($data['api']);
111
  if(array_key_exists('transaction_status',$data))
112
  $this->setTransactionStatusConfig($data['transaction_status']);
113
+ if(array_key_exists('session_status',$data))
114
+ $this->setSessionStatusConfig($data['session_status']);
115
  $this->config = $data;
116
  }
117
  }
142
  {
143
  $configData = array(
144
  'api' => $this->getApiConfig(),
145
+ 'transaction_status' => $this->getTransactionStatusConfig(),
146
+ 'session_status' => $this->getSessionStatusConfig()
147
  );
148
 
149
  return $configData;
246
  return $this->transactionStatusConfig;
247
  }
248
 
249
+ /**
250
+ * @param Payone_SessionStatus_Config $sessionStatusConfig
251
+ */
252
+ public function setSessionStatusConfig($sessionStatusConfig)
253
+ {
254
+ $this->sessionStatusConfig = $sessionStatusConfig;
255
+ }
256
+
257
+ /**
258
+ * @return Payone_SessionStatus_Config
259
+ */
260
+ public function getSessionStatusConfig()
261
+ {
262
+ return $this->sessionStatusConfig;
263
+ }
264
  }
lib/Payone/Protocol/Config/Filter.php CHANGED
@@ -59,6 +59,14 @@ class Payone_Protocol_Config_Filter
59
  ),
60
  'Payone_Api_Request_3dsCheck' => array(
61
  'cardpan' => 'mask_value'
 
 
 
 
 
 
 
 
62
  )
63
  );
64
 
59
  ),
60
  'Payone_Api_Request_3dsCheck' => array(
61
  'cardpan' => 'mask_value'
62
+ ),
63
+ 'Payone_Api_Request_CreateAccess' => array(
64
+ 'payment/cardpan' => 'mask_value',
65
+ 'payment/bankaccount' => 'mask_value'
66
+ ),
67
+ 'Payone_Api_Request_Vauthorization' => array(
68
+ 'payment/cardpan' => 'mask_value',
69
+ 'payment/bankaccount' => 'mask_value'
70
  )
71
  );
72
 
lib/Payone/SessionStatus/Config.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Api
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_SessionStatus_Config extends Payone_Config_Abstract
32
+ {
33
+ /**
34
+ * @return array
35
+ */
36
+ public function getDefaultConfigData()
37
+ {
38
+ $defaultConfig = array(
39
+ 'default' => array(
40
+ 'validators' => array(
41
+ 'Payone_SessionStatus_Validator_Ip',
42
+ 'Payone_SessionStatus_Validator_DefaultParameters',
43
+ ),
44
+ 'protocol' => array(
45
+ 'filter' => array(
46
+ 'mask_value' => array(
47
+ 'enabled' => 1,
48
+ 'percent' => 100
49
+ )
50
+ ),
51
+ 'loggers' => array(
52
+ 'Payone_Protocol_Logger_Log4php' => array(
53
+ 'filename' => 'payone_sessionstatus.log',
54
+ 'max_file_size' => '1MB',
55
+ 'max_file_count' => 20
56
+ )
57
+ ),
58
+ ),
59
+ )
60
+ );
61
+ return $defaultConfig;
62
+ }
63
+
64
+ }
lib/Payone/SessionStatus/Enum/Action.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Enum_Action
34
+ {
35
+ const ADD = 'add';
36
+ const REMOVE = 'remove';
37
+ const ABOCANCEL = 'abocancel';
38
+ const RENEW = 'renew';
39
+ const CANCEL_REVERSAL = 'cancel_reversal';
40
+ const LOCK = 'lock';
41
+ const UNLOCK = 'unlock';
42
+ }
lib/Payone/SessionStatus/Exception/Abstract.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_SessionStatus_Exception_Abstract extends Exception
34
+ {
35
+
36
+ }
lib/Payone/SessionStatus/Exception/MissmatchingKeys.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Exception_MissmatchingKeys
34
+ extends Payone_SessionStatus_Exception_Abstract
35
+ {
36
+
37
+ }
lib/Payone/SessionStatus/Exception/NoPostRequest.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Exception_NoPostRequest
34
+ extends Payone_SessionStatus_Exception_Abstract
35
+ {
36
+
37
+ }
lib/Payone/SessionStatus/Exception/NoRequestData.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Exception_NoRequestData
34
+ extends Payone_SessionStatus_Exception_Abstract
35
+ {
36
+
37
+ }
lib/Payone/SessionStatus/Exception/Validation.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Exception_Validation
34
+ extends Payone_SessionStatus_Exception_Abstract
35
+ {
36
+
37
+ }
lib/Payone/SessionStatus/Factory.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_SessionStatus
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_SessionStatus_Factory
32
+ {
33
+
34
+ /** @var Payone_SessionStatus_Config */
35
+ protected $config = null;
36
+
37
+ /**
38
+ * @constructor
39
+ * @param Payone_SessionStatus_Config $config
40
+ */
41
+ public function __construct(Payone_SessionStatus_Config $config = null)
42
+ {
43
+ $this->config = $config;
44
+ }
45
+
46
+ /**
47
+ * @return Payone_SessionStatus_Service_ProtocolRequest
48
+ */
49
+ public function buildServiceProtocolRequest()
50
+ {
51
+ $service = new Payone_SessionStatus_Service_ProtocolRequest();
52
+ return $service;
53
+ }
54
+
55
+ /**
56
+ * @return Payone_SessionStatus_Mapper_Request
57
+ */
58
+ protected function buildMapperRequest()
59
+ {
60
+ $mapper = new Payone_SessionStatus_Mapper_Request();
61
+ return $mapper;
62
+ }
63
+
64
+ /**
65
+ * @param $key
66
+ * @return Payone_SessionStatus_Service_HandleRequest
67
+ * @throws Exception
68
+ */
69
+ public function buildService($key)
70
+ {
71
+ switch ($key)
72
+ {
73
+ case 'handlerequest' :
74
+ return $this->buildServiceHandleRequest();
75
+ break;
76
+ default :
77
+ throw new Exception('Could not build service with key "' . $key . '"');
78
+ break;
79
+ }
80
+ }
81
+
82
+ /**
83
+ * @return Payone_SessionStatus_Service_HandleRequest
84
+ */
85
+ public function buildServiceHandleRequest()
86
+ {
87
+ $service = new Payone_SessionStatus_Service_HandleRequest();
88
+ $service->setMapper($this->buildMapperRequest());
89
+
90
+ return $service;
91
+ }
92
+
93
+ /**
94
+ * @param string $key
95
+ * @return Payone_SessionStatus_Validator_DefaultParameters
96
+ */
97
+ protected function buildValidatorDefault($key = '')
98
+ {
99
+ $validator = new Payone_SessionStatus_Validator_DefaultParameters();
100
+ $validator->setKey($key);
101
+ return $validator;
102
+ }
103
+
104
+ /**
105
+ * @param Payone_SessionStatus_Config $config
106
+ */
107
+ public function setConfig($config)
108
+ {
109
+ $this->config = $config;
110
+ }
111
+
112
+ /**
113
+ * @return Payone_SessionStatus_Config
114
+ */
115
+ public function getConfig()
116
+ {
117
+ return $this->config;
118
+ }
119
+
120
+
121
+ }
lib/Payone/SessionStatus/Mapper/Request.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Mapper_Request
34
+ implements Payone_SessionStatus_Mapper_RequestInterface
35
+ {
36
+ public function mapByArray(array $data)
37
+ {
38
+ $request = new Payone_SessionStatus_Request();
39
+
40
+ // @todo currently simple mapping, could be more complex
41
+ $this->mapDefaultParameters($data, &$request);
42
+ $this->mapStatusItems($data, &$request);
43
+
44
+ return $request;
45
+ }
46
+
47
+ /**
48
+ * @param array $data
49
+ * @param Payone_SessionStatus_Request $request
50
+ * @return bool
51
+ */
52
+ protected function mapDefaultParameters(array $data, Payone_SessionStatus_Request $request)
53
+ {
54
+ if (array_key_exists('key', $data)) {
55
+ $request->setKey($data['key']);
56
+ }
57
+
58
+ return true;
59
+ }
60
+
61
+ /**
62
+ * @param array $data
63
+ * @param Payone_SessionStatus_Request $request
64
+ * @return bool
65
+ */
66
+ protected function mapStatusItems(array $data, Payone_SessionStatus_Request $request)
67
+ {
68
+ unset($data['key']);
69
+ $itemsData = array();
70
+ foreach ($data as $key => $value) {
71
+ if (is_array($value)) {
72
+ foreach ($value as $subkey => $subvalue) {
73
+ $itemsData[$subkey][$key] = $subvalue;
74
+ }
75
+ }
76
+ }
77
+
78
+ $items = array();
79
+ foreach ($itemsData as $item) {
80
+ $items[] = new Payone_SessionStatus_Request_Item($item);
81
+ }
82
+
83
+ $request->setSessionStatusItems($items);
84
+
85
+ return true;
86
+ }
87
+ }
lib/Payone/SessionStatus/Mapper/RequestInterface.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_SessionStatus_Mapper_RequestInterface
34
+ {
35
+ /**
36
+ * @abstract
37
+ * @param array $data
38
+ * @return Payone_SessionStatus_Request
39
+ */
40
+ public function mapByArray(array $data);
41
+
42
+ }
lib/Payone/SessionStatus/Persistence/Interface.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Persistence
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * This Interface defines the methods that have to be implemented to save an api communication
26
+ *
27
+ * @category Payone
28
+ * @package Payone_SessionStatus
29
+ * @subpackage Persistence
30
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
31
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
32
+ * @link http://www.noovias.com
33
+ */
34
+ interface Payone_SessionStatus_Persistence_Interface
35
+ {
36
+ /**
37
+ * @abstract
38
+ * @return string
39
+ */
40
+ public function getKey();
41
+
42
+ /**
43
+ * @abstract
44
+ * @param Payone_SessionStatus_Request_Interface $request
45
+ * @param Payone_SessionStatus_Response_Interface $response
46
+ * @return boolean
47
+ */
48
+ public function save(
49
+ Payone_SessionStatus_Request_Interface $request,
50
+ Payone_SessionStatus_Response_Interface $response
51
+ );
52
+
53
+ }
lib/Payone/SessionStatus/Request.php ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Request extends Payone_SessionStatus_Request_Abstract
34
+ {
35
+ /**
36
+ * @var string Payment portal key as MD5 value
37
+ */
38
+ protected $key = NULL;
39
+
40
+ /**
41
+ * @var Payone_SessionStatus_Request_Item[]
42
+ */
43
+ //@todo cw: use correct name $sessionStatusItems
44
+ protected $sessionStatusItems = array();
45
+
46
+ public function toArray()
47
+ {
48
+ $data = parent::toArray();
49
+
50
+ $i = 0;
51
+ foreach ($this->getSessionStatusItems() as $key => $item) {
52
+ /** @var $item Payone_SessionStatus_Request_Item */
53
+
54
+ $data = array_merge($data, $item->toArrayByKey($i));
55
+
56
+ $i++;
57
+ }
58
+ //unset mapped item
59
+ unset($data['sessionStatusItems']);
60
+
61
+ return $data;
62
+ }
63
+
64
+ /**
65
+ * @param string $key
66
+ */
67
+ public function setKey($key)
68
+ {
69
+ $this->key = $key;
70
+ }
71
+
72
+ /**
73
+ * @return string
74
+ */
75
+ public function getKey()
76
+ {
77
+ return $this->key;
78
+ }
79
+
80
+ /**
81
+ * @param \Payone_SessionStatus_Request_Item[] $sessionstatus_items
82
+ */
83
+ public function setSessionStatusItems($sessionstatus_items)
84
+ {
85
+ $this->sessionStatusItems = $sessionstatus_items;
86
+ }
87
+
88
+ /**
89
+ * @return \Payone_SessionStatus_Request_Item[]
90
+ */
91
+ public function getSessionStatusItems()
92
+ {
93
+ return $this->sessionStatusItems;
94
+ }
95
+
96
+ /**
97
+ * @return bool
98
+ */
99
+ public function hasSessionstatusItems()
100
+ {
101
+ return count($this->sessionStatusItems) ? true : false;
102
+ }
103
+
104
+ /**
105
+ * @param Payone_SessionStatus_Request_Item $item
106
+ */
107
+ public function addSessionstatusItem(Payone_SessionStatus_Request_Item $item)
108
+ {
109
+ $this->sessionStatusItems[] = $item;
110
+ }
111
+ }
lib/Payone/SessionStatus/Request/Abstract.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_SessionStatus_Request_Abstract
37
+ implements Payone_SessionStatus_Request_Interface, Payone_Protocol_Filter_Filterable
38
+ {
39
+ function __construct(array $params = array())
40
+ {
41
+ if (count($params) > 0) {
42
+ $this->init($params);
43
+ }
44
+ }
45
+
46
+ public function init(array $data = array())
47
+ {
48
+ foreach ($data as $key => $value)
49
+ {
50
+ $this->set($key, $value);
51
+ }
52
+ }
53
+
54
+ /**
55
+ * @return string
56
+ */
57
+ public function __toString()
58
+ {
59
+ $stringArray = array();
60
+ foreach ($this->toArray() as $key => $value) {
61
+ $stringArray[] = $key . '=' . $value;
62
+ }
63
+
64
+ $result = implode('|', $stringArray);
65
+ return $result;
66
+ }
67
+
68
+ /**
69
+ * @return array
70
+ */
71
+ public function toArray()
72
+ {
73
+ $result = array();
74
+ foreach ($this as $key => $data)
75
+ {
76
+ if ($data === null) {
77
+ continue;
78
+ }
79
+ else {
80
+ $result[$key] = $data;
81
+ }
82
+ }
83
+
84
+ ksort($result);
85
+
86
+ return $result;
87
+ }
88
+
89
+ /**
90
+ * @param string $key
91
+ * @return null|mixed
92
+ */
93
+ public function getValue($key)
94
+ {
95
+ return $this->get($key);
96
+ }
97
+
98
+ /**
99
+ * @param string $key
100
+ * @param string $name
101
+ * @return boolean|null
102
+ */
103
+ public function setValue($key, $name)
104
+ {
105
+ return $this->set($key, $name);
106
+ }
107
+
108
+ /**
109
+ * @param $name
110
+ * @return null|mixed
111
+ */
112
+ public function get($name)
113
+ {
114
+ if (property_exists($this, $name)) {
115
+ return $this->$name;
116
+ }
117
+ return null;
118
+ }
119
+
120
+ /**
121
+ * @param string $name
122
+ * @param mixed $value
123
+ * @return boolean|null
124
+ */
125
+ public function set($name, $value)
126
+ {
127
+ if (property_exists($this, $name)) {
128
+ $this->$name = $value;
129
+ return true;
130
+ }
131
+ return null;
132
+ }
133
+ }
lib/Payone/SessionStatus/Request/Interface.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_SessionStatus_Request_Interface
34
+ {
35
+ /**
36
+ * @abstract
37
+ * @param array $data
38
+ */
39
+ public function init(array $data = array());
40
+
41
+ /**
42
+ * @return array
43
+ */
44
+ public function toArray();
45
+
46
+ /**
47
+ * @return array
48
+ */
49
+ public function __toString();
50
+
51
+ /**
52
+ * @param string $key
53
+ */
54
+ public function setKey($key);
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function getKey();
60
+ }
lib/Payone/SessionStatus/Request/Item.php ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+ class Payone_SessionStatus_Request_Item extends Payone_SessionStatus_Request_Item_Abstract
36
+ {
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $accessid = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $action = NULL;
45
+ /**
46
+ * @var int
47
+ */
48
+ protected $portalid = NULL;
49
+ /**
50
+ * @var int
51
+ */
52
+ protected $productid = NULL;
53
+ /**
54
+ * @var int
55
+ */
56
+ protected $expiretime = NULL;
57
+ /**
58
+ * @var int
59
+ */
60
+ protected $userid = NULL;
61
+ /**
62
+ * @var string
63
+ */
64
+ protected $customerid = NULL;
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $accessname = NULL;
69
+ /**
70
+ * @var string
71
+ */
72
+ protected $accesscode = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $ip = NULL;
77
+ /**
78
+ * @var string
79
+ */
80
+ protected $param = NULL;
81
+
82
+
83
+ /**
84
+ * @param int $key
85
+ * @return array
86
+ */
87
+ public function toArrayByKey($key)
88
+ {
89
+ $data = array();
90
+ $data['accessid[' . $key . ']'] = $this->getAccessid();
91
+ $data['action[' . $key . ']'] = $this->getAction();
92
+ $data['portalid[' . $key . ']'] = $this->getPortalid();
93
+ $data['productid[' . $key . ']'] = $this->getProductid();
94
+ $data['expiretime[' . $key . ']'] = $this->getExpiretime();
95
+ $data['userid[' . $key . ']'] = $this->getUserid();
96
+ $data['customerid[' . $key . ']'] = $this->getCustomerid();
97
+ $data['accessname[' . $key . ']'] = $this->getAccessname();
98
+ $data['accesscode[' . $key . ']'] = $this->getAccesscode();
99
+ $data['ip[' . $key . ']'] = $this->getIp();
100
+ $data['param[' . $key . ']'] = $this->getParam();
101
+ return $data;
102
+ }
103
+
104
+ /**
105
+ * @param string $accesscode
106
+ */
107
+ public function setAccesscode($accesscode)
108
+ {
109
+ $this->accesscode = $accesscode;
110
+ }
111
+
112
+ /**
113
+ * @return string
114
+ */
115
+ public function getAccesscode()
116
+ {
117
+ return $this->accesscode;
118
+ }
119
+
120
+ /**
121
+ * @param int $accessid
122
+ */
123
+ public function setAccessid($accessid)
124
+ {
125
+ $this->accessid = $accessid;
126
+ }
127
+
128
+ /**
129
+ * @return int
130
+ */
131
+ public function getAccessid()
132
+ {
133
+ return $this->accessid;
134
+ }
135
+
136
+ /**
137
+ * @param string $accessname
138
+ */
139
+ public function setAccessname($accessname)
140
+ {
141
+ $this->accessname = $accessname;
142
+ }
143
+
144
+ /**
145
+ * @return string
146
+ */
147
+ public function getAccessname()
148
+ {
149
+ return $this->accessname;
150
+ }
151
+
152
+ /**
153
+ * @param string $action
154
+ */
155
+ public function setAction($action)
156
+ {
157
+ $this->action = $action;
158
+ }
159
+
160
+ /**
161
+ * @return string
162
+ */
163
+ public function getAction()
164
+ {
165
+ return $this->action;
166
+ }
167
+
168
+ /**
169
+ * @param string $customerid
170
+ */
171
+ public function setCustomerid($customerid)
172
+ {
173
+ $this->customerid = $customerid;
174
+ }
175
+
176
+ /**
177
+ * @return string
178
+ */
179
+ public function getCustomerid()
180
+ {
181
+ return $this->customerid;
182
+ }
183
+
184
+ /**
185
+ * @param int $expiretime
186
+ */
187
+ public function setExpiretime($expiretime)
188
+ {
189
+ $this->expiretime = $expiretime;
190
+ }
191
+
192
+ /**
193
+ * @return int
194
+ */
195
+ public function getExpiretime()
196
+ {
197
+ return $this->expiretime;
198
+ }
199
+
200
+ /**
201
+ * @param string $ip
202
+ */
203
+ public function setIp($ip)
204
+ {
205
+ $this->ip = $ip;
206
+ }
207
+
208
+ /**
209
+ * @return string
210
+ */
211
+ public function getIp()
212
+ {
213
+ return $this->ip;
214
+ }
215
+
216
+ /**
217
+ * @param string $param
218
+ */
219
+ public function setParam($param)
220
+ {
221
+ $this->param = $param;
222
+ }
223
+
224
+ /**
225
+ * @return string
226
+ */
227
+ public function getParam()
228
+ {
229
+ return $this->param;
230
+ }
231
+
232
+ /**
233
+ * @param int $portalid
234
+ */
235
+ public function setPortalid($portalid)
236
+ {
237
+ $this->portalid = $portalid;
238
+ }
239
+
240
+ /**
241
+ * @return int
242
+ */
243
+ public function getPortalid()
244
+ {
245
+ return $this->portalid;
246
+ }
247
+
248
+ /**
249
+ * @param int $productid
250
+ */
251
+ public function setProductid($productid)
252
+ {
253
+ $this->productid = $productid;
254
+ }
255
+
256
+ /**
257
+ * @return int
258
+ */
259
+ public function getProductid()
260
+ {
261
+ return $this->productid;
262
+ }
263
+
264
+ /**
265
+ * @param int $userid
266
+ */
267
+ public function setUserid($userid)
268
+ {
269
+ $this->userid = $userid;
270
+ }
271
+
272
+ /**
273
+ * @return int
274
+ */
275
+ public function getUserid()
276
+ {
277
+ return $this->userid;
278
+ }
279
+
280
+ }
lib/Payone/SessionStatus/Request/Item/Abstract.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_SessionStatus_Request_Item_Abstract
37
+ implements Payone_SessionStatus_Request_Item_Interface, Payone_Protocol_Filter_Filterable
38
+ {
39
+ function __construct(array $params = array())
40
+ {
41
+ if (count($params) > 0) {
42
+ $this->init($params);
43
+ }
44
+ }
45
+
46
+ public function init(array $data = array())
47
+ {
48
+ foreach ($data as $key => $value)
49
+ {
50
+ $this->set($key, $value);
51
+ }
52
+ }
53
+
54
+ /**
55
+ * @return string
56
+ */
57
+ public function __toString()
58
+ {
59
+ $stringArray = array();
60
+ foreach ($this->toArray() as $key => $value) {
61
+ $stringArray[] = $key . '=' . $value;
62
+ }
63
+
64
+ $result = implode('|', $stringArray);
65
+ return $result;
66
+ }
67
+
68
+ /**
69
+ * @return array
70
+ */
71
+ public function toArray()
72
+ {
73
+ $result = array();
74
+ foreach ($this as $key => $data)
75
+ {
76
+ if ($data === null) {
77
+ continue;
78
+ }
79
+ else {
80
+ $result[$key] = $data;
81
+ }
82
+ }
83
+
84
+ ksort($result);
85
+
86
+ return $result;
87
+ }
88
+
89
+ /**
90
+ * @param string $key
91
+ * @return null|mixed
92
+ */
93
+ public function getValue($key)
94
+ {
95
+ return $this->get($key);
96
+ }
97
+
98
+ /**
99
+ * @param string $key
100
+ * @param string $name
101
+ * @return boolean|null
102
+ */
103
+ public function setValue($key, $name)
104
+ {
105
+ return $this->set($key, $name);
106
+ }
107
+
108
+ /**
109
+ * @param $name
110
+ * @return null|mixed
111
+ */
112
+ public function get($name)
113
+ {
114
+ if (property_exists($this, $name)) {
115
+ return $this->$name;
116
+ }
117
+ return null;
118
+ }
119
+
120
+ /**
121
+ * @param string $name
122
+ * @param mixed $value
123
+ * @return boolean|null
124
+ */
125
+ public function set($name, $value)
126
+ {
127
+ if (property_exists($this, $name)) {
128
+ $this->$name = $value;
129
+ return true;
130
+ }
131
+ return null;
132
+ }
133
+ }
lib/Payone/SessionStatus/Request/Item/Interface.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_SessionStatus_Request_Item_Interface
34
+ {
35
+ /**
36
+ * @abstract
37
+ * @param array $data
38
+ */
39
+ public function init(array $data = array());
40
+
41
+ /**
42
+ * @return array
43
+ */
44
+ public function toArray();
45
+
46
+ /**
47
+ * @return array
48
+ */
49
+ public function __toString();
50
+
51
+ /**
52
+ * @param int $accessid
53
+ */
54
+ public function setAccessid($accessid);
55
+
56
+ /**
57
+ * @return int
58
+ */
59
+ public function getAccessid();
60
+
61
+ /**
62
+ * @param string $action
63
+ */
64
+ public function setAction($action);
65
+
66
+ /**
67
+ * @return string
68
+ */
69
+ public function getAction();
70
+
71
+ /**
72
+ * @param int $portalid
73
+ */
74
+ public function setPortalid($portalid);
75
+
76
+ /**
77
+ * @return int
78
+ */
79
+ public function getPortalid();
80
+
81
+ /**
82
+ * @param int $productid
83
+ */
84
+ public function setProductid($productid);
85
+
86
+ /**
87
+ * @return int
88
+ */
89
+ public function getProductid();
90
+
91
+ /**
92
+ * @param int $expiretime
93
+ */
94
+ public function setExpiretime($expiretime);
95
+
96
+ /**
97
+ * @return int
98
+ */
99
+ public function getExpiretime();
100
+
101
+ /**
102
+ * @param int $userid
103
+ */
104
+ public function setUserid($userid);
105
+
106
+ /**
107
+ * @return int
108
+ */
109
+ public function getUserid();
110
+
111
+ /**
112
+ * @param string $customerid
113
+ */
114
+ public function setCustomerid($customerid);
115
+
116
+ /**
117
+ * @return string
118
+ */
119
+ public function getCustomerid();
120
+
121
+ /**
122
+ * @param string $accessname
123
+ */
124
+ public function setAccessname($accessname);
125
+
126
+ /**
127
+ * @return string
128
+ */
129
+ public function getAccessname();
130
+
131
+ /**
132
+ * @param string $accesscode
133
+ */
134
+ public function setAccesscode($accesscode);
135
+
136
+ /**
137
+ * @return string
138
+ */
139
+ public function getAccesscode();
140
+
141
+ /**
142
+ * @param string $ip
143
+ */
144
+ public function setIp($ip);
145
+
146
+ /**
147
+ * @return string
148
+ */
149
+ public function getIp();
150
+
151
+ /**
152
+ * @param string $param
153
+ */
154
+ public function setParam($param);
155
+
156
+ /**
157
+ * @return string
158
+ */
159
+ public function getParam();
160
+ }
lib/Payone/SessionStatus/Response.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Response extends Payone_SessionStatus_Response_Abstract
34
+ {
35
+ const STATUS_OK = 'SSOK';
36
+
37
+ /**
38
+ * @var string
39
+ */
40
+ protected $status = NULL;
41
+
42
+ function __construct($status = '')
43
+ {
44
+ $this->setStatus($status);
45
+ }
46
+
47
+ /**
48
+ * @return string
49
+ */
50
+ public function __toString()
51
+ {
52
+ return $this->getStatus();
53
+ }
54
+
55
+ /**
56
+ * @param string $status
57
+ */
58
+ public function setStatus($status)
59
+ {
60
+ $this->status = $status;
61
+ }
62
+
63
+ /**
64
+ * @return string
65
+ */
66
+ public function getStatus()
67
+ {
68
+ return $this->status;
69
+ }
70
+ }
lib/Payone/SessionStatus/Response/Abstract.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_SessionStatus_Response_Abstract
37
+ implements Payone_SessionStatus_Response_Interface, Payone_Protocol_Filter_Filterable
38
+ {
39
+ /**
40
+ * @param string $key
41
+ * @return null|mixed
42
+ */
43
+ public function getValue($key)
44
+ {
45
+ return $this->get($key);
46
+ }
47
+
48
+ /**
49
+ * @param string $key
50
+ * @param string $name
51
+ * @return boolean|null
52
+ */
53
+ public function setValue($key, $name)
54
+ {
55
+ return $this->set($key, $name);
56
+ }
57
+
58
+ /**
59
+ * @param $name
60
+ * @return null|mixed
61
+ */
62
+ protected function get($name)
63
+ {
64
+ if (property_exists($this, $name)) {
65
+ return $this->$name;
66
+ }
67
+ return null;
68
+ }
69
+
70
+ /**
71
+ * @param string $name
72
+ * @param mixed $value
73
+ * @return boolean|null
74
+ */
75
+ protected function set($name, $value)
76
+ {
77
+ if (property_exists($this, $name)) {
78
+ $this->$name = $value;
79
+ return true;
80
+ }
81
+ return null;
82
+ }
83
+
84
+ }
lib/Payone/SessionStatus/Response/Interface.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_SessionStatus_Response_Interface
34
+ {
35
+ public function __toString();
36
+ }
lib/Payone/SessionStatus/Service/HandleRequest.php ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Service_HandleRequest
34
+ {
35
+ /**
36
+ * @var Payone_SessionStatus_Service_ProtocolRequest_Interface
37
+ */
38
+ protected $serviceProtocol = null;
39
+ /**
40
+ * @todo we could use a Service here which uses a collection of Valdiators to validate the Request
41
+ *
42
+ * @var Payone_SessionStatus_Validator_Interface[]
43
+ */
44
+ protected $validators = null;
45
+ /**
46
+ * @var Payone_SessionStatus_Mapper_RequestInterface
47
+ */
48
+ protected $mapper = null;
49
+
50
+ /**
51
+ * @param Payone_SessionStatus_Request $request
52
+ * @return Payone_SessionStatus_Response
53
+ */
54
+ public function handleByRequest(Payone_SessionStatus_Request $request)
55
+ {
56
+ return $this->handle($request);
57
+ }
58
+
59
+ /**
60
+ * @param array $data
61
+ * @return Payone_SessionStatus_Response
62
+ * @throws Payone_SessionStatus_Exception_NoRequestData
63
+ */
64
+ public function handleByArray(array $data)
65
+ {
66
+ if (count($data) == 0) {
67
+ throw new Payone_SessionStatus_Exception_NoRequestData();
68
+ }
69
+ $request = $this->getMapper()->mapByArray($data);
70
+ return $this->handle($request);
71
+ }
72
+
73
+ /**
74
+ * @return Payone_SessionStatus_Response
75
+ * @throws Payone_SessionStatus_Exception_NoPostRequest
76
+ */
77
+ public function handleByPost()
78
+ {
79
+ if (count($_POST) == 0) {
80
+ throw new Payone_SessionStatus_Exception_NoPostRequest();
81
+ }
82
+ $request = $this->getMapper()->mapByArray($_POST);
83
+ return $this->handle($request);
84
+ }
85
+
86
+ /**
87
+ * @param Payone_SessionStatus_Request $request
88
+ * @return Payone_SessionStatus_Response
89
+ * @throws Exception
90
+ */
91
+ protected function handle(Payone_SessionStatus_Request $request)
92
+ {
93
+ try {
94
+ // Validate
95
+ $this->validateRequest($request);
96
+
97
+ //
98
+ $response = new Payone_SessionStatus_Response('SSOK');
99
+
100
+ // Protocol
101
+ $this->protocol($request, $response);
102
+ }
103
+ catch (Exception $e) {
104
+ $this->protocolException($e, $request);
105
+ throw $e;
106
+ }
107
+
108
+ return $response;
109
+ }
110
+
111
+ /**
112
+ * @param Payone_SessionStatus_Request $request
113
+ */
114
+ protected function validateRequest(Payone_SessionStatus_Request $request)
115
+ {
116
+ $validators = $this->getValidators();
117
+ foreach ($validators as $validator) {
118
+ if ($validator instanceof Payone_SessionStatus_Validator_Interface) {
119
+ $validator->validateRequest($request);
120
+ }
121
+ }
122
+ }
123
+
124
+
125
+ /**
126
+ * @param Payone_SessionStatus_Request_Interface $request
127
+ * @param Payone_SessionStatus_Response_Interface $response
128
+ */
129
+ protected function protocol(Payone_SessionStatus_Request_Interface $request,
130
+ Payone_SessionStatus_Response_Interface $response)
131
+ {
132
+ $serviceProtocol = $this->getServiceProtocol();
133
+ if ($serviceProtocol instanceof Payone_SessionStatus_Service_ProtocolRequest_Interface) {
134
+ $serviceProtocol->protocol($request, $response);
135
+ }
136
+ }
137
+
138
+ /**
139
+ * @param Exception $e
140
+ * @param Payone_SessionStatus_Request_Interface $request
141
+ */
142
+ protected function protocolException(Exception $e, Payone_SessionStatus_Request_Interface $request)
143
+ {
144
+ $serviceProtocol = $this->getServiceProtocol();
145
+ if ($serviceProtocol instanceof Payone_SessionStatus_Service_ProtocolRequest_Interface) {
146
+ $serviceProtocol->protocolException($e, $request);
147
+ }
148
+ }
149
+
150
+ /**
151
+ * @param \Payone_SessionStatus_Service_ProtocolRequest_Interface $serviceProtocol
152
+ */
153
+ public function setServiceProtocol(Payone_SessionStatus_Service_ProtocolRequest_Interface $serviceProtocol)
154
+ {
155
+ $this->serviceProtocol = $serviceProtocol;
156
+ }
157
+
158
+ /**
159
+ * @return \Payone_SessionStatus_Service_ProtocolRequest_Interface
160
+ */
161
+ public function getServiceProtocol()
162
+ {
163
+ return $this->serviceProtocol;
164
+ }
165
+
166
+ /**
167
+ * @param Payone_SessionStatus_Validator_Interface[] $validator
168
+ */
169
+ public function setValidators(array $validator)
170
+ {
171
+ $this->validators = $validator;
172
+ }
173
+
174
+ /**
175
+ * @return Payone_SessionStatus_Validator_Interface[]
176
+ */
177
+ public function getValidators()
178
+ {
179
+ return $this->validators;
180
+ }
181
+
182
+ /**
183
+ * @param Payone_SessionStatus_Validator_Interface $validator
184
+ */
185
+ public function addValidator(Payone_SessionStatus_Validator_Interface $validator)
186
+ {
187
+ $this->validators[] = $validator;
188
+ }
189
+
190
+ /**
191
+ * @param \Payone_SessionStatus_Mapper_RequestInterface $mapper
192
+ */
193
+ public function setMapper(Payone_SessionStatus_Mapper_RequestInterface $mapper)
194
+ {
195
+ $this->mapper = $mapper;
196
+ }
197
+
198
+ /**
199
+ * @return \Payone_SessionStatus_Mapper_RequestInterface
200
+ */
201
+ public function getMapper()
202
+ {
203
+ return $this->mapper;
204
+ }
205
+
206
+ }
lib/Payone/SessionStatus/Service/ProtocolRequest.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Service_ProtocolRequest
34
+ extends Payone_Protocol_Service_Protocol_Abstract
35
+ implements Payone_SessionStatus_Service_ProtocolRequest_Interface
36
+ {
37
+ /**
38
+ * @var Payone_SessionStatus_Persistence_Interface[]
39
+ */
40
+ protected $repositories = array();
41
+
42
+ /**
43
+ * @param Payone_SessionStatus_Request_Interface $request
44
+ * @param null|Payone_SessionStatus_Response_Interface $response
45
+ */
46
+ public function protocol(
47
+ Payone_SessionStatus_Request_Interface $request,
48
+ Payone_SessionStatus_Response_Interface $response = null
49
+ )
50
+ {
51
+ $this->getServiceApplyFilters()->apply($request);
52
+ $this->getServiceApplyFilters()->apply($response);
53
+
54
+
55
+ foreach ($this->loggers as $key => $logger)
56
+ {
57
+ /** @var $logger Payone_Protocol_Logger_Interface */
58
+ $requestAsString = $request->__toString();
59
+ $responseAsString = $response->__toString();
60
+
61
+ $logger->log($requestAsString, Payone_Protocol_Logger_Interface::LEVEL_INFO);
62
+ $logger->log($responseAsString, Payone_Protocol_Logger_Interface::LEVEL_INFO);
63
+ }
64
+
65
+ foreach ($this->repositories as $key => $repository)
66
+ {
67
+ /** @var $repository Payone_SessionStatus_Persistence_Interface */
68
+ $repository->save($request, $response);
69
+ }
70
+ }
71
+
72
+ /**
73
+ * @param Exception $e
74
+ * @param null|Payone_SessionStatus_Request_Interface $request
75
+ */
76
+ public function protocolException(Exception $e, Payone_SessionStatus_Request_Interface $request = null)
77
+ {
78
+ if ($request !== null) {
79
+ $this->getServiceApplyFilters()->apply($request);
80
+ }
81
+
82
+ foreach ($this->loggers as $key => $logger)
83
+ {
84
+ /** @var $logger Payone_Protocol_Logger_Interface */
85
+ $logger->log(get_class($e) . ' ' . $e->getMessage());
86
+
87
+ if ($request !== null) {
88
+ $requestAsString = $request->__toString();
89
+ $logger->log($requestAsString, Payone_Protocol_Logger_Interface::LEVEL_ERROR);
90
+ }
91
+ }
92
+ }
93
+
94
+ /**
95
+ * @param Payone_SessionStatus_Persistence_Interface $repository
96
+ */
97
+ public function addRepository(Payone_SessionStatus_Persistence_Interface $repository)
98
+ {
99
+ $this->repositories[$repository->getKey()] = $repository;
100
+ }
101
+
102
+ /**
103
+ * @param $key
104
+ * @return bool
105
+ */
106
+ public function removeRepository($key)
107
+ {
108
+ if (array_key_exists($key, $this->repositories)) {
109
+ unset($this->repositories[$key]);
110
+ return true;
111
+ }
112
+ return false;
113
+ }
114
+
115
+
116
+ }
lib/Payone/SessionStatus/Service/ProtocolRequest/Interface.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_SessionStatus_Service_ProtocolRequest_Interface
34
+ {
35
+ /**
36
+ * @abstract
37
+ * @param Payone_SessionStatus_Request_Interface $request
38
+ * @param null|Payone_SessionStatus_Response_Interface $response
39
+ */
40
+ public function protocol(
41
+ Payone_SessionStatus_Request_Interface $request,
42
+ Payone_SessionStatus_Response_Interface $response = null
43
+ );
44
+
45
+ /**
46
+ * @abstract
47
+ * @param Exception $e
48
+ * @param null|Payone_SessionStatus_Request_Interface $request
49
+ */
50
+ public function protocolException(Exception $e, Payone_SessionStatus_Request_Interface $request = null);
51
+
52
+ /**
53
+ * @abstract
54
+ * @param Payone_SessionStatus_Persistence_Interface $repository
55
+ */
56
+ public function addRepository(Payone_SessionStatus_Persistence_Interface $repository);
57
+
58
+ /**
59
+ * @abstract
60
+ * @param $key
61
+ */
62
+ public function removeRepository($key);
63
+
64
+ /**
65
+ * @abstract
66
+ * @param Payone_Protocol_Logger_Interface $logger
67
+ */
68
+ public function addLogger(Payone_Protocol_Logger_Interface $logger);
69
+
70
+ /**
71
+ * @abstract
72
+ * @param $key
73
+ */
74
+ public function removeLogger($key);
75
+
76
+ }
lib/Payone/SessionStatus/Validator/Abstract.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Validator
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Validator
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_SessionStatus_Validator_Abstract
37
+ implements Payone_SessionStatus_Validator_Interface
38
+ {
39
+ }
lib/Payone/SessionStatus/Validator/DefaultParameters.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Validator
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Validator
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Validator_DefaultParameters
34
+ extends Payone_SessionStatus_Validator_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $key = '';
40
+
41
+ /**
42
+ * @param Payone_SessionStatus_Request_Interface $request
43
+ * @return bool
44
+ * @throws Payone_SessionStatus_Exception_MissmatchingKeys
45
+ */
46
+ public function validateRequest(Payone_SessionStatus_Request_Interface $request)
47
+ {
48
+ if ($request->getKey() !== $this->getKey()) {
49
+ throw new Payone_SessionStatus_Exception_MissmatchingKeys();
50
+ }
51
+
52
+ return true;
53
+ }
54
+
55
+ /**
56
+ * @param string $key
57
+ */
58
+ public function setKey($key)
59
+ {
60
+ $this->key = $key;
61
+ }
62
+
63
+ /**
64
+ * @return string
65
+ */
66
+ public function getKey()
67
+ {
68
+ return $this->key;
69
+ }
70
+ }
lib/Payone/SessionStatus/Validator/Interface.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Validator
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Validator
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_SessionStatus_Validator_Interface
34
+ {
35
+ /**
36
+ * @abstract
37
+ * @param Payone_SessionStatus_Request_Interface $request
38
+ * @return bool
39
+ */
40
+ public function validateRequest(Payone_SessionStatus_Request_Interface $request);
41
+ }
lib/Payone/SessionStatus/Validator/Ip.php ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_SessionStatus
17
+ * @subpackage Validator
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_SessionStatus
28
+ * @subpackage Validator
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_SessionStatus_Validator_Ip
34
+ extends Payone_SessionStatus_Validator_Abstract
35
+ {
36
+ /** @var array */
37
+ protected $validIps = array();
38
+
39
+ /** @var Payone_SessionStatus_Config */
40
+ protected $config = null;
41
+
42
+ /**
43
+ * @param Payone_SessionStatus_Request_Interface $request
44
+ * @throws Payone_SessionStatus_Exception_Validation
45
+ * @return bool
46
+ */
47
+ public function validateRequest(Payone_SessionStatus_Request_Interface $request)
48
+ {
49
+ $remoteAddress = $this->getRemoteAddress();
50
+ $validIps = $this->getValidIps();
51
+
52
+ if (in_array($remoteAddress, $validIps)) {
53
+ // this is for exact matches
54
+ return true;
55
+ }
56
+
57
+ foreach ($validIps as $ip) {
58
+ $ip = $this->checkForDelimiter($ip);
59
+ if (preg_match($ip, $remoteAddress)) {
60
+ return true;
61
+ }
62
+ }
63
+ throw new Payone_SessionStatus_Exception_Validation();
64
+ }
65
+
66
+ /**
67
+ * Check if IP-String has delimiter, because preg_match needs string-delimiter
68
+ * @param $ip
69
+ * @return string
70
+ */
71
+ protected function checkForDelimiter($ip)
72
+ {
73
+ if (substr($ip, 0, 1) !== '/') {
74
+ $ip = '/' . $ip;
75
+ }
76
+ if (substr($ip, -1, 1) !== '/') {
77
+ $ip = $ip . '/';
78
+ }
79
+ return $ip;
80
+ }
81
+
82
+ /**
83
+ * @param array $validIps
84
+ */
85
+ public function setValidIps(array $validIps)
86
+ {
87
+ $this->validIps = $validIps;
88
+ }
89
+
90
+ /**
91
+ * @return array
92
+ */
93
+ public function getValidIps()
94
+ {
95
+ return $this->validIps;
96
+ }
97
+
98
+ /**
99
+ * Checks if ProxyCheck should be used. Returns the Remote-IP
100
+ *
101
+ * @return string
102
+ */
103
+ public function getRemoteAddress()
104
+ {
105
+ $remoteAddr = $_SERVER['REMOTE_ADDR'];
106
+ if ($this->getProxyCheckEnabled() == 1) {
107
+ if(array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
108
+ $proxy = $_SERVER['HTTP_X_FORWARDED_FOR'];
109
+ if (!empty($proxy)) {
110
+ $proxyIps = explode(',', $proxy);
111
+ $relevantIp = array_shift($proxyIps);
112
+ $relevantIp = trim($relevantIp);
113
+ if (!empty($relevantIp)) {
114
+ return $relevantIp;
115
+ }
116
+ }
117
+ }
118
+ }
119
+ return $remoteAddr;
120
+
121
+ }
122
+
123
+ /**
124
+ * @return boolean
125
+ */
126
+ public function getProxyCheckEnabled()
127
+ {
128
+ return $this->getConfig()->getValue('validator/proxy/enabled');
129
+ }
130
+
131
+ /**
132
+ * @param Payone_SessionStatus_Config $config
133
+ */
134
+ public function setConfig($config)
135
+ {
136
+ $this->config = $config;
137
+ }
138
+
139
+ /**
140
+ * @return Payone_SessionStatus_Config
141
+ */
142
+ public function getConfig()
143
+ {
144
+ return $this->config;
145
+ }
146
+
147
+ }
lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Financing.php CHANGED
@@ -39,7 +39,7 @@ class Payone_Settings_Data_ConfigFile_PaymentMethod_Financing
39
 
40
  /** @var string */
41
  protected $financingType = '';
42
-
43
 
44
  /**
45
  * @return string
@@ -73,4 +73,27 @@ class Payone_Settings_Data_ConfigFile_PaymentMethod_Financing
73
  return $this->financingType;
74
  }
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
39
 
40
  /** @var string */
41
  protected $financingType = '';
42
+ protected $klarna_config = array();
43
 
44
  /**
45
  * @return string
73
  return $this->financingType;
74
  }
75
 
76
+ /**
77
+ * @param array $klarna_config
78
+ */
79
+ public function setKlarnaConfig($klarna_config)
80
+ {
81
+ $this->klarna_config = $klarna_config;
82
+ }
83
+
84
+ /**
85
+ * @return array
86
+ */
87
+ public function getKlarnaConfig()
88
+ {
89
+ return $this->klarna_config;
90
+ }
91
+
92
+ /**
93
+ * @param $value
94
+ */
95
+ public function addKlarnaConfig($value)
96
+ {
97
+ $this->klarna_config[] = $value;
98
+ }
99
  }
lib/Payone/Settings/Service/XmlGenerate.php CHANGED
@@ -203,6 +203,7 @@ class Payone_Settings_Service_XmlGenerate
203
  if ($valueClearingType instanceof Payone_Settings_Data_ConfigFile_PaymentMethod_Financing) {
204
  /** @var $valueClearingType Payone_Settings_Data_ConfigFile_PaymentMethod_Financing */
205
  $this->addChild($clearingTypeNode, $valueClearingType, 'financingtype');
 
206
  }
207
  $this->addTypesOrGlobalInfo($clearingTypeNode, $valueClearingType);
208
 
@@ -402,6 +403,25 @@ class Payone_Settings_Service_XmlGenerate
402
  }
403
  }
404
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
405
 
406
  /**
407
  * @param DOMElement $parent
203
  if ($valueClearingType instanceof Payone_Settings_Data_ConfigFile_PaymentMethod_Financing) {
204
  /** @var $valueClearingType Payone_Settings_Data_ConfigFile_PaymentMethod_Financing */
205
  $this->addChild($clearingTypeNode, $valueClearingType, 'financingtype');
206
+ $this->addKlarnaConfig($clearingTypeNode, $valueClearingType);
207
  }
208
  $this->addTypesOrGlobalInfo($clearingTypeNode, $valueClearingType);
209
 
403
  }
404
  }
405
 
406
+ /**
407
+ * @param DOMElement $clearingTypeNode
408
+ * @param Payone_Settings_Data_ConfigFile_PaymentMethod_Financing $valueClearingType
409
+ */
410
+ public function addKlarnaConfig(DOMElement $clearingTypeNode, Payone_Settings_Data_ConfigFile_PaymentMethod_Financing $valueClearingType)
411
+ {
412
+ $klarnaConfig = $valueClearingType->getKlarnaConfig();
413
+ if (!empty($klarnaConfig)) {
414
+ $klarnaConfigNode = $this->appendElement($clearingTypeNode, 'klarna_config');
415
+ foreach ($klarnaConfig as $valueKlarnaConfig) {
416
+ if (array_key_exists('value', $valueKlarnaConfig) && array_key_exists('attribute', $valueKlarnaConfig)) {
417
+ $klarnaNode = $this->appendElement($klarnaConfigNode, 'klarna_store_id', $valueKlarnaConfig['value']);
418
+ foreach ($valueKlarnaConfig['attribute'] as $keyKlarna => $valueKlarna) {
419
+ $klarnaNode->setAttribute($keyKlarna, $valueKlarna);
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
425
 
426
  /**
427
  * @param DOMElement $parent
lib/Payone/TransactionStatus/Request.php CHANGED
@@ -196,7 +196,34 @@ class Payone_TransactionStatus_Request extends Payone_TransactionStatus_Request_
196
 
197
  /** @var string */
198
  protected $clearing_instructionnote = NULL;
199
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  /**
201
  * @param int $accessid
202
  */
@@ -788,4 +815,100 @@ class Payone_TransactionStatus_Request extends Payone_TransactionStatus_Request_
788
  {
789
  return $this->clearing_reference;
790
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
791
  }
196
 
197
  /** @var string */
198
  protected $clearing_instructionnote = NULL;
199
+
200
+ /**
201
+ * @var string
202
+ */
203
+ protected $iban = NULL;
204
+ /**
205
+ * @var string
206
+ */
207
+ protected $bic = NULL;
208
+ /**
209
+ * @var string
210
+ */
211
+ protected $mandate_identification = NULL;
212
+ /**
213
+ * @var string
214
+ */
215
+ protected $creditor_identifier = NULL;
216
+ /**
217
+ * Format YYYYMMDD
218
+ * @var int
219
+ */
220
+ protected $clearing_date = NULL;
221
+ /**
222
+ * @var float
223
+ */
224
+ protected $clearing_amount = NULL;
225
+
226
+
227
  /**
228
  * @param int $accessid
229
  */
815
  {
816
  return $this->clearing_reference;
817
  }
818
+
819
+ /**
820
+ * @param string $iban
821
+ */
822
+ public function setIban($iban)
823
+ {
824
+ $this->iban = $iban;
825
+ }
826
+
827
+ /**
828
+ * @return string
829
+ */
830
+ public function getIban()
831
+ {
832
+ return $this->iban;
833
+ }
834
+
835
+ /**
836
+ * @param string $bic
837
+ */
838
+ public function setBic($bic)
839
+ {
840
+ $this->bic = $bic;
841
+ }
842
+
843
+ /**
844
+ * @return string
845
+ */
846
+ public function getBic()
847
+ {
848
+ return $this->bic;
849
+ }
850
+
851
+ /**
852
+ * @param string $mandateIdentification
853
+ */
854
+ public function setMandateIdentification($mandateIdentification)
855
+ {
856
+ $this->mandate_identification = $mandateIdentification;
857
+ }
858
+
859
+ /**
860
+ * @return string
861
+ */
862
+ public function getMandateIdentification()
863
+ {
864
+ return $this->mandate_identification;
865
+ }
866
+
867
+ /**
868
+ * @param string $creditorIdentifier
869
+ */
870
+ public function setCreditorIdentifier($creditorIdentifier)
871
+ {
872
+ $this->creditor_identifier = $creditorIdentifier;
873
+ }
874
+
875
+ /**
876
+ * @return string
877
+ */
878
+ public function getCreditorIdentifier()
879
+ {
880
+ return $this->creditor_identifier;
881
+ }
882
+
883
+ /**
884
+ * @param int $clearingDate
885
+ */
886
+ public function setClearingDate($clearingDate)
887
+ {
888
+ $this->clearing_date = $clearingDate;
889
+ }
890
+
891
+ /**
892
+ * @return int
893
+ */
894
+ public function getClearingDate()
895
+ {
896
+ return $this->clearing_date;
897
+ }
898
+
899
+ /**
900
+ * @param float $clearingAmount
901
+ */
902
+ public function setClearingAmount($clearingAmount)
903
+ {
904
+ $this->clearing_amount = $clearingAmount;
905
+ }
906
+
907
+ /**
908
+ * @return float
909
+ */
910
+ public function getClearingAmount()
911
+ {
912
+ return $this->clearing_amount;
913
+ }
914
  }
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Payone</name>
4
- <version>3.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -20,7 +20,7 @@ The extension supports the following payment types:&#xD;
20
  - PayPal&#xD;
21
  &#xD;
22
  Furthermore the following risk-management-services are supported:&#xD;
23
- - 3D-Secure: Verified by Visa &amp; MasterCard SecureCode&#xD;
24
  - AdressCheck for 18 countries&#xD;
25
  - POS- and Merchant-Blacklists&#xD;
26
  - CreditCard- and BankAccountChecks&#xD;
@@ -30,11 +30,11 @@ No PCI DSS Certification is needed, since all payment data is transmitted via th
30
  With FinanceGate Business even account receivable management, dunning and debt collection can be done by FinanceGate automatically.&#xD;
31
  &#xD;
32
  Notice: Remember this extension is still beta. We recommend to test all transaction types in your application carefully before going live.</description>
33
- <notes>Mage_Payone-3.1.6</notes>
34
- <authors><author><name>noovias</name><user>auto-converted</user><email>info@noovias.com</email></author><author><name>PAYONE</name><user>auto-converted</user><email>tech.support@payone.de</email></author></authors>
35
- <date>2013-10-02</date>
36
- <time>08:33:07</time>
37
- <contents><target name="magecommunity"><dir name="Payone"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Configuration"><dir name="Wizard"><dir name="Config"><file name="Form.php" hash="7e48e792893e9a64f7001e96b003e382"/></dir><dir name="Page"><file name="Edit.php" hash="1f1b820d0f2d50230f8cdf762c80bc5c"/><file name="View.php" hash="9ab4a5083eebc1961ea5c0acb0ba2cf2"/></dir></dir></dir><dir name="Information"><file name="Abstract.php" hash="89033bd457bcd46a7ceb13462360a5e6"/></dir><dir name="Protocol"><dir name="Api"><dir name="View"><dir name="Tab"><file name="Exception.php" hash="1825ebf171f264b6c74ed7e1fe9d6fbd"/><file name="General.php" hash="9a5d35a92a9d622a2ddfb0edafa76092"/></dir><file name="Plane.php" hash="daf40463ac56195f9d2181e35062baa2"/><file name="Tabs.php" hash="cc81cd30acbda3b87f2b302ee8cdaf1a"/></dir><file name="Grid.php" hash="fe43a5b1464e1059703788bd91f408cf"/><file name="View.php" hash="d00b5b3c9a7d0e36693c026c5de0dd35"/></dir><dir name="TransactionStatus"><dir name="View"><dir name="Tab"><file name="General.php" hash="a80cb470751f948b35aa04f991dd4486"/></dir><file name="Plane.php" hash="e7fee81fb6ee269bab8186972e0093a1"/><file name="Tabs.php" hash="aba3d7bf0ab3762a2900237b21a2198a"/></dir><file name="Grid.php" hash="b9e276667ce3599e5250f0026ab4f8d5"/><file name="View.php" hash="b7d782116f5d8d09087bf9eb7110ecdf"/></dir><file name="Api.php" hash="86163b631dabef5538c9d7ba18cb3b04"/><file name="TransactionStatus.php" hash="4aa543fe53ea8c4d0a4c09a61c84d52f"/></dir><dir name="Sales"><dir name="Order"><dir name="Create"><file name="Init.php" hash="3f2f8f8de024565abc1f8e4ced98319b"/></dir><dir name="View"><dir name="Tab"><file name="Api.php" hash="add6c7c0adbd91114b3eed850569b65a"/><file name="Transaction.php" hash="a6001e58c3ce4d6737f4928ccac66176"/><file name="TransactionStatus.php" hash="44541e398ab29db4720b2109f6e0607c"/></dir></dir><file name="Grid.php" hash="8769f1b2708b28af0a4f97574c0b0c92"/></dir><file name="Order.php" hash="d9b85ad2061f9fe9552f5ffed60d0797"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Abstract.php" hash="77de293a1573d415a0560d1f3366ed12"/><file name="Forwarding.php" hash="37db0ebdea18716749598e092070475e"/><file name="Info.php" hash="2c9e6c008ee3d5306f8579ebe01db944"/><file name="PaymentFee.php" hash="755e20786c0203016611bfcfdc6ede90"/><file name="PersonStatusMapping.php" hash="a5450b8e05fa801ec373ac7c21e58b34"/><file name="StatusMapping.php" hash="cf91819c4d98a270e3725f9af4b9b88c"/></dir><dir name="Payment"><file name="Method.php" hash="322e4976bd8389f5e9627ba5c17ad0e4"/></dir><file name="Field.php" hash="9c7f06f1a79d2308d5bf89c08b986b62"/><file name="Payment.php" hash="812418b9dc6e7d0f7af71c54fa7ad4cf"/></dir><dir name="Payment"><file name="Edit.php" hash="ee890691a35e5b33bfd1a986a4481ace"/><file name="Grid.php" hash="7ff4cfab006c716256b416a1898383e4"/></dir><file name="Hint.php" hash="1da85b64bf8fa8056881f551d553129d"/><file name="Notice.php" hash="466258b59f294048fa48639f3681ad5e"/><file name="Payment.php" hash="0c9f0cd463afa2bbb5eec693ae1da597"/><file name="Tooltip.php" hash="d9905fba960f4a7500265c30f1dfddf9"/></dir></dir><dir name="Transaction"><dir name="View"><dir name="Tab"><file name="General.php" hash="bc901fbe55449792917519c795c58808"/><file name="TransactionStatus.php" hash="6325158ee9acda45dc1b3aa6a34b8cdd"/></dir><file name="Plane.php" hash="161a1c1f5cb58333e4428414397a91f6"/><file name="Tabs.php" hash="127b5f4090f96a1956f2838e7e1bf90f"/></dir><file name="Grid.php" hash="cca8ffb56bc00514d56af6f05c38882f"/><file name="View.php" hash="267ceb1bf113dae62c503c8c9f858a78"/></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Datetime.php" hash="52a793dde88b725b9b9d5f27842b1705"/><file name="UnixTimestamp.php" hash="9da03743ed591e5f24f1f682c5f4fb5f"/></dir></dir><file name="Container.php" hash="f035c12b7bf696a0222ce0b3f50dfd46"/></dir><dir name="View"><file name="Container.php" hash="dfd28e3f3205c9ab6f1d5ba5cdd1222c"/></dir></dir><file name="Information.php" hash="2459128787e623cebf78be3634eb7514"/><file name="Transaction.php" hash="9da66e164d1dea5013167c374865a94d"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Payment"><file name="Additional.php" hash="6fb72c642149f73a73b6ffcdd8249a93"/><file name="Methods.php" hash="a2e4bb44fa3c254bdfcc3f4671dc8968"/></dir></dir></dir><dir name="Payment"><dir name="Method"><dir name="Form"><file name="Abstract.php" hash="fbba6cc27f3c85f46068604b0abf0c73"/><file name="AdvancePayment.php" hash="f8fa142db063838f6e2affd24e605309"/><file name="CashOnDelivery.php" hash="47aa8eae525f0926cfa0ca39dbf16dd8"/><file name="Creditcard.php" hash="8f2b897e1bcb9241e6019424239e368c"/><file name="DebitPayment.php" hash="dad62843e0ba2a3fca495da1cfa88a34"/><file name="Financing.php" hash="e51b6b3464fb350c874e9cbc0ce048a9"/><file name="Invoice.php" hash="792e994d4e724c508c44aa80c2c05377"/><file name="OnlineBankTransfer.php" hash="7d9adce19be52c360a7dd234f4f7d073"/><file name="SafeInvoice.php" hash="9a53c59cf35d84e966c93cab066c2f61"/><file name="Wallet.php" hash="da09f18c16574eac09b9a1d2bc2a67db"/></dir><dir name="Info"><file name="Abstract.php" hash="e053fbb633c2742597631bb1672f404a"/><file name="AdvancePayment.php" hash="5a30ac680ba4b813b8292ee680970815"/><file name="CashOnDelivery.php" hash="f98ff0c449f5fd265aeb1e0bba189d88"/><file name="Creditcard.php" hash="039cde64d6835e601245e46f606d4f66"/><file name="DebitPayment.php" hash="5c699d4119fe82052969b2f6b0058ab6"/><file name="Financing.php" hash="6168f4820caa216f6f30a14069602123"/><file name="Invoice.php" hash="4e39306b2241b19e8d75684307522aaa"/><file name="OnlineBankTransfer.php" hash="a857f0afe1d75337756fb2e3fbd4f52b"/><file name="SafeInvoice.php" hash="fca91084fb3fff9c6ff82bee1f182490"/><file name="Wallet.php" hash="1c97123bd3b8c5c10e766dd7749f2076"/></dir></dir></dir></dir><dir name="Controller"><dir name="Adminhtml"><dir name="Configuration"><dir name="Wizard"><file name="Abstract.php" hash="bdfe26c77fbfb08d5eed508b3707129b"/></dir></dir><file name="Abstract.php" hash="fc530c509c8377d4b401b0ad4144ac62"/></dir><file name="Abstract.php" hash="e896d0e966ebb3123c047760fff8c17a"/></dir><dir name="Exception"><file name="InvalidRequestType.php" hash="ef0f4dc53e93ba1b32229e5928d00bd2"/><file name="InvalidScope.php" hash="3e4185c541d15ed6d8822540dee61b9c"/><file name="InvoicePreparationNoItems.php" hash="dc5497f50a8954ac451f56c8c47e57b4"/><file name="InvoiceSave.php" hash="585931380f6291f47b28d23024366ba6"/><file name="OrderCannotInvoice.php" hash="b63f0a9a1702708422f30472012643a6"/><file name="OrderNotFound.php" hash="22001580df9425cd4d5bb954378aac4c"/><file name="PaymentMethodConfigNotFound.php" hash="c62057ea1bd54c0b91dacd2a5db50b49"/><file name="PaymentTypeNotFound.php" hash="7d6866507e5f803e1bf0e31545f9c06c"/><file name="TransactionAlreadyExists.php" hash="6dfb3da13440462021c2175405ace0b9"/><file name="TransactionStatusForward.php" hash="52f6974ad59271d161451944fd000986"/></dir><dir name="Helper"><dir name="Sales"><file name="Button.php" hash="f9752550b0ba4559a78631ea7240dbfa"/></dir><file name="Abstract.php" hash="614b70f3acf925a3b544e91e5a0085d3"/><file name="Compatibility.php" hash="40ec8b9e8f5bff66181d9d257d7f6a0e"/><file name="Config.php" hash="8672eb13e5051e0f1aefeb714b75f419"/><file name="Data.php" hash="b2886731b945327dcdcf65c1aa860902"/><file name="Email.php" hash="395561eb7a6c319055270706e6d32226"/><file name="Registry.php" hash="da6aee13a620bd78e6aa12e1a1700bfc"/><file name="Score.php" hash="bed6e4c0d668ebbb83ea99235728a063"/><file name="Url.php" hash="9ce4dc25c5920247c9b85cccf450ec0e"/><file name="Wizard.php" hash="70b6882f848c703ff0fc26d62dcb376b"/></dir><dir name="Model"><dir name="Config"><dir name="General"><file name="Global.php" hash="0ee7c14ccf34d09b951e69bf86c3bfd2"/><file name="ParameterInvoice.php" hash="6a58ff0f8c126de0decd22b845d02d40"/><file name="ParameterNarrativeText.php" hash="5f0128073807d017a4f3704c5879e36f"/><file name="PaymentCreditcard.php" hash="d055547ad354429c2c4b061353a9f121"/><file name="StatusMapping.php" hash="444346141aafa48049b22418ba65c8fe"/></dir><dir name="Misc"><dir name="Email"><file name="Abstract.php" hash="50f7c3519a70855acb69d255cb0056d6"/><file name="Interface.php" hash="d07157b9ca17401277b35f7aea92a7cc"/></dir><file name="Creditmemo.php" hash="f9509d5a67e5ecd3cf029750beea9106"/><file name="Discount.php" hash="4ce56b1b21f8c39961c4bbe860eda20c"/><file name="EmailAvs.php" hash="3da7b2a26718650a87466e7cdae55c31"/><file name="EmailError.php" hash="4c45b1d6d95f3659c66dffbc3d770080"/><file name="ShippingCosts.php" hash="d828b50fa706fa3f938713d223bda3c6"/><file name="TransactionstatusForwarding.php" hash="39d587c3c484bc99773b060d6265959e"/><file name="TransactionstatusProcessing.php" hash="9b96fe9c0463577a7b9b58a45311bdfc"/></dir><dir name="Payment"><dir name="Method"><file name="Interface.php" hash="3565bc684997b02456b369066cc97c06"/></dir><file name="Method.php" hash="6bb814af1090e38f3db39da32b26a3de"/></dir><dir name="Protect"><file name="AddressCheck.php" hash="7293d9854b25322a66ee00206f3071ce"/><file name="Creditrating.php" hash="ffe6d1d2c95d641535a5027b2afb54cc"/></dir><file name="AreaAbstract.php" hash="e75eacc876e77fa1f540e15a8a89a1d5"/><file name="AreaInterface.php" hash="9822e7864b81dcdade053baea64db83f"/><file name="General.php" hash="8f274fdb68951ab6b5a782d6c7de808c"/><file name="Interface.php" hash="a3de42afc8b6907e64d522aa3ec5cf63"/><file name="Misc.php" hash="bbac6a7fa27f05c7f21071fa01ac3460"/><file name="Payment.php" hash="727160b76efedc58a77dd9d84b28c1cc"/><file name="Protect.php" hash="21be6a05897ce9a155363ce56e0a5e4d"/></dir><dir name="Cronjob"><dir name="TransactionStatus"><file name="Worker.php" hash="1e7090f9b91571176224d97a3e932ede"/></dir><file name="Abstract.php" hash="123c05ac24b16ce69ec970a5da85f10e"/></dir><dir name="Domain"><dir name="Config"><file name="PaymentMethod.php" hash="167c9e718c777e3639f36a86c46c9a43"/></dir><dir name="Protocol"><file name="Api.php" hash="70d1c4920f0637e28ec95cf8b9ca1bdb"/><file name="TransactionStatus.php" hash="681a1936ddbf0b519d6b97ded83d4a1a"/></dir><dir name="Resource"><dir name="Config"><dir name="PaymentMethod"><file name="Collection.php" hash="92fcb0cf48eada524e326942f1dd5c4b"/></dir><file name="PaymentMethod.php" hash="7261f0a45bff60e891cf24820a565670"/></dir><dir name="Protocol"><dir name="Api"><file name="Collection.php" hash="2ce71ea52eb4aa11fbc546001ed22fc8"/></dir><dir name="TransactionStatus"><file name="Collection.php" hash="884176fcb71b1a76d2b094bb70644c5e"/></dir><file name="Api.php" hash="bb257184fa77ef1b71f0964168dd78af"/><file name="TransactionStatus.php" hash="d4a202ea0d7ce2afeff4b3da4f18a237"/></dir><dir name="Transaction"><file name="Collection.php" hash="f3dd454961a551357eb95b73912c411c"/></dir><file name="Transaction.php" hash="a05356964069784a9c46b61c9c77c26c"/></dir><file name="Transaction.php" hash="32129c443a4218374a20920198dfe73c"/></dir><dir name="Handler"><dir name="Management"><file name="GetInvoice.php" hash="4fc10247b8969f9dbe447d3003a052a0"/></dir><dir name="Payment"><file name="Abstract.php" hash="44a3373698eadce21a6a88a67e7f62bb"/><file name="Authorize.php" hash="0693282e074f6c22824c5eab347aa9a2"/><file name="Capture.php" hash="d6d7dd0dfc16066faebc9678bb98b0ca"/><file name="Debit.php" hash="3dcee9f980aa64fb8d2ee93e4cdc91cb"/><file name="Interface.php" hash="3ff3b7247a7f69dd84b0999259f24bf8"/><file name="Preauthorize.php" hash="377a4242911f900ad046edc03da31891"/></dir><dir name="Verification"><file name="Abstract.php" hash="04be41f4fde5091816cb2dc650b53306"/><file name="AddressCheck.php" hash="26fb14b8f5e6492d5fbe5e7138a4b72d"/><file name="Creditrating.php" hash="df5e854c7814b05fae05ccb0d4eb09f9"/><file name="Interface.php" hash="601a0d018c10962c13e26c67ecb60deb"/></dir><file name="Abstract.php" hash="7916a63c5d1ca3c7cec27cc6bd038846"/><file name="Interface.php" hash="8137fbb2cea9866c2d6a64421653b1f7"/></dir><dir name="Mapper"><dir name="ApiRequest"><dir name="Management"><file name="GetInvoice.php" hash="3e55c698ee6e54a911c7c8c04854aa68"/></dir><dir name="Payment"><dir name="Authorize"><file name="Abstract.php" hash="b41cdf1210ae611fa3ba9ac4e05d1766"/></dir><file name="Abstract.php" hash="c7d189a6a75599c3f2e9179cba2e3388"/><file name="Authorize.php" hash="9e45d9c05036cb7714d7d2221bb0a178"/><file name="Capture.php" hash="1f875651ba02a18af34ede5b54e0dee1"/><file name="Debit.php" hash="659217fe18bfac4c069465e1865ad94a"/><file name="Interface.php" hash="2ed7debbc0cbe1979be9ad4fa583c63d"/><file name="Preauthorize.php" hash="d8139bb3b8c1ff02a9ab00e19a99c05f"/></dir><dir name="Verification"><file name="Abstract.php" hash="6b492aabd24d09580bb5c8184ebab5dd"/><file name="AddressCheck.php" hash="3a51591611118fcf1323a63152b2c07d"/><file name="BankAccountCheck.php" hash="71fdc57d43766fbcf67cbe4fb71261d5"/><file name="Creditrating.php" hash="be7582391431e780fe1bcd8bfb1b016a"/></dir><file name="Abstract.php" hash="67a9f749767b79e7641138f8edc9c788"/></dir><file name="Abstract.php" hash="269e16e71331e002333535450d4d2924"/></dir><dir name="Observer"><dir name="Checkout"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="05d66b930cf670d25e28ea940da85693"/></dir></dir><file name="Onepage.php" hash="6f9c0d87bb7c9362f80fd6af5b12e26e"/></dir><dir name="Config"><file name="Protect.php" hash="a9b87d00e3f7a3294046efb7b6ace00e"/></dir><dir name="Protocol"><file name="Api.php" hash="8756084b6e8c4ce3ff7fddfae2cbba8f"/></dir><dir name="Sales"><dir name="Order"><file name="Invoice.php" hash="b3a6f5568225a0c2aafb4014c9974a51"/></dir><dir name="Quote"><file name="Address.php" hash="9a6d3e1e068564fdda82ccfc15fce5d1"/><file name="Payment.php" hash="49864ede5b1ab94fc51a98b4cadc2874"/></dir><file name="Order.php" hash="4650601531441b59751166c05224988c"/></dir><dir name="Store"><file name="PaymentConfig.php" hash="fdf9db06695c1ef6a90a1695a8df58b0"/></dir><dir name="TransactionStatus"><file name="Forwarding.php" hash="72e93b7a9fc67b3c817a8a3086b3c58d"/><file name="InvoiceCreate.php" hash="d15502d5794acf2a35fae589e9c60b25"/><file name="OrderConfirmation.php" hash="0ba29147ead6d943964be30c2b5aa1a6"/><file name="Reminder.php" hash="e476fbafaec9b3f2fa3d0ec5f57f6dce"/></dir><file name="Abstract.php" hash="7818d67d38868e56e44260d5eaeeb74d"/></dir><dir name="Payment"><dir name="Method"><file name="Abstract.php" hash="d764aabc43e75848bdc9eadcfc48ec2b"/><file name="AdvancePayment.php" hash="c165fc2cb0402478db74782a38f89ec5"/><file name="CashOnDelivery.php" hash="247d715b663369c27111ece38dfb7803"/><file name="Creditcard.php" hash="4d778e393876187bd89d1c2c3e326c98"/><file name="DebitPayment.php" hash="98868e4cf9cbda62e7e193f945d3d212"/><file name="Financing.php" hash="fe00dea48a34c307e7b2e92160ef0c2d"/><file name="Invoice.php" hash="b6dc6fd8189c61f04a440b39d72a2c61"/><file name="OnlineBankTransfer.php" hash="5f6e2a08c6f83534f15b05f95bfceb37"/><file name="SafeInvoice.php" hash="3a53a34e96c8c4a1ef247b31b9fb228c"/><file name="Wallet.php" hash="009d360a81b7a9527d192e4011df9749"/></dir></dir><dir name="Repository"><file name="Api.php" hash="215b63473d061699b64fbc698f95a1f7"/><file name="TransactionStatus.php" hash="633e3ea0f01a27374fd8d3b721c064b8"/></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="3bac7e6e8f51348c8b4c55d419b4b1f5"/></dir></dir><file name="Address.php" hash="4cdccd999657b7e7cc97413e0f0d07f3"/></dir></dir><dir name="Service"><dir name="Config"><dir name="PaymentMethod"><file name="Create.php" hash="af77caf92d5d7a87f691a571d5300c34"/></dir><file name="ProtectCheck.php" hash="81e93c3cd18c39b9cf52e94374cd341c"/><file name="XmlGenerate.php" hash="3fb95d4c1de9971979e4c0d6a32c4907"/></dir><dir name="Export"><file name="Collection.php" hash="ba553e1ced6fd131b725c92150e09a78"/></dir><dir name="Management"><file name="GetInvoice.php" hash="16da5759ecfbe625633da5e1e00cfecd"/></dir><dir name="Payment"><file name="Abstract.php" hash="78f1f27d510d88c8ffa3575b1fdd5877"/><file name="Authorize.php" hash="fa22191f012150eb5bd4ab2b183522dc"/><file name="Capture.php" hash="58bee25ef7c318f53a00d608cf16d0bf"/><file name="Debit.php" hash="4320627bc743c5ae303296417c64c232"/><file name="Interface.php" hash="5a6669702b6f966cdca52378e96e60d2"/><file name="Preauthorize.php" hash="b13323bc57512b9244a217dcc8106625"/></dir><dir name="Protocol"><dir name="Api"><file name="Export.php" hash="ae95ecb8c8e7b8418c8d3dd361c751c0"/></dir><dir name="TransactionStatus"><file name="Export.php" hash="1265210a4dcc3475e3cef56a70e073c2"/></dir></dir><dir name="Sales"><file name="InvoiceCreate.php" hash="84148ef78256e3daad76395fbb30e9a5"/><file name="OrderComment.php" hash="41433c126e5254b985d900f704b31ae9"/><file name="OrderConfirmation.php" hash="ea36bf39b5759943b38a7390d7242822"/><file name="OrderStatus.php" hash="fe3f8df1627c19363f21a29b4e8085f2"/></dir><dir name="Transaction"><file name="Create.php" hash="95d9079e7fd9a85597b62e96f7a4d77b"/><file name="Update.php" hash="f25e151fd02916472e7792360699a988"/></dir><dir name="TransactionStatus"><file name="Execute.php" hash="d4dff27a2cc271faaba576f9161a7f89"/><file name="Forward.php" hash="8dacb47c9a0db8e76669158aa15303b6"/><file name="Process.php" hash="be3b935bdea0b665b6ba660df1e43cb0"/><file name="StoreClearingParameters.php" hash="29f9570fb39da143e6b0edae80c126a7"/></dir><dir name="Verification"><file name="Abstract.php" hash="0fde90b0db9c18f414e5e90843f0e6ce"/><file name="AddressCheck.php" hash="b6e828cf9dc96d7e9cafae8037aa942f"/><file name="BankAccountCheck.php" hash="80a0a1e3e7954448751dbb3241f8b441"/><file name="Creditrating.php" hash="7dfbcaf8dbb3c11625a3a9943fa3a793"/></dir><file name="Abstract.php" hash="9c2a7aeecb9fc0303ac20a6ddc73ae96"/><file name="InitializeConfig.php" hash="941c42e76ab330f1f2895c026025a009"/><file name="InitializePayment.php" hash="688d23ed08cdc74797818ad84d9359cc"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Protect.php" hash="65562d422ca71b7bac0e0157a12b7ac2"/></dir><file name="Abstract.php" hash="b40c21183506dfb5e94f43cd8ec61ac3"/><file name="AddressCheckType.php" hash="11f0297e62f8aa723051bef05b1a1024"/><file name="AuthorizeMethod.php" hash="ab01882f7e8b685bf65c9c2cf630f8dd"/><file name="AuthorizeMethodFinancing.php" hash="4176d6fa53e5d7dc9c3e2f2cc6996450"/><file name="AvsResult.php" hash="b1e3ca79a77286e1e705501a33c13855"/><file name="BankaccountcheckType.php" hash="f09ba1733f34eb60b17d2b0c21a4ff3b"/><file name="ClearingType.php" hash="d6c1cf6362e17ae0042612774c37483f"/><file name="CreditCardType.php" hash="a4dd68bdd7abe455c6adeb3e20e1bb55"/><file name="CreditScore.php" hash="bc54944274a9d5137c474dcf27fc91f9"/><file name="CreditratingChecktype.php" hash="985ce6d65da0281e8e99f334e980e14e"/><file name="CreditratingIntegrationEvent.php" hash="9da728646ff3eea66e6155fb4d4b4233"/><file name="FinancingType.php" hash="fcaa33aa9d7fc92fd1349253db93dac5"/><file name="HandleResponseError.php" hash="6c92277e38f8256f6fe7b6696107fdd2"/><file name="MethodType.php" hash="a2bb15d6a43746cc1c87a9ee252d87ef"/><file name="Mode.php" hash="f4b7f10abd52f5b5d23873e159e4fc23"/><file name="OnlinebanktransferType.php" hash="804bf6bd18c9903519e48072ab33d1da"/><file name="OrderStatus.php" hash="1efd1fb9dfe513946ce4542a983438ea"/><file name="PaymentMethodCode.php" hash="be2c8473e58dea95fbf7e9ffe5aac06a"/><file name="PaymentMethodType.php" hash="1da77ef4656e965fd12f2ae8fc853c53"/><file name="PersonStatus.php" hash="8d909a2f468207880d3b431dbfbfdef8"/><file name="ReminderLevel.php" hash="cac22bfaece3ccca9a51adc59efdf44b"/><file name="RequestType.php" hash="f43e32fd32329193252190746f0a8571"/><file name="ResponseType.php" hash="d6a64bbe4ea58d2126ff8d7f76795bcf"/><file name="SafeInvoiceType.php" hash="fd78c81867dc96396ac85dbcf99c4c7b"/><file name="Status.php" hash="2612834bc2a1ed7c43a2cc3342adf63d"/><file name="StatusTransaction.php" hash="53271af6dbe8195a8fa1e12a79a56c68"/><file name="TransactionStatus.php" hash="8c1f59103ba441a3bddbf454bc4c3129"/><file name="WalletType.php" hash="c49c188f400e808a58348716a9fa421e"/></dir></dir><file name="Config.php" hash="e377c2462e81c4a6caacd784cf6a5d65"/><file name="Factory.php" hash="b1ae861b3bce9e843a6a9e7de6a09edc"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Configuration"><dir name="Wizard"><dir name="Page"><file name="PaymentController.php" hash="836c77b7dcc77cae37ae101ad28b2169"/></dir><file name="PageController.php" hash="a6565671b73edb8b30b27e325b3ee6c0"/></dir><file name="WizardController.php" hash="cfc6b411102e225a48935cee6e0c7576"/></dir><dir name="Protocol"><file name="ApiController.php" hash="1af6ef54bfb5a870f482895c0fc5f769"/><file name="TransactionStatusController.php" hash="97a5933efe3633ce5c370c1e67eaa37d"/></dir><dir name="Sales"><dir name="Order"><file name="InvoiceController.php" hash="16c96795a7e9c8dd546c4c69a5568987"/></dir><file name="OrderController.php" hash="ac4a0fe89896111ea5dfff2ae01f0e90"/></dir><dir name="System"><dir name="Config"><file name="PaymentController.php" hash="47bda106aafbcbbc8a04a1da28ce136e"/></dir><file name="ConfigurationController.php" hash="0cd99975387d248d9583d6804c3c5a4c"/></dir><file name="InformationController.php" hash="4fbe3552aff0415f9e6e6574c7dfc080"/><file name="TransactionController.php" hash="59e0e04c5ef04e28a3b781a1c2c3b412"/></dir><dir name="Checkout"><dir name="Onepage"><file name="PaymentController.php" hash="696a5f987608c65fada4849081c0576f"/></dir><file name="OnepageController.php" hash="5c206fbba8832d67269f480facca40a0"/></dir><file name="TransactionStatusController.php" hash="f6660bc654ef08ccb3adcd58dfda0596"/></dir><dir name="etc"><file name="adminhtml.xml" hash="80661f3ff3f6782efad26e377413aeb3"/><file name="config.xml" hash="7a1d763460e18beec5a00610e3d1b214"/><file name="system.xml" hash="cc6d57e9d6f580f5b564ea22eafe49b8"/></dir><dir name="sql"><dir name="payone_core_setup"><file name="install-3.0.0.sql" hash="28a783cc46e235b6c13dd502651ff7e7"/><file name="mysql4-install-3.0.0.php" hash="e570826a7a6b3d94ec7a4731a1962a6f"/><file name="mysql4-upgrade-3.0.12-3.1.0.php" hash="bca5f3758f786378978834b89c29f141"/><file name="mysql4-upgrade-3.0.3-3.0.4.php" hash="864709102446d37f8b0ad1c7d7b3ab60"/><file name="mysql4-upgrade-3.0.8-3.0.9.php" hash="b8b666e1cef07ae385278a454b885d77"/><file name="mysql4-upgrade-3.1.0-3.1.1.php" hash="d7c545b39a8ec2764fdcadd6656005dd"/><file name="mysql4-upgrade-3.1.2-3.1.3.php" hash="22d8f0e22f537cec9564d177f5ebeac4"/><file name="mysql4-upgrade-3.1.3-3.1.4.php" hash="fdb019dcd5a75d24fee65d2fae768ef6"/><file name="mysql4-upgrade-3.1.4-3.1.5.php" hash="07861bdab5b1db51dcef427891c2bd5f"/><file name="upgrade-3.0.12-3.1.0.sql" hash="bd9827b38f1a1ed0fdb049c889ceb29f"/><file name="upgrade-3.1.2-3.1.3.sql" hash="d3e3fc1f9402bb6295124f4750a476d4"/><file name="upgrade-3.1.3-3.1.4.sql" hash="b9ae52a8c4fcf6f97727b3310b6db1a2"/><file name="upgrade-3.1.4-3.1.5.sql" hash="4cc6ee67329dbaa3ad119b6d117ba9af"/></dir></dir></dir><dir name="Migrator"><dir name="Controller"><dir name="Adminhtml"><file name="Abstract.php" hash="a8ae39e90f2b28ecf7ac97422433d5cd"/></dir></dir><dir name="Helper"><file name="Config.php" hash="4abc3ee9237fa433bc1d1d3dbfa97afc"/><file name="Data.php" hash="ebb5526d898038aa2004e6347794b478"/></dir><dir name="Model"><dir name="Mapper"><dir name="Config"><file name="General.php" hash="e24eb1f80ab89b37da5bfe333e34ed05"/><file name="Payment.php" hash="37dd103a0f2ff3493a93c3ec03474671"/><file name="Protect.php" hash="7192a4e8e1789401dbb69dc4c1891ed3"/></dir><file name="Abstract.php" hash="a784a82feaf6120184bc5e53331bd519"/></dir><dir name="Service"><dir name="Configuration"><file name="GeneralMigrate.php" hash="044e996b5f7243086d66d85444bef05c"/><file name="PaymentMigrate.php" hash="0d65e45786eac7a4d36d00fbac7d1188"/><file name="ProtectMigrate.php" hash="1289918e3fb0f87dec2c4d3cd76ad77c"/></dir><dir name="Sales"><file name="PaymentMigrate.php" hash="b0cb16acd822816b82009b5f648eb4f6"/></dir><file name="Abstract.php" hash="2208fd00d748f4e42470c57a90fad2a2"/><file name="Migrate.php" hash="07b0deb7c09a313a2b337b684c76f9da"/></dir><file name="Factory.php" hash="614bc12c240bd0c917fdc090c8018ccc"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Wizard"><file name="MigrationController.php" hash="578c2b786ec293a24bce53806f16c102"/></dir><file name="MigrationController.php" hash="7d9f458c55ee1fe5232c6d7136d86551"/></dir></dir><dir name="etc"><file name="config.xml" hash="9fb5870a66cfe557beba5b9780fcdff5"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payone"><dir name="core"><dir name="configuration"><dir name="wizard"><dir name="page"><dir name="form"><file name="container.phtml" hash="3c7287c0c40be94a1b1189a6cd7f8812"/></dir><dir name="payment"><dir name="grid"><file name="container.phtml" hash="1b00428676495848907360d99697bd80"/></dir></dir><dir name="view"><file name="container.phtml" hash="042d56bf10158e1944c48f788f48121e"/></dir><file name="finish.phtml" hash="956ddfbe0e9971e647735fe4a45abf0e"/><file name="index.phtml" hash="66e73112887b5c1028fac21d5ce97c71"/><file name="store_switcher.phtml" hash="6871e556b2872ba357ea95be0c543a6a"/></dir><file name="iframe.phtml" hash="186c008f6b31f8276a84aeb7d3c404e4"/><file name="index.phtml" hash="2deddd95d55920eff1ccc96959857b75"/></dir></dir><dir name="information"><file name="iframe.phtml" hash="c4e39d236151492940e32a0563a6a4b8"/></dir><dir name="payment"><dir name="method"><dir name="form"><file name="advancepayment.phtml" hash="ccba1332be108f51e27afaf713805dfe"/><file name="cashondelivery.phtml" hash="ad4e7185825b32b69ca06083c03c7a46"/><file name="creditcard.phtml" hash="6988cb1c2f870a93c93491776f2a6e84"/><file name="debitpayment.phtml" hash="a96f910448206def6eb3ba70fceeb4c7"/><file name="invoice.phtml" hash="b0548563fdacc3cb1757a838d2c03158"/></dir><dir name="info"><file name="advancepayment.phtml" hash="74b458367e5712c859d800b933ed95ff"/><file name="cashondelivery.phtml" hash="91f410d394f3040641468425d39a537c"/><file name="creditcard.phtml" hash="c89761dabea8e6c31b8f400586619f21"/><file name="debitpayment.phtml" hash="f8d0de0ffc00bb87e42d57db03df4854"/><file name="financing.phtml" hash="8719ffe34094d2f0ce884cb9d8ebc04a"/><file name="invoice.phtml" hash="64001ffc31c0eafb832c03edd285fc5d"/><file name="onlinebanktransfer.phtml" hash="d6504ebddc33f064c0acb2736c22f6ac"/><file name="safe_invoice.phtml" hash="8db49727920c0bd0f8ec98d168b8803e"/><file name="wallet.phtml" hash="bd71ab9ff89f2cfa590307c9e29e0ead"/></dir><dir name="pdf"><file name="safe_invoice.phtml" hash="667afd9640f1c34c1116c1939951e8d5"/></dir></dir></dir><dir name="protocol"><dir name="api"><dir name="view"><dir name="tab"><file name="exception.phtml" hash="54d0c77b153ff41fa10391b3177fc96a"/><file name="general.phtml" hash="8d4ad5cd56d33fd7fdcf0b4ff7bc0cc9"/></dir><file name="plane.phtml" hash="fcfcb586c7c92606a6c309489c878d53"/></dir></dir><dir name="transactionstatus"><dir name="view"><dir name="tab"><file name="general.phtml" hash="fd318ab622c4aa2c0554d7ce81843361"/></dir><file name="plane.phtml" hash="7d19a22206a2384f5972a313017e4589"/></dir></dir></dir><dir name="sales"><dir name="order"><dir name="create"><file name="init.phtml" hash="468a133c8dff06c7292b6e7d4de8068f"/></dir><dir name="view"><dir name="tab"><file name="transaction.phtml" hash="4af63c9829a7bd466eafc54ae9dd889a"/></dir></dir></dir></dir><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="array.phtml" hash="1aee5fb9b33232708fe242601e4de701"/></dir><file name="iframe.phtml" hash="67366b7e745ab1a2a1f359360df88e07"/></dir><dir name="hint"><file name="payment.phtml" hash="c2de168313f9c9fcf906467af95dcaf9"/><file name="payment_reference.phtml" hash="2497578443d7d0455e7d75e1000aed32"/><file name="protect.phtml" hash="cfd300a3ff4f05ff143e1f78a669a7ce"/></dir><dir name="payment"><dir name="grid"><file name="container.phtml" hash="952f87bb71dfd75d126e3196f863dba6"/></dir></dir><dir name="tooltip"><dir name="general"><file name="global.phtml" hash="a37390c8dab60e16cbe50ee69e217f40"/><file name="narrative_text.phtml" hash="4ea256f2ef56d066050ea6d363b714f1"/><file name="parameter_invoice.phtml" hash="dc171aa4082645cfb9e1bd0d04271e67"/><file name="payment_creditcard.phtml" hash="b4b8502a3604fb12f075fe740d945034"/><file name="status_mapping.phtml" hash="1f61ee593d8eda86732bda7bc9e6e52e"/></dir><dir name="misc"><file name="creditmemo.phtml" hash="ba257ba5f772f0135a02bfcd384cf593"/><file name="discount.phtml" hash="4763652b79b6c7f9260fbe4c908f4732"/><file name="email_avs.phtml" hash="ea7f60f2f9021e8cc7c17995198150c4"/><file name="email_error.phtml" hash="9162008f414fb8cbe2794b4bd6a4d787"/><file name="shipping_costs.phtml" hash="7b5b83f9229475df906e20ef2037e820"/><file name="transaction_status_forwarding.phtml" hash="788210951399e85e94bf350ff2030f5b"/><file name="transactionstatus_forwarding.phtml" hash="a0a484355dda756674923af4515000b7"/><file name="transactionstatus_processing.phtml" hash="264705cbd3681a3a705dfe5f9b9459b7"/></dir><dir name="payment"><file name="creditcard.phtml" hash="8e484c4f491ab90dda0578800162fd1c"/><file name="debit_payment.phtml" hash="1dd18a9356f944799818771e18983986"/><file name="financing.phtml" hash="bc3fcfaa4b7540192085a03d8c91dc55"/><file name="method.phtml" hash="130b071e2363972df1f634585d6e0704"/><file name="online_bank_transfer.phtml" hash="93a29afae277ad94b4c1c124c96cfbcb"/><file name="safe_invoice.phtml" hash="2484a8ba66416937d48f2785175bdea5"/><file name="wallet.phtml" hash="ba12c5e01a515ff744f2ab02c8f10d0e"/></dir><dir name="protect"><file name="addresscheck.phtml" hash="3c350cec7badc0c6df013f03527a7b98"/><file name="addresscheck_type.phtml" hash="bc67f5743cc703e8a454e1adf0730a8d"/><file name="creditrating.phtml" hash="f378ace23555c6c9f95e37f032144250"/><file name="creditrating_agreement_message.phtml" hash="f58ee591b49d6d8f16770186ae45915f"/><file name="creditrating_lifetime.phtml" hash="c83c475ef6921147c587506b432ff0d4"/><file name="creditrating_type.phtml" hash="d994405b3e913dfdbc7884c2993eb78b"/></dir><file name="window.phtml" hash="b7de8be932ff20ab238c8882f50e4801"/></dir><file name="tooltip.phtml" hash="15f2dc92646a8d8533c7f1c1d0bb10b0"/></dir></dir><dir name="transaction"><dir name="view"><dir name="tab"><file name="general.phtml" hash="68caff5aa8efad5e37378e9c7b739842"/></dir><file name="plane.phtml" hash="8f4c2ef7fecfab8eb02d12b35e862b5e"/></dir></dir><dir name="widget"><dir name="form"><file name="container.phtml" hash="2ed5809647722a4a4358a89732100029"/></dir><dir name="view"><file name="container.phtml" hash="b750b77783092c218e3326734681c2f2"/></dir></dir><file name="client_api.phtml" hash="82d735b2326311446896dc12b826d6a5"/><file name="iframe.phtml" hash="9f74308e8b43cad2b15748b9f8368559"/></dir><dir name="migrator"><dir name="migration"><file name="index.phtml" hash="e61197db7ef214108863c79ddeb9815b"/></dir></dir></dir></dir><dir name="layout"><dir name="payone"><file name="configuration.xml" hash="e27c94d22f89de34b111eb755ded3d0e"/><file name="core.xml" hash="503893a49d142d5a74287c79d5891703"/><file name="migrator.xml" hash="eeb630d133aeb3f54010d9d194772c46"/><file name="transaction.xml" hash="765365f3a10d6ff526a4889c4a606153"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payone"><dir name="core"><dir name="checkout"><dir name="onepage"><dir name="payment"><file name="additional.phtml" hash="3882f895bd113afc428393a71f5d7ccf"/></dir><file name="init.phtml" hash="5c0c3bf8d37efdbf537b5384bc34398e"/></dir><file name="protect.phtml" hash="f99ba7707392621d73df931a3821d691"/></dir><dir name="payment"><dir name="method"><dir name="form"><dir name="onlinebanktransfer"><file name="bankgroup.phtml" hash="9f7bcb518a2f4974f5f574cf7a48ed97"/></dir><file name="advancepayment.phtml" hash="53be7d1aebc234604157aa7e6dc47795"/><file name="cashondelivery.phtml" hash="0cad47103bbd341208e6252bd8fe47d1"/><file name="creditcard.phtml" hash="30846a5a6913fe10446a769c3146d416"/><file name="debitpayment.phtml" hash="13add18b63688851e1cdafdbe334cdcb"/><file name="financing.phtml" hash="efd93f7626772c46117a20dd5f121a72"/><file name="invoice.phtml" hash="64ec86d5cdd348a80a43a713abc1f0af"/><file name="onlinebanktransfer.phtml" hash="c74e004c8c1b28fbf2a2aabc3c835c85"/><file name="safe_invoice.phtml" hash="a9661290f9a1a083f463e7ce2cfa8e60"/><file name="wallet.phtml" hash="37abf7df2c8504480fae04e0435d8677"/></dir><dir name="info"><file name="advancepayment.phtml" hash="611af85c9ae80aa9c702b34fc0724e79"/><file name="cashondelivery.phtml" hash="5f369ef06729584e8bf094700877386d"/><file name="creditcard.phtml" hash="dc5ecc29deed279f93928e307c6d1ba2"/><file name="debitpayment.phtml" hash="0667cfe80b5b311cdc84fb064c063e1f"/><file name="financing.phtml" hash="25fec413f14104d9d589a88931a87443"/><file name="invoice.phtml" hash="64179e611f39b4b7e68cd367aecb0931"/><file name="onlinebanktransfer.phtml" hash="b84636742b49e7af469cfb97a23f4c0c"/><file name="safe_invoice.phtml" hash="7195fccdfde46f248cff5dcca6e55db8"/><file name="wallet.phtml" hash="099fd47c84a62ad9510a47a24345d317"/></dir></dir></dir><file name="client_api.phtml" hash="1ec0b009b38dc06caa21467c3f4ffb71"/></dir></dir></dir><dir name="layout"><dir name="payone"><file name="core.xml" hash="b727946bc51bcecc665c9c3c6ace8fa3"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Payone_Core.xml" hash="26082ff2574ca87302556c5c3a39b246"/><file name="Payone_Migrator.xml" hash="9af684dec6dc50d9e863538773350fb7"/></dir></target><target name="magelocale"><dir name="de_DE"><dir name="template"><dir name="email"><dir name="payone"><dir name="core"><file name="avs_template.phtml" hash="fb6ebbfa5d1f95d58b321cf6feb81dba"/><file name="error_template.phtml" hash="009959ada1dabe51d7e1bbc36027a65f"/></dir></dir></dir></dir><file name="Payone_Core.csv" hash="94f1d529df08eeea2b42f65e736a549e"/></dir><dir name="en_US"><dir name="template"><dir name="email"><dir name="payone"><dir name="core"><file name="avs_template.phtml" hash="fb6ebbfa5d1f95d58b321cf6feb81dba"/><file name="error_template.phtml" hash="009959ada1dabe51d7e1bbc36027a65f"/></dir></dir></dir></dir><file name="Payone_Core.csv" hash="0908ce87a29cbf13b24c8153be7656ed"/></dir></target><target name="mageweb"><dir name="js"><dir name="payone"><dir name="core"><file name="addresscheck.js" hash="6568d29af003fa91f0b5c469ff464e3c"/><file name="client_api.js" hash="dd107fcd812ac77a99e3b72c01672b7a"/><file name="creditcard.js" hash="622a1c070018560dd1e4374828121f3d"/><file name="financing.js" hash="77ba32ce7b8c2bebf561709ebc956b41"/><file name="onlinebanktransfer.js" hash="fc63b1360ab0c24aaf7a42eb03c580aa"/><file name="safe_invoice.js" hash="5cae1f2109ae6bca13ad9966152eebeb"/><file name="wallet.js" hash="8b52a7055252923888319dd057aa1e4e"/></dir><dir name="migrator"><file name="migration.js" hash="602a23b295cf6b241845fa626b089c91"/></dir></dir><dir name="prototype"><dir name="windows"><dir name="themes"><dir name="payone"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="logoclaim.gif" hash="d71545ef09e2f10339654cda93d1cca2"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="1944445eb3fb14f0ede092665ccbbf0b"/></dir><file name="payone.css" hash="ca84a0501c8f6f794c08bc34c013aa01"/></dir></dir></dir></dir></target><target name="magelib"><dir name="Payone"><dir name="Api"><dir name="Adapter"><dir name="Http"><file name="Abstract.php" hash="8d37bc6e9bd6acd0e5b1350542e43f9d"/><file name="Curl.php" hash="64d649310b514790422664b5ba1c0b3b"/><file name="Socket.php" hash="1bd51c5e95bce114d3ba12098464b072"/></dir><file name="Interface.php" hash="8d398fe489610c76b237847b5e05b300"/></dir><dir name="Enum"><file name="AddressCheckDivergence.php" hash="ed818028f3cd09958a16f41af52b6f63"/><file name="AddressCheckPersonstatus.php" hash="67b5e5e1b0b6eaed4f2eb51bfee3eddb"/><file name="AddressCheckScore.php" hash="1260e0f031526f7707b3a24dd81b7c46"/><file name="AddressCheckSecstatus.php" hash="785c4449b18e153f8359e354a318ba84"/><file name="AddressCheckType.php" hash="bda748769b6408222e6819d660d52404"/><file name="AvsResult.php" hash="aa6abfcd74a49fa2c72b70935456e458"/><file name="BankaccountCheckType.php" hash="b8204010ee3df148395d3c0373c2f67a"/><file name="CaptureMode.php" hash="8a0c5c7b78d8a9e0f44268eb3ef65bf5"/><file name="ConsumerscoreScore.php" hash="119bf444889838ad55b57154eb62f960"/><file name="ConsumerscoreType.php" hash="e5f25aae50aa061a54e4b286c25f3272"/><file name="CreditcardType.php" hash="d2027a0ac1b44de3c818809adff905aa"/><file name="DebitTransactionType.php" hash="644169299e92d74b82c15563df348c1c"/><file name="Ecommercemode.php" hash="9e72976aba594d506f62e15f0c7c9ec1"/><file name="FinancingType.php" hash="b15dd3b0d71aa71eb858bc2772e39e1b"/><file name="InvoiceDeliverymode.php" hash="20c0fb5edc752eaa13f7485ae927302b"/><file name="InvoicingItemType.php" hash="6b179cde7ee57c4e2d979836ea0134b6"/><file name="OnlinebanktransferType.php" hash="11438be9127821ed1b160420a5139011"/><file name="RequestType.php" hash="6914b5f56151fce3e97b791bf413962b"/><file name="ResponseType.php" hash="98652b6dcb80cdc36cec7454785082aa"/><file name="Settleaccount.php" hash="ea59cbeec8798b4d19c16eefb8824031"/><file name="Shippingprovider.php" hash="cbf70776a47ba3eb482bab7d36da24e7"/><file name="Storecarddata.php" hash="91fc3b5f0fe6b5d13cf3178f01cdec00"/><file name="UseCustomerdata.php" hash="72f1a1c38c834ee0bae56623d899643d"/><file name="WalletType.php" hash="a5bb130661bacc7d226e0859d3967427"/></dir><dir name="Exception"><dir name="Request"><file name="InvalidKey.php" hash="7fb3d17cacda83b421fda79ca815747c"/><file name="InvalidMid.php" hash="3f6031ccbffa16c8091ba25e87b105e3"/><file name="InvalidMode.php" hash="7388ff3c863ea620d7c2847a6e610a8c"/><file name="InvalidPortalid.php" hash="ef0d20493a9d1964a44c8f9ae9b15248"/></dir><file name="Abstract.php" hash="60f869606e12f5934d8044ab2182130a"/><file name="InvalidParameters.php" hash="a7d3f28d3c771a025a22822f36c6280b"/><file name="InvalidResponse.php" hash="465c7f77851b8dbd7a31f367b0421bd2"/><file name="InvalidUrl.php" hash="7a43bdcca4c81f47eca5982a0f173175"/><file name="MappingNotFound.php" hash="f9bbcb55bafee8da15bf3a7ba3d49cbb"/><file name="Payone.php" hash="7b6bc8521fc6f68582c3c8f28d1d9ea7"/><file name="Timeout.php" hash="0bfdac99f441015b835a218886ae2987"/><file name="UnknownStatus.php" hash="f8bbb8759bdb8104daaed59a31d4b632"/><file name="WritingRequestToServer.php" hash="6bac9fe5228568d57b9492afdc5096e6"/></dir><dir name="Mapper"><dir name="Currency"><file name="Interface.php" hash="a166444b69c22891983b475d98a9c4ba"/></dir><dir name="Request"><dir name="Payment"><file name="Abstract.php" hash="80457e0ca50f31bb491f9c0c30af28d3"/><file name="Authorization.php" hash="24bb9c33163acf92764c5e3d98c8890c"/><file name="Capture.php" hash="1e99a0ee422ad8a049c669ce2b0925a7"/><file name="Debit.php" hash="88646c41c5b422f60c2c71bced0c6180"/><file name="Preauthorization.php" hash="65c3d30b553aa821f77bd98d29e4bb7a"/><file name="Refund.php" hash="323148b00ae50d41058ba9ec09aca2b3"/></dir><file name="Abstract.php" hash="682ab94bfa9d4b4e772c973504b944ca"/><file name="Interface.php" hash="300f24067b5e02cbcad586ae64cd2bd0"/></dir><dir name="Response"><file name="3dsCheck.php" hash="8df0b3a1e60a42037bb428936f1af395"/><file name="Abstract.php" hash="65f949eecff5761fede0017d376613bc"/><file name="AddressCheck.php" hash="d46ac343f5523ad99b7c448454917fdf"/><file name="Authorization.php" hash="e0d574e2314756f02ad348856734305d"/><file name="BankAccountCheck.php" hash="3a451451285b792cd3f338173c32cd23"/><file name="Capture.php" hash="d932dcd2a2a1aae8fe5ea01b1eb3d203"/><file name="Consumerscore.php" hash="fe049746f267422141c67ae3bff59a66"/><file name="CreditCardCheck.php" hash="507102173d66ffc8c59643c8c5c8b962"/><file name="Debit.php" hash="0cc821fe414ba12b6f0a47c737032b81"/><file name="GetInvoice.php" hash="e8d48e92395106748609307bf75d9757"/><file name="Interface.php" hash="ec7a85fd32a14f8e3fb6c53999a3b29c"/><file name="Preauthorization.php" hash="61ca02a765f954d8d7ef3787bc998c0b"/><file name="Refund.php" hash="49db64773b4d50e513d0dd0b229f2a94"/></dir><file name="Abstract.php" hash="4b8a025d4e906ee806d025ec9fd8f385"/><file name="Currency.php" hash="f8b9151eb9f4851d9c0b1dcee5dde465"/><file name="currency.properties" hash="eef9fbec34f4f4a2602f6081fcfda371"/></dir><dir name="Persistence"><file name="Interface.php" hash="a77efa3aeb4734aebfe18c9f7e4ccc7f"/></dir><dir name="Request"><dir name="Authorization"><file name="Abstract.php" hash="80971aafc19e11d5e3223a9048b719d1"/></dir><dir name="Parameter"><dir name="Authorization"><dir name="PaymentMethod"><file name="Abstract.php" hash="9714088466bee6c8349584c74568c5fd"/><file name="CashOnDelivery.php" hash="8472ab78a107d67d2bb1585802d3e961"/><file name="CreditCard.php" hash="36bf310a53ccce2a310884c467b91cc0"/><file name="DebitPayment.php" hash="6f6dac89fdaa2ac4f8cf564be3553ae6"/><file name="Financing.php" hash="2b2ba3e07535705c0382d538110eafdf"/><file name="OnlineBankTransfer.php" hash="4b3f69cbf65904c7d64ee6d8323636c2"/><file name="Wallet.php" hash="f4a72017354b2b8ffba75892e6decddb"/></dir><file name="3dsecure.php" hash="1280e05ad2671b85255b64ebc64d69d0"/><file name="Abstract.php" hash="cf44e93bc1e56cc84df5f4ab4088050b"/><file name="Business.php" hash="b8c430800c69b62410037cf57491c3cb"/><file name="DeliveryData.php" hash="8b021a87ba54850894bbf7c12e8bffe5"/><file name="PersonalData.php" hash="992369ce211f095124f03adfe435441d"/></dir><dir name="Capture"><dir name="Invoicing"><file name="Transaction.php" hash="f6dce30897bbc38eae58ed5bd10d7e0a"/></dir><file name="Business.php" hash="fb5c8262c2eaad6a2ce9cbb88afe0b2a"/></dir><dir name="Debit"><dir name="PaymentMethod"><file name="Abstract.php" hash="10fe457332ef63d231208d5074a87925"/><file name="BankAccount.php" hash="42e4a48e3c794412fa2c99c487c9aa2f"/><file name="CreditCard.php" hash="8c30a4f7a7352bc137a7708b2e35de70"/></dir><file name="Abstract.php" hash="ad7c2f583cd2bb8f2e2799319ec293f3"/><file name="Business.php" hash="cb5ced7f6e449a4572227fd868681e1f"/></dir><dir name="Invoicing"><file name="Item.php" hash="b61d4ceadc6dadc4ba5082d7c6705568"/><file name="Transaction.php" hash="3038d8b62150e0e51763d48c4ff8e239"/></dir><dir name="Refund"><dir name="PaymentMethod"><file name="BankAccount.php" hash="da26a54c7899f2864ace21ecb3729d7d"/></dir><file name="Abstract.php" hash="6e49e729223f6ea7d095d43923928b9d"/></dir><file name="Abstract.php" hash="653a1b46ee15ed2d01a55e2f24a1dc9f"/><file name="Interface.php" hash="6e34e7349bf3eb3ea52418781b6bca31"/></dir><file name="3dsCheck.php" hash="8502019ed3c3057fe05ee3c1a71aca21"/><file name="Abstract.php" hash="5c9806f9f608d5f5e89b9c54927990db"/><file name="AddressCheck.php" hash="aa187c6821e3cef431b119c33a5bf23f"/><file name="Authorization.php" hash="52ed73816ee6887ed4461e5850893182"/><file name="BankAccountCheck.php" hash="c9de3679f926b91603815ea66916450f"/><file name="Capture.php" hash="1f853ee78f5813ee4e68082fff76fa53"/><file name="Consumerscore.php" hash="afc7c64148ff01a2044dc748eb78d8a4"/><file name="CreditCardCheck.php" hash="92abb97fdb171cd07a0af63d51de7fd5"/><file name="Debit.php" hash="f2fcec84c6d37efa17df7598933c7b26"/><file name="GetInvoice.php" hash="a5bf340eef45f0b974badc21899423c6"/><file name="Interface.php" hash="338199100f226bb478a7e79c1594bfc9"/><file name="Preauthorization.php" hash="0a681074560da4069e694892c0064f6c"/><file name="Refund.php" hash="56c0bb2425448b6e0a57bdd35944250b"/></dir><dir name="Response"><dir name="3dsCheck"><file name="Enrolled.php" hash="1972e3bf59047a74755a0e40d6732ac1"/><file name="Invalid.php" hash="a09d5b1eec2b0956d4023d2f2b14f237"/><file name="Valid.php" hash="1ad50cd437af0de75aad8c2fcffa85bc"/></dir><dir name="AddressCheck"><file name="Invalid.php" hash="132932a39401c298578935e74c416fbe"/><file name="Valid.php" hash="29793361fab8fffc1216ebf211660dde"/></dir><dir name="Authorization"><file name="Abstract.php" hash="b1073e7d1dfa3f6078d74e8f33f7d9ac"/><file name="Approved.php" hash="a344f89cf8166b673a843e595e92fbff"/><file name="Redirect.php" hash="1a239aa8bdff6e89b14a43d4ca3be68b"/></dir><dir name="BankAccountCheck"><file name="Blocked.php" hash="8716ee872b079670aeba08e498407754"/><file name="Invalid.php" hash="9317da83f806353ba8692e2d91f0db31"/><file name="Valid.php" hash="d4a89d6174e4e688eb761cb3ef799803"/></dir><dir name="Capture"><file name="Approved.php" hash="8166e09325a3eaa608e1f64103c57743"/></dir><dir name="Consumerscore"><file name="Invalid.php" hash="4ec7a41513ca28e7081e0a7b0fa35f44"/><file name="Valid.php" hash="e0053bb2af649d504dad28f163c0a61c"/></dir><dir name="CreditCardCheck"><file name="Invalid.php" hash="e95422fb58384c0ca0e82db79dbd5a8f"/><file name="Valid.php" hash="e3565fede3a2b5d80e668617abcf463f"/></dir><dir name="Debit"><file name="Approved.php" hash="a9071053a4352acaf3674e8831e84102"/></dir><dir name="Management"><file name="GetInvoice.php" hash="00cced79a4094cfdcb42a25da88f9fef"/></dir><dir name="Preauthorization"><file name="Approved.php" hash="67775fbdad364515618a69ed583b9c7a"/><file name="Redirect.php" hash="7dc6d21e5d7395127f8a4cceac1ee3ba"/></dir><dir name="Refund"><file name="Approved.php" hash="06f5abaf7335c7bc572d0f7707a9d110"/></dir><file name="Abstract.php" hash="8aa20c1529cc03a0f6c64d8e4f2690b2"/><file name="Error.php" hash="361aab061dbcd5aade4d2a2ae5224620"/><file name="Interface.php" hash="bfb530e8de56624e9a5a93bb3d8d22d3"/><file name="Invalid.php" hash="d91d1b8f6214e350493c688f3226325b"/></dir><dir name="Service"><dir name="Management"><file name="GetInvoice.php" hash="e7e764daa5ec37aa40905a76236f01f7"/></dir><dir name="Payment"><file name="Abstract.php" hash="31697d161f8ddecbf1380fcfde1b278b"/><file name="Authorize.php" hash="cc79d2f1743a14c4659d4526814857b3"/><file name="AuthorizeInterface.php" hash="a252deb55f6d2856d22389d7946c96e8"/><file name="Capture.php" hash="70510c4b962bf20632cc824239d79924"/><file name="CaptureInterface.php" hash="df0375f93cb5c86391fbb1394ef45a32"/><file name="Debit.php" hash="18c7aed47628aed4ffb5baef2fad14ac"/><file name="DebitInterface.php" hash="47d73baa6e092f21dfc7ffcc43eb9c4d"/><file name="Preauthorize.php" hash="46f363b78ae3f6a4af15755570f5edea"/><file name="PreauthorizeInterface.php" hash="d73caab0e6851b246e5c3aed6026e08b"/><file name="Refund.php" hash="3c0967aba96de8d9c14153f6659b9d2b"/><file name="RefundInterface.php" hash="0cb30e224128b3f8a2f61a6a750af4cd"/></dir><dir name="ProtocolRequest"><file name="Interface.php" hash="e45a08d8c42675881617033eda0df27b"/></dir><dir name="Verification"><file name="3dsCheck.php" hash="c7592588376cce47fb44fc752b2b6a42"/><file name="AddressCheck.php" hash="e51e5e7383b24798b8ab077964f68a3e"/><file name="BankAccountCheck.php" hash="a2c419d80194abf5fa5678c8f68c8360"/><file name="Consumerscore.php" hash="e2c011355f09a8fda2b0b10e65b96372"/><file name="CreditCardCheck.php" hash="75f87cc35b2de68d957ca98a69acc869"/></dir><file name="Abstract.php" hash="24ef22fd385dd99d6f2bf4413b74cac1"/><file name="Interface.php" hash="a3c79f33b0a9ac10778c088e2b660ad3"/><file name="ProtocolRequest.php" hash="84ff92e03b1ce5237c7384df13dca268"/></dir><dir name="Validator"><file name="Abstract.php" hash="ead86ababa76997e8dd8886ebfc3335c"/><file name="DefaultParameters.php" hash="e4fb2582a213f164d9ca8f2ba764cb06"/><file name="Interface.php" hash="cd0994f06f5cb491f19820e99da952d0"/></dir><file name="Config.php" hash="d5024c64e3e7b543d56fe7999ad00fe5"/><file name="Factory.php" hash="84dd815fe61c749581731ff17034765e"/></dir><dir name="ClientApi"><dir name="Enum"><file name="RequestType.php" hash="c30f83abe7dc48c59339b7fa3e3648af"/><file name="ResponseType.php" hash="8d07f1c93d0680f61d59bf2163042be5"/></dir><dir name="Exception"><file name="Abstract.php" hash="1eb99fc78d7289b66c62b9f3feeaf5f4"/><file name="InvalidParameters.php" hash="19df1c0d0bb6ef91560329ca960d5e8d"/></dir><dir name="Request"><file name="Abstract.php" hash="82a935f450b054ad0316e06dcfff3599"/><file name="CreditCardCheck.php" hash="89ad304836bfe249de78a7ed2f4df4aa"/><file name="Interface.php" hash="a5550465e40d44f2bdca9d25581b1aff"/></dir><dir name="Service"><file name="GenerateHash.php" hash="489d77268d75a908ada40d9e2236331b"/></dir><file name="Factory.php" hash="7fe76a15b47eb692360485b2c86d0023"/></dir><dir name="Config"><file name="Abstract.php" hash="57627d0919526793ad2fb0e5d70d32d8"/></dir><dir name="Enum"><file name="ClearingType.php" hash="e14bc770728c22c5f68f8dd032010f8c"/><file name="Mode.php" hash="ee9b0a7e12c9e582b7e25ccbbadb6b72"/><file name="Reminderlevel.php" hash="c552342982d010a94925ebb841ecc7eb"/></dir><dir name="Log4php"><dir name="xml"><file name="log4php.dtd" hash="d4da6c96c895b879f6b1924eb8d949d4"/></dir><file name="Logger.php" hash="8447fe973f3ef059ff0f57d82618ccf6"/><file name="LoggerAppender.php" hash="ec9686c66cb5574be4830abcd220a097"/><file name="LoggerAppenderConsole.php" hash="6a59da37cf0f37ff6665836a61da5bd2"/><file name="LoggerAppenderDailyFile.php" hash="6308ee07f3860bb3c6140eabfeb71cd7"/><file name="LoggerAppenderEcho.php" hash="68d7b55b079911e34e1f37317a49d586"/><file name="LoggerAppenderFile.php" hash="a96d454f13a48df572a5f80e4728c60a"/><file name="LoggerAppenderMail.php" hash="e9516e72ac3b6f831e4cc68205bbfde4"/><file name="LoggerAppenderMailEvent.php" hash="823f0b4c97f304a49fecb2a125f87437"/><file name="LoggerAppenderMongoDB.php" hash="6fb689ec75a81aa09d6eda5e4d43f212"/><file name="LoggerAppenderNull.php" hash="e83a4107179bf0bf1bb89f9cb8ea725c"/><file name="LoggerAppenderPDO.php" hash="34f1702a1fc36937a3c76f0eeb45df1b"/><file name="LoggerAppenderPhp.php" hash="34bb58d31236f6c501f961ce8e96d36e"/><file name="LoggerAppenderPool.php" hash="1c73795f9dce5960f09c95ef56cb2736"/><file name="LoggerAppenderRollingFile.php" hash="e3cacef4624d5ba9d7513490b451b32e"/><file name="LoggerAppenderSocket.php" hash="2b87c559b48feb5f2315134b2f4acf58"/><file name="LoggerAppenderSyslog.php" hash="69be997a8204e4d99a334c9a59e8bbcc"/><file name="LoggerAutoloader.php" hash="e998c843da4562d03fdba363dd796b4b"/><file name="LoggerConfigurable.php" hash="0f7c49d4b5c7951f7a5ebcb6fd72dc98"/><file name="LoggerConfigurationAdapter.php" hash="c0adc3a6cbaa800f9a1485d1f1fefed3"/><file name="LoggerConfigurationAdapterINI.php" hash="ea216d508a831c88a7bc6c13c3f2fc85"/><file name="LoggerConfigurationAdapterPHP.php" hash="a41c90c802c25ba8dec45b3138993590"/><file name="LoggerConfigurationAdapterXML.php" hash="a12cbab8e379f4984c078abfc58502f2"/><file name="LoggerConfigurator.php" hash="0e66c44e35c1cd3df0e59d2d573b550c"/><file name="LoggerConfiguratorDefault.php" hash="e01b6a93b7c4bff6b4cc82b7bda3c257"/><file name="LoggerException.php" hash="9e440d4b1cbcd75841ea11fe383841c4"/><file name="LoggerFilter.php" hash="c7b2470b5a201128e7838acb4e5965a2"/><file name="LoggerFilterDenyAll.php" hash="bc6153cbbe58c9449dcbe0eb58dcff05"/><file name="LoggerFilterLevelMatch.php" hash="48bed57d8094cd3b579a58ec9a509548"/><file name="LoggerFilterLevelRange.php" hash="f68174150dc2b0c43fabe882f5215d8c"/><file name="LoggerFilterStringMatch.php" hash="01b8f3f9ac023f7d20d3461be14f643f"/><file name="LoggerFormattingInfo.php" hash="364f3d31ee870acd469ca1fc1f8765ff"/><file name="LoggerHierarchy.php" hash="9163da991071a18867bf266bf735e078"/><file name="LoggerLayout.php" hash="6b31185297862e7d0b66cbeea0145eb6"/><file name="LoggerLayoutHtml.php" hash="d8a72d0aedfd68e8caed9953ae437315"/><file name="LoggerLayoutPattern.php" hash="a218e8726660ebca2d1f2d608ecaa343"/><file name="LoggerLayoutSerialized.php" hash="00a06131613a91c7c7ee6a5ba3947435"/><file name="LoggerLayoutSimple.php" hash="3476e848e0a0e5d747ba5012e65dfa1d"/><file name="LoggerLayoutTTCC.php" hash="4ae4f2443bf260b17c0c0c6f17065be7"/><file name="LoggerLayoutXml.php" hash="773e7660f2101b9ea902ec0a4b980c70"/><file name="LoggerLevel.php" hash="db8bce0726dec9bd9b0d6d02ae090049"/><file name="LoggerLocationInfo.php" hash="e245242f642455df5181d39b2a49bc54"/><file name="LoggerLoggingEvent.php" hash="663c8dfbdc7bae7c81a9184aa6be6e10"/><file name="LoggerMDC.php" hash="10fe2e863b66480aff6fe7c7109d8b39"/><file name="LoggerNDC.php" hash="afc52c64b7e31fa006ccbc1b18910dfd"/><file name="LoggerOptionConverter.php" hash="03ba7a93f58a843d18d168da0091b719"/><file name="LoggerPatternConverter.php" hash="8c384ce762db48a9e797929cb128f3d4"/><file name="LoggerPatternConverterClass.php" hash="d6a162b0bc1034d768b5738385e29630"/><file name="LoggerPatternConverterCookie.php" hash="a0dc2686c21284986f44ef306fdc3ff8"/><file name="LoggerPatternConverterDate.php" hash="2912f6c9b82d694b40ccc4accdba2e89"/><file name="LoggerPatternConverterEnvironment.php" hash="d7b8736d5784612941235a821f458ede"/><file name="LoggerPatternConverterFile.php" hash="10028ea79771e11a9c1c615b10fec045"/><file name="LoggerPatternConverterLevel.php" hash="d377b9f1eac786fa56f5232bc3a29eb3"/><file name="LoggerPatternConverterLine.php" hash="8c7c68267321e96b0dd9d5de3415a431"/><file name="LoggerPatternConverterLiteral.php" hash="5d846e8bbc96f26bc8e174013a1a5032"/><file name="LoggerPatternConverterLocation.php" hash="81536bcf1001bb97dfa21e9f7cbd4c5c"/><file name="LoggerPatternConverterLogger.php" hash="20b17edda41867d62c704c127f749b15"/><file name="LoggerPatternConverterMDC.php" hash="e4dc6877f736f846e1a4cc176b7c3a9b"/><file name="LoggerPatternConverterMessage.php" hash="30545b3ad7c93ea2193d342e2f99c2e7"/><file name="LoggerPatternConverterMethod.php" hash="eea57c3ef84b389ca433a7f2293582ae"/><file name="LoggerPatternConverterNDC.php" hash="f9275e216e7528b91d70998ad7475d91"/><file name="LoggerPatternConverterNewLine.php" hash="1ae8aa85ad891dbc7f1e41ed26194546"/><file name="LoggerPatternConverterProcess.php" hash="cd6244ec38481c95bfa7b6a2db5027c9"/><file name="LoggerPatternConverterRelative.php" hash="d1558f42568aad26b3a76d8608843841"/><file name="LoggerPatternConverterRequest.php" hash="4bdcac1e0447e330562315e4ae4f023c"/><file name="LoggerPatternConverterServer.php" hash="bd737b114527ea39dd5b960c22e1b349"/><file name="LoggerPatternConverterSession.php" hash="a613871c06e80970944445cdd4233cda"/><file name="LoggerPatternConverterSessionID.php" hash="91cdd24b77656cafd2e1ae647290fa8e"/><file name="LoggerPatternConverterSuperglobal.php" hash="ab3d22445bebe7335324f26384bd8cb1"/><file name="LoggerPatternConverterThrowable.php" hash="529b157d117600859d9fce6336096951"/><file name="LoggerPatternParser.php" hash="57eaa66b2207b388b353648f9a17c6f9"/><file name="LoggerReflectionUtils.php" hash="f10a30a11f0c1a2859a36ce89c22665a"/><file name="LoggerRendererDefault.php" hash="f1c84c625d1f14aab88e9a25ebd89225"/><file name="LoggerRendererException.php" hash="e00057ffc0687098d42a8fe09bd61f58"/><file name="LoggerRendererMap.php" hash="d37dd01cecf80bb13b99e892a964aae3"/><file name="LoggerRendererObject.php" hash="1d1837e2d3d1388be77a838722b201f4"/><file name="LoggerRoot.php" hash="e00579b43b67450ff7e88f230e9af8fd"/><file name="LoggerThrowableInformation.php" hash="ed28cd254f3a6f5220ecf4d191ed7e82"/><file name="LoggerUtils.php" hash="400c7578fb86bc02f9153da5d982576c"/></dir><dir name="Protocol"><dir name="Config"><file name="Filter.php" hash="ff54f7b1edd77bc696746ff631d48c14"/></dir><dir name="Exception"><file name="FilterNotFound.php" hash="72b1c4ffa31b18ec27eed40469d222ae"/><file name="InvalidConfig.php" hash="78345f6cd5dd3918747303c9780eda09"/></dir><dir name="Filter"><file name="Abstract.php" hash="9d5c4977a5674a5ebba0921aee3810e3"/><file name="Filterable.php" hash="a9d19c275d9c0930dbdcd1f38b99c4bf"/><file name="Interface.php" hash="7bdc72724988eafedf2a503d1a1371a5"/><file name="MaskValue.php" hash="27f5dfd7c608f4de67fd26f9751b7500"/></dir><dir name="Logger"><file name="Interface.php" hash="80c813837bfc8d3b62d548daa3bbc5e5"/><file name="Log4php.php" hash="6815d39e4acad685e5350e38bc2eccf4"/></dir><dir name="Service"><dir name="Protocol"><file name="Abstract.php" hash="c123ad9b6ed31d34c1236cbbe3c8c0a6"/></dir><file name="ApplyFilters.php" hash="ab881b292dade78add817503e15b68ea"/></dir><file name="Factory.php" hash="690d0411a8e3967091117745bd7290ad"/></dir><dir name="Settings"><dir name="Configuration"><dir name="Api"><file name="RequestType.php" hash="f6b23bf2652034cbc3d50ad0e782f8f1"/><file name="ResponseType.php" hash="b2422c4e38f381bd370176a6b0a0011d"/></dir><dir name="PaymentMethod"><file name="CreditCard.php" hash="6894263df05741a6ed23c0acb414f402"/><file name="Financing.php" hash="27be604fed063bdbc893720927aa9669"/><file name="OnlineBankTransfer.php" hash="e5d6d8c95d0432e9f3442a8e9b1058b0"/><file name="Wallet.php" hash="060e1623e33a4551f921db1593891807"/></dir><dir name="TransactionStatus"><file name="Action.php" hash="1e2015cb6a83696bbc348cd5a19dd978"/></dir><dir name="Verification"><file name="AddressCheck.php" hash="cc54a17bd42c9410ceefb3f2ce4dfe11"/><file name="AvsResult.php" hash="80859d494d8b426f0f80c7f6c0001e04"/><file name="BankaccountCheck.php" hash="5b3ab2b7fec0f82b0c7efb2fd4ba35ec"/><file name="Consumerscore.php" hash="b66352d2c8dcca7e37f6bdb2a1cfcecd"/><file name="Personstatus.php" hash="f995a8a5456b981d44763cab0c6aecf6"/></dir><file name="Abstract.php" hash="b535ec70b40d20ab24aa248bcf3f05b4"/><file name="Mode.php" hash="d5b47124f2893bdf3440ec48eb2c646d"/><file name="PaymentMethod.php" hash="e1c8fe981eda7dfbb4330605d0dddbe3"/><file name="Reminderlevel.php" hash="bdc018a59eaab4d13209fc529afd7d51"/></dir><dir name="Data"><dir name="ConfigFile"><dir name="Global"><file name="StatusMapping.php" hash="9abad2df07db470433b8d46d8c4b9321"/></dir><dir name="Misc"><file name="TransactionstatusForwarding.php" hash="94e96bfd0972e85ecfeb26d3d708a159"/></dir><dir name="PaymentMethod"><file name="Abstract.php" hash="ad85b6f37b133795f4a9cfd94200bb2a"/><file name="AdvancePayment.php" hash="99c961e1973c0f8f4943d46abb61806c"/><file name="CashOnDelivery.php" hash="8f89e4310e2f2350b69580fe0db55c3a"/><file name="Creditcard.php" hash="94cebabc02194a60b8c78b1c8c645d90"/><file name="DebitPayment.php" hash="6ae69fc4038503a5dc5af7e722b4ec09"/><file name="Financing.php" hash="c617a33990cda0dcaf467b82b5b466f8"/><file name="Invoice.php" hash="c28d6b98b873eb06a4313e1897dd155c"/><file name="OnlineBankTransfer.php" hash="978aeaf0bbdf2b8195270bf28b96121a"/><file name="Wallet.php" hash="1acd28b33ca24d1a6c722aba93e0f555"/></dir><dir name="Protect"><file name="Addresscheck.php" hash="e3b32053df373f47149b32867f13d206"/><file name="Consumerscore.php" hash="e62d17873198b55f17c4bb972ab4c181"/></dir><dir name="Shop"><file name="ClearingTypes.php" hash="c6e47d0111cc904934511b5ed61bf6f9"/><file name="Global.php" hash="1581cf13f893d3945b23f409d8e2e63e"/><file name="Misc.php" hash="44d94e706d6ebdb8bdfc00c1f74c5a4b"/><file name="Protect.php" hash="d6eed6842f793c958cfc7eb4fb861dd4"/><file name="System.php" hash="47f25a4ad05e1cf6793f4a0683de62e7"/></dir><file name="Abstract.php" hash="45594b9218dd0cbf9a2190bbc1b1e5cd"/><file name="Collection.php" hash="2b387c4da779190bc3c774e5012383b2"/><file name="Interface.php" hash="70133ac956846d5151edfeca478b9502"/><file name="Root.php" hash="65fe84a867e02b4e5d1815bb3e94ce32"/><file name="Shop.php" hash="fcde392839c80db0f28811b5178364a6"/></dir></dir><dir name="Service"><file name="XmlGenerate.php" hash="9eda0510f8c572d904097ffb8c838d20"/><file name="XmlParse.php" hash="987a9edf0ca8f2eebcab576ca9270df1"/></dir><file name="Factory.php" hash="e41b108aa4efba5210946af4602df9e6"/></dir><dir name="TransactionStatus"><dir name="Enum"><file name="Failedcause.php" hash="e34e7a82a5f6e28546ab2df09109d365"/><file name="Txaction.php" hash="236b5444a67fecb4b26c6adb4417d6df"/></dir><dir name="Exception"><file name="Abstract.php" hash="692c679943a816fc6f4a10b0b122622b"/><file name="MissmatchingKeys.php" hash="aa1233fd4e5c93ae8b2fe4ae363e3e0e"/><file name="NoPostRequest.php" hash="74880ee2ff1b64ade5b43477b02c506a"/><file name="NoRequestData.php" hash="1c40ced8301991ac183dba44608c83d6"/><file name="Validation.php" hash="e5e90db597db6f1df42b65990b1fd436"/></dir><dir name="Mapper"><file name="Request.php" hash="a1a5b75af8ca58b239c0def3f93be3de"/><file name="RequestInterface.php" hash="d35a1966060b22cf0fb8c43a1ed3623f"/></dir><dir name="Persistence"><file name="Interface.php" hash="fbbf23001bb9f6ff2ef20cbe20addc66"/></dir><dir name="Request"><file name="Abstract.php" hash="dfeadc0e413f145747b08130831744c0"/><file name="Interface.php" hash="b25d42147a10d4a7dc5130dd544ca2f1"/></dir><dir name="Response"><file name="Abstract.php" hash="559a911ec0743a718dbccf3605500d53"/><file name="Interface.php" hash="1087ea1a0c70040daad6eac2014790e2"/></dir><dir name="Service"><dir name="ProtocolRequest"><file name="Interface.php" hash="7576d86a4061811d9d1508c9d26c7277"/></dir><file name="HandleRequest.php" hash="49cb49d3d99139b87f3361cbf2562e75"/><file name="ProtocolRequest.php" hash="8c63848af7ab2447d9584d1c90535bae"/></dir><dir name="Validator"><file name="Abstract.php" hash="5bcdb714a62976fd9fa4970a5e8ad74e"/><file name="DefaultParameters.php" hash="c909180f13bd0e0484e4c903e497d2f0"/><file name="Interface.php" hash="f7408812ceeb45d38324d6b4c8b9634f"/><file name="Ip.php" hash="0b6c7f7b55edee5b4957b4e9c8d43a83"/></dir><file name="Config.php" hash="5fe7ae51f4e65c69865bc4d2ae48328c"/><file name="Factory.php" hash="cacd4d296964cb8a305eba713092798c"/><file name="Request.php" hash="d34f0d7314064d523896d8a4f916bb4b"/><file name="Response.php" hash="ef77f669ce7c928df87a2d063f6762e4"/></dir><file name="Autoload.php" hash="abd312c31dd8a49e589dbf16e94e26e2"/><file name="Bootstrap.php" hash="e0e3380ceba6f5315d57f1d3238bfb92"/><file name="Builder.php" hash="4df7346c12f7f039725ffd492cba6ef0"/><file name="Config.php" hash="7f54b177836041bde75611c40d3af759"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="payone"><dir name="core"><dir name="images"><file name="error_msg_icon.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="favicon.png" hash="d189cb860fcdd76fbf3c07627023eed9"/><file name="help.png" hash="c3812c74bc524179f4ccf5d2db7b3cbf"/><file name="icon_16.png" hash="2812a3406492773bdbc8308d22901964"/><file name="logoclaim.gif" hash="d71545ef09e2f10339654cda93d1cca2"/><file name="magento_general_global.png" hash="2341d0ffb0f7fd6fe6ebf53860f9197b"/><file name="money_add.png" hash="41e1f9224e9c35929cb54882dc9d4426"/></dir><file name="boxes.css" hash="1a9ef798278e1d1dcc3c8dd86eb8ddca"/><file name="wizard.css" hash="c2be3f8f3b7012f015fcd76aceebe32b"/></dir><dir name="migrator"><dir name="images"><file name="ajax-loader.gif" hash="32dc1f5901143d36fbd7a6df3950819f"/><file name="failure.gif" hash="4d785bcecfbe716fa4d749d20738a8f0"/><file name="success.gif" hash="3f9b9025551da6963a9ecf8d184a204a"/></dir><file name="migration.css" hash="c27e9fc8fa891b5ae3ca7480ba90cb02"/></dir></dir></dir></dir></dir></target></contents>
38
  <compatible/>
39
- <dependencies/>
40
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Payone</name>
4
+ <version>3.1.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
20
  - PayPal&#xD;
21
  &#xD;
22
  Furthermore the following risk-management-services are supported:&#xD;
23
+ - 3D-Secure: Verified by Visa &amp;amp; MasterCard SecureCode&#xD;
24
  - AdressCheck for 18 countries&#xD;
25
  - POS- and Merchant-Blacklists&#xD;
26
  - CreditCard- and BankAccountChecks&#xD;
30
  With FinanceGate Business even account receivable management, dunning and debt collection can be done by FinanceGate automatically.&#xD;
31
  &#xD;
32
  Notice: Remember this extension is still beta. We recommend to test all transaction types in your application carefully before going live.</description>
33
+ <notes>Mage_Payone-3.1.8</notes>
34
+ <authors><author><name>noovias</name><user>noovias</user><email>info@noovias.com</email></author><author><name>PAYONE</name><user>jgerle</user><email>tech.support@payone.de</email></author></authors>
35
+ <date>2014-02-10</date>
36
+ <time>10:16:06</time>
37
+ <contents><target name="magecommunity"><dir name="Payone"><dir name="Core"><dir name="Block"><dir name="Adminhtml"><dir name="Configuration"><dir name="Wizard"><dir name="Config"><file name="Form.php" hash="7e48e792893e9a64f7001e96b003e382"/></dir><dir name="Page"><file name="Edit.php" hash="1f1b820d0f2d50230f8cdf762c80bc5c"/><file name="View.php" hash="9ab4a5083eebc1961ea5c0acb0ba2cf2"/></dir></dir></dir><dir name="Information"><file name="Abstract.php" hash="89033bd457bcd46a7ceb13462360a5e6"/></dir><file name="Information.php" hash="2459128787e623cebf78be3634eb7514"/><dir name="Protocol"><dir name="Api"><file name="Grid.php" hash="fe43a5b1464e1059703788bd91f408cf"/><dir name="View"><file name="Plane.php" hash="daf40463ac56195f9d2181e35062baa2"/><dir name="Tab"><file name="Exception.php" hash="1825ebf171f264b6c74ed7e1fe9d6fbd"/><file name="General.php" hash="9a5d35a92a9d622a2ddfb0edafa76092"/></dir><file name="Tabs.php" hash="cc81cd30acbda3b87f2b302ee8cdaf1a"/></dir><file name="View.php" hash="d00b5b3c9a7d0e36693c026c5de0dd35"/></dir><file name="Api.php" hash="86163b631dabef5538c9d7ba18cb3b04"/><dir name="TransactionStatus"><file name="Grid.php" hash="b9e276667ce3599e5250f0026ab4f8d5"/><dir name="View"><file name="Plane.php" hash="e7fee81fb6ee269bab8186972e0093a1"/><dir name="Tab"><file name="General.php" hash="a80cb470751f948b35aa04f991dd4486"/></dir><file name="Tabs.php" hash="aba3d7bf0ab3762a2900237b21a2198a"/></dir><file name="View.php" hash="b7d782116f5d8d09087bf9eb7110ecdf"/></dir><file name="TransactionStatus.php" hash="4aa543fe53ea8c4d0a4c09a61c84d52f"/></dir><dir name="Sales"><dir name="Order"><dir name="Create"><file name="Init.php" hash="3f2f8f8de024565abc1f8e4ced98319b"/></dir><file name="Grid.php" hash="8769f1b2708b28af0a4f97574c0b0c92"/><dir name="View"><dir name="Tab"><file name="Api.php" hash="add6c7c0adbd91114b3eed850569b65a"/><file name="Transaction.php" hash="a6001e58c3ce4d6737f4928ccac66176"/><file name="TransactionStatus.php" hash="44541e398ab29db4720b2109f6e0607c"/></dir></dir></dir><file name="Order.php" hash="d9b85ad2061f9fe9552f5ffed60d0797"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Abstract.php" hash="77de293a1573d415a0560d1f3366ed12"/><file name="Forwarding.php" hash="37db0ebdea18716749598e092070475e"/><file name="Info.php" hash="2c9e6c008ee3d5306f8579ebe01db944"/><file name="KlarnaStoreId.php" hash="a250983a9d5969f90a772e13893cb580"/><file name="PaymentFee.php" hash="755e20786c0203016611bfcfdc6ede90"/><file name="PersonStatusMapping.php" hash="a5450b8e05fa801ec373ac7c21e58b34"/><file name="StatusMapping.php" hash="cf91819c4d98a270e3725f9af4b9b88c"/></dir><file name="Field.php" hash="9c7f06f1a79d2308d5bf89c08b986b62"/><dir name="Payment"><file name="Method.php" hash="322e4976bd8389f5e9627ba5c17ad0e4"/></dir><file name="Payment.php" hash="812418b9dc6e7d0f7af71c54fa7ad4cf"/></dir><file name="Hint.php" hash="1da85b64bf8fa8056881f551d553129d"/><file name="Notice.php" hash="466258b59f294048fa48639f3681ad5e"/><dir name="Payment"><file name="Edit.php" hash="ee890691a35e5b33bfd1a986a4481ace"/><file name="Grid.php" hash="7ff4cfab006c716256b416a1898383e4"/></dir><file name="Payment.php" hash="0c9f0cd463afa2bbb5eec693ae1da597"/><file name="Tooltip.php" hash="d9905fba960f4a7500265c30f1dfddf9"/></dir></dir><dir name="Transaction"><file name="Grid.php" hash="cca8ffb56bc00514d56af6f05c38882f"/><dir name="View"><file name="Plane.php" hash="161a1c1f5cb58333e4428414397a91f6"/><dir name="Tab"><file name="General.php" hash="bc901fbe55449792917519c795c58808"/><file name="TransactionStatus.php" hash="6325158ee9acda45dc1b3aa6a34b8cdd"/></dir><file name="Tabs.php" hash="127b5f4090f96a1956f2838e7e1bf90f"/></dir><file name="View.php" hash="267ceb1bf113dae62c503c8c9f858a78"/></dir><file name="Transaction.php" hash="9da66e164d1dea5013167c374865a94d"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Datetime.php" hash="52a793dde88b725b9b9d5f27842b1705"/><file name="UnixTimestamp.php" hash="9da03743ed591e5f24f1f682c5f4fb5f"/></dir></dir><file name="Container.php" hash="f035c12b7bf696a0222ce0b3f50dfd46"/></dir><dir name="View"><file name="Container.php" hash="dfd28e3f3205c9ab6f1d5ba5cdd1222c"/></dir></dir></dir><dir name="Checkout"><dir name="Onepage"><dir name="Payment"><file name="Additional.php" hash="6fb72c642149f73a73b6ffcdd8249a93"/><file name="Methods.php" hash="a2e4bb44fa3c254bdfcc3f4671dc8968"/></dir><dir name="Review"><file name="SepaMandate.php" hash="c6ab2e1b5d3cc046682985342ddec6a1"/></dir><dir name="Success"><file name="SepaMandatePdfLink.php" hash="73c3a6035c989697c447f7572986a815"/></dir></dir></dir><dir name="Payment"><dir name="Method"><dir name="Form"><file name="Abstract.php" hash="fbba6cc27f3c85f46068604b0abf0c73"/><file name="AdvancePayment.php" hash="f8fa142db063838f6e2affd24e605309"/><file name="CashOnDelivery.php" hash="47aa8eae525f0926cfa0ca39dbf16dd8"/><file name="Creditcard.php" hash="8f2b897e1bcb9241e6019424239e368c"/><file name="DebitPayment.php" hash="0fd3ee0123187a9a09b0dc5a2fc842b0"/><file name="Financing.php" hash="e51b6b3464fb350c874e9cbc0ce048a9"/><file name="Invoice.php" hash="792e994d4e724c508c44aa80c2c05377"/><file name="OnlineBankTransfer.php" hash="3457d20473765317348b0a3d793d8a1f"/><dir name="SafeInvoice"><file name="Klarna.php" hash="d8f2ba8fe76f594acd15d9c292084c70"/></dir><file name="SafeInvoice.php" hash="3cfd8a05e6bab685a19c64c93632ff84"/><file name="Wallet.php" hash="da09f18c16574eac09b9a1d2bc2a67db"/></dir><dir name="Info"><file name="Abstract.php" hash="e053fbb633c2742597631bb1672f404a"/><file name="AdvancePayment.php" hash="5a30ac680ba4b813b8292ee680970815"/><file name="CashOnDelivery.php" hash="e5c5739d58f1c3932368268b54d7e51b"/><file name="Creditcard.php" hash="039cde64d6835e601245e46f606d4f66"/><file name="DebitPayment.php" hash="f7e390fae84439f5003578a81699eef1"/><file name="Financing.php" hash="6168f4820caa216f6f30a14069602123"/><file name="Invoice.php" hash="4e39306b2241b19e8d75684307522aaa"/><file name="OnlineBankTransfer.php" hash="a6b327b86716a748cbf24e789c25a5f7"/><file name="SafeInvoice.php" hash="08176961ce0c2af1481734793a7a0b12"/><file name="Wallet.php" hash="1c97123bd3b8c5c10e766dd7749f2076"/></dir></dir></dir></dir><dir name="Controller"><file name="Abstract.php" hash="e896d0e966ebb3123c047760fff8c17a"/><dir name="Adminhtml"><file name="Abstract.php" hash="fc530c509c8377d4b401b0ad4144ac62"/><dir name="Configuration"><dir name="Wizard"><file name="Abstract.php" hash="bdfe26c77fbfb08d5eed508b3707129b"/></dir></dir></dir></dir><dir name="Exception"><file name="InvalidRequestType.php" hash="ef0f4dc53e93ba1b32229e5928d00bd2"/><file name="InvalidScope.php" hash="3e4185c541d15ed6d8822540dee61b9c"/><file name="InvoicePreparationNoItems.php" hash="dc5497f50a8954ac451f56c8c47e57b4"/><file name="InvoiceSave.php" hash="585931380f6291f47b28d23024366ba6"/><file name="OrderCannotInvoice.php" hash="b63f0a9a1702708422f30472012643a6"/><file name="OrderNotFound.php" hash="22001580df9425cd4d5bb954378aac4c"/><file name="PaymentMethodConfigNotFound.php" hash="c62057ea1bd54c0b91dacd2a5db50b49"/><file name="PaymentTypeNotFound.php" hash="7d6866507e5f803e1bf0e31545f9c06c"/><file name="TransactionAlreadyExists.php" hash="6dfb3da13440462021c2175405ace0b9"/><file name="TransactionStatusForward.php" hash="52f6974ad59271d161451944fd000986"/></dir><dir name="Helper"><file name="Abstract.php" hash="614b70f3acf925a3b544e91e5a0085d3"/><file name="Compatibility.php" hash="40ec8b9e8f5bff66181d9d257d7f6a0e"/><file name="Config.php" hash="8672eb13e5051e0f1aefeb714b75f419"/><file name="Data.php" hash="b2886731b945327dcdcf65c1aa860902"/><file name="Email.php" hash="395561eb7a6c319055270706e6d32226"/><file name="Registry.php" hash="da6aee13a620bd78e6aa12e1a1700bfc"/><dir name="Sales"><file name="Button.php" hash="f9752550b0ba4559a78631ea7240dbfa"/></dir><file name="Score.php" hash="bed6e4c0d668ebbb83ea99235728a063"/><file name="Url.php" hash="9ce4dc25c5920247c9b85cccf450ec0e"/><file name="Wizard.php" hash="70b6882f848c703ff0fc26d62dcb376b"/></dir><dir name="Model"><dir name="Config"><file name="AreaAbstract.php" hash="e75eacc876e77fa1f540e15a8a89a1d5"/><file name="AreaInterface.php" hash="9822e7864b81dcdade053baea64db83f"/><dir name="General"><file name="Global.php" hash="c4da6e2a8dccd360c76715961e9bb488"/><file name="ParameterInvoice.php" hash="6a58ff0f8c126de0decd22b845d02d40"/><file name="ParameterNarrativeText.php" hash="5f0128073807d017a4f3704c5879e36f"/><file name="PaymentCreditcard.php" hash="d055547ad354429c2c4b061353a9f121"/><file name="StatusMapping.php" hash="444346141aafa48049b22418ba65c8fe"/></dir><file name="General.php" hash="8f274fdb68951ab6b5a782d6c7de808c"/><file name="Interface.php" hash="a3de42afc8b6907e64d522aa3ec5cf63"/><dir name="Misc"><file name="Creditmemo.php" hash="f9509d5a67e5ecd3cf029750beea9106"/><file name="Discount.php" hash="4ce56b1b21f8c39961c4bbe860eda20c"/><dir name="Email"><file name="Abstract.php" hash="50f7c3519a70855acb69d255cb0056d6"/><file name="Interface.php" hash="d07157b9ca17401277b35f7aea92a7cc"/></dir><file name="EmailAvs.php" hash="3da7b2a26718650a87466e7cdae55c31"/><file name="EmailError.php" hash="4c45b1d6d95f3659c66dffbc3d770080"/><file name="ShippingCosts.php" hash="d828b50fa706fa3f938713d223bda3c6"/><file name="TransactionstatusForwarding.php" hash="39d587c3c484bc99773b060d6265959e"/><file name="TransactionstatusProcessing.php" hash="9b96fe9c0463577a7b9b58a45311bdfc"/></dir><file name="Misc.php" hash="bbac6a7fa27f05c7f21071fa01ac3460"/><dir name="Payment"><dir name="Method"><file name="Interface.php" hash="1fd70aedc490ea687ae3d98fd69e3940"/></dir><file name="Method.php" hash="d2d71ea7d25925667af4c90ee81dc822"/></dir><file name="Payment.php" hash="727160b76efedc58a77dd9d84b28c1cc"/><dir name="Protect"><file name="AddressCheck.php" hash="7293d9854b25322a66ee00206f3071ce"/><file name="Creditrating.php" hash="ffe6d1d2c95d641535a5027b2afb54cc"/></dir><file name="Protect.php" hash="21be6a05897ce9a155363ce56e0a5e4d"/></dir><file name="Config.php" hash="e377c2462e81c4a6caacd784cf6a5d65"/><dir name="Cronjob"><file name="Abstract.php" hash="123c05ac24b16ce69ec970a5da85f10e"/><dir name="TransactionStatus"><file name="Worker.php" hash="1e7090f9b91571176224d97a3e932ede"/></dir></dir><dir name="Domain"><dir name="Config"><file name="PaymentMethod.php" hash="35977e41b9c2588e56d278da9ef99273"/></dir><dir name="Protocol"><file name="Api.php" hash="70d1c4920f0637e28ec95cf8b9ca1bdb"/><file name="TransactionStatus.php" hash="681a1936ddbf0b519d6b97ded83d4a1a"/></dir><dir name="Resource"><dir name="Config"><dir name="PaymentMethod"><file name="Collection.php" hash="92fcb0cf48eada524e326942f1dd5c4b"/></dir><file name="PaymentMethod.php" hash="7261f0a45bff60e891cf24820a565670"/></dir><dir name="Protocol"><dir name="Api"><file name="Collection.php" hash="2ce71ea52eb4aa11fbc546001ed22fc8"/></dir><file name="Api.php" hash="bb257184fa77ef1b71f0964168dd78af"/><dir name="TransactionStatus"><file name="Collection.php" hash="884176fcb71b1a76d2b094bb70644c5e"/></dir><file name="TransactionStatus.php" hash="d4a202ea0d7ce2afeff4b3da4f18a237"/></dir><dir name="Transaction"><file name="Collection.php" hash="f3dd454961a551357eb95b73912c411c"/></dir><file name="Transaction.php" hash="a05356964069784a9c46b61c9c77c26c"/></dir><file name="Transaction.php" hash="32129c443a4218374a20920198dfe73c"/></dir><file name="Factory.php" hash="e3d7fd809e4de89a85d3ceb0e34af804"/><dir name="Handler"><file name="Abstract.php" hash="7916a63c5d1ca3c7cec27cc6bd038846"/><file name="Interface.php" hash="8137fbb2cea9866c2d6a64421653b1f7"/><dir name="Management"><file name="GetInvoice.php" hash="4fc10247b8969f9dbe447d3003a052a0"/></dir><dir name="Payment"><file name="Abstract.php" hash="44a3373698eadce21a6a88a67e7f62bb"/><file name="Authorize.php" hash="0693282e074f6c22824c5eab347aa9a2"/><file name="Capture.php" hash="d6d7dd0dfc16066faebc9678bb98b0ca"/><file name="Debit.php" hash="3dcee9f980aa64fb8d2ee93e4cdc91cb"/><file name="Interface.php" hash="3ff3b7247a7f69dd84b0999259f24bf8"/><file name="Preauthorize.php" hash="377a4242911f900ad046edc03da31891"/></dir><dir name="Verification"><file name="Abstract.php" hash="04be41f4fde5091816cb2dc650b53306"/><file name="AddressCheck.php" hash="26fb14b8f5e6492d5fbe5e7138a4b72d"/><file name="Creditrating.php" hash="df5e854c7814b05fae05ccb0d4eb09f9"/><file name="Interface.php" hash="601a0d018c10962c13e26c67ecb60deb"/></dir></dir><dir name="Mapper"><file name="Abstract.php" hash="269e16e71331e002333535450d4d2924"/><dir name="ApiRequest"><file name="Abstract.php" hash="67a9f749767b79e7641138f8edc9c788"/><dir name="Management"><file name="GetFile.php" hash="3a869f01182f6d2bf92b1c1f3f75b7ca"/><file name="GetInvoice.php" hash="3e55c698ee6e54a911c7c8c04854aa68"/><file name="ManageMandate.php" hash="115d22120bd9853aefd982af3c8c1a5b"/></dir><dir name="Payment"><file name="Abstract.php" hash="03ec35ee46ab31d2b966074a6663b8bb"/><dir name="Authorize"><file name="Abstract.php" hash="1e0157f1a6bcc86a11cc76af4c9bc1ba"/></dir><file name="Authorize.php" hash="7b4b3ee3e5fe3614158a2538878ba4f0"/><file name="Capture.php" hash="5aa68816030b9c7787377b9b23badf1e"/><file name="Debit.php" hash="5c4aec11abe8e99085374d3f5b9a2f9e"/><file name="Interface.php" hash="2ed7debbc0cbe1979be9ad4fa583c63d"/><file name="Preauthorize.php" hash="5de50d89d2c8bde9f64029fe787191ff"/></dir><dir name="Verification"><file name="Abstract.php" hash="6b492aabd24d09580bb5c8184ebab5dd"/><file name="AddressCheck.php" hash="7fe10c02044f2cc7dba1511dfc5a91e2"/><file name="BankAccountCheck.php" hash="03dd6e25bff5912fa24c2b69c7fb42bd"/><file name="Creditrating.php" hash="be7582391431e780fe1bcd8bfb1b016a"/></dir></dir></dir><dir name="Observer"><file name="Abstract.php" hash="7818d67d38868e56e44260d5eaeeb74d"/><dir name="Checkout"><dir name="Onepage"><file name="DebitPayment.php" hash="805924bf2292bb5ddd7dfba640850e15"/><dir name="Payment"><file name="Methods.php" hash="05d66b930cf670d25e28ea940da85693"/></dir></dir><file name="Onepage.php" hash="739313c22c4082dca0c640f72c745d79"/></dir><dir name="Config"><file name="Protect.php" hash="a9b87d00e3f7a3294046efb7b6ace00e"/></dir><dir name="Protocol"><file name="Api.php" hash="8756084b6e8c4ce3ff7fddfae2cbba8f"/></dir><dir name="Sales"><dir name="Order"><file name="Invoice.php" hash="b3a6f5568225a0c2aafb4014c9974a51"/></dir><file name="Order.php" hash="faebc9063841af19b1aaccbeb82cc463"/><dir name="Quote"><file name="Address.php" hash="9a6d3e1e068564fdda82ccfc15fce5d1"/><file name="Payment.php" hash="49864ede5b1ab94fc51a98b4cadc2874"/></dir></dir><dir name="Store"><file name="PaymentConfig.php" hash="fdf9db06695c1ef6a90a1695a8df58b0"/></dir><dir name="TransactionStatus"><file name="Forwarding.php" hash="72e93b7a9fc67b3c817a8a3086b3c58d"/><file name="InvoiceCreate.php" hash="b1e5f90df5c63edf1ee1e3e12a0a298a"/><file name="OrderConfirmation.php" hash="0ba29147ead6d943964be30c2b5aa1a6"/><file name="Reminder.php" hash="e476fbafaec9b3f2fa3d0ec5f57f6dce"/></dir></dir><dir name="Payment"><dir name="Method"><file name="Abstract.php" hash="de8c342c1af766b6f996f68b741c5b18"/><file name="AdvancePayment.php" hash="c165fc2cb0402478db74782a38f89ec5"/><file name="CashOnDelivery.php" hash="247d715b663369c27111ece38dfb7803"/><file name="Creditcard.php" hash="4d778e393876187bd89d1c2c3e326c98"/><file name="DebitPayment.php" hash="98868e4cf9cbda62e7e193f945d3d212"/><file name="Financing.php" hash="fb7c2c1f9b417affd028f4a2ad2e324a"/><file name="Invoice.php" hash="b6dc6fd8189c61f04a440b39d72a2c61"/><file name="OnlineBankTransfer.php" hash="5f6e2a08c6f83534f15b05f95bfceb37"/><file name="SafeInvoice.php" hash="66cff19b3b6de322dc22834f6271203b"/><file name="Wallet.php" hash="009d360a81b7a9527d192e4011df9749"/></dir></dir><dir name="Repository"><file name="Api.php" hash="215b63473d061699b64fbc698f95a1f7"/><file name="TransactionStatus.php" hash="633e3ea0f01a27374fd8d3b721c064b8"/></dir><dir name="Sales"><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="3bac7e6e8f51348c8b4c55d419b4b1f5"/></dir></dir><file name="Address.php" hash="4cdccd999657b7e7cc97413e0f0d07f3"/></dir></dir><dir name="Service"><file name="Abstract.php" hash="9c2a7aeecb9fc0303ac20a6ddc73ae96"/><dir name="Config"><dir name="PaymentMethod"><file name="Create.php" hash="af77caf92d5d7a87f691a571d5300c34"/></dir><file name="ProtectCheck.php" hash="81e93c3cd18c39b9cf52e94374cd341c"/><file name="XmlGenerate.php" hash="6a2ea0a941738a70b7bf510d8cf22369"/></dir><dir name="Export"><file name="Collection.php" hash="ba553e1ced6fd131b725c92150e09a78"/></dir><file name="InitializeConfig.php" hash="941c42e76ab330f1f2895c026025a009"/><file name="InitializePayment.php" hash="688d23ed08cdc74797818ad84d9359cc"/><dir name="Management"><file name="GetFile.php" hash="dca7b664b32e217ab50cd88e5919b8d4"/><file name="GetInvoice.php" hash="16da5759ecfbe625633da5e1e00cfecd"/><file name="ManageMandate.php" hash="d0dcffbafbc6dad9c9bc288739ef7bc1"/></dir><dir name="Payment"><file name="Abstract.php" hash="417afde77b7dd3cfccd1879668167eb0"/><file name="Authorize.php" hash="fa22191f012150eb5bd4ab2b183522dc"/><file name="Capture.php" hash="58bee25ef7c318f53a00d608cf16d0bf"/><file name="Debit.php" hash="4320627bc743c5ae303296417c64c232"/><file name="Interface.php" hash="5a6669702b6f966cdca52378e96e60d2"/><file name="Preauthorize.php" hash="b13323bc57512b9244a217dcc8106625"/></dir><dir name="Protocol"><dir name="Api"><file name="Export.php" hash="ae95ecb8c8e7b8418c8d3dd361c751c0"/></dir><dir name="TransactionStatus"><file name="Export.php" hash="1265210a4dcc3475e3cef56a70e073c2"/></dir></dir><dir name="Sales"><file name="InvoiceCreate.php" hash="84148ef78256e3daad76395fbb30e9a5"/><file name="OrderComment.php" hash="41433c126e5254b985d900f704b31ae9"/><file name="OrderConfirmation.php" hash="ea36bf39b5759943b38a7390d7242822"/><file name="OrderStatus.php" hash="fe3f8df1627c19363f21a29b4e8085f2"/></dir><dir name="Transaction"><file name="Create.php" hash="95d9079e7fd9a85597b62e96f7a4d77b"/><file name="Update.php" hash="f25e151fd02916472e7792360699a988"/></dir><dir name="TransactionStatus"><file name="Execute.php" hash="d4dff27a2cc271faaba576f9161a7f89"/><file name="Forward.php" hash="8dacb47c9a0db8e76669158aa15303b6"/><file name="Process.php" hash="194c0f03654af974e7a61df2d1496b8d"/><file name="StoreClearingParameters.php" hash="e849f646421c202aaeaab3528a4b72c4"/></dir><dir name="Verification"><file name="Abstract.php" hash="0fde90b0db9c18f414e5e90843f0e6ce"/><file name="AddressCheck.php" hash="b6e828cf9dc96d7e9cafae8037aa942f"/><file name="BankAccountCheck.php" hash="a78e4e65d55c07e5b6f0dd2139219a53"/><file name="Creditrating.php" hash="7dfbcaf8dbb3c11625a3a9943fa3a793"/></dir></dir><dir name="System"><dir name="Config"><file name="Abstract.php" hash="7afa28e48d78b04a4de0e1693009128b"/><file name="AddressCheckType.php" hash="11f0297e62f8aa723051bef05b1a1024"/><file name="AuthorizeMethod.php" hash="ab01882f7e8b685bf65c9c2cf630f8dd"/><file name="AuthorizeMethodFinancing.php" hash="4176d6fa53e5d7dc9c3e2f2cc6996450"/><file name="AvsResult.php" hash="b1e3ca79a77286e1e705501a33c13855"/><dir name="Backend"><file name="Protect.php" hash="65562d422ca71b7bac0e0157a12b7ac2"/></dir><file name="BankaccountcheckType.php" hash="f09ba1733f34eb60b17d2b0c21a4ff3b"/><file name="ClearingType.php" hash="d6c1cf6362e17ae0042612774c37483f"/><file name="CreditCardType.php" hash="a4dd68bdd7abe455c6adeb3e20e1bb55"/><file name="CreditScore.php" hash="bc54944274a9d5137c474dcf27fc91f9"/><file name="CreditratingChecktype.php" hash="985ce6d65da0281e8e99f334e980e14e"/><file name="CreditratingIntegrationEvent.php" hash="9da728646ff3eea66e6155fb4d4b4233"/><file name="FinancingType.php" hash="28c21492a23d119869eb6d091e427169"/><file name="HandleResponseError.php" hash="6c92277e38f8256f6fe7b6696107fdd2"/><file name="KlarnaCountry.php" hash="49e1a250427eb1a66da63901e47bb3e5"/><file name="MethodType.php" hash="a2bb15d6a43746cc1c87a9ee252d87ef"/><file name="Mode.php" hash="f4b7f10abd52f5b5d23873e159e4fc23"/><file name="OnlinebanktransferType.php" hash="804bf6bd18c9903519e48072ab33d1da"/><file name="OrderStatus.php" hash="1efd1fb9dfe513946ce4542a983438ea"/><file name="PaymentMethodCode.php" hash="be2c8473e58dea95fbf7e9ffe5aac06a"/><file name="PaymentMethodType.php" hash="1da77ef4656e965fd12f2ae8fc853c53"/><file name="PersonStatus.php" hash="8d909a2f468207880d3b431dbfbfdef8"/><file name="ReminderLevel.php" hash="cac22bfaece3ccca9a51adc59efdf44b"/><file name="RequestType.php" hash="f43e32fd32329193252190746f0a8571"/><file name="ResponseType.php" hash="d6a64bbe4ea58d2126ff8d7f76795bcf"/><file name="SafeInvoiceType.php" hash="e33c155d6eb7b8b05bb2eef81c492bd4"/><file name="SepaCountry.php" hash="1d53612b26e8cc6e90f6ae8903dae50d"/><file name="Status.php" hash="2612834bc2a1ed7c43a2cc3342adf63d"/><file name="StatusTransaction.php" hash="53271af6dbe8195a8fa1e12a79a56c68"/><file name="TransactionStatus.php" hash="8c1f59103ba441a3bddbf454bc4c3129"/><file name="WalletType.php" hash="c49c188f400e808a58348716a9fa421e"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Configuration"><dir name="Wizard"><dir name="Page"><file name="PaymentController.php" hash="836c77b7dcc77cae37ae101ad28b2169"/></dir><file name="PageController.php" hash="a6565671b73edb8b30b27e325b3ee6c0"/></dir><file name="WizardController.php" hash="cfc6b411102e225a48935cee6e0c7576"/></dir><file name="InformationController.php" hash="4fbe3552aff0415f9e6e6574c7dfc080"/><dir name="Protocol"><file name="ApiController.php" hash="1af6ef54bfb5a870f482895c0fc5f769"/><file name="TransactionStatusController.php" hash="97a5933efe3633ce5c370c1e67eaa37d"/></dir><dir name="Sales"><dir name="Order"><file name="InvoiceController.php" hash="16c96795a7e9c8dd546c4c69a5568987"/></dir><file name="OrderController.php" hash="ac4a0fe89896111ea5dfff2ae01f0e90"/></dir><dir name="System"><dir name="Config"><file name="PaymentController.php" hash="47bda106aafbcbbc8a04a1da28ce136e"/></dir><file name="ConfigurationController.php" hash="0cd99975387d248d9583d6804c3c5a4c"/></dir><file name="TransactionController.php" hash="59e0e04c5ef04e28a3b781a1c2c3b412"/></dir><dir name="Checkout"><dir name="Onepage"><file name="PaymentController.php" hash="6af20fd547dda0233d5b21418ca09021"/><file name="SuccessController.php" hash="1de90543c4a4fda2ad63841a5b3a5c5b"/></dir><file name="OnepageController.php" hash="5a2b9e341ea161ff82ebd644f5abf896"/></dir><file name="TransactionStatusController.php" hash="f6660bc654ef08ccb3adcd58dfda0596"/></dir><dir name="etc"><file name="adminhtml.xml" hash="80661f3ff3f6782efad26e377413aeb3"/><file name="config.xml" hash="434fe80b5dd052f9ea20e3777ce712ef"/><file name="system.xml" hash="d0f10aeee90c1a60f78195948370b403"/></dir><dir name="sql"><dir name="payone_core_setup"><file name="install-3.0.0.sql" hash="28a783cc46e235b6c13dd502651ff7e7"/><file name="mysql4-install-3.0.0.php" hash="e570826a7a6b3d94ec7a4731a1962a6f"/><file name="mysql4-upgrade-3.0.12-3.1.0.php" hash="bca5f3758f786378978834b89c29f141"/><file name="mysql4-upgrade-3.0.3-3.0.4.php" hash="094516f8f26dd2492941998c4e4bcf18"/><file name="mysql4-upgrade-3.0.8-3.0.9.php" hash="3b4268515d3361ce9e1e889fcbefd4cd"/><file name="mysql4-upgrade-3.1.0-3.1.1.php" hash="d7c545b39a8ec2764fdcadd6656005dd"/><file name="mysql4-upgrade-3.1.2-3.1.3.php" hash="22d8f0e22f537cec9564d177f5ebeac4"/><file name="mysql4-upgrade-3.1.3-3.1.4.php" hash="78053f6e524c1b9634da9833df9b2a90"/><file name="mysql4-upgrade-3.1.4-3.1.5.php" hash="36562a50b2b115136298df702270518f"/><file name="mysql4-upgrade-3.1.6-3.1.7.php" hash="e3d5404bae141f641ddb0e32d28ec8a3"/><file name="mysql4-upgrade-3.1.7-3.1.8.php" hash="bde5b06ffb9d254458c03d875a22ff79"/><file name="upgrade-3.0.12-3.1.0.sql" hash="bd9827b38f1a1ed0fdb049c889ceb29f"/><file name="upgrade-3.1.2-3.1.3.sql" hash="d3e3fc1f9402bb6295124f4750a476d4"/><file name="upgrade-3.1.3-3.1.4.sql" hash="fb2515f9b80282c14b34cd5b872410b4"/><file name="upgrade-3.1.4-3.1.5.sql" hash="e8958e4637dac109aac7d236be7dd16d"/><file name="upgrade-3.1.6-3.1.7.sql" hash="9839cc9c41207a4bd7608d91c5ee83a2"/><file name="upgrade-3.1.7-3.1.8.sql" hash="ac5279de707324fe4f2ea4711e6bd851"/></dir></dir></dir><dir name="Migrator"><dir name="Controller"><dir name="Adminhtml"><file name="Abstract.php" hash="a8ae39e90f2b28ecf7ac97422433d5cd"/></dir></dir><dir name="Helper"><file name="Config.php" hash="4abc3ee9237fa433bc1d1d3dbfa97afc"/><file name="Data.php" hash="ebb5526d898038aa2004e6347794b478"/></dir><dir name="Model"><file name="Factory.php" hash="614bc12c240bd0c917fdc090c8018ccc"/><dir name="Mapper"><file name="Abstract.php" hash="a784a82feaf6120184bc5e53331bd519"/><dir name="Config"><file name="General.php" hash="e24eb1f80ab89b37da5bfe333e34ed05"/><file name="Payment.php" hash="37dd103a0f2ff3493a93c3ec03474671"/><file name="Protect.php" hash="7192a4e8e1789401dbb69dc4c1891ed3"/></dir></dir><dir name="Service"><file name="Abstract.php" hash="2208fd00d748f4e42470c57a90fad2a2"/><dir name="Configuration"><file name="GeneralMigrate.php" hash="044e996b5f7243086d66d85444bef05c"/><file name="PaymentMigrate.php" hash="0d65e45786eac7a4d36d00fbac7d1188"/><file name="ProtectMigrate.php" hash="1289918e3fb0f87dec2c4d3cd76ad77c"/></dir><file name="Migrate.php" hash="07b0deb7c09a313a2b337b684c76f9da"/><dir name="Sales"><file name="PaymentMigrate.php" hash="b0cb16acd822816b82009b5f648eb4f6"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="MigrationController.php" hash="7d9f458c55ee1fe5232c6d7136d86551"/><dir name="Wizard"><file name="MigrationController.php" hash="578c2b786ec293a24bce53806f16c102"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="9fb5870a66cfe557beba5b9780fcdff5"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payone"><dir name="core"><file name="client_api.phtml" hash="82d735b2326311446896dc12b826d6a5"/><dir name="configuration"><dir name="wizard"><file name="iframe.phtml" hash="186c008f6b31f8276a84aeb7d3c404e4"/><file name="index.phtml" hash="2deddd95d55920eff1ccc96959857b75"/><dir name="page"><file name="finish.phtml" hash="956ddfbe0e9971e647735fe4a45abf0e"/><dir name="form"><file name="container.phtml" hash="3c7287c0c40be94a1b1189a6cd7f8812"/></dir><file name="index.phtml" hash="66e73112887b5c1028fac21d5ce97c71"/><dir name="payment"><dir name="grid"><file name="container.phtml" hash="1b00428676495848907360d99697bd80"/></dir></dir><file name="store_switcher.phtml" hash="6871e556b2872ba357ea95be0c543a6a"/><dir name="view"><file name="container.phtml" hash="042d56bf10158e1944c48f788f48121e"/></dir></dir></dir></dir><file name="iframe.phtml" hash="9f74308e8b43cad2b15748b9f8368559"/><dir name="information"><file name="iframe.phtml" hash="c4e39d236151492940e32a0563a6a4b8"/></dir><dir name="payment"><dir name="method"><dir name="form"><file name="advancepayment.phtml" hash="ccba1332be108f51e27afaf713805dfe"/><file name="cashondelivery.phtml" hash="ad4e7185825b32b69ca06083c03c7a46"/><file name="creditcard.phtml" hash="6988cb1c2f870a93c93491776f2a6e84"/><file name="debitpayment.phtml" hash="8b2872c4ab51457cd3c42caec63a2885"/><file name="invoice.phtml" hash="b0548563fdacc3cb1757a838d2c03158"/></dir><dir name="info"><file name="advancepayment.phtml" hash="74b458367e5712c859d800b933ed95ff"/><file name="cashondelivery.phtml" hash="be7ae672724135b4a6babbf07d18513f"/><file name="creditcard.phtml" hash="c89761dabea8e6c31b8f400586619f21"/><file name="debitpayment.phtml" hash="d6064c3b4ac949d3cd13d50da428fd75"/><file name="financing.phtml" hash="8719ffe34094d2f0ce884cb9d8ebc04a"/><file name="invoice.phtml" hash="64001ffc31c0eafb832c03edd285fc5d"/><file name="onlinebanktransfer.phtml" hash="c9a2962511e29aa68999a41f5787340f"/><file name="safe_invoice.phtml" hash="8db49727920c0bd0f8ec98d168b8803e"/><file name="wallet.phtml" hash="bd71ab9ff89f2cfa590307c9e29e0ead"/></dir><dir name="pdf"><file name="safe_invoice.phtml" hash="667afd9640f1c34c1116c1939951e8d5"/></dir></dir></dir><dir name="protocol"><dir name="api"><dir name="view"><file name="plane.phtml" hash="fcfcb586c7c92606a6c309489c878d53"/><dir name="tab"><file name="exception.phtml" hash="54d0c77b153ff41fa10391b3177fc96a"/><file name="general.phtml" hash="8d4ad5cd56d33fd7fdcf0b4ff7bc0cc9"/></dir></dir></dir><dir name="transactionstatus"><dir name="view"><file name="plane.phtml" hash="7d19a22206a2384f5972a313017e4589"/><dir name="tab"><file name="general.phtml" hash="fd318ab622c4aa2c0554d7ce81843361"/></dir></dir></dir></dir><dir name="sales"><dir name="order"><dir name="create"><file name="init.phtml" hash="468a133c8dff06c7292b6e7d4de8068f"/></dir><dir name="view"><dir name="tab"><file name="transaction.phtml" hash="4af63c9829a7bd466eafc54ae9dd889a"/></dir></dir></dir></dir><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="array.phtml" hash="1aee5fb9b33232708fe242601e4de701"/></dir><file name="iframe.phtml" hash="67366b7e745ab1a2a1f359360df88e07"/></dir><dir name="hint"><file name="payment.phtml" hash="c2de168313f9c9fcf906467af95dcaf9"/><file name="payment_reference.phtml" hash="2497578443d7d0455e7d75e1000aed32"/><file name="protect.phtml" hash="cfd300a3ff4f05ff143e1f78a669a7ce"/></dir><dir name="payment"><dir name="grid"><file name="container.phtml" hash="952f87bb71dfd75d126e3196f863dba6"/></dir></dir><dir name="tooltip"><dir name="general"><file name="global.phtml" hash="a37390c8dab60e16cbe50ee69e217f40"/><file name="narrative_text.phtml" hash="4ea256f2ef56d066050ea6d363b714f1"/><file name="parameter_invoice.phtml" hash="dc171aa4082645cfb9e1bd0d04271e67"/><file name="payment_creditcard.phtml" hash="b4b8502a3604fb12f075fe740d945034"/><file name="status_mapping.phtml" hash="1f61ee593d8eda86732bda7bc9e6e52e"/></dir><dir name="misc"><file name="creditmemo.phtml" hash="ba257ba5f772f0135a02bfcd384cf593"/><file name="discount.phtml" hash="4763652b79b6c7f9260fbe4c908f4732"/><file name="email_avs.phtml" hash="ea7f60f2f9021e8cc7c17995198150c4"/><file name="email_error.phtml" hash="9162008f414fb8cbe2794b4bd6a4d787"/><file name="shipping_costs.phtml" hash="7b5b83f9229475df906e20ef2037e820"/><file name="transaction_status_forwarding.phtml" hash="788210951399e85e94bf350ff2030f5b"/><file name="transactionstatus_forwarding.phtml" hash="a0a484355dda756674923af4515000b7"/><file name="transactionstatus_processing.phtml" hash="264705cbd3681a3a705dfe5f9b9459b7"/></dir><dir name="payment"><file name="creditcard.phtml" hash="8e484c4f491ab90dda0578800162fd1c"/><file name="debit_payment.phtml" hash="1dd18a9356f944799818771e18983986"/><file name="financing.phtml" hash="bc3fcfaa4b7540192085a03d8c91dc55"/><file name="method.phtml" hash="130b071e2363972df1f634585d6e0704"/><file name="online_bank_transfer.phtml" hash="93a29afae277ad94b4c1c124c96cfbcb"/><file name="safe_invoice.phtml" hash="2484a8ba66416937d48f2785175bdea5"/><file name="wallet.phtml" hash="ba12c5e01a515ff744f2ab02c8f10d0e"/></dir><dir name="protect"><file name="addresscheck.phtml" hash="3c350cec7badc0c6df013f03527a7b98"/><file name="addresscheck_type.phtml" hash="bc67f5743cc703e8a454e1adf0730a8d"/><file name="creditrating.phtml" hash="f378ace23555c6c9f95e37f032144250"/><file name="creditrating_agreement_message.phtml" hash="f58ee591b49d6d8f16770186ae45915f"/><file name="creditrating_lifetime.phtml" hash="c83c475ef6921147c587506b432ff0d4"/><file name="creditrating_type.phtml" hash="d994405b3e913dfdbc7884c2993eb78b"/></dir><file name="window.phtml" hash="b7de8be932ff20ab238c8882f50e4801"/></dir><file name="tooltip.phtml" hash="15f2dc92646a8d8533c7f1c1d0bb10b0"/></dir></dir><dir name="transaction"><dir name="view"><file name="plane.phtml" hash="8f4c2ef7fecfab8eb02d12b35e862b5e"/><dir name="tab"><file name="general.phtml" hash="68caff5aa8efad5e37378e9c7b739842"/></dir></dir></dir><dir name="widget"><dir name="form"><file name="container.phtml" hash="2ed5809647722a4a4358a89732100029"/></dir><dir name="view"><file name="container.phtml" hash="b750b77783092c218e3326734681c2f2"/></dir></dir></dir><dir name="migrator"><dir name="migration"><file name="index.phtml" hash="e61197db7ef214108863c79ddeb9815b"/></dir></dir></dir></dir><dir name="layout"><dir name="payone"><file name="configuration.xml" hash="e27c94d22f89de34b111eb755ded3d0e"/><file name="core.xml" hash="4c2937ab9409c8cdaf0833f064288f05"/><file name="migrator.xml" hash="eeb630d133aeb3f54010d9d194772c46"/><file name="transaction.xml" hash="765365f3a10d6ff526a4889c4a606153"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payone"><dir name="core"><dir name="checkout"><dir name="onepage"><file name="init.phtml" hash="5c0c3bf8d37efdbf537b5384bc34398e"/><dir name="payment"><file name="additional.phtml" hash="3882f895bd113afc428393a71f5d7ccf"/></dir><dir name="review"><file name="sepamandate.phtml" hash="422228d0d062919f5868f4fc1105eb68"/></dir><dir name="success"><file name="sepamandatepdflink.phtml" hash="79198bd920f3ad9093a7ecfa6da65718"/></dir></dir><file name="protect.phtml" hash="efc045381a0a0bf4424032d5c6979c58"/></dir><file name="client_api.phtml" hash="1ec0b009b38dc06caa21467c3f4ffb71"/><dir name="payment"><dir name="method"><dir name="form"><file name="advancepayment.phtml" hash="53be7d1aebc234604157aa7e6dc47795"/><file name="cashondelivery.phtml" hash="0cad47103bbd341208e6252bd8fe47d1"/><file name="creditcard.phtml" hash="e74c0510cc127af463795f46c598a63b"/><file name="debitpayment.phtml" hash="5a50175da735d50fd431c192dd79d940"/><file name="financing.phtml" hash="d5f1f6ab21bcb7754fff985cdb3f87c7"/><file name="invoice.phtml" hash="64ec86d5cdd348a80a43a713abc1f0af"/><dir name="onlinebanktransfer"><file name="bankgroup.phtml" hash="e593d1e9d066a9b78015de46c9c9b06e"/></dir><file name="onlinebanktransfer.phtml" hash="f6327e34639ebc6ed23a5f7e500c454d"/><dir name="safe_invoice"><dir name="klarna"><file name="scripts.phtml" hash="c86c08b139497ae4619ac163333a4c51"/></dir><file name="klarna.phtml" hash="d8d3ac5e88a5485ce32fbd85148ba624"/></dir><file name="safe_invoice.phtml" hash="34ac7632459b1062ceb63e256a69ae6d"/><file name="wallet.phtml" hash="32fe1f2fc914b2c11b8c3506d03e0890"/></dir><dir name="info"><file name="advancepayment.phtml" hash="611af85c9ae80aa9c702b34fc0724e79"/><file name="cashondelivery.phtml" hash="5f369ef06729584e8bf094700877386d"/><file name="creditcard.phtml" hash="dc5ecc29deed279f93928e307c6d1ba2"/><file name="debitpayment.phtml" hash="d6064c3b4ac949d3cd13d50da428fd75"/><file name="financing.phtml" hash="25fec413f14104d9d589a88931a87443"/><file name="invoice.phtml" hash="64179e611f39b4b7e68cd367aecb0931"/><file name="onlinebanktransfer.phtml" hash="c9a2962511e29aa68999a41f5787340f"/><file name="safe_invoice.phtml" hash="201de7f768fdaf05f451cbad6a57a701"/><file name="wallet.phtml" hash="099fd47c84a62ad9510a47a24345d317"/></dir></dir></dir></dir></dir></dir><dir name="layout"><dir name="payone"><file name="core.xml" hash="773966e328709591d8b0cc3c5e6cc927"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Payone_Core.xml" hash="26082ff2574ca87302556c5c3a39b246"/><file name="Payone_Migrator.xml" hash="9af684dec6dc50d9e863538773350fb7"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Payone_Core.csv" hash="66fbeb0f7a3dd7ebaf5bf3d08e430eb7"/><dir name="template"><dir name="email"><dir name="payone"><dir name="core"><file name="avs_template.phtml" hash="fb6ebbfa5d1f95d58b321cf6feb81dba"/><file name="error_template.phtml" hash="009959ada1dabe51d7e1bbc36027a65f"/></dir></dir></dir></dir></dir><dir name="en_US"><file name="Payone_Core.csv" hash="8fca03aadc7afd1cf45cb7f78e6d5c71"/><dir name="template"><dir name="email"><dir name="payone"><dir name="core"><file name="avs_template.phtml" hash="fb6ebbfa5d1f95d58b321cf6feb81dba"/><file name="error_template.phtml" hash="009959ada1dabe51d7e1bbc36027a65f"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="."><dir name="js"><dir name="payone"><dir name="core"><file name="addresscheck.js" hash="6568d29af003fa91f0b5c469ff464e3c"/><file name="client_api.js" hash="dd107fcd812ac77a99e3b72c01672b7a"/><file name="creditcard.js" hash="f42420630073ccd92349bec7b3ed3d8f"/><file name="debitpayment.js" hash="d747ffcf875d940926467095c2b7e95a"/><file name="financing.js" hash="77ba32ce7b8c2bebf561709ebc956b41"/><file name="klarna.js" hash="569c92d2ac2112a6f243d04dde413756"/><file name="onlinebanktransfer.js" hash="cdfde3c2f1dd41a7e6d746e64f24b9eb"/><file name="safe_invoice.js" hash="18e2937400142d0e26fd0fe068e5e293"/><file name="sepa_input.js" hash="d75b03eb199d74a7620020acc815744f"/><file name="sepa_validation.js" hash="e8b50fd2da5bd35bf5acfd6450838efe"/><file name="wallet.js" hash="8b52a7055252923888319dd057aa1e4e"/></dir><dir name="migrator"><file name="migration.js" hash="602a23b295cf6b241845fa626b089c91"/></dir></dir><dir name="prototype"><dir name="windows"><dir name="themes"><dir name="payone"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="logoclaim.gif" hash="d71545ef09e2f10339654cda93d1cca2"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="1944445eb3fb14f0ede092665ccbbf0b"/></dir><file name="payone.css" hash="ca84a0501c8f6f794c08bc34c013aa01"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Payone"><dir name="Api"><dir name="Adapter"><dir name="Http"><file name="Abstract.php" hash="8d37bc6e9bd6acd0e5b1350542e43f9d"/><file name="Curl.php" hash="64d649310b514790422664b5ba1c0b3b"/><file name="Socket.php" hash="1bd51c5e95bce114d3ba12098464b072"/></dir><file name="Interface.php" hash="8d398fe489610c76b237847b5e05b300"/></dir><file name="Config.php" hash="d5024c64e3e7b543d56fe7999ad00fe5"/><dir name="Enum"><file name="AccessAction.php" hash="7af90f74e723b45ad66852cc48180bf5"/><file name="AddressCheckDivergence.php" hash="ed818028f3cd09958a16f41af52b6f63"/><file name="AddressCheckPersonstatus.php" hash="67b5e5e1b0b6eaed4f2eb51bfee3eddb"/><file name="AddressCheckScore.php" hash="1260e0f031526f7707b3a24dd81b7c46"/><file name="AddressCheckSecstatus.php" hash="785c4449b18e153f8359e354a318ba84"/><file name="AddressCheckType.php" hash="bda748769b6408222e6819d660d52404"/><file name="AvsResult.php" hash="aa6abfcd74a49fa2c72b70935456e458"/><file name="BankaccountCheckType.php" hash="b8204010ee3df148395d3c0373c2f67a"/><file name="CaptureMode.php" hash="8a0c5c7b78d8a9e0f44268eb3ef65bf5"/><file name="ConsumerscoreScore.php" hash="119bf444889838ad55b57154eb62f960"/><file name="ConsumerscoreType.php" hash="e5f25aae50aa061a54e4b286c25f3272"/><file name="CreditcardType.php" hash="d2027a0ac1b44de3c818809adff905aa"/><file name="DebitTransactionType.php" hash="644169299e92d74b82c15563df348c1c"/><file name="Ecommercemode.php" hash="9e72976aba594d506f62e15f0c7c9ec1"/><file name="FileFormat.php" hash="5bd47fb4e462e951f2169c6734242c19"/><file name="FileType.php" hash="095d4b46f56a93b26f16f470651bb02e"/><file name="FinancingType.php" hash="7c1d6af8473c27668be28eb234e88b04"/><file name="Gender.php" hash="fd769d163ae062a020fe335d473ebce4"/><file name="InvoiceDeliverymode.php" hash="20c0fb5edc752eaa13f7485ae927302b"/><file name="InvoicingItemType.php" hash="6b179cde7ee57c4e2d979836ea0134b6"/><file name="OnlinebanktransferType.php" hash="11438be9127821ed1b160420a5139011"/><file name="PayoutOpenBalance.php" hash="f3a9648a134d0637dc0b86ba2d466805"/><file name="PeriodUnit.php" hash="aaa82eab4aae4837e4df7c7abab7652c"/><file name="PeriodUnitRecurring.php" hash="c7064252b3dbb22688f133c3294218df"/><file name="RequestType.php" hash="b200d265b70e7ba609dfb64ebd5c6fb5"/><file name="ResponseType.php" hash="98652b6dcb80cdc36cec7454785082aa"/><file name="Settleaccount.php" hash="ea59cbeec8798b4d19c16eefb8824031"/><file name="Shippingprovider.php" hash="cbf70776a47ba3eb482bab7d36da24e7"/><file name="Storecarddata.php" hash="91fc3b5f0fe6b5d13cf3178f01cdec00"/><file name="UseCustomerdata.php" hash="72f1a1c38c834ee0bae56623d899643d"/><file name="WalletType.php" hash="a5bb130661bacc7d226e0859d3967427"/></dir><dir name="Exception"><file name="Abstract.php" hash="60f869606e12f5934d8044ab2182130a"/><file name="InvalidParameters.php" hash="a7d3f28d3c771a025a22822f36c6280b"/><file name="InvalidResponse.php" hash="465c7f77851b8dbd7a31f367b0421bd2"/><file name="InvalidUrl.php" hash="7a43bdcca4c81f47eca5982a0f173175"/><file name="MappingNotFound.php" hash="f9bbcb55bafee8da15bf3a7ba3d49cbb"/><file name="Payone.php" hash="7b6bc8521fc6f68582c3c8f28d1d9ea7"/><dir name="Request"><file name="InvalidKey.php" hash="7fb3d17cacda83b421fda79ca815747c"/><file name="InvalidMid.php" hash="3f6031ccbffa16c8091ba25e87b105e3"/><file name="InvalidMode.php" hash="7388ff3c863ea620d7c2847a6e610a8c"/><file name="InvalidPortalid.php" hash="ef0d20493a9d1964a44c8f9ae9b15248"/></dir><file name="Timeout.php" hash="0bfdac99f441015b835a218886ae2987"/><file name="UnknownStatus.php" hash="f8bbb8759bdb8104daaed59a31d4b632"/><file name="WritingRequestToServer.php" hash="6bac9fe5228568d57b9492afdc5096e6"/></dir><file name="Factory.php" hash="7137d53aa65fd143ca480198f897c316"/><dir name="Mapper"><file name="Abstract.php" hash="4b8a025d4e906ee806d025ec9fd8f385"/><dir name="Currency"><file name="Interface.php" hash="a166444b69c22891983b475d98a9c4ba"/></dir><file name="Currency.php" hash="f8b9151eb9f4851d9c0b1dcee5dde465"/><dir name="Request"><file name="Abstract.php" hash="682ab94bfa9d4b4e772c973504b944ca"/><file name="Interface.php" hash="300f24067b5e02cbcad586ae64cd2bd0"/><dir name="Management"><file name="UpdateAccess.php" hash="16e4d33fe2ee60e74801f600062e68e0"/></dir><dir name="Payment"><file name="Abstract.php" hash="80457e0ca50f31bb491f9c0c30af28d3"/><file name="Authorization.php" hash="24bb9c33163acf92764c5e3d98c8890c"/><file name="Capture.php" hash="1e99a0ee422ad8a049c669ce2b0925a7"/><file name="CreateAccess.php" hash="12066747cfb777291469b1f05ecdfd4e"/><file name="Debit.php" hash="88646c41c5b422f60c2c71bced0c6180"/><file name="Preauthorization.php" hash="65c3d30b553aa821f77bd98d29e4bb7a"/><file name="Refund.php" hash="323148b00ae50d41058ba9ec09aca2b3"/><file name="Vauthorization.php" hash="81040f290461acb49401626862f35ca3"/></dir></dir><dir name="Response"><file name="3dsCheck.php" hash="8df0b3a1e60a42037bb428936f1af395"/><file name="Abstract.php" hash="a8c4e328f344faa657b8eb2c3ac3299c"/><file name="AddressCheck.php" hash="d46ac343f5523ad99b7c448454917fdf"/><file name="Authorization.php" hash="e0d574e2314756f02ad348856734305d"/><file name="BankAccountCheck.php" hash="3a451451285b792cd3f338173c32cd23"/><file name="Capture.php" hash="d932dcd2a2a1aae8fe5ea01b1eb3d203"/><file name="Consumerscore.php" hash="fe049746f267422141c67ae3bff59a66"/><file name="CreateAccess.php" hash="1f5292cdf982544b89705e100bb72832"/><file name="CreditCardCheck.php" hash="507102173d66ffc8c59643c8c5c8b962"/><file name="Debit.php" hash="0cc821fe414ba12b6f0a47c737032b81"/><file name="GetFile.php" hash="e89f24a68fee671cb471cabe71f3edaa"/><file name="GetInvoice.php" hash="e8d48e92395106748609307bf75d9757"/><file name="Interface.php" hash="ec7a85fd32a14f8e3fb6c53999a3b29c"/><file name="ManageMandate.php" hash="9951957e3736f4db9b78cf782e31b16d"/><file name="Preauthorization.php" hash="61ca02a765f954d8d7ef3787bc998c0b"/><file name="Refund.php" hash="49db64773b4d50e513d0dd0b229f2a94"/><file name="UpdateAccess.php" hash="7d3df9f90aa41679adeacba401998394"/><file name="Vauthorization.php" hash="5f92e7c5ef6d83966204aa7fffea4b5c"/></dir><file name="currency.properties" hash="eef9fbec34f4f4a2602f6081fcfda371"/></dir><dir name="Persistence"><file name="Interface.php" hash="a77efa3aeb4734aebfe18c9f7e4ccc7f"/></dir><dir name="Request"><file name="3dsCheck.php" hash="8502019ed3c3057fe05ee3c1a71aca21"/><file name="Abstract.php" hash="5c9806f9f608d5f5e89b9c54927990db"/><file name="AddressCheck.php" hash="aa187c6821e3cef431b119c33a5bf23f"/><dir name="Authorization"><file name="Abstract.php" hash="80971aafc19e11d5e3223a9048b719d1"/></dir><file name="Authorization.php" hash="52ed73816ee6887ed4461e5850893182"/><file name="BankAccountCheck.php" hash="e53d0e170608dfac05b1706706bd1212"/><file name="Capture.php" hash="1f853ee78f5813ee4e68082fff76fa53"/><file name="Consumerscore.php" hash="afc7c64148ff01a2044dc748eb78d8a4"/><file name="CreateAccess.php" hash="0819c933758a595ee2ce4ba97bc5d57b"/><file name="CreditCardCheck.php" hash="92abb97fdb171cd07a0af63d51de7fd5"/><file name="Debit.php" hash="f2fcec84c6d37efa17df7598933c7b26"/><file name="GetFile.php" hash="d3cc699dd1fb7720a3f1ea73ff9c8965"/><file name="GetInvoice.php" hash="a5bf340eef45f0b974badc21899423c6"/><file name="Interface.php" hash="338199100f226bb478a7e79c1594bfc9"/><file name="ManageMandate.php" hash="ba5bdc60c35b954ddbf54f0c1452e707"/><dir name="Parameter"><file name="Abstract.php" hash="653a1b46ee15ed2d01a55e2f24a1dc9f"/><dir name="Authorization"><file name="3dsecure.php" hash="1280e05ad2671b85255b64ebc64d69d0"/><file name="Abstract.php" hash="cf44e93bc1e56cc84df5f4ab4088050b"/><file name="Business.php" hash="b8c430800c69b62410037cf57491c3cb"/><file name="DeliveryData.php" hash="4f2ac6a7c1ab5d84cfbddfd00673daf2"/><dir name="PaymentMethod"><file name="Abstract.php" hash="9714088466bee6c8349584c74568c5fd"/><file name="CashOnDelivery.php" hash="8472ab78a107d67d2bb1585802d3e961"/><file name="CreditCard.php" hash="36bf310a53ccce2a310884c467b91cc0"/><file name="DebitPayment.php" hash="951a5709819744dea784f3978d1c4e7d"/><file name="Financing.php" hash="2b2ba3e07535705c0382d538110eafdf"/><file name="OnlineBankTransfer.php" hash="cbdd65f16b986260beca3f512bb19572"/><file name="Wallet.php" hash="f4a72017354b2b8ffba75892e6decddb"/></dir><file name="PersonalData.php" hash="11f9311908abd421e8cdb038bb048579"/></dir><dir name="Capture"><file name="Business.php" hash="fb5c8262c2eaad6a2ce9cbb88afe0b2a"/><dir name="Invoicing"><file name="Transaction.php" hash="f6dce30897bbc38eae58ed5bd10d7e0a"/></dir></dir><dir name="CreateAccess"><file name="3dsecure.php" hash="9cdd0c2948d91917002f67f4b6df7615"/><file name="Abstract.php" hash="facb0550043ca99d02cebee364480b82"/><file name="Billing.php" hash="5b562feed4c70471138d7d9a205ad9b7"/><dir name="Invoicing"><file name="Transaction.php" hash="d4bc46e2d834734ee4deea6a7236ee48"/></dir><dir name="PaymentMethod"><file name="Abstract.php" hash="48adbd8e0a37d0ea47b663a848a32158"/><file name="CreditCard.php" hash="b459cb17ffc04b47a7f07ad2bf35ce2a"/><file name="DebitPayment.php" hash="1eedc44773005daa8ca326cfb4765f4f"/></dir><file name="PersonalData.php" hash="8cfdceda4a1f4df12f948ecb244de9a5"/></dir><dir name="Debit"><file name="Abstract.php" hash="ad7c2f583cd2bb8f2e2799319ec293f3"/><file name="Business.php" hash="cb5ced7f6e449a4572227fd868681e1f"/><dir name="PaymentMethod"><file name="Abstract.php" hash="10fe457332ef63d231208d5074a87925"/><file name="BankAccount.php" hash="8ae63c46a4697feebc1bd7f509973b93"/><file name="CreditCard.php" hash="8c30a4f7a7352bc137a7708b2e35de70"/></dir></dir><file name="Interface.php" hash="6e34e7349bf3eb3ea52418781b6bca31"/><dir name="Invoicing"><dir name="Access"><file name="Item.php" hash="a5d8f3e81562f7927c02291005c687ac"/></dir><file name="Item.php" hash="b61d4ceadc6dadc4ba5082d7c6705568"/><file name="Transaction.php" hash="3038d8b62150e0e51763d48c4ff8e239"/></dir><dir name="ManageMandate"><file name="Abstract.php" hash="1d06da34f7e4a789305a7933b904c54a"/><dir name="PaymentMethod"><file name="Abstract.php" hash="a46d217328bf50e110686e564208ce8e"/><file name="BankAccount.php" hash="7105e6ae2878d95723ebc17f4b59057b"/></dir><file name="PersonalData.php" hash="a1801533d9f9bac1eb85049547ae553c"/></dir><dir name="Refund"><file name="Abstract.php" hash="6e49e729223f6ea7d095d43923928b9d"/><dir name="PaymentMethod"><file name="BankAccount.php" hash="5710f9b4cc057465977ecbd60623e8fc"/></dir></dir><dir name="UpdateAccess"><dir name="Invoicing"><file name="Transaction.php" hash="faaeafaa78b60f7d8d477c41aa72807a"/></dir></dir><dir name="Vauthorization"><file name="Abstract.php" hash="300ad44cb6bb1e2e9588e6ac2250820a"/><dir name="Invoicing"><file name="Transaction.php" hash="cf24f8ff578f15e25d0e7ecf955d3a70"/></dir><dir name="PaymentMethod"><file name="Abstract.php" hash="99dfa4c670708e81a411d5b8ae7a5ad4"/><file name="CreditCard.php" hash="4580b155e79c6ef4ffc24a123c2470e2"/><file name="DebitPayment.php" hash="d840f41b86010ff9f7f71101af472c43"/></dir><file name="PersonalData.php" hash="2d909e623d5c1cab9d56fa09e7e83c2e"/></dir></dir><file name="Preauthorization.php" hash="0a681074560da4069e694892c0064f6c"/><file name="Refund.php" hash="56c0bb2425448b6e0a57bdd35944250b"/><file name="UpdateAccess.php" hash="e7acd46bcd6eded87d3fe1b38e693521"/><file name="Vauthorization.php" hash="7d694e09878145eedd07164c40fc083a"/></dir><dir name="Response"><dir name="3dsCheck"><file name="Enrolled.php" hash="1972e3bf59047a74755a0e40d6732ac1"/><file name="Invalid.php" hash="a09d5b1eec2b0956d4023d2f2b14f237"/><file name="Valid.php" hash="1ad50cd437af0de75aad8c2fcffa85bc"/></dir><file name="Abstract.php" hash="8aa20c1529cc03a0f6c64d8e4f2690b2"/><dir name="AddressCheck"><file name="Invalid.php" hash="132932a39401c298578935e74c416fbe"/><file name="Valid.php" hash="29793361fab8fffc1216ebf211660dde"/></dir><dir name="Authorization"><file name="Abstract.php" hash="bb03d2155a37cff92c2c25391d2861cd"/><file name="Approved.php" hash="74d415c45fac3df416ee8ccd6a06f895"/><file name="Redirect.php" hash="1a239aa8bdff6e89b14a43d4ca3be68b"/></dir><dir name="BankAccountCheck"><file name="Blocked.php" hash="8716ee872b079670aeba08e498407754"/><file name="Invalid.php" hash="9317da83f806353ba8692e2d91f0db31"/><file name="Valid.php" hash="3080f0018201faa408964a7d9a126e6e"/></dir><dir name="Capture"><file name="Approved.php" hash="bb1e8af4ec34d7db27675d4a00c8b3c3"/></dir><dir name="Consumerscore"><file name="Invalid.php" hash="4ec7a41513ca28e7081e0a7b0fa35f44"/><file name="Valid.php" hash="e0053bb2af649d504dad28f163c0a61c"/></dir><dir name="CreateAccess"><file name="Approved.php" hash="fb671f8b94eb8cb2f01085c71385ef92"/></dir><dir name="CreditCardCheck"><file name="Invalid.php" hash="e95422fb58384c0ca0e82db79dbd5a8f"/><file name="Valid.php" hash="e3565fede3a2b5d80e668617abcf463f"/></dir><dir name="Debit"><file name="Approved.php" hash="a9071053a4352acaf3674e8831e84102"/></dir><file name="Error.php" hash="361aab061dbcd5aade4d2a2ae5224620"/><file name="Interface.php" hash="bfb530e8de56624e9a5a93bb3d8d22d3"/><file name="Invalid.php" hash="d91d1b8f6214e350493c688f3226325b"/><dir name="Management"><file name="GetFile.php" hash="06e3fbf9e04f5c88d8593c2864b58782"/><file name="GetInvoice.php" hash="00cced79a4094cfdcb42a25da88f9fef"/><dir name="ManageMandate"><file name="Approved.php" hash="7f5e2ec51c4891f5d0062b73d6cf7e30"/></dir><dir name="UpdateAccess"><file name="Ok.php" hash="d3ff7ae424089882b86308fad8b70361"/></dir></dir><dir name="Preauthorization"><file name="Approved.php" hash="67775fbdad364515618a69ed583b9c7a"/><file name="Redirect.php" hash="7dc6d21e5d7395127f8a4cceac1ee3ba"/></dir><dir name="Refund"><file name="Approved.php" hash="06f5abaf7335c7bc572d0f7707a9d110"/></dir><dir name="Vauthorization"><file name="Approved.php" hash="ef3cffaad1b2498fc2d0028dff8f3bbb"/></dir></dir><dir name="Service"><file name="Abstract.php" hash="24ef22fd385dd99d6f2bf4413b74cac1"/><file name="Interface.php" hash="a3c79f33b0a9ac10778c088e2b660ad3"/><dir name="Management"><file name="GetFile.php" hash="63e55675376dcc372cee6ef5b5d3fb33"/><file name="GetInvoice.php" hash="e7e764daa5ec37aa40905a76236f01f7"/><file name="ManageMandate.php" hash="f3d88d315ab5567bb8b0c79e39c2a3ea"/><file name="UpdateAccess.php" hash="0f0b9ce67ac880ae3589d51ff5b8fad6"/></dir><dir name="Payment"><file name="Abstract.php" hash="31697d161f8ddecbf1380fcfde1b278b"/><file name="Authorize.php" hash="cc79d2f1743a14c4659d4526814857b3"/><file name="AuthorizeInterface.php" hash="a252deb55f6d2856d22389d7946c96e8"/><file name="Capture.php" hash="70510c4b962bf20632cc824239d79924"/><file name="CaptureInterface.php" hash="df0375f93cb5c86391fbb1394ef45a32"/><file name="CreateAccess.php" hash="3c6886cd92e46fd5a57c80002b5942c0"/><file name="CreateAccessInterface.php" hash="003a3d785f83286f506b869171962aa4"/><file name="Debit.php" hash="18c7aed47628aed4ffb5baef2fad14ac"/><file name="DebitInterface.php" hash="47d73baa6e092f21dfc7ffcc43eb9c4d"/><file name="Preauthorize.php" hash="46f363b78ae3f6a4af15755570f5edea"/><file name="PreauthorizeInterface.php" hash="d73caab0e6851b246e5c3aed6026e08b"/><file name="Refund.php" hash="3c0967aba96de8d9c14153f6659b9d2b"/><file name="RefundInterface.php" hash="0cb30e224128b3f8a2f61a6a750af4cd"/><file name="Vauthorize.php" hash="abf55267f5ffbfa31307b0244e6d39bb"/><file name="VauthorizeInterface.php" hash="16331e48b7c2e1d505ca7318ad4740fc"/></dir><dir name="ProtocolRequest"><file name="Interface.php" hash="e45a08d8c42675881617033eda0df27b"/></dir><file name="ProtocolRequest.php" hash="84ff92e03b1ce5237c7384df13dca268"/><dir name="Verification"><file name="3dsCheck.php" hash="c7592588376cce47fb44fc752b2b6a42"/><file name="AddressCheck.php" hash="e51e5e7383b24798b8ab077964f68a3e"/><file name="BankAccountCheck.php" hash="a2c419d80194abf5fa5678c8f68c8360"/><file name="Consumerscore.php" hash="e2c011355f09a8fda2b0b10e65b96372"/><file name="CreditCardCheck.php" hash="75f87cc35b2de68d957ca98a69acc869"/></dir></dir><dir name="Validator"><file name="Abstract.php" hash="ead86ababa76997e8dd8886ebfc3335c"/><file name="DefaultParameters.php" hash="e4fb2582a213f164d9ca8f2ba764cb06"/><file name="Interface.php" hash="cd0994f06f5cb491f19820e99da952d0"/></dir></dir><file name="Autoload.php" hash="abd312c31dd8a49e589dbf16e94e26e2"/><file name="Bootstrap.php" hash="e0e3380ceba6f5315d57f1d3238bfb92"/><file name="Builder.php" hash="fed3ab0252cfe5e5028f4c960b45b82d"/><dir name="ClientApi"><dir name="Enum"><file name="RequestType.php" hash="c30f83abe7dc48c59339b7fa3e3648af"/><file name="ResponseType.php" hash="8d07f1c93d0680f61d59bf2163042be5"/></dir><dir name="Exception"><file name="Abstract.php" hash="1eb99fc78d7289b66c62b9f3feeaf5f4"/><file name="InvalidParameters.php" hash="19df1c0d0bb6ef91560329ca960d5e8d"/></dir><file name="Factory.php" hash="7fe76a15b47eb692360485b2c86d0023"/><dir name="Request"><file name="Abstract.php" hash="82a935f450b054ad0316e06dcfff3599"/><file name="CreditCardCheck.php" hash="89ad304836bfe249de78a7ed2f4df4aa"/><file name="Interface.php" hash="a5550465e40d44f2bdca9d25581b1aff"/></dir><dir name="Service"><file name="GenerateHash.php" hash="489d77268d75a908ada40d9e2236331b"/></dir></dir><dir name="Config"><file name="Abstract.php" hash="57627d0919526793ad2fb0e5d70d32d8"/></dir><file name="Config.php" hash="c85ae1e3cf73331ca45ec4a15645263a"/><dir name="Enum"><file name="ClearingType.php" hash="e14bc770728c22c5f68f8dd032010f8c"/><file name="Mode.php" hash="ee9b0a7e12c9e582b7e25ccbbadb6b72"/><file name="Reminderlevel.php" hash="c552342982d010a94925ebb841ecc7eb"/></dir><dir name="Log4php"><file name="Logger.php" hash="8447fe973f3ef059ff0f57d82618ccf6"/><file name="LoggerAppender.php" hash="ec9686c66cb5574be4830abcd220a097"/><file name="LoggerAppenderConsole.php" hash="6a59da37cf0f37ff6665836a61da5bd2"/><file name="LoggerAppenderDailyFile.php" hash="6308ee07f3860bb3c6140eabfeb71cd7"/><file name="LoggerAppenderEcho.php" hash="68d7b55b079911e34e1f37317a49d586"/><file name="LoggerAppenderFile.php" hash="a96d454f13a48df572a5f80e4728c60a"/><file name="LoggerAppenderMail.php" hash="e9516e72ac3b6f831e4cc68205bbfde4"/><file name="LoggerAppenderMailEvent.php" hash="823f0b4c97f304a49fecb2a125f87437"/><file name="LoggerAppenderMongoDB.php" hash="6fb689ec75a81aa09d6eda5e4d43f212"/><file name="LoggerAppenderNull.php" hash="e83a4107179bf0bf1bb89f9cb8ea725c"/><file name="LoggerAppenderPDO.php" hash="34f1702a1fc36937a3c76f0eeb45df1b"/><file name="LoggerAppenderPhp.php" hash="34bb58d31236f6c501f961ce8e96d36e"/><file name="LoggerAppenderPool.php" hash="1c73795f9dce5960f09c95ef56cb2736"/><file name="LoggerAppenderRollingFile.php" hash="e3cacef4624d5ba9d7513490b451b32e"/><file name="LoggerAppenderSocket.php" hash="2b87c559b48feb5f2315134b2f4acf58"/><file name="LoggerAppenderSyslog.php" hash="69be997a8204e4d99a334c9a59e8bbcc"/><file name="LoggerAutoloader.php" hash="e998c843da4562d03fdba363dd796b4b"/><file name="LoggerConfigurable.php" hash="0f7c49d4b5c7951f7a5ebcb6fd72dc98"/><file name="LoggerConfigurationAdapter.php" hash="c0adc3a6cbaa800f9a1485d1f1fefed3"/><file name="LoggerConfigurationAdapterINI.php" hash="ea216d508a831c88a7bc6c13c3f2fc85"/><file name="LoggerConfigurationAdapterPHP.php" hash="a41c90c802c25ba8dec45b3138993590"/><file name="LoggerConfigurationAdapterXML.php" hash="a12cbab8e379f4984c078abfc58502f2"/><file name="LoggerConfigurator.php" hash="0e66c44e35c1cd3df0e59d2d573b550c"/><file name="LoggerConfiguratorDefault.php" hash="e01b6a93b7c4bff6b4cc82b7bda3c257"/><file name="LoggerException.php" hash="9e440d4b1cbcd75841ea11fe383841c4"/><file name="LoggerFilter.php" hash="c7b2470b5a201128e7838acb4e5965a2"/><file name="LoggerFilterDenyAll.php" hash="bc6153cbbe58c9449dcbe0eb58dcff05"/><file name="LoggerFilterLevelMatch.php" hash="48bed57d8094cd3b579a58ec9a509548"/><file name="LoggerFilterLevelRange.php" hash="f68174150dc2b0c43fabe882f5215d8c"/><file name="LoggerFilterStringMatch.php" hash="01b8f3f9ac023f7d20d3461be14f643f"/><file name="LoggerFormattingInfo.php" hash="364f3d31ee870acd469ca1fc1f8765ff"/><file name="LoggerHierarchy.php" hash="9163da991071a18867bf266bf735e078"/><file name="LoggerLayout.php" hash="6b31185297862e7d0b66cbeea0145eb6"/><file name="LoggerLayoutHtml.php" hash="d8a72d0aedfd68e8caed9953ae437315"/><file name="LoggerLayoutPattern.php" hash="a218e8726660ebca2d1f2d608ecaa343"/><file name="LoggerLayoutSerialized.php" hash="00a06131613a91c7c7ee6a5ba3947435"/><file name="LoggerLayoutSimple.php" hash="3476e848e0a0e5d747ba5012e65dfa1d"/><file name="LoggerLayoutTTCC.php" hash="4ae4f2443bf260b17c0c0c6f17065be7"/><file name="LoggerLayoutXml.php" hash="773e7660f2101b9ea902ec0a4b980c70"/><file name="LoggerLevel.php" hash="db8bce0726dec9bd9b0d6d02ae090049"/><file name="LoggerLocationInfo.php" hash="e245242f642455df5181d39b2a49bc54"/><file name="LoggerLoggingEvent.php" hash="663c8dfbdc7bae7c81a9184aa6be6e10"/><file name="LoggerMDC.php" hash="10fe2e863b66480aff6fe7c7109d8b39"/><file name="LoggerNDC.php" hash="afc52c64b7e31fa006ccbc1b18910dfd"/><file name="LoggerOptionConverter.php" hash="03ba7a93f58a843d18d168da0091b719"/><file name="LoggerPatternConverter.php" hash="8c384ce762db48a9e797929cb128f3d4"/><file name="LoggerPatternConverterClass.php" hash="d6a162b0bc1034d768b5738385e29630"/><file name="LoggerPatternConverterCookie.php" hash="a0dc2686c21284986f44ef306fdc3ff8"/><file name="LoggerPatternConverterDate.php" hash="2912f6c9b82d694b40ccc4accdba2e89"/><file name="LoggerPatternConverterEnvironment.php" hash="d7b8736d5784612941235a821f458ede"/><file name="LoggerPatternConverterFile.php" hash="10028ea79771e11a9c1c615b10fec045"/><file name="LoggerPatternConverterLevel.php" hash="d377b9f1eac786fa56f5232bc3a29eb3"/><file name="LoggerPatternConverterLine.php" hash="8c7c68267321e96b0dd9d5de3415a431"/><file name="LoggerPatternConverterLiteral.php" hash="5d846e8bbc96f26bc8e174013a1a5032"/><file name="LoggerPatternConverterLocation.php" hash="81536bcf1001bb97dfa21e9f7cbd4c5c"/><file name="LoggerPatternConverterLogger.php" hash="20b17edda41867d62c704c127f749b15"/><file name="LoggerPatternConverterMDC.php" hash="e4dc6877f736f846e1a4cc176b7c3a9b"/><file name="LoggerPatternConverterMessage.php" hash="30545b3ad7c93ea2193d342e2f99c2e7"/><file name="LoggerPatternConverterMethod.php" hash="eea57c3ef84b389ca433a7f2293582ae"/><file name="LoggerPatternConverterNDC.php" hash="f9275e216e7528b91d70998ad7475d91"/><file name="LoggerPatternConverterNewLine.php" hash="1ae8aa85ad891dbc7f1e41ed26194546"/><file name="LoggerPatternConverterProcess.php" hash="cd6244ec38481c95bfa7b6a2db5027c9"/><file name="LoggerPatternConverterRelative.php" hash="d1558f42568aad26b3a76d8608843841"/><file name="LoggerPatternConverterRequest.php" hash="4bdcac1e0447e330562315e4ae4f023c"/><file name="LoggerPatternConverterServer.php" hash="bd737b114527ea39dd5b960c22e1b349"/><file name="LoggerPatternConverterSession.php" hash="a613871c06e80970944445cdd4233cda"/><file name="LoggerPatternConverterSessionID.php" hash="91cdd24b77656cafd2e1ae647290fa8e"/><file name="LoggerPatternConverterSuperglobal.php" hash="ab3d22445bebe7335324f26384bd8cb1"/><file name="LoggerPatternConverterThrowable.php" hash="529b157d117600859d9fce6336096951"/><file name="LoggerPatternParser.php" hash="57eaa66b2207b388b353648f9a17c6f9"/><file name="LoggerReflectionUtils.php" hash="f10a30a11f0c1a2859a36ce89c22665a"/><file name="LoggerRendererDefault.php" hash="f1c84c625d1f14aab88e9a25ebd89225"/><file name="LoggerRendererException.php" hash="e00057ffc0687098d42a8fe09bd61f58"/><file name="LoggerRendererMap.php" hash="d37dd01cecf80bb13b99e892a964aae3"/><file name="LoggerRendererObject.php" hash="1d1837e2d3d1388be77a838722b201f4"/><file name="LoggerRoot.php" hash="e00579b43b67450ff7e88f230e9af8fd"/><file name="LoggerThrowableInformation.php" hash="ed28cd254f3a6f5220ecf4d191ed7e82"/><file name="LoggerUtils.php" hash="400c7578fb86bc02f9153da5d982576c"/><dir name="xml"><file name="log4php.dtd" hash="d4da6c96c895b879f6b1924eb8d949d4"/></dir></dir><dir name="Protocol"><dir name="Config"><file name="Filter.php" hash="f8781db0de4e426e3c2b107eca7bf13d"/></dir><dir name="Exception"><file name="FilterNotFound.php" hash="72b1c4ffa31b18ec27eed40469d222ae"/><file name="InvalidConfig.php" hash="78345f6cd5dd3918747303c9780eda09"/></dir><file name="Factory.php" hash="690d0411a8e3967091117745bd7290ad"/><dir name="Filter"><file name="Abstract.php" hash="9d5c4977a5674a5ebba0921aee3810e3"/><file name="Filterable.php" hash="a9d19c275d9c0930dbdcd1f38b99c4bf"/><file name="Interface.php" hash="7bdc72724988eafedf2a503d1a1371a5"/><file name="MaskValue.php" hash="27f5dfd7c608f4de67fd26f9751b7500"/></dir><dir name="Logger"><file name="Interface.php" hash="80c813837bfc8d3b62d548daa3bbc5e5"/><file name="Log4php.php" hash="6815d39e4acad685e5350e38bc2eccf4"/></dir><dir name="Service"><file name="ApplyFilters.php" hash="ab881b292dade78add817503e15b68ea"/><dir name="Protocol"><file name="Abstract.php" hash="c123ad9b6ed31d34c1236cbbe3c8c0a6"/></dir></dir></dir><dir name="SessionStatus"><file name="Config.php" hash="0057a291fc33d96d46b00c201387ce48"/><dir name="Enum"><file name="Action.php" hash="86aae514964a85a0dff8fb7d7c79093b"/></dir><dir name="Exception"><file name="Abstract.php" hash="6128f2e2d4ad5a38dfb09cc2adecc21f"/><file name="MissmatchingKeys.php" hash="c69e2e3e5f81ba53f4226f9757d1dfc0"/><file name="NoPostRequest.php" hash="6adfc0610f747cb2151aed01c6bdfec9"/><file name="NoRequestData.php" hash="6132f51c715ab7eb3ee1937455261a47"/><file name="Validation.php" hash="159feaa182829dd2ccb0bbf978b6e1a8"/></dir><file name="Factory.php" hash="158da95caf6b9146f52b3ef1407f06fe"/><dir name="Mapper"><file name="Request.php" hash="8ec870251f12c9d067b5aef628ad56d4"/><file name="RequestInterface.php" hash="61acebb1e89c610fb37ba525a7412090"/></dir><dir name="Persistence"><file name="Interface.php" hash="2c78e6c0e8eca67cc7b2d126b7fa547d"/></dir><dir name="Request"><file name="Abstract.php" hash="0ad0ad8e49f2d31664ca34fcf4ae32a1"/><file name="Interface.php" hash="e8c06647011871c9da566392b45f256e"/><dir name="Item"><file name="Abstract.php" hash="ff9ea330efbb8cce8b4e1749f2b6d0e6"/><file name="Interface.php" hash="cfc5e6e7f3d04a3ece7fe4886af94b05"/></dir><file name="Item.php" hash="865487598996bde31a4cc80bcf6b59e4"/></dir><file name="Request.php" hash="33c3d7d1fbe705dd1345b93af9de5ea9"/><dir name="Response"><file name="Abstract.php" hash="cf4341d0544b36f542ab4a9b47679add"/><file name="Interface.php" hash="5d66a02df38baba75ab21264cc73c7c4"/></dir><file name="Response.php" hash="4b07f4e1f1a83609206bf9c3addddf57"/><dir name="Service"><file name="HandleRequest.php" hash="3d38fde3b2ef05a985d9eb69aa3b73dc"/><dir name="ProtocolRequest"><file name="Interface.php" hash="d364210632f9c03cb7e2d95ff960592c"/></dir><file name="ProtocolRequest.php" hash="3a61ee5ff8c750d9b0c754c5483685d1"/></dir><dir name="Validator"><file name="Abstract.php" hash="4cf7905a160c59b286c3dfb51501b728"/><file name="DefaultParameters.php" hash="28f711bf64a2d09c4aed54a3de44c8ba"/><file name="Interface.php" hash="cc04e77ec7cdd7e72f223b4d851b892c"/><file name="Ip.php" hash="ee9646a2b1573c30290f48142ad9d453"/></dir></dir><dir name="Settings"><dir name="Configuration"><file name="Abstract.php" hash="b535ec70b40d20ab24aa248bcf3f05b4"/><dir name="Api"><file name="RequestType.php" hash="f6b23bf2652034cbc3d50ad0e782f8f1"/><file name="ResponseType.php" hash="b2422c4e38f381bd370176a6b0a0011d"/></dir><file name="Mode.php" hash="d5b47124f2893bdf3440ec48eb2c646d"/><dir name="PaymentMethod"><file name="CreditCard.php" hash="6894263df05741a6ed23c0acb414f402"/><file name="Financing.php" hash="27be604fed063bdbc893720927aa9669"/><file name="OnlineBankTransfer.php" hash="e5d6d8c95d0432e9f3442a8e9b1058b0"/><file name="Wallet.php" hash="060e1623e33a4551f921db1593891807"/></dir><file name="PaymentMethod.php" hash="e1c8fe981eda7dfbb4330605d0dddbe3"/><file name="Reminderlevel.php" hash="bdc018a59eaab4d13209fc529afd7d51"/><dir name="TransactionStatus"><file name="Action.php" hash="1e2015cb6a83696bbc348cd5a19dd978"/></dir><dir name="Verification"><file name="AddressCheck.php" hash="cc54a17bd42c9410ceefb3f2ce4dfe11"/><file name="AvsResult.php" hash="80859d494d8b426f0f80c7f6c0001e04"/><file name="BankaccountCheck.php" hash="5b3ab2b7fec0f82b0c7efb2fd4ba35ec"/><file name="Consumerscore.php" hash="b66352d2c8dcca7e37f6bdb2a1cfcecd"/><file name="Personstatus.php" hash="f995a8a5456b981d44763cab0c6aecf6"/></dir></dir><dir name="Data"><dir name="ConfigFile"><file name="Abstract.php" hash="45594b9218dd0cbf9a2190bbc1b1e5cd"/><file name="Collection.php" hash="2b387c4da779190bc3c774e5012383b2"/><dir name="Global"><file name="StatusMapping.php" hash="9abad2df07db470433b8d46d8c4b9321"/></dir><file name="Interface.php" hash="70133ac956846d5151edfeca478b9502"/><dir name="Misc"><file name="TransactionstatusForwarding.php" hash="94e96bfd0972e85ecfeb26d3d708a159"/></dir><dir name="PaymentMethod"><file name="Abstract.php" hash="ad85b6f37b133795f4a9cfd94200bb2a"/><file name="AdvancePayment.php" hash="99c961e1973c0f8f4943d46abb61806c"/><file name="CashOnDelivery.php" hash="8f89e4310e2f2350b69580fe0db55c3a"/><file name="Creditcard.php" hash="94cebabc02194a60b8c78b1c8c645d90"/><file name="DebitPayment.php" hash="6ae69fc4038503a5dc5af7e722b4ec09"/><file name="Financing.php" hash="8cf8aac0bc2774d5fc0eb357fd8bc3a8"/><file name="Invoice.php" hash="c28d6b98b873eb06a4313e1897dd155c"/><file name="OnlineBankTransfer.php" hash="978aeaf0bbdf2b8195270bf28b96121a"/><file name="Wallet.php" hash="1acd28b33ca24d1a6c722aba93e0f555"/></dir><dir name="Protect"><file name="Addresscheck.php" hash="e3b32053df373f47149b32867f13d206"/><file name="Consumerscore.php" hash="e62d17873198b55f17c4bb972ab4c181"/></dir><file name="Root.php" hash="65fe84a867e02b4e5d1815bb3e94ce32"/><dir name="Shop"><file name="ClearingTypes.php" hash="c6e47d0111cc904934511b5ed61bf6f9"/><file name="Global.php" hash="1581cf13f893d3945b23f409d8e2e63e"/><file name="Misc.php" hash="44d94e706d6ebdb8bdfc00c1f74c5a4b"/><file name="Protect.php" hash="d6eed6842f793c958cfc7eb4fb861dd4"/><file name="System.php" hash="47f25a4ad05e1cf6793f4a0683de62e7"/></dir><file name="Shop.php" hash="fcde392839c80db0f28811b5178364a6"/></dir></dir><file name="Factory.php" hash="e41b108aa4efba5210946af4602df9e6"/><dir name="Service"><file name="XmlGenerate.php" hash="2e1a6ba48fce431bb13461f159ada6f4"/><file name="XmlParse.php" hash="987a9edf0ca8f2eebcab576ca9270df1"/></dir></dir><dir name="TransactionStatus"><file name="Config.php" hash="5fe7ae51f4e65c69865bc4d2ae48328c"/><dir name="Enum"><file name="Failedcause.php" hash="e34e7a82a5f6e28546ab2df09109d365"/><file name="Txaction.php" hash="236b5444a67fecb4b26c6adb4417d6df"/></dir><dir name="Exception"><file name="Abstract.php" hash="692c679943a816fc6f4a10b0b122622b"/><file name="MissmatchingKeys.php" hash="aa1233fd4e5c93ae8b2fe4ae363e3e0e"/><file name="NoPostRequest.php" hash="74880ee2ff1b64ade5b43477b02c506a"/><file name="NoRequestData.php" hash="1c40ced8301991ac183dba44608c83d6"/><file name="Validation.php" hash="e5e90db597db6f1df42b65990b1fd436"/></dir><file name="Factory.php" hash="cacd4d296964cb8a305eba713092798c"/><dir name="Mapper"><file name="Request.php" hash="a1a5b75af8ca58b239c0def3f93be3de"/><file name="RequestInterface.php" hash="d35a1966060b22cf0fb8c43a1ed3623f"/></dir><dir name="Persistence"><file name="Interface.php" hash="fbbf23001bb9f6ff2ef20cbe20addc66"/></dir><dir name="Request"><file name="Abstract.php" hash="dfeadc0e413f145747b08130831744c0"/><file name="Interface.php" hash="b25d42147a10d4a7dc5130dd544ca2f1"/></dir><file name="Request.php" hash="beb71a270ee91f71ef81fbbd61d0d705"/><dir name="Response"><file name="Abstract.php" hash="559a911ec0743a718dbccf3605500d53"/><file name="Interface.php" hash="1087ea1a0c70040daad6eac2014790e2"/></dir><file name="Response.php" hash="ef77f669ce7c928df87a2d063f6762e4"/><dir name="Service"><file name="HandleRequest.php" hash="49cb49d3d99139b87f3361cbf2562e75"/><dir name="ProtocolRequest"><file name="Interface.php" hash="7576d86a4061811d9d1508c9d26c7277"/></dir><file name="ProtocolRequest.php" hash="8c63848af7ab2447d9584d1c90535bae"/></dir><dir name="Validator"><file name="Abstract.php" hash="5bcdb714a62976fd9fa4970a5e8ad74e"/><file name="DefaultParameters.php" hash="c909180f13bd0e0484e4c903e497d2f0"/><file name="Interface.php" hash="f7408812ceeb45d38324d6b4c8b9634f"/><file name="Ip.php" hash="0b6c7f7b55edee5b4957b4e9c8d43a83"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="payone"><dir name="core"><file name="boxes.css" hash="1a9ef798278e1d1dcc3c8dd86eb8ddca"/><dir name="images"><file name="error_msg_icon.gif" hash="e4f28607f075a105e53fa3113d84bd26"/><file name="favicon.png" hash="d189cb860fcdd76fbf3c07627023eed9"/><file name="help.png" hash="c3812c74bc524179f4ccf5d2db7b3cbf"/><file name="icon_16.png" hash="2812a3406492773bdbc8308d22901964"/><file name="logoclaim.gif" hash="d71545ef09e2f10339654cda93d1cca2"/><file name="magento_general_global.png" hash="2341d0ffb0f7fd6fe6ebf53860f9197b"/><file name="money_add.png" hash="41e1f9224e9c35929cb54882dc9d4426"/></dir><file name="wizard.css" hash="c2be3f8f3b7012f015fcd76aceebe32b"/></dir><dir name="migrator"><dir name="images"><file name="ajax-loader.gif" hash="32dc1f5901143d36fbd7a6df3950819f"/><file name="failure.gif" hash="4d785bcecfbe716fa4d749d20738a8f0"/><file name="success.gif" hash="3f9b9025551da6963a9ecf8d184a204a"/></dir><file name="migration.css" hash="c27e9fc8fa891b5ae3ca7480ba90cb02"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="payone"><dir name="core"><file name="mandate.css" hash="246dc6bbdca6c0eda2972b5abcb2b24b"/></dir></dir></dir></dir></dir></target></contents>
38
  <compatible/>
39
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
40
  </package>
skin/frontend/default/default/payone/core/mandate.css ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ * NOTICE OF LICENSE
4
+ *
5
+ * This source file is subject to the GNU General Public License (GPL 3)
6
+ * that is bundled with this package in the file LICENSE.txt
7
+ *
8
+ * DISCLAIMER
9
+ *
10
+ * Do not edit or add to this file if you wish to upgrade Payone_Core to newer
11
+ * versions in the future. If you wish to customize Payone_Core for your
12
+ * needs please refer to http://www.payone.de for more information.
13
+ *
14
+ * @category Payone
15
+ * @package skin_adminhtml_default_default
16
+ * @subpackage payone_core
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ .mandate {
24
+ height: 200px;
25
+ padding: 10px;
26
+ border: 1px solid #ccc;
27
+ overflow-y: scroll;
28
+ margin: 20px 30px 0 30px;
29
+ text-align: justify;
30
+ background-color: white;
31
+ }
32
+
33
+ .mandatetext dt {
34
+ width: 250px;
35
+ float: left;
36
+ font-weight: normal;
37
+ }