Mage_Payone - Version 3.0.6

Version Notes

Mage_Payone-3.0.6

Download this release

Release Info

Developer Magento Core Team
Extension Mage_Payone
Version 3.0.6
Comparing to
See all releases


Version 3.0.6

Files changed (708) hide show
  1. app/code/community/Payone/Core/Block/Adminhtml/Configuration/Wizard/Config/Form.php +193 -0
  2. app/code/community/Payone/Core/Block/Adminhtml/Configuration/Wizard/Page/Edit.php +115 -0
  3. app/code/community/Payone/Core/Block/Adminhtml/Configuration/Wizard/Page/View.php +120 -0
  4. app/code/community/Payone/Core/Block/Adminhtml/Information.php +44 -0
  5. app/code/community/Payone/Core/Block/Adminhtml/Information/Abstract.php +47 -0
  6. app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api.php +47 -0
  7. app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/Grid.php +194 -0
  8. app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View.php +87 -0
  9. app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View/Plane.php +43 -0
  10. app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View/Tab/Exception.php +99 -0
  11. app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View/Tab/General.php +119 -0
  12. app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View/Tabs.php +46 -0
  13. app/code/community/Payone/Core/Block/Adminhtml/Protocol/TransactionStatus.php +48 -0
  14. app/code/community/Payone/Core/Block/Adminhtml/Protocol/TransactionStatus/Grid.php +244 -0
  15. app/code/community/Payone/Core/Block/Adminhtml/Protocol/TransactionStatus/View.php +134 -0
  16. app/code/community/Payone/Core/Block/Adminhtml/Protocol/TransactionStatus/View/Plane.php +40 -0
  17. app/code/community/Payone/Core/Block/Adminhtml/Protocol/TransactionStatus/View/Tab/General.php +88 -0
  18. app/code/community/Payone/Core/Block/Adminhtml/Protocol/TransactionStatus/View/Tabs.php +44 -0
  19. app/code/community/Payone/Core/Block/Adminhtml/Sales/Order.php +47 -0
  20. app/code/community/Payone/Core/Block/Adminhtml/Sales/Order/Create/Init.php +35 -0
  21. app/code/community/Payone/Core/Block/Adminhtml/Sales/Order/Grid.php +309 -0
  22. app/code/community/Payone/Core/Block/Adminhtml/Sales/Order/View/Tab/Api.php +257 -0
  23. app/code/community/Payone/Core/Block/Adminhtml/Sales/Order/View/Tab/Transaction.php +125 -0
  24. app/code/community/Payone/Core/Block/Adminhtml/Sales/Order/View/Tab/TransactionStatus.php +277 -0
  25. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field.php +66 -0
  26. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/Abstract.php +132 -0
  27. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/Forwarding.php +82 -0
  28. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/Info.php +71 -0
  29. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/PaymentFee.php +89 -0
  30. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/PersonStatusMapping.php +76 -0
  31. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Field/StatusMapping.php +80 -0
  32. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Payment.php +64 -0
  33. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Form/Payment/Method.php +192 -0
  34. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Hint.php +102 -0
  35. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Notice.php +99 -0
  36. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Payment.php +113 -0
  37. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Payment/Edit.php +155 -0
  38. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Payment/Grid.php +263 -0
  39. app/code/community/Payone/Core/Block/Adminhtml/System/Config/Tooltip.php +206 -0
  40. app/code/community/Payone/Core/Block/Adminhtml/Transaction.php +48 -0
  41. app/code/community/Payone/Core/Block/Adminhtml/Transaction/Grid.php +232 -0
  42. app/code/community/Payone/Core/Block/Adminhtml/Transaction/View.php +109 -0
  43. app/code/community/Payone/Core/Block/Adminhtml/Transaction/View/Plane.php +43 -0
  44. app/code/community/Payone/Core/Block/Adminhtml/Transaction/View/Tab/General.php +97 -0
  45. app/code/community/Payone/Core/Block/Adminhtml/Transaction/View/Tab/TransactionStatus.php +290 -0
  46. app/code/community/Payone/Core/Block/Adminhtml/Transaction/View/Tabs.php +45 -0
  47. app/code/community/Payone/Core/Block/Adminhtml/Widget/Grid/Column/Renderer/Datetime.php +54 -0
  48. app/code/community/Payone/Core/Block/Adminhtml/Widget/Grid/Column/Renderer/UnixTimestamp.php +52 -0
  49. app/code/community/Payone/Core/Block/Adminhtml/Widget/Grid/Container.php +39 -0
  50. app/code/community/Payone/Core/Block/Adminhtml/Widget/View/Container.php +39 -0
  51. app/code/community/Payone/Core/Block/Checkout/Onepage/Payment/Additional.php +111 -0
  52. app/code/community/Payone/Core/Block/Checkout/Onepage/Payment/Methods.php +145 -0
  53. app/code/community/Payone/Core/Block/Payment/Method/Form/Abstract.php +262 -0
  54. app/code/community/Payone/Core/Block/Payment/Method/Form/AdvancePayment.php +41 -0
  55. app/code/community/Payone/Core/Block/Payment/Method/Form/CashOnDelivery.php +41 -0
  56. app/code/community/Payone/Core/Block/Payment/Method/Form/Creditcard.php +243 -0
  57. app/code/community/Payone/Core/Block/Payment/Method/Form/DebitPayment.php +59 -0
  58. app/code/community/Payone/Core/Block/Payment/Method/Form/Invoice.php +41 -0
  59. app/code/community/Payone/Core/Block/Payment/Method/Form/OnlineBankTransfer.php +99 -0
  60. app/code/community/Payone/Core/Block/Payment/Method/Form/Wallet.php +61 -0
  61. app/code/community/Payone/Core/Block/Payment/Method/Info/Abstract.php +112 -0
  62. app/code/community/Payone/Core/Block/Payment/Method/Info/AdvancePayment.php +106 -0
  63. app/code/community/Payone/Core/Block/Payment/Method/Info/CashOnDelivery.php +106 -0
  64. app/code/community/Payone/Core/Block/Payment/Method/Info/Creditcard.php +84 -0
  65. app/code/community/Payone/Core/Block/Payment/Method/Info/DebitPayment.php +67 -0
  66. app/code/community/Payone/Core/Block/Payment/Method/Info/Invoice.php +106 -0
  67. app/code/community/Payone/Core/Block/Payment/Method/Info/OnlineBankTransfer.php +68 -0
  68. app/code/community/Payone/Core/Block/Payment/Method/Info/Wallet.php +42 -0
  69. app/code/community/Payone/Core/Controller/Abstract.php +78 -0
  70. app/code/community/Payone/Core/Controller/Adminhtml/Abstract.php +72 -0
  71. app/code/community/Payone/Core/Controller/Adminhtml/Configuration/Wizard/Abstract.php +77 -0
  72. app/code/community/Payone/Core/Exception/InvalidRequestType.php +36 -0
  73. app/code/community/Payone/Core/Exception/InvoicePreparationNoItems.php +36 -0
  74. app/code/community/Payone/Core/Exception/InvoiceSave.php +36 -0
  75. app/code/community/Payone/Core/Exception/OrderCannotInvoice.php +36 -0
  76. app/code/community/Payone/Core/Exception/OrderNotFound.php +36 -0
  77. app/code/community/Payone/Core/Exception/PaymentMethodConfigNotFound.php +35 -0
  78. app/code/community/Payone/Core/Exception/PaymentTypeNotFound.php +43 -0
  79. app/code/community/Payone/Core/Exception/TransactionAlreadyExists.php +36 -0
  80. app/code/community/Payone/Core/Exception/TransactionStatusForward.php +36 -0
  81. app/code/community/Payone/Core/Helper/Abstract.php +78 -0
  82. app/code/community/Payone/Core/Helper/Config.php +229 -0
  83. app/code/community/Payone/Core/Helper/Data.php +213 -0
  84. app/code/community/Payone/Core/Helper/Email.php +173 -0
  85. app/code/community/Payone/Core/Helper/Sales/Button.php +100 -0
  86. app/code/community/Payone/Core/Helper/Url.php +77 -0
  87. app/code/community/Payone/Core/Helper/Wizard.php +235 -0
  88. app/code/community/Payone/Core/Model/Config.php +137 -0
  89. app/code/community/Payone/Core/Model/Config/AreaAbstract.php +108 -0
  90. app/code/community/Payone/Core/Model/Config/AreaInterface.php +57 -0
  91. app/code/community/Payone/Core/Model/Config/General.php +136 -0
  92. app/code/community/Payone/Core/Model/Config/General/Global.php +206 -0
  93. app/code/community/Payone/Core/Model/Config/General/ParameterInvoice.php +94 -0
  94. app/code/community/Payone/Core/Model/Config/General/ParameterNarrativeText.php +76 -0
  95. app/code/community/Payone/Core/Model/Config/General/PaymentCreditcard.php +55 -0
  96. app/code/community/Payone/Core/Model/Config/General/StatusMapping.php +243 -0
  97. app/code/community/Payone/Core/Model/Config/Interface.php +85 -0
  98. app/code/community/Payone/Core/Model/Config/Misc.php +135 -0
  99. app/code/community/Payone/Core/Model/Config/Misc/Email/Abstract.php +148 -0
  100. app/code/community/Payone/Core/Model/Config/Misc/Email/Interface.php +89 -0
  101. app/code/community/Payone/Core/Model/Config/Misc/EmailAvs.php +70 -0
  102. app/code/community/Payone/Core/Model/Config/Misc/EmailError.php +36 -0
  103. app/code/community/Payone/Core/Model/Config/Misc/ShippingCosts.php +55 -0
  104. app/code/community/Payone/Core/Model/Config/Misc/TransactionstatusForwarding.php +179 -0
  105. app/code/community/Payone/Core/Model/Config/Misc/TransactionstatusProcessing.php +104 -0
  106. app/code/community/Payone/Core/Model/Config/Payment.php +244 -0
  107. app/code/community/Payone/Core/Model/Config/Payment/Method.php +733 -0
  108. app/code/community/Payone/Core/Model/Config/Payment/Method/Interface.php +352 -0
  109. app/code/community/Payone/Core/Model/Config/Protect.php +75 -0
  110. app/code/community/Payone/Core/Model/Config/Protect/AddressCheck.php +363 -0
  111. app/code/community/Payone/Core/Model/Config/Protect/Creditrating.php +509 -0
  112. app/code/community/Payone/Core/Model/Cronjob/Abstract.php +62 -0
  113. app/code/community/Payone/Core/Model/Cronjob/TransactionStatus/Worker.php +52 -0
  114. app/code/community/Payone/Core/Model/Domain/Config/PaymentMethod.php +494 -0
  115. app/code/community/Payone/Core/Model/Domain/Protocol/Api.php +134 -0
  116. app/code/community/Payone/Core/Model/Domain/Protocol/TransactionStatus.php +292 -0
  117. app/code/community/Payone/Core/Model/Domain/Resource/Config/PaymentMethod.php +44 -0
  118. app/code/community/Payone/Core/Model/Domain/Resource/Config/PaymentMethod/Collection.php +194 -0
  119. app/code/community/Payone/Core/Model/Domain/Resource/Protocol/Api.php +44 -0
  120. app/code/community/Payone/Core/Model/Domain/Resource/Protocol/Api/Collection.php +53 -0
  121. app/code/community/Payone/Core/Model/Domain/Resource/Protocol/TransactionStatus.php +44 -0
  122. app/code/community/Payone/Core/Model/Domain/Resource/Protocol/TransactionStatus/Collection.php +84 -0
  123. app/code/community/Payone/Core/Model/Domain/Resource/Transaction.php +44 -0
  124. app/code/community/Payone/Core/Model/Domain/Resource/Transaction/Collection.php +44 -0
  125. app/code/community/Payone/Core/Model/Domain/Transaction.php +139 -0
  126. app/code/community/Payone/Core/Model/Factory.php +1353 -0
  127. app/code/community/Payone/Core/Model/Handler/Abstract.php +106 -0
  128. app/code/community/Payone/Core/Model/Handler/Interface.php +61 -0
  129. app/code/community/Payone/Core/Model/Handler/Management/GetInvoice.php +50 -0
  130. app/code/community/Payone/Core/Model/Handler/Payment/Abstract.php +352 -0
  131. app/code/community/Payone/Core/Model/Handler/Payment/Authorize.php +38 -0
  132. app/code/community/Payone/Core/Model/Handler/Payment/Capture.php +38 -0
  133. app/code/community/Payone/Core/Model/Handler/Payment/Debit.php +62 -0
  134. app/code/community/Payone/Core/Model/Handler/Payment/Interface.php +40 -0
  135. app/code/community/Payone/Core/Model/Handler/Payment/Preauthorize.php +38 -0
  136. app/code/community/Payone/Core/Model/Handler/Verification/Abstract.php +128 -0
  137. app/code/community/Payone/Core/Model/Handler/Verification/AddressCheck.php +217 -0
  138. app/code/community/Payone/Core/Model/Handler/Verification/Creditrating.php +213 -0
  139. app/code/community/Payone/Core/Model/Handler/Verification/Interface.php +36 -0
  140. app/code/community/Payone/Core/Model/Mapper/Abstract.php +123 -0
  141. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Abstract.php +37 -0
  142. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Management/GetInvoice.php +71 -0
  143. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Abstract.php +334 -0
  144. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Authorize.php +50 -0
  145. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Authorize/Abstract.php +387 -0
  146. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Capture.php +175 -0
  147. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Debit.php +210 -0
  148. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Interface.php +62 -0
  149. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Preauthorize.php +44 -0
  150. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/Abstract.php +55 -0
  151. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/AddressCheck.php +112 -0
  152. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/BankAccountCheck.php +96 -0
  153. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Verification/Creditrating.php +109 -0
  154. app/code/community/Payone/Core/Model/Observer/Abstract.php +102 -0
  155. app/code/community/Payone/Core/Model/Observer/Checkout/Onepage.php +233 -0
  156. app/code/community/Payone/Core/Model/Observer/Checkout/Onepage/Payment/Methods.php +138 -0
  157. app/code/community/Payone/Core/Model/Observer/Protocol/Api.php +62 -0
  158. app/code/community/Payone/Core/Model/Observer/Sales/Order.php +65 -0
  159. app/code/community/Payone/Core/Model/Observer/Sales/Order/Invoice.php +58 -0
  160. app/code/community/Payone/Core/Model/Observer/Sales/Quote/Address.php +91 -0
  161. app/code/community/Payone/Core/Model/Observer/Sales/Quote/Payment.php +61 -0
  162. app/code/community/Payone/Core/Model/Observer/TransactionStatus/Forwarding.php +109 -0
  163. app/code/community/Payone/Core/Model/Observer/TransactionStatus/InvoiceCreate.php +186 -0
  164. app/code/community/Payone/Core/Model/Observer/TransactionStatus/Reminder.php +53 -0
  165. app/code/community/Payone/Core/Model/Payment/Method/Abstract.php +401 -0
  166. app/code/community/Payone/Core/Model/Payment/Method/AdvancePayment.php +44 -0
  167. app/code/community/Payone/Core/Model/Payment/Method/CashOnDelivery.php +44 -0
  168. app/code/community/Payone/Core/Model/Payment/Method/Creditcard.php +64 -0
  169. app/code/community/Payone/Core/Model/Payment/Method/DebitPayment.php +44 -0
  170. app/code/community/Payone/Core/Model/Payment/Method/Invoice.php +44 -0
  171. app/code/community/Payone/Core/Model/Payment/Method/OnlineBankTransfer.php +65 -0
  172. app/code/community/Payone/Core/Model/Payment/Method/Wallet.php +64 -0
  173. app/code/community/Payone/Core/Model/Repository/Api.php +122 -0
  174. app/code/community/Payone/Core/Model/Repository/TransactionStatus.php +88 -0
  175. app/code/community/Payone/Core/Model/Sales/Quote/Address.php +149 -0
  176. app/code/community/Payone/Core/Model/Sales/Quote/Address/Total/Fee.php +106 -0
  177. app/code/community/Payone/Core/Model/Service/Abstract.php +99 -0
  178. app/code/community/Payone/Core/Model/Service/Config/XmlGenerate.php +387 -0
  179. app/code/community/Payone/Core/Model/Service/Export/Collection.php +97 -0
  180. app/code/community/Payone/Core/Model/Service/InitializeConfig.php +336 -0
  181. app/code/community/Payone/Core/Model/Service/InitializePayment.php +97 -0
  182. app/code/community/Payone/Core/Model/Service/Management/GetInvoice.php +117 -0
  183. app/code/community/Payone/Core/Model/Service/Payment/Abstract.php +155 -0
  184. app/code/community/Payone/Core/Model/Service/Payment/Authorize.php +73 -0
  185. app/code/community/Payone/Core/Model/Service/Payment/Capture.php +72 -0
  186. app/code/community/Payone/Core/Model/Service/Payment/Debit.php +72 -0
  187. app/code/community/Payone/Core/Model/Service/Payment/Interface.php +41 -0
  188. app/code/community/Payone/Core/Model/Service/Payment/Preauthorize.php +73 -0
  189. app/code/community/Payone/Core/Model/Service/Protocol/Api/Export.php +50 -0
  190. app/code/community/Payone/Core/Model/Service/Protocol/TransactionStatus/Export.php +73 -0
  191. app/code/community/Payone/Core/Model/Service/Sales/InvoiceCreate.php +120 -0
  192. app/code/community/Payone/Core/Model/Service/Sales/OrderComment.php +143 -0
  193. app/code/community/Payone/Core/Model/Service/Sales/OrderStatus.php +79 -0
  194. app/code/community/Payone/Core/Model/Service/Transaction/Create.php +77 -0
  195. app/code/community/Payone/Core/Model/Service/Transaction/Update.php +76 -0
  196. app/code/community/Payone/Core/Model/Service/TransactionStatus/Execute.php +157 -0
  197. app/code/community/Payone/Core/Model/Service/TransactionStatus/Forward.php +203 -0
  198. app/code/community/Payone/Core/Model/Service/TransactionStatus/Process.php +160 -0
  199. app/code/community/Payone/Core/Model/Service/Verification/Abstract.php +121 -0
  200. app/code/community/Payone/Core/Model/Service/Verification/AddressCheck.php +143 -0
  201. app/code/community/Payone/Core/Model/Service/Verification/BankAccountCheck.php +153 -0
  202. app/code/community/Payone/Core/Model/Service/Verification/Creditrating.php +211 -0
  203. app/code/community/Payone/Core/Model/System/Config/Abstract.php +75 -0
  204. app/code/community/Payone/Core/Model/System/Config/AddressCheckType.php +43 -0
  205. app/code/community/Payone/Core/Model/System/Config/AuthorizeMethod.php +48 -0
  206. app/code/community/Payone/Core/Model/System/Config/AvsResult.php +44 -0
  207. app/code/community/Payone/Core/Model/System/Config/Backend/Protect.php +63 -0
  208. app/code/community/Payone/Core/Model/System/Config/BankaccountcheckType.php +44 -0
  209. app/code/community/Payone/Core/Model/System/Config/ClearingType.php +45 -0
  210. app/code/community/Payone/Core/Model/System/Config/CreditCardType.php +44 -0
  211. app/code/community/Payone/Core/Model/System/Config/CreditScore.php +43 -0
  212. app/code/community/Payone/Core/Model/System/Config/CreditratingChecktype.php +44 -0
  213. app/code/community/Payone/Core/Model/System/Config/CreditratingIntegrationEvent.php +50 -0
  214. app/code/community/Payone/Core/Model/System/Config/HandleResponseError.php +51 -0
  215. app/code/community/Payone/Core/Model/System/Config/MethodType.php +94 -0
  216. app/code/community/Payone/Core/Model/System/Config/Mode.php +44 -0
  217. app/code/community/Payone/Core/Model/System/Config/OnlinebanktransferType.php +43 -0
  218. app/code/community/Payone/Core/Model/System/Config/PaymentMethodCode.php +60 -0
  219. app/code/community/Payone/Core/Model/System/Config/PaymentMethodType.php +58 -0
  220. app/code/community/Payone/Core/Model/System/Config/PersonStatus.php +44 -0
  221. app/code/community/Payone/Core/Model/System/Config/ReminderLevel.php +45 -0
  222. app/code/community/Payone/Core/Model/System/Config/RequestType.php +43 -0
  223. app/code/community/Payone/Core/Model/System/Config/ResponseType.php +51 -0
  224. app/code/community/Payone/Core/Model/System/Config/Status.php +48 -0
  225. app/code/community/Payone/Core/Model/System/Config/StatusTransaction.php +51 -0
  226. app/code/community/Payone/Core/Model/System/Config/TransactionStatus.php +43 -0
  227. app/code/community/Payone/Core/Model/System/Config/WalletType.php +43 -0
  228. app/code/community/Payone/Core/controllers/Adminhtml/Configuration/Wizard/Page/PaymentController.php +63 -0
  229. app/code/community/Payone/Core/controllers/Adminhtml/Configuration/Wizard/PageController.php +152 -0
  230. app/code/community/Payone/Core/controllers/Adminhtml/Configuration/WizardController.php +42 -0
  231. app/code/community/Payone/Core/controllers/Adminhtml/InformationController.php +43 -0
  232. app/code/community/Payone/Core/controllers/Adminhtml/Protocol/ApiController.php +149 -0
  233. app/code/community/Payone/Core/controllers/Adminhtml/Protocol/TransactionStatusController.php +150 -0
  234. app/code/community/Payone/Core/controllers/Adminhtml/Sales/Order/InvoiceController.php +78 -0
  235. app/code/community/Payone/Core/controllers/Adminhtml/Sales/OrderController.php +114 -0
  236. app/code/community/Payone/Core/controllers/Adminhtml/System/Config/PaymentController.php +205 -0
  237. app/code/community/Payone/Core/controllers/Adminhtml/System/ConfigurationController.php +102 -0
  238. app/code/community/Payone/Core/controllers/Adminhtml/TransactionController.php +128 -0
  239. app/code/community/Payone/Core/controllers/Checkout/Onepage/PaymentController.php +209 -0
  240. app/code/community/Payone/Core/controllers/Checkout/OnepageController.php +123 -0
  241. app/code/community/Payone/Core/controllers/TransactionStatusController.php +105 -0
  242. app/code/community/Payone/Core/etc/adminhtml.xml +241 -0
  243. app/code/community/Payone/Core/etc/config.xml +529 -0
  244. app/code/community/Payone/Core/etc/system.xml +1313 -0
  245. app/code/community/Payone/Core/sql/payone_core_setup/install-3.0.0.sql +217 -0
  246. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-install-3.0.0.php +1062 -0
  247. app/code/community/Payone/Core/sql/payone_core_setup/mysql4-upgrade-3.0.3-3.0.4.php +49 -0
  248. app/code/community/Payone/Migrator/Controller/Adminhtml/Abstract.php +64 -0
  249. app/code/community/Payone/Migrator/Helper/Config.php +164 -0
  250. app/code/community/Payone/Migrator/Helper/Data.php +143 -0
  251. app/code/community/Payone/Migrator/Model/Factory.php +179 -0
  252. app/code/community/Payone/Migrator/Model/Mapper/Abstract.php +81 -0
  253. app/code/community/Payone/Migrator/Model/Mapper/Config/General.php +101 -0
  254. app/code/community/Payone/Migrator/Model/Mapper/Config/Payment.php +135 -0
  255. app/code/community/Payone/Migrator/Model/Mapper/Config/Protect.php +201 -0
  256. app/code/community/Payone/Migrator/Model/Service/Abstract.php +117 -0
  257. app/code/community/Payone/Migrator/Model/Service/Configuration/GeneralMigrate.php +114 -0
  258. app/code/community/Payone/Migrator/Model/Service/Configuration/PaymentMigrate.php +256 -0
  259. app/code/community/Payone/Migrator/Model/Service/Configuration/ProtectMigrate.php +114 -0
  260. app/code/community/Payone/Migrator/Model/Service/Migrate.php +202 -0
  261. app/code/community/Payone/Migrator/Model/Service/Sales/PaymentMigrate.php +235 -0
  262. app/code/community/Payone/Migrator/controllers/Adminhtml/MigrationController.php +87 -0
  263. app/code/community/Payone/Migrator/controllers/Adminhtml/Wizard/MigrationController.php +64 -0
  264. app/code/community/Payone/Migrator/etc/config.xml +99 -0
  265. app/design/adminhtml/default/default/layout/payone/configuration.xml +184 -0
  266. app/design/adminhtml/default/default/layout/payone/core.xml +117 -0
  267. app/design/adminhtml/default/default/layout/payone/migrator.xml +52 -0
  268. app/design/adminhtml/default/default/layout/payone/transaction.xml +122 -0
  269. app/design/adminhtml/default/default/template/payone/core/client_api.phtml +24 -0
  270. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/iframe.phtml +64 -0
  271. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/index.phtml +87 -0
  272. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/page/finish.phtml +39 -0
  273. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/page/form/container.phtml +39 -0
  274. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/page/index.phtml +40 -0
  275. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/page/payment/grid/container.phtml +36 -0
  276. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/page/store_switcher.phtml +41 -0
  277. app/design/adminhtml/default/default/template/payone/core/configuration/wizard/page/view/container.phtml +42 -0
  278. app/design/adminhtml/default/default/template/payone/core/iframe.phtml +64 -0
  279. app/design/adminhtml/default/default/template/payone/core/information/iframe.phtml +33 -0
  280. app/design/adminhtml/default/default/template/payone/core/payment/method/form/advancepayment.phtml +33 -0
  281. app/design/adminhtml/default/default/template/payone/core/payment/method/form/cashondelivery.phtml +33 -0
  282. app/design/adminhtml/default/default/template/payone/core/payment/method/form/creditcard.phtml +106 -0
  283. app/design/adminhtml/default/default/template/payone/core/payment/method/form/debitpayment.phtml +75 -0
  284. app/design/adminhtml/default/default/template/payone/core/payment/method/form/invoice.phtml +34 -0
  285. app/design/adminhtml/default/default/template/payone/core/payment/method/info/advancepayment.phtml +43 -0
  286. app/design/adminhtml/default/default/template/payone/core/payment/method/info/cashondelivery.phtml +42 -0
  287. app/design/adminhtml/default/default/template/payone/core/payment/method/info/creditcard.phtml +44 -0
  288. app/design/adminhtml/default/default/template/payone/core/payment/method/info/debitpayment.phtml +38 -0
  289. app/design/adminhtml/default/default/template/payone/core/payment/method/info/invoice.phtml +42 -0
  290. app/design/adminhtml/default/default/template/payone/core/payment/method/info/onlinebanktransfer.phtml +38 -0
  291. app/design/adminhtml/default/default/template/payone/core/payment/method/info/wallet.phtml +33 -0
  292. app/design/adminhtml/default/default/template/payone/core/protocol/api/view/plane.phtml +24 -0
  293. app/design/adminhtml/default/default/template/payone/core/protocol/api/view/tab/exception.phtml +43 -0
  294. app/design/adminhtml/default/default/template/payone/core/protocol/api/view/tab/general.phtml +166 -0
  295. app/design/adminhtml/default/default/template/payone/core/protocol/transactionstatus/view/plane.phtml +24 -0
  296. app/design/adminhtml/default/default/template/payone/core/protocol/transactionstatus/view/tab/general.phtml +124 -0
  297. app/design/adminhtml/default/default/template/payone/core/sales/order/create/init.phtml +61 -0
  298. app/design/adminhtml/default/default/template/payone/core/sales/order/view/tab/transaction.phtml +278 -0
  299. app/design/adminhtml/default/default/template/payone/core/system/config/form/field/array.phtml +179 -0
  300. app/design/adminhtml/default/default/template/payone/core/system/config/form/iframe.phtml +33 -0
  301. app/design/adminhtml/default/default/template/payone/core/system/config/hint/payment.phtml +69 -0
  302. app/design/adminhtml/default/default/template/payone/core/system/config/hint/payment_reference.phtml +40 -0
  303. app/design/adminhtml/default/default/template/payone/core/system/config/hint/protect.phtml +46 -0
  304. app/design/adminhtml/default/default/template/payone/core/system/config/payment/grid/container.phtml +40 -0
  305. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip.phtml +44 -0
  306. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/general/global.phtml +69 -0
  307. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/general/narrative_text.phtml +37 -0
  308. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/general/parameter_invoice.phtml +85 -0
  309. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/general/payment_creditcard.phtml +32 -0
  310. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/general/status_mapping.phtml +60 -0
  311. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/misc/email_avs.phtml +72 -0
  312. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/misc/email_error.phtml +56 -0
  313. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/misc/shipping_costs.phtml +28 -0
  314. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/misc/transaction_status_forwarding.phtml +32 -0
  315. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/misc/transactionstatus_forwarding.phtml +54 -0
  316. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/misc/transactionstatus_processing.phtml +46 -0
  317. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/payment/creditcard.phtml +46 -0
  318. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/payment/debit_payment.phtml +39 -0
  319. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/payment/method.phtml +127 -0
  320. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/payment/online_bank_transfer.phtml +37 -0
  321. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/payment/wallet.phtml +29 -0
  322. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/protect/addresscheck.phtml +155 -0
  323. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/protect/addresscheck_type.phtml +32 -0
  324. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/protect/creditrating.phtml +148 -0
  325. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/protect/creditrating_lifetime.phtml +28 -0
  326. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/protect/creditrating_type.phtml +45 -0
  327. app/design/adminhtml/default/default/template/payone/core/system/config/tooltip/window.phtml +63 -0
  328. app/design/adminhtml/default/default/template/payone/core/transaction/view/plane.phtml +24 -0
  329. app/design/adminhtml/default/default/template/payone/core/transaction/view/tab/general.phtml +286 -0
  330. app/design/adminhtml/default/default/template/payone/core/widget/form/container.phtml +41 -0
  331. app/design/adminhtml/default/default/template/payone/core/widget/view/container.phtml +34 -0
  332. app/design/adminhtml/default/default/template/payone/migrator/migration/index.phtml +67 -0
  333. app/design/frontend/base/default/layout/payone/core.xml +50 -0
  334. app/design/frontend/base/default/template/payone/core/checkout/onepage/init.phtml +34 -0
  335. app/design/frontend/base/default/template/payone/core/checkout/onepage/payment/additional.phtml +48 -0
  336. app/design/frontend/base/default/template/payone/core/checkout/protect.phtml +40 -0
  337. app/design/frontend/base/default/template/payone/core/client_api.phtml +24 -0
  338. app/design/frontend/base/default/template/payone/core/payment/method/form/advancepayment.phtml +34 -0
  339. app/design/frontend/base/default/template/payone/core/payment/method/form/cashondelivery.phtml +34 -0
  340. app/design/frontend/base/default/template/payone/core/payment/method/form/creditcard.phtml +132 -0
  341. app/design/frontend/base/default/template/payone/core/payment/method/form/debitpayment.phtml +76 -0
  342. app/design/frontend/base/default/template/payone/core/payment/method/form/invoice.phtml +34 -0
  343. app/design/frontend/base/default/template/payone/core/payment/method/form/onlinebanktransfer.phtml +95 -0
  344. app/design/frontend/base/default/template/payone/core/payment/method/form/onlinebanktransfer/bankgroup.phtml +79 -0
  345. app/design/frontend/base/default/template/payone/core/payment/method/form/wallet.phtml +75 -0
  346. app/design/frontend/base/default/template/payone/core/payment/method/info/advancepayment.phtml +43 -0
  347. app/design/frontend/base/default/template/payone/core/payment/method/info/cashondelivery.phtml +42 -0
  348. app/design/frontend/base/default/template/payone/core/payment/method/info/creditcard.phtml +44 -0
  349. app/design/frontend/base/default/template/payone/core/payment/method/info/debitpayment.phtml +38 -0
  350. app/design/frontend/base/default/template/payone/core/payment/method/info/invoice.phtml +42 -0
  351. app/design/frontend/base/default/template/payone/core/payment/method/info/onlinebanktransfer.phtml +38 -0
  352. app/design/frontend/base/default/template/payone/core/payment/method/info/wallet.phtml +33 -0
  353. app/etc/modules/Payone_Core.xml +31 -0
  354. app/etc/modules/Payone_Migrator.xml +31 -0
  355. app/locale/de_DE/Payone_Core.csv +422 -0
  356. app/locale/de_DE/template/email/payone/core/avs_template.phtml +11 -0
  357. app/locale/de_DE/template/email/payone/core/error_template.phtml +4 -0
  358. app/locale/en_US/Payone_Core.csv +18 -0
  359. app/locale/en_US/template/email/payone/core/avs_template.phtml +11 -0
  360. app/locale/en_US/template/email/payone/core/error_template.phtml +4 -0
  361. js/payone/core/addresscheck.js +83 -0
  362. js/payone/core/client_api.js +96 -0
  363. js/payone/core/creditcard.js +327 -0
  364. js/payone/core/onlinebanktransfer.js +43 -0
  365. js/payone/core/wallet.js +34 -0
  366. js/payone/migrator/migration.js +90 -0
  367. js/prototype/windows/themes/payone.css +70 -0
  368. js/prototype/windows/themes/payone/btn_bg.gif +0 -0
  369. js/prototype/windows/themes/payone/content_bg.gif +0 -0
  370. js/prototype/windows/themes/payone/logoclaim.gif +0 -0
  371. js/prototype/windows/themes/payone/top_bg.gif +0 -0
  372. js/prototype/windows/themes/payone/window_close.png +0 -0
  373. lib/Payone/Api/Adapter/Http/Abstract.php +183 -0
  374. lib/Payone/Api/Adapter/Http/Curl.php +76 -0
  375. lib/Payone/Api/Adapter/Http/Socket.php +112 -0
  376. lib/Payone/Api/Adapter/Interface.php +59 -0
  377. lib/Payone/Api/Config.php +34 -0
  378. lib/Payone/Api/Enum/AddressCheckDivergence.php +39 -0
  379. lib/Payone/Api/Enum/AddressCheckPersonstatus.php +43 -0
  380. lib/Payone/Api/Enum/AddressCheckScore.php +38 -0
  381. lib/Payone/Api/Enum/AddressCheckSecstatus.php +38 -0
  382. lib/Payone/Api/Enum/AddressCheckType.php +38 -0
  383. lib/Payone/Api/Enum/AvsResult.php +40 -0
  384. lib/Payone/Api/Enum/BankaccountCheckType.php +37 -0
  385. lib/Payone/Api/Enum/ConsumerscoreScore.php +41 -0
  386. lib/Payone/Api/Enum/ConsumerscoreType.php +38 -0
  387. lib/Payone/Api/Enum/CreditcardType.php +53 -0
  388. lib/Payone/Api/Enum/DebitTransactionType.php +42 -0
  389. lib/Payone/Api/Enum/Ecommercemode.php +38 -0
  390. lib/Payone/Api/Enum/InvoiceDeliverymode.php +38 -0
  391. lib/Payone/Api/Enum/OnlinebanktransferType.php +42 -0
  392. lib/Payone/Api/Enum/RequestType.php +46 -0
  393. lib/Payone/Api/Enum/ResponseType.php +42 -0
  394. lib/Payone/Api/Enum/Settleaccount.php +38 -0
  395. lib/Payone/Api/Enum/Shippingprovider.php +37 -0
  396. lib/Payone/Api/Enum/Storecarddata.php +37 -0
  397. lib/Payone/Api/Enum/UseCustomerdata.php +37 -0
  398. lib/Payone/Api/Enum/WalletType.php +36 -0
  399. lib/Payone/Api/Exception/Abstract.php +36 -0
  400. lib/Payone/Api/Exception/InvalidParameters.php +36 -0
  401. lib/Payone/Api/Exception/InvalidResponse.php +36 -0
  402. lib/Payone/Api/Exception/InvalidUrl.php +36 -0
  403. lib/Payone/Api/Exception/MappingNotFound.php +36 -0
  404. lib/Payone/Api/Exception/Payone.php +36 -0
  405. lib/Payone/Api/Exception/Request/InvalidKey.php +36 -0
  406. lib/Payone/Api/Exception/Request/InvalidMid.php +36 -0
  407. lib/Payone/Api/Exception/Request/InvalidMode.php +36 -0
  408. lib/Payone/Api/Exception/Request/InvalidPortalid.php +36 -0
  409. lib/Payone/Api/Exception/Timeout.php +36 -0
  410. lib/Payone/Api/Exception/UnknownStatus.php +36 -0
  411. lib/Payone/Api/Exception/WritingRequestToServer.php +36 -0
  412. lib/Payone/Api/Factory.php +404 -0
  413. lib/Payone/Api/Mapper/Abstract.php +35 -0
  414. lib/Payone/Api/Mapper/Currency.php +308 -0
  415. lib/Payone/Api/Mapper/Currency/Interface.php +60 -0
  416. lib/Payone/Api/Mapper/Request/Abstract.php +56 -0
  417. lib/Payone/Api/Mapper/Request/Interface.php +41 -0
  418. lib/Payone/Api/Mapper/Request/Payment/Abstract.php +80 -0
  419. lib/Payone/Api/Mapper/Request/Payment/Authorization.php +46 -0
  420. lib/Payone/Api/Mapper/Request/Payment/Capture.php +46 -0
  421. lib/Payone/Api/Mapper/Request/Payment/Debit.php +46 -0
  422. lib/Payone/Api/Mapper/Request/Payment/Preauthorization.php +45 -0
  423. lib/Payone/Api/Mapper/Request/Payment/Refund.php +46 -0
  424. lib/Payone/Api/Mapper/Response/3dsCheck.php +65 -0
  425. lib/Payone/Api/Mapper/Response/Abstract.php +155 -0
  426. lib/Payone/Api/Mapper/Response/AddressCheck.php +62 -0
  427. lib/Payone/Api/Mapper/Response/Authorization.php +63 -0
  428. lib/Payone/Api/Mapper/Response/BankAccountCheck.php +66 -0
  429. lib/Payone/Api/Mapper/Response/Capture.php +61 -0
  430. lib/Payone/Api/Mapper/Response/Consumerscore.php +63 -0
  431. lib/Payone/Api/Mapper/Response/CreditCardCheck.php +63 -0
  432. lib/Payone/Api/Mapper/Response/Debit.php +60 -0
  433. lib/Payone/Api/Mapper/Response/GetInvoice.php +64 -0
  434. lib/Payone/Api/Mapper/Response/Interface.php +42 -0
  435. lib/Payone/Api/Mapper/Response/Preauthorization.php +63 -0
  436. lib/Payone/Api/Mapper/Response/Refund.php +61 -0
  437. lib/Payone/Api/Mapper/currency.properties +890 -0
  438. lib/Payone/Api/Persistence/Interface.php +58 -0
  439. lib/Payone/Api/Request/3dsCheck.php +257 -0
  440. lib/Payone/Api/Request/Abstract.php +414 -0
  441. lib/Payone/Api/Request/AddressCheck.php +317 -0
  442. lib/Payone/Api/Request/Authorization.php +58 -0
  443. lib/Payone/Api/Request/Authorization/Abstract.php +293 -0
  444. lib/Payone/Api/Request/BankAccountCheck.php +157 -0
  445. lib/Payone/Api/Request/Capture.php +158 -0
  446. lib/Payone/Api/Request/Consumerscore.php +337 -0
  447. lib/Payone/Api/Request/CreditCardCheck.php +197 -0
  448. lib/Payone/Api/Request/Debit.php +218 -0
  449. lib/Payone/Api/Request/GetInvoice.php +57 -0
  450. lib/Payone/Api/Request/Interface.php +164 -0
  451. lib/Payone/Api/Request/Parameter/Abstract.php +122 -0
  452. lib/Payone/Api/Request/Parameter/Authorization/3dsecure.php +96 -0
  453. lib/Payone/Api/Request/Parameter/Authorization/Abstract.php +40 -0
  454. lib/Payone/Api/Request/Parameter/Authorization/Business.php +102 -0
  455. lib/Payone/Api/Request/Parameter/Authorization/DeliveryData.php +201 -0
  456. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Abstract.php +40 -0
  457. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CashOnDelivery.php +56 -0
  458. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CreditCard.php +256 -0
  459. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/DebitPayment.php +116 -0
  460. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/OnlineBankTransfer.php +196 -0
  461. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Wallet.php +116 -0
  462. lib/Payone/Api/Request/Parameter/Authorization/PersonalData.php +299 -0
  463. lib/Payone/Api/Request/Parameter/Capture/Business.php +71 -0
  464. lib/Payone/Api/Request/Parameter/Debit/Abstract.php +37 -0
  465. lib/Payone/Api/Request/Parameter/Debit/Business.php +116 -0
  466. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/Abstract.php +36 -0
  467. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/BankAccount.php +156 -0
  468. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/CreditCard.php +176 -0
  469. lib/Payone/Api/Request/Parameter/Interface.php +63 -0
  470. lib/Payone/Api/Request/Parameter/Invoicing/Item.php +197 -0
  471. lib/Payone/Api/Request/Parameter/Invoicing/Transaction.php +192 -0
  472. lib/Payone/Api/Request/Parameter/Refund/Abstract.php +40 -0
  473. lib/Payone/Api/Request/Parameter/Refund/PaymentMethod/BankAccount.php +136 -0
  474. lib/Payone/Api/Request/Preauthorization.php +37 -0
  475. lib/Payone/Api/Request/Refund.php +177 -0
  476. lib/Payone/Api/Response/3dsCheck/Enrolled.php +175 -0
  477. lib/Payone/Api/Response/3dsCheck/Invalid.php +37 -0
  478. lib/Payone/Api/Response/3dsCheck/Valid.php +95 -0
  479. lib/Payone/Api/Response/Abstract.php +249 -0
  480. lib/Payone/Api/Response/AddressCheck/Invalid.php +55 -0
  481. lib/Payone/Api/Response/AddressCheck/Valid.php +215 -0
  482. lib/Payone/Api/Response/Authorization/Abstract.php +255 -0
  483. lib/Payone/Api/Response/Authorization/Approved.php +37 -0
  484. lib/Payone/Api/Response/Authorization/Redirect.php +95 -0
  485. lib/Payone/Api/Response/BankAccountCheck/Blocked.php +35 -0
  486. lib/Payone/Api/Response/BankAccountCheck/Invalid.php +37 -0
  487. lib/Payone/Api/Response/BankAccountCheck/Valid.php +36 -0
  488. lib/Payone/Api/Response/Capture/Approved.php +235 -0
  489. lib/Payone/Api/Response/Consumerscore/Invalid.php +55 -0
  490. lib/Payone/Api/Response/Consumerscore/Valid.php +295 -0
  491. lib/Payone/Api/Response/CreditCardCheck/Invalid.php +37 -0
  492. lib/Payone/Api/Response/CreditCardCheck/Valid.php +75 -0
  493. lib/Payone/Api/Response/Debit/Approved.php +75 -0
  494. lib/Payone/Api/Response/Error.php +116 -0
  495. lib/Payone/Api/Response/Interface.php +100 -0
  496. lib/Payone/Api/Response/Invalid.php +116 -0
  497. lib/Payone/Api/Response/Management/GetInvoice.php +70 -0
  498. lib/Payone/Api/Response/Preauthorization/Approved.php +36 -0
  499. lib/Payone/Api/Response/Preauthorization/Redirect.php +36 -0
  500. lib/Payone/Api/Response/Refund/Approved.php +75 -0
  501. lib/Payone/Api/Service/Abstract.php +172 -0
  502. lib/Payone/Api/Service/Interface.php +54 -0
  503. lib/Payone/Api/Service/Management/GetInvoice.php +85 -0
  504. lib/Payone/Api/Service/Payment/Abstract.php +36 -0
  505. lib/Payone/Api/Service/Payment/Authorize.php +83 -0
  506. lib/Payone/Api/Service/Payment/AuthorizeInterface.php +42 -0
  507. lib/Payone/Api/Service/Payment/Capture.php +84 -0
  508. lib/Payone/Api/Service/Payment/CaptureInterface.php +42 -0
  509. lib/Payone/Api/Service/Payment/Debit.php +84 -0
  510. lib/Payone/Api/Service/Payment/DebitInterface.php +42 -0
  511. lib/Payone/Api/Service/Payment/Preauthorize.php +90 -0
  512. lib/Payone/Api/Service/Payment/PreauthorizeInterface.php +42 -0
  513. lib/Payone/Api/Service/Payment/Refund.php +85 -0
  514. lib/Payone/Api/Service/Payment/RefundInterface.php +42 -0
  515. lib/Payone/Api/Service/ProtocolRequest.php +117 -0
  516. lib/Payone/Api/Service/ProtocolRequest/Interface.php +47 -0
  517. lib/Payone/Api/Service/Verification/3dsCheck.php +93 -0
  518. lib/Payone/Api/Service/Verification/AddressCheck.php +87 -0
  519. lib/Payone/Api/Service/Verification/BankAccountCheck.php +86 -0
  520. lib/Payone/Api/Service/Verification/Consumerscore.php +86 -0
  521. lib/Payone/Api/Service/Verification/CreditCardCheck.php +85 -0
  522. lib/Payone/Api/Validator/Abstract.php +35 -0
  523. lib/Payone/Api/Validator/DefaultParameters.php +60 -0
  524. lib/Payone/Api/Validator/Interface.php +41 -0
  525. lib/Payone/Autoload.php +49 -0
  526. lib/Payone/Bootstrap.php +48 -0
  527. lib/Payone/Builder.php +398 -0
  528. lib/Payone/ClientApi/Enum/RequestType.php +36 -0
  529. lib/Payone/ClientApi/Enum/ResponseType.php +37 -0
  530. lib/Payone/ClientApi/Exception/Abstract.php +36 -0
  531. lib/Payone/ClientApi/Exception/InvalidParameters.php +36 -0
  532. lib/Payone/ClientApi/Factory.php +59 -0
  533. lib/Payone/ClientApi/Request/Abstract.php +427 -0
  534. lib/Payone/ClientApi/Request/CreditCardCheck.php +116 -0
  535. lib/Payone/ClientApi/Request/Interface.php +173 -0
  536. lib/Payone/ClientApi/Service/GenerateHash.php +109 -0
  537. lib/Payone/Config.php +242 -0
  538. lib/Payone/Enum/ClearingType.php +40 -0
  539. lib/Payone/Enum/Mode.php +35 -0
  540. lib/Payone/Enum/Reminderlevel.php +42 -0
  541. lib/Payone/Log4php/Logger.php +571 -0
  542. lib/Payone/Log4php/LoggerAppender.php +287 -0
  543. lib/Payone/Log4php/LoggerAppenderConsole.php +105 -0
  544. lib/Payone/Log4php/LoggerAppenderDailyFile.php +110 -0
  545. lib/Payone/Log4php/LoggerAppenderEcho.php +85 -0
  546. lib/Payone/Log4php/LoggerAppenderFile.php +162 -0
  547. lib/Payone/Log4php/LoggerAppenderMail.php +113 -0
  548. lib/Payone/Log4php/LoggerAppenderMailEvent.php +151 -0
  549. lib/Payone/Log4php/LoggerAppenderMongoDB.php +314 -0
  550. lib/Payone/Log4php/LoggerAppenderNull.php +51 -0
  551. lib/Payone/Log4php/LoggerAppenderPDO.php +294 -0
  552. lib/Payone/Log4php/LoggerAppenderPhp.php +56 -0
  553. lib/Payone/Log4php/LoggerAppenderPool.php +99 -0
  554. lib/Payone/Log4php/LoggerAppenderRollingFile.php +231 -0
  555. lib/Payone/Log4php/LoggerAppenderSocket.php +122 -0
  556. lib/Payone/Log4php/LoggerAppenderSyslog.php +305 -0
  557. lib/Payone/Log4php/LoggerAutoloader.php +140 -0
  558. lib/Payone/Log4php/LoggerConfigurable.php +119 -0
  559. lib/Payone/Log4php/LoggerConfigurationAdapter.php +40 -0
  560. lib/Payone/Log4php/LoggerConfigurationAdapterINI.php +300 -0
  561. lib/Payone/Log4php/LoggerConfigurationAdapterPHP.php +85 -0
  562. lib/Payone/Log4php/LoggerConfigurationAdapterXML.php +259 -0
  563. lib/Payone/Log4php/LoggerConfigurator.php +42 -0
  564. lib/Payone/Log4php/LoggerConfiguratorDefault.php +485 -0
  565. lib/Payone/Log4php/LoggerException.php +28 -0
  566. lib/Payone/Log4php/LoggerFilter.php +126 -0
  567. lib/Payone/Log4php/LoggerFilterDenyAll.php +56 -0
  568. lib/Payone/Log4php/LoggerFilterLevelMatch.php +100 -0
  569. lib/Payone/Log4php/LoggerFilterLevelRange.php +138 -0
  570. lib/Payone/Log4php/LoggerFilterStringMatch.php +89 -0
  571. lib/Payone/Log4php/LoggerFormattingInfo.php +54 -0
  572. lib/Payone/Log4php/LoggerHierarchy.php +240 -0
  573. lib/Payone/Log4php/LoggerLayout.php +74 -0
  574. lib/Payone/Log4php/LoggerLayoutHtml.php +214 -0
  575. lib/Payone/Log4php/LoggerLayoutPattern.php +154 -0
  576. lib/Payone/Log4php/LoggerLayoutSerialized.php +55 -0
  577. lib/Payone/Log4php/LoggerLayoutSimple.php +56 -0
  578. lib/Payone/Log4php/LoggerLayoutTTCC.php +197 -0
  579. lib/Payone/Log4php/LoggerLayoutXml.php +210 -0
  580. lib/Payone/Log4php/LoggerLevel.php +256 -0
  581. lib/Payone/Log4php/LoggerLocationInfo.php +110 -0
  582. lib/Payone/Log4php/LoggerLoggingEvent.php +370 -0
  583. lib/Payone/Log4php/LoggerMDC.php +118 -0
  584. lib/Payone/Log4php/LoggerNDC.php +203 -0
  585. lib/Payone/Log4php/LoggerOptionConverter.php +451 -0
  586. lib/Payone/Log4php/LoggerPatternConverter.php +131 -0
  587. lib/Payone/Log4php/LoggerPatternConverterClass.php +34 -0
  588. lib/Payone/Log4php/LoggerPatternConverterCookie.php +33 -0
  589. lib/Payone/Log4php/LoggerPatternConverterDate.php +89 -0
  590. lib/Payone/Log4php/LoggerPatternConverterEnvironment.php +33 -0
  591. lib/Payone/Log4php/LoggerPatternConverterFile.php +32 -0
  592. lib/Payone/Log4php/LoggerPatternConverterLevel.php +32 -0
  593. lib/Payone/Log4php/LoggerPatternConverterLine.php +33 -0
  594. lib/Payone/Log4php/LoggerPatternConverterLiteral.php +38 -0
  595. lib/Payone/Log4php/LoggerPatternConverterLocation.php +37 -0
  596. lib/Payone/Log4php/LoggerPatternConverterLogger.php +114 -0
  597. lib/Payone/Log4php/LoggerPatternConverterMDC.php +53 -0
  598. lib/Payone/Log4php/LoggerPatternConverterMessage.php +32 -0
  599. lib/Payone/Log4php/LoggerPatternConverterMethod.php +33 -0
  600. lib/Payone/Log4php/LoggerPatternConverterNDC.php +33 -0
  601. lib/Payone/Log4php/LoggerPatternConverterNewLine.php +32 -0
  602. lib/Payone/Log4php/LoggerPatternConverterProcess.php +32 -0
  603. lib/Payone/Log4php/LoggerPatternConverterRelative.php +34 -0
  604. lib/Payone/Log4php/LoggerPatternConverterRequest.php +33 -0
  605. lib/Payone/Log4php/LoggerPatternConverterServer.php +33 -0
  606. lib/Payone/Log4php/LoggerPatternConverterSession.php +33 -0
  607. lib/Payone/Log4php/LoggerPatternConverterSessionID.php +31 -0
  608. lib/Payone/Log4php/LoggerPatternConverterSuperglobal.php +99 -0
  609. lib/Payone/Log4php/LoggerPatternConverterThrowable.php +68 -0
  610. lib/Payone/Log4php/LoggerPatternParser.php +238 -0
  611. lib/Payone/Log4php/LoggerReflectionUtils.php +153 -0
  612. lib/Payone/Log4php/LoggerRendererDefault.php +51 -0
  613. lib/Payone/Log4php/LoggerRendererException.php +41 -0
  614. lib/Payone/Log4php/LoggerRendererMap.php +149 -0
  615. lib/Payone/Log4php/LoggerRendererObject.php +46 -0
  616. lib/Payone/Log4php/LoggerRoot.php +70 -0
  617. lib/Payone/Log4php/LoggerThrowableInformation.php +76 -0
  618. lib/Payone/Log4php/LoggerUtils.php +123 -0
  619. lib/Payone/Log4php/xml/log4php.dtd +148 -0
  620. lib/Payone/Protocol/Config/Filter.php +101 -0
  621. lib/Payone/Protocol/Exception/FilterNotFound.php +36 -0
  622. lib/Payone/Protocol/Exception/InvalidConfig.php +36 -0
  623. lib/Payone/Protocol/Factory.php +85 -0
  624. lib/Payone/Protocol/Filter/Abstract.php +73 -0
  625. lib/Payone/Protocol/Filter/Filterable.php +48 -0
  626. lib/Payone/Protocol/Filter/Interface.php +53 -0
  627. lib/Payone/Protocol/Filter/MaskValue.php +96 -0
  628. lib/Payone/Protocol/Logger/Interface.php +51 -0
  629. lib/Payone/Protocol/Logger/Log4php.php +219 -0
  630. lib/Payone/Protocol/Service/ApplyFilters.php +187 -0
  631. lib/Payone/Protocol/Service/Protocol/Abstract.php +92 -0
  632. lib/Payone/Settings/Configuration/Abstract.php +45 -0
  633. lib/Payone/Settings/Configuration/Api/RequestType.php +48 -0
  634. lib/Payone/Settings/Configuration/Api/ResponseType.php +48 -0
  635. lib/Payone/Settings/Configuration/Mode.php +48 -0
  636. lib/Payone/Settings/Configuration/PaymentMethod.php +48 -0
  637. lib/Payone/Settings/Configuration/PaymentMethod/CreditCard.php +48 -0
  638. lib/Payone/Settings/Configuration/PaymentMethod/OnlineBankTransfer.php +48 -0
  639. lib/Payone/Settings/Configuration/PaymentMethod/Wallet.php +48 -0
  640. lib/Payone/Settings/Configuration/Reminderlevel.php +48 -0
  641. lib/Payone/Settings/Configuration/TransactionStatus/Action.php +48 -0
  642. lib/Payone/Settings/Configuration/Verification/AddressCheck.php +48 -0
  643. lib/Payone/Settings/Configuration/Verification/AvsResult.php +48 -0
  644. lib/Payone/Settings/Configuration/Verification/BankaccountCheck.php +48 -0
  645. lib/Payone/Settings/Configuration/Verification/Consumerscore.php +60 -0
  646. lib/Payone/Settings/Configuration/Verification/Personstatus.php +49 -0
  647. lib/Payone/Settings/Data/ConfigFile/Abstract.php +74 -0
  648. lib/Payone/Settings/Data/ConfigFile/Collection.php +36 -0
  649. lib/Payone/Settings/Data/ConfigFile/Global/StatusMapping.php +73 -0
  650. lib/Payone/Settings/Data/ConfigFile/Interface.php +46 -0
  651. lib/Payone/Settings/Data/ConfigFile/Misc/TransactionstatusForwarding.php +72 -0
  652. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Abstract.php +232 -0
  653. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/AdvancePayment.php +47 -0
  654. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/CashOnDelivery.php +152 -0
  655. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Creditcard.php +74 -0
  656. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/DebitPayment.php +172 -0
  657. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Invoice.php +152 -0
  658. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/OnlineBankTransfer.php +44 -0
  659. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Wallet.php +44 -0
  660. lib/Payone/Settings/Data/ConfigFile/Protect/Addresscheck.php +179 -0
  661. lib/Payone/Settings/Data/ConfigFile/Protect/Consumerscore.php +198 -0
  662. lib/Payone/Settings/Data/ConfigFile/Root.php +73 -0
  663. lib/Payone/Settings/Data/ConfigFile/Shop.php +180 -0
  664. lib/Payone/Settings/Data/ConfigFile/Shop/ClearingTypes.php +85 -0
  665. lib/Payone/Settings/Data/ConfigFile/Shop/Global.php +206 -0
  666. lib/Payone/Settings/Data/ConfigFile/Shop/Misc.php +84 -0
  667. lib/Payone/Settings/Data/ConfigFile/Shop/Protect.php +84 -0
  668. lib/Payone/Settings/Data/ConfigFile/Shop/System.php +137 -0
  669. lib/Payone/Settings/Factory.php +62 -0
  670. lib/Payone/Settings/Service/XmlGenerate.php +392 -0
  671. lib/Payone/Settings/Service/XmlParse.php +36 -0
  672. lib/Payone/TransactionStatus/Enum/Failedcause.php +55 -0
  673. lib/Payone/TransactionStatus/Enum/Txaction.php +47 -0
  674. lib/Payone/TransactionStatus/Exception/Abstract.php +36 -0
  675. lib/Payone/TransactionStatus/Exception/MissmatchingKeys.php +37 -0
  676. lib/Payone/TransactionStatus/Exception/NoPostRequest.php +37 -0
  677. lib/Payone/TransactionStatus/Exception/NoRequestData.php +37 -0
  678. lib/Payone/TransactionStatus/Exception/Validation.php +37 -0
  679. lib/Payone/TransactionStatus/Factory.php +92 -0
  680. lib/Payone/TransactionStatus/Mapper/Request.php +46 -0
  681. lib/Payone/TransactionStatus/Mapper/RequestInterface.php +42 -0
  682. lib/Payone/TransactionStatus/Persistence/Interface.php +53 -0
  683. lib/Payone/TransactionStatus/Request.php +549 -0
  684. lib/Payone/TransactionStatus/Request/Abstract.php +133 -0
  685. lib/Payone/TransactionStatus/Request/Interface.php +300 -0
  686. lib/Payone/TransactionStatus/Response.php +70 -0
  687. lib/Payone/TransactionStatus/Response/Abstract.php +84 -0
  688. lib/Payone/TransactionStatus/Response/Interface.php +36 -0
  689. lib/Payone/TransactionStatus/Service/HandleRequest.php +206 -0
  690. lib/Payone/TransactionStatus/Service/ProtocolRequest.php +116 -0
  691. lib/Payone/TransactionStatus/Service/ProtocolRequest/Interface.php +76 -0
  692. lib/Payone/TransactionStatus/Validator/Abstract.php +39 -0
  693. lib/Payone/TransactionStatus/Validator/DefaultParameters.php +70 -0
  694. lib/Payone/TransactionStatus/Validator/Interface.php +41 -0
  695. lib/Payone/TransactionStatus/Validator/Ip.php +102 -0
  696. package.xml +40 -0
  697. skin/adminhtml/default/default/payone/core/boxes.css +102 -0
  698. skin/adminhtml/default/default/payone/core/images/favicon.png +0 -0
  699. skin/adminhtml/default/default/payone/core/images/help.png +0 -0
  700. skin/adminhtml/default/default/payone/core/images/icon_16.png +0 -0
  701. skin/adminhtml/default/default/payone/core/images/logoclaim.gif +0 -0
  702. skin/adminhtml/default/default/payone/core/images/magento_general_global.png +0 -0
  703. skin/adminhtml/default/default/payone/core/images/money_add.png +0 -0
  704. skin/adminhtml/default/default/payone/core/wizard.css +97 -0
  705. skin/adminhtml/default/default/payone/migrator/images/ajax-loader.gif +0 -0
  706. skin/adminhtml/default/default/payone/migrator/images/failure.gif +0 -0
  707. skin/adminhtml/default/default/payone/migrator/images/success.gif +0 -0
  708. skin/adminhtml/default/default/payone/migrator/migration.css +60 -0
app/code/community/Payone/Core/Block/Adminhtml/Configuration/Wizard/Config/Form.php ADDED
@@ -0,0 +1,193 @@
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_Configuration
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 Adminhtml_Configuration
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_Adminhtml_Configuration_Wizard_Config_Form
34
+ extends Mage_Adminhtml_Block_System_Config_Form
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $groupName = '';
40
+
41
+ protected function _prepareLayout()
42
+ {
43
+ $return = parent::_prepareLayout();
44
+
45
+ $this->initForm();
46
+
47
+ return $return;
48
+ }
49
+
50
+ /**
51
+ *
52
+ * @return Mage_Adminhtml_Block_System_Config_Form
53
+ */
54
+ public function initForm()
55
+ {
56
+ $this->_initObjects();
57
+
58
+ $form = $this->_initForm();
59
+
60
+ $sections = $this->_configFields->getSection(
61
+ $this->getSectionCode(),
62
+ $this->getWebsiteCode(),
63
+ $this->getStoreCode()
64
+ );
65
+ $groups = $sections->groups;
66
+
67
+ $groupName = $this->getGroupName();
68
+ $group = $groups->$groupName;
69
+
70
+ /**
71
+ * @var $fieldsetRenderer Mage_Adminhtml_Block_System_Config_Form_Fieldset
72
+ */
73
+ if ($group->frontend_model) {
74
+ $fieldsetRenderer = Mage::getBlockSingleton((string)$group->frontend_model);
75
+ }
76
+ else {
77
+ $fieldsetRenderer = Mage::getBlockSingleton('Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset');
78
+ }
79
+
80
+ $fieldsetConfig = array(
81
+ 'legend' => Mage::helper('payone_core')->__((string)$group->label),
82
+ );
83
+ if (!empty($group->comment)) {
84
+ $fieldsetConfig['comment'] = Mage::helper('payone_core')->__((string)$group->comment);
85
+ }
86
+
87
+ /** @var $fieldset Varien_Data_Form_Element_Fieldset */
88
+ $fieldset = $form->addFieldset($sections->getName() . '_' . $group->getName(), $fieldsetConfig);
89
+ $fieldset->setRenderer($fieldsetRenderer);
90
+
91
+ $fieldsetRenderer->setForm($this);
92
+ $fieldsetRenderer->setConfigData($this->_configData);
93
+ $fieldsetRenderer->setGroup($group);
94
+
95
+ $this->_prepareFieldOriginalData($fieldset, $group);
96
+ $this->_addElementTypes($fieldset);
97
+
98
+ $this->initFields($fieldset, $group, $sections);
99
+
100
+ $fieldset->addField(
101
+ 'page_code',
102
+ 'hidden',
103
+ array(
104
+ 'name' => 'page_code',
105
+ 'value' => $this->getPageCode()
106
+ )
107
+ );
108
+
109
+ $form->setUseContainer(true);
110
+
111
+ $this->setForm($form);
112
+ return $this;
113
+ }
114
+
115
+ /**
116
+ * @return Varien_Data_Form
117
+ */
118
+ protected function _initForm()
119
+ {
120
+ $form = new Varien_Data_Form(
121
+ array(
122
+ 'id' => 'edit_form',
123
+ 'action' => $this->getSaveUrl(),
124
+ 'method' => 'post',
125
+ 'enctype' => 'multipart/form-data'
126
+ )
127
+ );
128
+ return $form;
129
+ }
130
+
131
+ protected function getSaveUrl()
132
+ {
133
+ return $this->getUrl('*/*/save', array('_current' => true));
134
+ }
135
+
136
+ /**
137
+ * @return string
138
+ */
139
+ public function getGroupName()
140
+ {
141
+ return $this->getConfigPage('group_name');
142
+ }
143
+
144
+ /**
145
+ * @return string
146
+ */
147
+ public function getPageCode()
148
+ {
149
+ return $this->getConfigPage('codes/page');
150
+ }
151
+
152
+ /**
153
+ * @return string
154
+ */
155
+ public function getSectionCode()
156
+ {
157
+ return $this->getConfigPage('codes/section');
158
+ }
159
+
160
+ /**
161
+ * @return string
162
+ */
163
+ public function getStoreCode()
164
+ {
165
+ return $this->getConfigPage('codes/store');
166
+ }
167
+
168
+ /**
169
+ * @return string
170
+ */
171
+ public function getWebsiteCode()
172
+ {
173
+ return $this->getConfigPage('codes/website');
174
+ }
175
+
176
+ /**
177
+ * @param string $path
178
+ * @return mixed
179
+ */
180
+ public function getConfigPage($path)
181
+ {
182
+ $config = $this->helperWizard()->getConfigPage();
183
+ return $config->getData($path);
184
+ }
185
+
186
+ /**
187
+ * @return Payone_Core_Helper_Wizard
188
+ */
189
+ public function helperWizard()
190
+ {
191
+ return Mage::helper('payone_core/wizard');
192
+ }
193
+ }
app/code/community/Payone/Core/Block/Adminhtml/Configuration/Wizard/Page/Edit.php ADDED
@@ -0,0 +1,115 @@
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_Configuration
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 Adminhtml_Configuration
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_Adminhtml_Configuration_Wizard_Page_Edit
34
+ extends Mage_Adminhtml_Block_Widget_Form_Container
35
+ {
36
+ /**
37
+ *
38
+ */
39
+ public function __construct()
40
+ {
41
+ parent::__construct();
42
+
43
+ $this->_objectId = 'id';
44
+ $this->_blockGroup = '';
45
+ $this->_controller = 'adminhtml_configuration_wizard_page';
46
+
47
+ $this->_removeButton('delete');
48
+ $this->_removeButton('reset');
49
+ $this->_removeButton('back');
50
+ $this->_removeButton('save');
51
+
52
+ $this->_addButton('cancel', array(
53
+ 'label' => Mage::helper('payone_core')->__('Cancel'),
54
+ 'onclick' => 'parent.window.wizardPopup.close()',
55
+ 'class' => 'default',
56
+ ));
57
+
58
+ $this->_addButton('back', array(
59
+ 'label' => Mage::helper('payone_core')->__('Back'),
60
+ 'onclick' => 'setLocation(\'' . $this->getBackUrl() . '\')',
61
+ 'class' => 'default',
62
+ ));
63
+
64
+ $this->_addButton('save', array(
65
+ 'label' => Mage::helper('payone_core')->__('Save & Continue'),
66
+ 'onclick' => 'editForm.submit();',
67
+ 'class' => 'default',
68
+ ));
69
+
70
+ $this->setData('edit_form_id', 'edit_form_wizard_page');
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getHeaderText()
77
+ {
78
+ $headerText = $this->getConfigPage('header_text');
79
+ $text = Mage::helper('payone_core')->__($headerText);
80
+ return $text;
81
+ }
82
+
83
+ /**
84
+ * @return string
85
+ */
86
+ public function getBackUrl()
87
+ {
88
+ $url = $this->helperWizard()->getPreviousPageUrlAsString();
89
+ return $this->getUrl($url, array('_current' => true));
90
+ }
91
+
92
+ public function getDeleteUrl()
93
+ {
94
+ return '';
95
+ }
96
+
97
+ /**
98
+ * @param string $path
99
+ * @return mixed
100
+ */
101
+ public function getConfigPage($path)
102
+ {
103
+ $config = $this->helperWizard()->getConfigPage();
104
+ return $config->getData($path);
105
+ }
106
+
107
+ /**
108
+ * @return Payone_Core_Helper_Wizard
109
+ */
110
+ public function helperWizard()
111
+ {
112
+ return Mage::helper('payone_core/wizard');
113
+ }
114
+
115
+ }
app/code/community/Payone/Core/Block/Adminhtml/Configuration/Wizard/Page/View.php ADDED
@@ -0,0 +1,120 @@
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_Configuration
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 Adminhtml_Configuration
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_Adminhtml_Configuration_Wizard_Page_View
34
+ extends Mage_Adminhtml_Block_Widget_View_Container
35
+ {
36
+ /**
37
+ *
38
+ */
39
+ public function __construct()
40
+ {
41
+ $this->_objectId = 'id';
42
+ $this->_controller = 'adminhtml_configuration_wizard_page';
43
+
44
+ parent::__construct();
45
+
46
+ $this->_removeButton('edit');
47
+ $this->_removeButton('back');
48
+
49
+ $this->_addButton('cancel', array(
50
+ 'label' => Mage::helper('adminhtml')->__('Cancel'),
51
+ 'onclick' => 'parent.window.wizardPopup.close()',
52
+ 'class' => 'default'
53
+ ));
54
+
55
+ $this->_addButton('back', array(
56
+ 'label' => Mage::helper('adminhtml')->__('Back'),
57
+ 'onclick' => 'window.location.href=\'' . $this->getBackUrl() . '\'',
58
+ 'class' => 'default',
59
+ ));
60
+
61
+ $this->_addButton('save', array(
62
+ 'label' => Mage::helper('adminhtml')->__('Continue'),
63
+ 'class' => 'default',
64
+ 'onclick' => 'window.location.href=\'' . $this->getNextUrl() . '\'',
65
+ ));
66
+
67
+ $this->setId('wizard_page_view');
68
+ }
69
+
70
+ public function getViewHtml()
71
+ {
72
+ $html = '';
73
+ foreach ($this->getSortedChildren() as $childName) {
74
+ $child = $this->getChild($childName);
75
+ /** @var $child Mage_Adminhtml_Block_Abstract */
76
+ $html .= $child->toHtml();
77
+ }
78
+ return $html;
79
+ }
80
+
81
+ protected function getBackUrl()
82
+ {
83
+ $url = $this->helperWizard()->getPreviousPageUrlAsString();
84
+ return $this->getUrl($url, array('_current' => true));
85
+ }
86
+
87
+ protected function getNextUrl()
88
+ {
89
+ $url = $this->helperWizard()->getNextPageUrlAsString();
90
+ return $this->getUrl($url, array('_current' => true));
91
+ }
92
+
93
+ /**
94
+ * @return string
95
+ */
96
+ public function getHeaderText()
97
+ {
98
+ $headerText = $this->getConfigPage('header_text');
99
+ $text = Mage::helper('payone_core')->__($headerText);
100
+ return $text;
101
+ }
102
+
103
+ /**
104
+ * @param string $path
105
+ * @return mixed
106
+ */
107
+ public function getConfigPage($path)
108
+ {
109
+ $config = $this->helperWizard()->getConfigPage();
110
+ return $config->getData($path);
111
+ }
112
+
113
+ /**
114
+ * @return Payone_Core_Helper_Wizard
115
+ */
116
+ public function helperWizard()
117
+ {
118
+ return Mage::helper('payone_core/wizard');
119
+ }
120
+ }
app/code/community/Payone/Core/Block/Adminhtml/Information.php ADDED
@@ -0,0 +1,44 @@
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
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 Adminhtml
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_Adminhtml_Information extends Payone_Core_Block_Adminhtml_Information_Abstract
34
+ {
35
+
36
+ /**
37
+ * @return string
38
+ */
39
+ public function getPayoneUrl()
40
+ {
41
+ $url = $this->escapeUrl('http://embedded.payone.de/extensions/magento');
42
+ return $url;
43
+ }
44
+ }
app/code/community/Payone/Core/Block/Adminhtml/Information/Abstract.php ADDED
@@ -0,0 +1,47 @@
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_Information
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 Adminhtml_Information
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_Block_Adminhtml_Information_Abstract extends Mage_Adminhtml_Block_Template
34
+ {
35
+ /**
36
+ *
37
+ */
38
+ public function _construct()
39
+ {
40
+ $this->setTemplate("payone/core/information/iframe.phtml");
41
+ }
42
+ /**
43
+ * @abstract
44
+ * @return mixed
45
+ */
46
+ abstract public function getPayoneUrl();
47
+ }
app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api.php ADDED
@@ -0,0 +1,47 @@
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_Protocol
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 Adminhtml_Protocol
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_Adminhtml_Protocol_Api extends Payone_Core_Block_Adminhtml_Widget_Grid_Container
34
+ {
35
+ /**
36
+ *
37
+ */
38
+ public function __construct()
39
+ {
40
+ $this->_blockGroup = 'payone_core';
41
+ $this->_controller = 'adminhtml_protocol_api';
42
+ $this->_headerText = Mage::helper('payone_core')->__('Protocol - Api');
43
+
44
+ parent::__construct();
45
+ $this->removeButton('add');
46
+ }
47
+ }
app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/Grid.php ADDED
@@ -0,0 +1,194 @@
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_Protocol
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 Adminhtml_Protocol
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_Adminhtml_Protocol_Api_Grid extends Mage_Adminhtml_Block_Widget_Grid
34
+ {
35
+
36
+ /**
37
+ *
38
+ */
39
+ public function __construct()
40
+ {
41
+ parent::__construct();
42
+ $this->setId('protocol_api_grid');
43
+ $this->setUseAjax(true);
44
+ $this->setDefaultSort('id');
45
+ $this->setDefaultDir('DESC');
46
+ $this->setSaveParametersInSession(true);
47
+ }
48
+
49
+ /**
50
+ * @return Mage_Adminhtml_Block_Widget_Grid
51
+ */
52
+ protected function _prepareCollection()
53
+ {
54
+ /**
55
+ * @var Payone_Core_Model_Domain_Resource_Protocol_Api_Collection $collection
56
+ */
57
+ $collection = Mage::getModel('payone_core/domain_protocol_api')->getCollection();
58
+
59
+ $this->setCollection($collection);
60
+ return parent::_prepareCollection();
61
+ }
62
+
63
+ /**
64
+ * @return Mage_Adminhtml_Block_Widget_Grid
65
+ */
66
+ protected function _prepareColumns()
67
+ {
68
+ $this->addColumn(
69
+ 'id',
70
+ array(
71
+ 'header' => $this->helperPayone()->__('ID'),
72
+ 'width' => '5px',
73
+ 'type' => 'text',
74
+ 'filter' => false,
75
+ 'index' => 'id',
76
+ ));
77
+
78
+ $this->addColumn(
79
+ 'request',
80
+ array(
81
+ 'header' => $this->helperPayone()->__('Request'),
82
+ 'index' => 'request',
83
+ 'type' => 'options',
84
+ 'options' => $this->getFactory()->getModelSystemConfigRequestType()->toSelectArray()
85
+ ));
86
+
87
+ $this->addColumn(
88
+ 'response',
89
+ array(
90
+ 'header' => $this->helperPayone()->__('Response'),
91
+ 'index' => 'response',
92
+ 'type' => 'options',
93
+ 'options' => $this->getFactory()->getModelSystemConfigResponseType()->toSelectArray()
94
+ ));
95
+
96
+ $this->addColumn(
97
+ 'mode',
98
+ array(
99
+ 'header' => $this->helperPayone()->__('Modus'),
100
+ 'index' => 'mode',
101
+ 'type' => 'options',
102
+ 'options' => $this->getFactory()->getModelSystemConfigMode()->toSelectArray()
103
+ ));
104
+
105
+ $this->addColumn(
106
+ 'mid',
107
+ array(
108
+ 'header' => $this->helperPayone()->__('Merchant-ID'),
109
+ 'type' => 'text',
110
+ 'index' => 'mid',
111
+ ));
112
+
113
+ $this->addColumn(
114
+ 'portalid',
115
+ array(
116
+ 'header' => $this->helperPayone()->__('Portal ID'),
117
+ 'type' => 'text',
118
+ 'index' => 'portalid',
119
+ ));
120
+
121
+ $this->addColumn(
122
+ 'created_at',
123
+ array(
124
+ 'header' => $this->helperPayone()->__('Created at'),
125
+ 'index' => 'created_at',
126
+ 'type' => 'datetime',
127
+ 'width' => '80px',
128
+ 'renderer' => 'payone_core/adminhtml_widget_grid_column_renderer_datetime',
129
+ ));
130
+
131
+ if (Mage::getSingleton('admin/session')->isAllowed('payone/protocol/api/view')) {
132
+ $this->addColumn('action',
133
+ array(
134
+ 'header' => $this->helperPayone()->__('Action'),
135
+ 'width' => '50px',
136
+ 'type' => 'action',
137
+ 'getter' => 'getId',
138
+ 'actions' => array(
139
+ array(
140
+ 'caption' => $this->helperPayone()->__('View'),
141
+ 'url' => array('base' => '*/*/view'),
142
+ 'field' => 'id'
143
+ )
144
+ ),
145
+ 'filter' => false,
146
+ 'sortable' => false,
147
+ 'index' => 'stores',
148
+ 'is_system' => true,
149
+ ));
150
+ }
151
+
152
+ if (Mage::getSingleton('admin/session')->isAllowed('payone/protocol/api/export')) {
153
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
154
+ $this->addExportType('*/*/exportCsvRaw', Mage::helper('sales')->__('CSV (including raw)'));
155
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
156
+ }
157
+
158
+ return parent::_prepareColumns();
159
+ }
160
+
161
+ /**
162
+ * @return string
163
+ */
164
+ public function getGridUrl()
165
+ {
166
+ return $this->getUrl('*/*/grid', array('_current' => true));
167
+ }
168
+
169
+ /**
170
+ * @param $row
171
+ * @return string
172
+ */
173
+ public function getRowUrl($row)
174
+ {
175
+ return $this->getUrl('*/*/view', array('id' => $row->getId()));
176
+ }
177
+
178
+ /**
179
+ *
180
+ * @return Payone_Core_Helper_Data
181
+ */
182
+ protected function helperPayone()
183
+ {
184
+ return Mage::helper('payone_core');
185
+ }
186
+
187
+ /**
188
+ * @return Payone_Core_Model_Factory
189
+ */
190
+ public function getFactory(){
191
+ return $this->helperPayone()->getFactory();
192
+ }
193
+
194
+ }
app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View.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_Block
17
+ * @subpackage Adminhtml_Protocol
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 Adminhtml_Protocol
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_Adminhtml_Protocol_Api_View
34
+ extends Payone_Core_Block_Adminhtml_Widget_View_Container
35
+ {
36
+
37
+ /**
38
+ *
39
+ */
40
+ public function __construct()
41
+ {
42
+ $this->_objectId = 'id';
43
+ $this->_blockGroup = 'payone_core_api_view';
44
+ $this->_controller = 'adminhtml_protocol_api';
45
+
46
+ parent::__construct();
47
+
48
+ $this->setId('protocol_api_view');
49
+
50
+ $this->_removeButton('edit');
51
+ }
52
+
53
+ /**
54
+ * @return string
55
+ */
56
+ public function getHeaderText()
57
+ {
58
+ $api = $this->getProtocolApi();
59
+ $text = Mage::helper('payone_core')->__('Protocol - Api #%s', $api->getId());
60
+ return $text;
61
+ }
62
+
63
+ /**
64
+ * @return Payone_Core_Block_Adminhtml_Protocol_Api_View
65
+ */
66
+ protected function _prepareLayout()
67
+ {
68
+ foreach ($this->_buttons as $level => $buttons) {
69
+ foreach ($buttons as $id => $data) {
70
+ $childId = $this->_prepareButtonBlockId($id);
71
+ $this->_addButtonChildBlock($childId);
72
+ }
73
+ }
74
+ $this->setChild('plane', $this->getLayout()
75
+ ->createBlock('payone_core/adminhtml_protocol_api_view_plane', 'payone_core_adminhtml_protocol_api_view_plane'));
76
+ return $this;
77
+ }
78
+
79
+ /**
80
+ * @return Payone_Core_Model_Domain_Protocol_Api
81
+ */
82
+ public function getProtocolApi()
83
+ {
84
+ return Mage::registry('payone_core_protocol_api');
85
+ }
86
+
87
+ }
app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View/Plane.php ADDED
@@ -0,0 +1,43 @@
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_Protocol
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 Adminhtml_Protocol
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_Adminhtml_Protocol_Api_View_Plane extends Mage_Adminhtml_Block_Widget
34
+ {
35
+ /**
36
+ *
37
+ */
38
+ public function __construct()
39
+ {
40
+ parent::__construct();
41
+ $this->setTemplate('payone/core/protocol/api/view/plane.phtml');
42
+ }
43
+ }
app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View/Tab/Exception.php ADDED
@@ -0,0 +1,99 @@
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_Protocol
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Christian 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 Adminhtml_Protocol
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_Adminhtml_Protocol_Api_View_Tab_Exception extends Mage_Adminhtml_Block_Widget
34
+ implements Mage_Adminhtml_Block_Widget_Tab_Interface
35
+ {
36
+
37
+ /**
38
+ *
39
+ * @return string
40
+ */
41
+ public function getTabTitle()
42
+ {
43
+ return $this->helperPayoneCore()->__('Exception');
44
+ }
45
+
46
+ /**
47
+ * @return bool
48
+ */
49
+ public function isHidden()
50
+ {
51
+ $stacktrace = $this->getStacktrace();
52
+ if(empty($stacktrace))
53
+ {
54
+ return true;
55
+ }
56
+ return false;
57
+ }
58
+
59
+ /**
60
+ * @return bool
61
+ */
62
+ public function canShowTab()
63
+ {
64
+ return true;
65
+ }
66
+
67
+ /**
68
+ * @return string
69
+ */
70
+ public function getTabLabel()
71
+ {
72
+ return $this->helperPayoneCore()->__('Exception');
73
+ }
74
+
75
+ /**
76
+ * @return Payone_Core_Model_Domain_Protocol_Api
77
+ */
78
+ public function getApi()
79
+ {
80
+ return Mage::registry('payone_core_protocol_api');
81
+ }
82
+
83
+ /**
84
+ * @return string
85
+ */
86
+ public function getStacktrace()
87
+ {
88
+ return nl2br(htmlspecialchars($this->getApi()->getStacktrace()));
89
+ }
90
+
91
+ /**
92
+ *
93
+ * @return Payone_Core_Helper_Data
94
+ */
95
+ protected function helperPayoneCore()
96
+ {
97
+ return Mage::helper('payone_core');
98
+ }
99
+ }
app/code/community/Payone/Core/Block/Adminhtml/Protocol/Api/View/Tab/General.php ADDED
@@ -0,0 +1,119 @@
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_Protocol
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 Adminhtml_Protocol
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_Adminhtml_Protocol_Api_View_Tab_General extends Mage_Adminhtml_Block_Widget
34
+ implements Mage_Adminhtml_Block_Widget_Tab_Interface
35
+ {
36
+
37
+ /**
38
+ *
39
+ * @return string
40
+ */
41