pn_sofortueberweisung - Version 3.0.0

Version Notes

rewrite form scratch

Download this release

Release Info

Developer Paymentnetwork
Extension pn_sofortueberweisung
Version 3.0.0
Comparing to
See all releases


Code changes from version 2.4.0.0 to 3.0.0

Files changed (213) hide show
  1. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Heading/Big.php +20 -0
  2. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Heading/Italic.php +20 -0
  3. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Heading/Middle.php +20 -0
  4. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label.php +48 -0
  5. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label/Red.php +48 -0
  6. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label/Status.php +50 -0
  7. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label/Toggle.php +51 -0
  8. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung.php +0 -30
  9. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit.php +0 -63
  10. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Form.php +0 -36
  11. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tab/Form.php +0 -70
  12. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tabs.php +0 -42
  13. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Grid.php +0 -142
  14. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Renderer/Transaction.php +0 -35
  15. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/System/Config/Fieldset/Global.php +0 -201
  16. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Ideal.php +0 -94
  17. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Lastschriftsofort.php +0 -49
  18. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Paycode.php +0 -41
  19. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Pnsofortueberweisung.php +0 -79
  20. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofort.php +51 -0
  21. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofortlastschrift.php +0 -53
  22. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofortrechnung.php +0 -52
  23. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofortvorkasse.php +0 -50
  24. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Paycode.php +0 -62
  25. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Pnsofortueberweisung.php +0 -119
  26. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Sofort.php +32 -0
  27. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Sofortrechnung.php +0 -114
  28. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Infobox.php +0 -28
  29. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Onepage/Billing.php +0 -41
  30. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Onepage/Shipping.php +0 -41
  31. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Pnsofortueberweisung.php +0 -46
  32. app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Sofortvorkassesuccess.php +0 -63
  33. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/Data.php +4 -351
  34. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/helper/builder.php +0 -84
  35. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/helper/class.abstract_document.inc.php +0 -345
  36. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/helper/class.invoice.inc.php +0 -1612
  37. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/logs/log.txt +0 -741
  38. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/logs/log_2012-09-16_11-18-38.txt +0 -1190
  39. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/logs/log_2012-09-24_08-55-25.txt +0 -1322
  40. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/logs/log_2012-10-11_05-30-53.txt +0 -1296
  41. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib.php +0 -667
  42. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_Logger.inc.php +0 -70
  43. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_abstract.inc.php +0 -80
  44. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_cancel_sa.inc.php +0 -122
  45. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_cancel_sr.inc.php +0 -139
  46. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_classic_notification.inc.php +0 -164
  47. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_confirm_sr.inc.php +0 -280
  48. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_debit.inc.php +0 -221
  49. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_edit_sr.inc.php +0 -166
  50. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_http.inc.php +0 -235
  51. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_ideal_banks.inc.php +0 -45
  52. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_ideal_classic.php +0 -117
  53. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_multipay.inc.php +0 -861
  54. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_notification.inc.php +0 -80
  55. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_refund.inc.php +0 -179
  56. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_sofortueberweisung_classic.php +0 -299
  57. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/sofortLib_transaction_data.inc.php +0 -1270
  58. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Abstract.php +0 -376
  59. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Convert/Order.php +0 -45
  60. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Convert/Quote.php +0 -45
  61. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Data/Form/Element/Link.php +0 -54
  62. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Ideal.php +0 -163
  63. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Lastschriftsofort.php +0 -152
  64. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Method/Sofort.php +142 -0
  65. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Observer.php +19 -134
  66. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Order/Invoice/Total/Discount.php +0 -71
  67. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Order/Pdf/Invoice.php +0 -144
  68. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Order/Status.php +0 -64
  69. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Params.php +0 -21
  70. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Paycode.php +0 -227
  71. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Pnsofort.php +0 -137
  72. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Pnsofortueberweisung.php +0 -125
  73. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Resource/Setup.php +0 -23
  74. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Service/Communication.php +211 -0
  75. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Service/Quote.php +0 -15
  76. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Sofortlastschrift.php +0 -49
  77. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Sofortrechnung.php +0 -819
  78. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Sofortvorkasse.php +0 -52
  79. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Source/Checkout/Presentation.php +43 -0
  80. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Source/Order/Invoice.php +47 -0
  81. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Source/Order/Status.php +61 -0
  82. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/Status.php +0 -15
  83. app/code/community/Paymentnetwork/Pnsofortueberweisung/Model/System/Config/Source/Logo.php +0 -33
  84. app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/Adminhtml/PnsofortueberweisungController.php +0 -272
  85. app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/PaymentController.php +317 -0
  86. app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/PnsofortueberweisungController.php +0 -290
  87. app/code/community/Paymentnetwork/Pnsofortueberweisung/controllers/SofortController.php +0 -673
  88. app/code/community/Paymentnetwork/Pnsofortueberweisung/etc/config.xml +93 -417
  89. app/code/community/Paymentnetwork/Pnsofortueberweisung/etc/system.xml +363 -470
  90. app/code/community/Paymentnetwork/Pnsofortueberweisung/sql/pnsofortueberweisung_setup/mysql4-install-2.0.0.php +0 -14
  91. app/code/community/Paymentnetwork/Pnsofortueberweisung/sql/pnsofortueberweisung_setup/mysql4-upgrade-2.3.0-2.3.1.php +0 -50
  92. app/code/community/Paymentnetwork/Pnsofortueberweisung/sql/pnsofortueberweisung_setup/mysql4-upgrade-2.3.1-2.4.0.php +0 -39
  93. app/design/adminhtml/base/default/template/paymentnetwork/sofort/info/sofort.phtml +14 -0
  94. app/design/adminhtml/base/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml +0 -21
  95. app/design/adminhtml/base/default/template/pnsofortueberweisung/info/pdf/sofortueberweisung.phtml +0 -26
  96. app/design/adminhtml/base/default/template/pnsofortueberweisung/info/sofortrechnung.phtml +0 -33
  97. app/design/adminhtml/base/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml +0 -26
  98. app/design/adminhtml/base/default/template/pnsofortueberweisung/info/sofortvorkasse.phtml +0 -26
  99. app/design/adminhtml/base/default/template/pnsofortueberweisung/system/config/fieldset/global.phtml +0 -70
  100. app/design/adminhtml/default/default/layout/pnsofortueberweisung.xml +0 -19
  101. app/design/adminhtml/default/default/template/pnsofortueberweisung/edit.phtml +0 -138
  102. app/design/adminhtml/default/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml +0 -21
  103. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/pdf/sofortueberweisung.phtml +0 -26
  104. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/sofortrechnung.phtml +0 -50
  105. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml +0 -26
  106. app/design/adminhtml/default/default/template/pnsofortueberweisung/info/sofortvorkasse.phtml +0 -26
  107. app/design/adminhtml/default/default/template/pnsofortueberweisung/system/config/fieldset/global.phtml +0 -116
  108. app/design/frontend/base/default/template/paymentnetwork/sofort/form/sofort.phtml +26 -0
  109. app/design/frontend/base/default/template/paymentnetwork/sofort/info/sofort.phtml +5 -0
  110. app/design/frontend/base/default/template/pnsofortueberweisung/form/ideal.phtml +0 -54
  111. app/design/frontend/base/default/template/pnsofortueberweisung/form/lastschriftsofort.phtml +0 -51
  112. app/design/frontend/base/default/template/pnsofortueberweisung/form/sofortlastschrift.phtml +0 -35
  113. app/design/frontend/base/default/template/pnsofortueberweisung/form/sofortrechnung.phtml +0 -33
  114. app/design/frontend/base/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml +0 -39
  115. app/design/frontend/base/default/template/pnsofortueberweisung/form/sofortvorkasse.phtml +0 -33
  116. app/design/frontend/base/default/template/pnsofortueberweisung/info/sofortrechnung.phtml +0 -34
  117. app/design/frontend/base/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml +0 -34
  118. app/design/frontend/base/default/template/pnsofortueberweisung/info/sofortvorkasse.phtml +0 -34
  119. app/design/frontend/base/default/template/pnsofortueberweisung/infobox.phtml +0 -31
  120. app/design/frontend/base/default/template/pnsofortueberweisung/sofortvorkassesuccess.phtml +0 -33
  121. app/design/frontend/default/default/layout/pnsofortueberweisung.xml +0 -37
  122. app/design/frontend/default/default/template/pnsofortueberweisung/form/lastschriftsofort.phtml +0 -51
  123. app/design/frontend/default/default/template/pnsofortueberweisung/form/sofortlastschrift.phtml +0 -35
  124. app/design/frontend/default/default/template/pnsofortueberweisung/form/sofortrechnung.phtml +0 -33
  125. app/design/frontend/default/default/template/pnsofortueberweisung/form/sofortueberweisung.phtml +0 -39
  126. app/design/frontend/default/default/template/pnsofortueberweisung/form/sofortvorkasse.phtml +0 -33
  127. app/design/frontend/default/default/template/pnsofortueberweisung/info/sofortrechnung.phtml +0 -34
  128. app/design/frontend/default/default/template/pnsofortueberweisung/info/sofortueberweisung.phtml +0 -34
  129. app/design/frontend/default/default/template/pnsofortueberweisung/info/sofortvorkasse.phtml +0 -34
  130. app/design/frontend/default/default/template/pnsofortueberweisung/infobox.phtml +0 -31
  131. app/design/frontend/default/default/template/pnsofortueberweisung/sofortvorkassesuccess.phtml +0 -33
  132. app/etc/modules/Paymentnetwork_Pnsofortueberweisung.xml +30 -0
  133. app/etc/modules/Paymentnetwork_Sofortueberweisung.xml +0 -11
  134. app/locale/cs_CZ/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  135. app/locale/de_AT/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  136. app/locale/de_AT/Paymentnetwork_Sofortueberweisung.csv +0 -137
  137. app/locale/de_CH/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  138. app/locale/de_CH/Paymentnetwork_Sofortueberweisung.csv +0 -137
  139. app/locale/de_DE/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  140. app/locale/de_DE/Paymentnetwork_Sofortueberweisung.csv +0 -137
  141. app/locale/en_AU/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  142. app/locale/en_CA/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  143. app/locale/en_GB/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  144. app/locale/en_GB/Paymentnetwork_Sofortueberweisung.csv +0 -133
  145. app/locale/en_IE/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  146. app/locale/en_NZ/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  147. app/locale/en_US/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  148. app/locale/en_US/Paymentnetwork_Sofortueberweisung.csv +0 -133
  149. app/locale/en_ZA/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  150. app/locale/es_AR/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  151. app/locale/es_CL/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  152. app/locale/es_CO/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  153. app/locale/es_CR/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  154. app/locale/es_ES/Paymentnetwork_Sofortueberweisung.csv +0 -133
  155. app/locale/es_MX/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  156. app/locale/es_PA/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  157. app/locale/es_PE/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  158. app/locale/es_VE/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  159. app/locale/fr_CA/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  160. app/locale/fr_FR/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  161. app/locale/fr_FR/Paymentnetwork_Sofortueberweisung.csv +0 -133
  162. app/locale/hu_HU/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  163. app/locale/it_CH/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  164. app/locale/it_IT/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  165. app/locale/it_IT/Paymentnetwork_Sofortueberweisung.csv +0 -133
  166. app/locale/nl_NL/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  167. app/locale/nl_NL/Paymentnetwork_Sofortueberweisung.csv +0 -133
  168. app/locale/pl_PL/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  169. app/locale/pl_PL/Paymentnetwork_Sofortueberweisung.csv +0 -133
  170. app/locale/sk_SK/Paymentnetwork_Pnsofortueberweisung.csv +75 -0
  171. js/pnso_editCartValidation.js +0 -224
  172. lib/Sofort/core/abstractDataHandler.php +226 -0
  173. lib/Sofort/core/abstractLoggerHandler.php +23 -0
  174. lib/Sofort/core/fileLogger.php +156 -0
  175. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/helper/array_to_xml.php → lib/Sofort/core/lib/arrayToXml.php +73 -34
  176. lib/Sofort/core/lib/arrayToXmlException.php +17 -0
  177. lib/Sofort/core/lib/elements/sofortElement.php +24 -0
  178. lib/Sofort/core/lib/elements/sofortTag.php +71 -0
  179. lib/Sofort/core/lib/elements/sofortText.php +46 -0
  180. app/code/community/Paymentnetwork/Pnsofortueberweisung/Helper/library/helper/xml_to_array.php → lib/Sofort/core/lib/xmlToArray.php +38 -137
  181. lib/Sofort/core/lib/xmlToArrayException.php +17 -0
  182. lib/Sofort/core/lib/xmlToArrayNode.php +196 -0
  183. lib/Sofort/core/sofortLibAbstract.inc.php +795 -0
  184. lib/Sofort/core/sofortLibFactory.php +54 -0
  185. lib/Sofort/core/sofortLibHttp.inc.php +210 -0
  186. lib/Sofort/core/sofortLibHttpCurl.inc.php +90 -0
  187. lib/Sofort/core/sofortLibHttpSocket.inc.php +103 -0
  188. lib/Sofort/core/sofortLibMultipay.inc.php +268 -0
  189. lib/Sofort/core/sofortLibNotification.inc.php +86 -0
  190. lib/Sofort/core/sofortLibTransactionData.inc.php +663 -0
  191. lib/Sofort/core/xmlDataHandler.php +61 -0
  192. lib/Sofort/examples/example.sofortueberweisung.php +37 -0
  193. lib/Sofort/examples/example.transaction.php +82 -0
  194. lib/Sofort/payment/sofortLibSofortueberweisung.inc.php +78 -0
  195. lib/Sofort/unittests/SofortObject.php +8 -0
  196. lib/Sofort/unittests/abstractDataHandlerTest.php +113 -0
  197. lib/Sofort/unittests/abstractLoggerHandlerTest.php +11 -0
  198. lib/Sofort/unittests/arrayToXmlTest.php +141 -0
  199. lib/Sofort/unittests/fileLoggerTest.php +87 -0
  200. lib/Sofort/unittests/paymentTest.xml +25 -0
  201. lib/Sofort/unittests/sofortLibAbstractTest.php +697 -0
  202. lib/Sofort/unittests/sofortLibHttpCurlTest.php +26 -0
  203. lib/Sofort/unittests/sofortLibHttpSocketTest.php +58 -0
  204. lib/Sofort/unittests/sofortLibHttpTest.php +204 -0
  205. lib/Sofort/unittests/sofortLibMultipayTest.php +325 -0
  206. lib/Sofort/unittests/sofortLibNotificationTest.php +72 -0
  207. lib/Sofort/unittests/sofortLibSofortUeberweisungTest.php +466 -0
  208. lib/Sofort/unittests/sofortLibTest.php +20 -0
  209. lib/Sofort/unittests/sofortLibTransactionDataTest.php +2798 -0
  210. lib/Sofort/unittests/xmlToArrayNodeTest.php +192 -0
  211. lib/Sofort/unittests/xmlToArrayTest.php +205 -0
  212. lib/Varien/Data/Form/Element/Linkpnso.php +0 -133
  213. package.xml +9 -11
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Heading/Big.php ADDED
@@ -0,0 +1,20 @@
1
+ <?php
2
+
3
+
4
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Heading_Big
5
+ extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
6
+ {
7
+ /**
8
+ * Render element html
9
+ *
10
+ * @param Varien_Data_Form_Element_Abstract $element
11
+ * @return string
12
+ */
13
+ public function render(Varien_Data_Form_Element_Abstract $element)
14
+ {
15
+ $useContainerId = $element->getData('use_container_id');
16
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h2 id="%s">%s</h2></td></tr>',
17
+ $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
18
+ );
19
+ }
20
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Heading/Italic.php ADDED
@@ -0,0 +1,20 @@
1
+ <?php
2
+
3
+
4
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Heading_Italic
5
+ extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
6
+ {
7
+ /**
8
+ * Render element html
9
+ *
10
+ * @param Varien_Data_Form_Element_Abstract $element
11
+ * @return string
12
+ */
13
+ public function render(Varien_Data_Form_Element_Abstract $element)
14
+ {
15
+ $useContainerId = $element->getData('use_container_id');
16
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s" style="font-style:italic;">%s</h4></td></tr>',
17
+ $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
18
+ );
19
+ }
20
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Heading/Middle.php ADDED
@@ -0,0 +1,20 @@
1
+ <?php
2
+
3
+
4
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Heading_Middle
5
+ extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
6
+ {
7
+ /**
8
+ * Render element html
9
+ *
10
+ * @param Varien_Data_Form_Element_Abstract $element
11
+ * @return string
12
+ */
13
+ public function render(Varien_Data_Form_Element_Abstract $element)
14
+ {
15
+ $useContainerId = $element->getData('use_container_id');
16
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h3 id="%s">%s</h3></td></tr>',
17
+ $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
18
+ );
19
+ }
20
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label.php ADDED
@@ -0,0 +1,48 @@
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Adminhtml
23
+ * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+
28
+ /**
29
+ * Renderer for sub-heading in fieldset
30
+ *
31
+ * @author Magento Core Team <core@magentocommerce.com>
32
+ */
33
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Label
34
+ extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
35
+ {
36
+ /**
37
+ * Render element html
38
+ *
39
+ * @param Varien_Data_Form_Element_Abstract $element
40
+ * @return string
41
+ */
42
+ public function render(Varien_Data_Form_Element_Abstract $element)
43
+ {
44
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" style="padding-top: 5px; padding-bottom: 5px;"><div id="%s">%s</div></td></tr>',
45
+ $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
46
+ );
47
+ }
48
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label/Red.php ADDED
@@ -0,0 +1,48 @@
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Adminhtml
23
+ * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+
28
+ /**
29
+ * Renderer for sub-heading in fieldset
30
+ *
31
+ * @author Magento Core Team <core@magentocommerce.com>
32
+ */
33
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Label_Red
34
+ extends Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Label
35
+ {
36
+ /**
37
+ * Render element html
38
+ *
39
+ * @param Varien_Data_Form_Element_Abstract $element
40
+ * @return string
41
+ */
42
+ public function render(Varien_Data_Form_Element_Abstract $element)
43
+ {
44
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><div id="%s" style="color:red;">%s</div></td></tr>',
45
+ $element->getHtmlId(), $element->getHtmlId(), '<div>' . $element->getLabel() . '</div>'
46
+ );
47
+ }
48
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label/Status.php ADDED
@@ -0,0 +1,50 @@
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Adminhtml
23
+ * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+
28
+ /**
29
+ * Renderer for sub-heading in fieldset
30
+ *
31
+ * @author Magento Core Team <core@magentocommerce.com>
32
+ */
33
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Label_Status
34
+ extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
35
+ {
36
+ /**
37
+ * Render element html
38
+ *
39
+ * @param Varien_Data_Form_Element_Abstract $element
40
+ * @return string
41
+ */
42
+ public function render(Varien_Data_Form_Element_Abstract $element)
43
+ {
44
+ $label = sprintf($element->getLabel(), '"' . Mage::helper('sofort')->__("Not update status")) . '"';
45
+
46
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><div id="%s">%s</div></td></tr>',
47
+ $element->getHtmlId(), $element->getHtmlId(), $label
48
+ );
49
+ }
50
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Payment/Config/Label/Toggle.php ADDED
@@ -0,0 +1,51 @@
1
+ <?php
2
+
3
+ /*
4
+ * To change this template, choose Tools | Templates
5
+ * and open the template in the editor.
6
+ */
7
+
8
+ /**
9
+ * Description of Toggle
10
+ *
11
+ * @author Christopher
12
+ */
13
+ class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Label_Toggle extends Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Payment_Config_Label
14
+ {
15
+ /**
16
+ * Render element html
17
+ *
18
+ * @param Varien_Data_Form_Element_Abstract $element
19
+ * @return string
20
+ */
21
+ public function render(Varien_Data_Form_Element_Abstract $element)
22
+ {
23
+ $script = '$("row_payment_paymentnetwork_pnsofortueberweisung_display_settings_heading").toggle();
24
+ $("row_payment_paymentnetwork_pnsofortueberweisung_checkout_presentation").toggle();
25
+ $("row_payment_paymentnetwork_pnsofortueberweisung_customer_protection").toggle();
26
+ $("row_payment_paymentnetwork_pnsofortueberweisung_allowspecific").toggle();
27
+ $("row_payment_paymentnetwork_pnsofortueberweisung_specificcountry").toggle();
28
+ $("row_payment_paymentnetwork_pnsofortueberweisung_sort_order").toggle();
29
+ $("row_payment_paymentnetwork_pnsofortueberweisung_usage_settings_heading").toggle();
30
+ $("row_payment_paymentnetwork_pnsofortueberweisung_usage_text_one").toggle();
31
+ $("row_payment_paymentnetwork_pnsofortueberweisung_usage_text_two").toggle();
32
+ $("row_payment_paymentnetwork_pnsofortueberweisung_status_settings_heading").toggle();
33
+ $("row_payment_paymentnetwork_pnsofortueberweisung_order_status").toggle();
34
+ $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_pending_not_credited_yet").toggle();
35
+ $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_loss_not_credited").toggle();
36
+ $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_received_credited").toggle();
37
+ $("row_payment_paymentnetwork_pnsofortueberweisung_create_invoice").toggle();
38
+ $("row_payment_paymentnetwork_pnsofortueberweisung_status_config_text_one").toggle();
39
+ $("row_payment_paymentnetwork_pnsofortueberweisung_status_config_text_two").toggle();
40
+ $("row_payment_paymentnetwork_pnsofortueberweisung_create_creditmemo").toggle();
41
+ $("row_payment_paymentnetwork_pnsofortueberweisung_send_mail").toggle();';
42
+
43
+ $labelText = Mage::helper('sofort')->__("Adjust the SOFORT Banking module properties here. <a onclick='%s'>(Click to open)</a>");
44
+
45
+ $label = sprintf($labelText, $script);
46
+
47
+ return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><div id="%s">%s</div></td></tr>',
48
+ $element->getHtmlId(), $element->getHtmlId(), $label . $element->getLabel()
49
+ );
50
+ }
51
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2012 initOS GmbH & Co. KG, 2012 Payment Network AG
18
- * @author Markus Schneider <markus.schneider[at]initos.com>
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- * @version $Id: Pnsofortueberweisung.php 3844 2012-06-06 07:37:02Z dehn $
21
- */
22
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung extends Mage_Adminhtml_Block_Widget_Grid_Container {
23
- public function __construct() {
24
- $this->_controller = 'adminhtml_pnsofortueberweisung';
25
- $this->_blockGroup = 'pnsofortueberweisung';
26
- $this->_headerText = Mage::helper('pnsofortueberweisung')->__('Orders with Rechnung by SOFORT');
27
- parent::__construct();
28
- $this->_removeButton('add');
29
- }
30
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit.php DELETED
@@ -1,63 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Edit.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
22
- {
23
- public function __construct()
24
- {
25
- parent::__construct();
26
-
27
- $this->_objectId = 'id';
28
- $this->_blockGroup = 'pnsofortueberweisung';
29
- $this->_controller = 'adminhtml_pnsofortueberweisung';
30
-
31
- $this->_updateButton('save', 'label', Mage::helper('pnsofortueberweisung')->__('Save Item'));
32
- $this->_updateButton('delete', 'label', Mage::helper('pnsofortueberweisung')->__('Delete Item'));
33
-
34
- $this->_addButton('saveandcontinue', array(
35
- 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
36
- 'onclick' => 'saveAndContinueEdit()',
37
- 'class' => 'save',
38
- ), -100);
39
-
40
- $this->_formScripts[] = "
41
- function toggleEditor() {
42
- if (tinyMCE.getInstanceById('pnsofortueberweisung_content') == null) {
43
- tinyMCE.execCommand('mceAddControl', false, 'pnsofortueberweisung_content');
44
- } else {
45
- tinyMCE.execCommand('mceRemoveControl', false, 'pnsofortueberweisung_content');
46
- }
47
- }
48
-
49
- function saveAndContinueEdit(){
50
- editForm.submit($('edit_form').action+'back/edit/');
51
- }
52
- ";
53
- }
54
-
55
- public function getHeaderText()
56
- {
57
- if( Mage::registry('pnsofortueberweisung_data') && Mage::registry('pnsofortueberweisung_data')->getId() ) {
58
- return Mage::helper('pnsofortueberweisung')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('pnsofortueberweisung_data')->getTitle()));
59
- } else {
60
- return Mage::helper('pnsofortueberweisung')->__('Add Item');
61
- }
62
- }
63
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Form.php DELETED
@@ -1,36 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Form.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
22
- {
23
- protected function _prepareForm()
24
- {
25
- $form = new Varien_Data_Form(array(
26
- 'id' => 'edit_form',
27
- 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
28
- 'method' => 'post',
29
- )
30
- );
31
-
32
- $form->setUseContainer(true);
33
- $this->setForm($form);
34
- return parent::_prepareForm();
35
- }
36
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tab/Form.php DELETED
@@ -1,70 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Form.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
22
- {
23
- protected function _prepareForm()
24
- {
25
- $form = new Varien_Data_Form();
26
- $this->setForm($form);
27
- $fieldset = $form->addFieldset('pnsofortueberweisung_form', array('legend'=>Mage::helper('pnsofortueberweisung')->__('Item information')));
28
-
29
- $fieldset->addField('title', 'text', array(
30
- 'label' => Mage::helper('pnsofortueberweisung')->__('Title'),
31
- 'class' => 'required-entry',
32
- 'required' => true,
33
- 'name' => 'title',
34
- ));
35
-
36
- $fieldset->addField('status', 'select', array(
37
- 'label' => Mage::helper('pnsofortueberweisung')->__('Status'),
38
- 'name' => 'status',
39
- 'values' => array(
40
- array(
41
- 'value' => 1,
42
- 'label' => Mage::helper('pnsofortueberweisung')->__('Enabled'),
43
- ),
44
-
45
- array(
46
- 'value' => 2,
47
- 'label' => Mage::helper('pnsofortueberweisung')->__('Disabled'),
48
- ),
49
- ),
50
- ));
51
-
52
- $fieldset->addField('content', 'editor', array(
53
- 'name' => 'content',
54
- 'label' => Mage::helper('pnsofortueberweisung')->__('Content'),
55
- 'title' => Mage::helper('pnsofortueberweisung')->__('Content'),
56
- 'style' => 'width:700px; height:500px;',
57
- 'wysiwyg' => false,
58
- 'required' => true,
59
- ));
60
-
61
- if ( Mage::getSingleton('adminhtml/session')->getSofortueberweisungData() )
62
- {
63
- $form->setValues(Mage::getSingleton('adminhtml/session')->getSofortueberweisungData());
64
- Mage::getSingleton('adminhtml/session')->setSofortueberweisungData(null);
65
- } elseif ( Mage::registry('pnsofortueberweisung_data') ) {
66
- $form->setValues(Mage::registry('pnsofortueberweisung_data')->getData());
67
- }
68
- return parent::_prepareForm();
69
- }
70
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Edit/Tabs.php DELETED
@@ -1,42 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Tabs.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
22
- {
23
-
24
- public function __construct()
25
- {
26
- parent::__construct();
27
- $this->setId('pnsofortueberweisung_tabs');
28
- $this->setDestElementId('edit_form');
29
- $this->setTitle(Mage::helper('pnsofortueberweisung')->__('Item Information'));
30
- }
31
-
32
- protected function _beforeToHtml()
33
- {
34
- $this->addTab('form_section', array(
35
- 'label' => Mage::helper('pnsofortueberweisung')->__('Item Information'),
36
- 'title' => Mage::helper('pnsofortueberweisung')->__('Item Information'),
37
- 'content' => $this->getLayout()->createBlock('pnsofortueberweisung/adminhtml_sofortueberweisung_edit_tab_form')->toHtml(),
38
- ));
39
-
40
- return parent::_beforeToHtml();
41
- }
42
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Grid.php DELETED
@@ -1,142 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG, 2012 initOS GmbH & Co. KG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Grid.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Grid extends Mage_Adminhtml_Block_Widget_Grid
22
- {
23
-
24
- public function __construct()
25
- {
26
- parent::__construct();
27
- $this->setId('pnsofortueberweisungGrid');
28
- $this->setDefaultSort('real_order_id');
29
- $this->setDefaultDir('DESC');
30
- $this->setSaveParametersInSession(true);
31
- }
32
-
33
- protected function _prepareCollection()
34
- {
35
- $collection = Mage::getResourceModel('sales/order_grid_collection');
36
- $resource = Mage::getSingleton('core/resource');
37
-
38
- $collection->addFilter('method','sofortrechnung');
39
- $collection->getSelect()->join(
40
- array(
41
- 'flat_payment' => $resource->getTableName('sales/order_payment')),
42
- 'parent_id=main_table.entity_id',
43
- array('payment_method' => 'method', 'additional_information' => 'additional_information'
44
- )
45
- );
46
-
47
- $this->setCollection($collection);
48
-
49
- return parent::_prepareCollection();
50
- }
51
-
52
- protected function _prepareColumns()
53
- {
54
- $this->addColumn('real_order_id', array(
55
- 'header'=> Mage::helper('sales')->__('Order #'),
56
- 'width' => '80px',
57
- 'type' => 'text',
58
- 'index' => 'increment_id',
59
- ));
60
-
61
- if (!Mage::app()->isSingleStoreMode()) {
62
- $this->addColumn('store_id', array(
63
- 'header' => Mage::helper('sales')->__('Purchased From (Store)'),
64
- 'index' => 'store_id',
65
- 'type' => 'store',
66
- 'store_view'=> true,
67
- 'display_deleted' => true,
68
- ));
69
- }
70
-
71
- $this->addColumn('status', array(
72
- 'header' => Mage::helper('sales')->__('Status'),
73
- 'index' => 'status',
74
- 'type' => 'options',
75
- 'width' => '120px',
76
- 'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
77
- ));
78
-
79
- $this->addColumn('created_at', array(
80
- 'header' => Mage::helper('sales')->__('Purchased On'),
81
- 'index' => 'created_at',
82
- 'type' => 'datetime',
83
- 'width' => '100px',
84
- ));
85
-
86
- $this->addColumn('billing_name', array(
87
- 'header' => Mage::helper('sales')->__('Bill to Name'),
88
- 'index' => 'billing_name',
89
- ));
90
-
91
- $this->addColumn('additional_information', array(
92
- 'header' => Mage::helper('pnsofortueberweisung')->__('Transaction Id'),
93
- 'index' => 'additional_information',
94
- 'renderer' => 'Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Renderer_Transaction',
95
- ));
96
-
97
- $this->addColumn('grand_total', array(
98
- 'header' => Mage::helper('sales')->__('G.T. (Purchased)'),
99
- 'index' => 'grand_total',
100
- 'type' => 'currency',
101
- 'currency' => 'order_currency_code',
102
- ));
103
-
104
- if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
105
- $this->addColumn('action',
106
- array(
107
- 'header' => Mage::helper('sales')->__('Action'),
108
- 'width' => '90px',
109
- 'type' => 'action',
110
- 'getter' => 'getId',
111
- 'actions' => array(
112
- array(
113
- 'caption' => Mage::helper('sales')->__('View'),
114
- 'url' => array('base'=>'adminhtml/sales_order/view'),
115
- 'field' => 'order_id'
116
- ),
117
- array(
118
- 'caption' => Mage::helper('pnsofortueberweisung')->__('Edit Cart'),
119
- 'url' => array('base'=>'*/*/edit'),
120
- 'field' => 'order_id'
121
- ),
122
- ),
123
- 'filter' => false,
124
- 'sortable' => false,
125
- 'index' => 'stores',
126
- 'is_system' => true,
127
- ));
128
- }
129
-
130
-
131
- return parent::_prepareColumns();
132
- }
133
-
134
- public function getRowUrl($row)
135
- {
136
- if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
137
- return $this->getUrl('adminhtml/sales_order/view', array('order_id' => $row->getId()));
138
- }
139
- return false;
140
- }
141
-
142
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/Pnsofortueberweisung/Renderer/Transaction.php DELETED
@@ -1,35 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2012 initOS GmbH & Co. KG, 2012 Payment Network AG
18
- * @author Markus Schneider <markus.schneider[at]initos.com>
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- * @version $Id: Transaction.php 3844 2012-06-06 07:37:02Z dehn $
21
- */
22
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_Pnsofortueberweisung_Renderer_Transaction extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract{
23
-
24
- public function render(Varien_Object $row)
25
- {
26
- $value = $row->getData($this->getColumn()->getIndex());
27
- $aValue = unserialize($value);
28
- if(!empty($aValue['sofort_transaction'])){
29
- return '<strong>'.$aValue['sofort_transaction'].'</strong>';
30
- }
31
- return;
32
-
33
- }
34
-
35
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Adminhtml/System/Config/Fieldset/Global.php DELETED
@@ -1,201 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright 2010 Payment Network AG, 2013 initOS GmbH & Co. KG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Global.php 3854 2012-04-18 08:54:03Z dehn $
20
- */
21
-
22
- class Paymentnetwork_Pnsofortueberweisung_Block_Adminhtml_System_Config_Fieldset_Global extends Mage_Adminhtml_Block_System_Config_Form_Fieldset implements Varien_Data_Form_Element_Renderer_Interface {
23
-
24
- /**
25
- * Associative array of PayPal product selection elements
26
- *
27
- * @var array
28
- */
29
- protected $_elements = array();
30
-
31
- /**
32
- * Custom template
33
- *
34
- * @var string
35
- */
36
- protected $_template = 'pnsofortueberweisung/system/config/fieldset/global.phtml';
37
-
38
- /**
39
- * Render fieldset html
40
- *
41
- * @param Varien_Data_Form_Element_Abstract $fieldset
42
- * @return string
43
- */
44
- public function render(Varien_Data_Form_Element_Abstract $fieldset) {
45
-
46
- foreach ($fieldset->getSortedElements() as $element) {
47
- $htmlId = $element->getHtmlId();
48
- $this->_elements[$htmlId] = $element;
49
- }
50
-
51
- $originalData = $fieldset->getOriginalData();
52
- $this->addData(array(
53
- 'fieldset_label' => $fieldset->getLegend(),
54
- 'fieldset_help_url' => isset($originalData['help_url']) ? $originalData['help_url'] : '',
55
- ));
56
-
57
- return $this->_getHeaderHtml($fieldset).$this->toHtml().$this->_getFooterHtml($fieldset);
58
- }
59
-
60
-
61
- /**
62
- * Get array of element objects
63
- *
64
- * @return array
65
- */
66
- public function getElements() {
67
- return $this->_elements;
68
- }
69
-
70
-
71
- /**
72
- * Return checkbox html with hidden field for correct config values
73
- *
74
- * @param string $elementId
75
- * @return string
76
- */
77
- public function getElementHtml(Varien_Data_Form_Element_Abstract $element) {
78
-
79
- if($element->getType() != 'checkbox') {
80
- return $element->getElementHtml();
81
- }
82
-
83
- $configValue = (string)$element->getValue();
84
-
85
- if ($configValue) {
86
- $element->setChecked(true);
87
- } else {
88
- $element->setValue('1');
89
- }
90
-
91
- if ($element->getCanUseDefaultValue() && $element->getInherit()) {
92
- $element->setDisabled(true);
93
- }
94
-
95
- $hidden = new Varien_Data_Form_Element_Hidden(array(
96
- 'html_id' => $element->getHtmlId() . '_value',
97
- 'name' => $element->getName(),
98
- 'value' => '0'
99
- ));
100
- $hidden->setForm($element->getForm());
101
- return $hidden->getElementHtml() . $element->getElementHtml();
102
- }
103
-
104
-
105
- /**
106
- * Whether element should be rendered in "simplified" mode
107
- *
108
- * @param Varien_Data_Form_Element_Abstract $element
109
- * @return bool
110
- */
111
- public function getIsElementSimplified(Varien_Data_Form_Element_Abstract $element) {
112
- $originalData = $element->getOriginalData();
113
- return isset($originalData['is_simplified']) && 1 == $originalData['is_simplified'];
114
- }
115
-
116
-
117
- /**
118
- * Getter for element label
119
- *
120
- * @param Varien_Data_Form_Element_Abstract $element
121
- * @return string
122
- */
123
- public function getElementLabel(Varien_Data_Form_Element_Abstract $element) {
124
- return $element->getLabel();
125
- }
126
-
127
-
128
- /**
129
- * Getter for element comment
130
- *
131
- * @param Varien_Data_Form_Element_Abstract $element
132
- * @return string
133
- */
134
- public function getElementComment(Varien_Data_Form_Element_Abstract $element) {
135
- return $element->getComment();
136
- }
137
-
138
-
139
- /**
140
- * Getter for element comment
141
- *
142
- * @param Varien_Data_Form_Element_Abstract $element
143
- * @return string
144
- */
145
- public function getElementOriginalData(Varien_Data_Form_Element_Abstract $element, $key) {
146
- $data = $element->getOriginalData();
147
- return isset($data[$key]) ? $data[$key] : '';
148
- }
149
-
150
-
151
- /**
152
- * Check whether checkbox has "Use default" option or not
153
- *
154
- * @param Varien_Data_Form_Element_Abstract $element
155
- * @return bool
156
- */
157
- public function hasInheritElement(Varien_Data_Form_Element_Abstract $element) {
158
- return (bool)$element->getCanUseDefaultValue();
159
- }
160
-
161
-
162
- /**
163
- * Return "Use default" checkbox html
164
- *
165
- * @param Varien_Data_Form_Element_Abstract $element
166
- * @return string
167
- */
168
- public function getInheritElementHtml(Varien_Data_Form_Element_Abstract $element) {
169
- $elementId = $element->getHtmlId();
170
- $inheritCheckbox = new Varien_Data_Form_Element_Checkbox(array(
171
- 'html_id' => $elementId . '_inherit',
172
- 'name' => preg_replace('/\[value\](\[\])?#x2F;', '[inherit]', $element->getName()),
173
- 'value' => '1',
174
- 'class' => 'checkbox config-inherit',
175
- 'onclick' => 'toggleValueElements(this, $(\'' . $elementId . '\').up())'
176
- ));
177
-
178
- if ($element->getInherit()) {
179
- $inheritCheckbox->setChecked(true);
180
- }
181
-
182
- $inheritCheckbox->setForm($element->getForm());
183
- return $inheritCheckbox->getElementHtml();
184
- }
185
-
186
-
187
- /**
188
- * Return label for "Use default" checkbox
189
- *
190
- * @param Varien_Data_Form_Element_Abstract $element
191
- * @return string
192
- */
193
- public function getInheritElementLabelHtml(Varien_Data_Form_Element_Abstract $element) {
194
- return sprintf('<label for="%s" class="inherit" title="%s">%s</label>',
195
- $element->getHtmlId() . '_inherit',
196
- $element->getDefaultValue(),
197
- Mage::helper('adminhtml')->__('Use Default')
198
- );
199
- }
200
-
201
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Ideal.php DELETED
@@ -1,94 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2012 initOS GmbH & Co. KG, 2012 Payment Network AG
18
- * @author Markus Schneider <markus.schneider@initos.com>
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- * @version $Id: Ideal.php 3844 2012-04-18 07:37:02Z dehn $
21
- */
22
- require_once Mage::getModuleDir('', 'Paymentnetwork_Pnsofortueberweisung').'/Helper/library/sofortLib_ideal_classic.php';
23
- class Paymentnetwork_Pnsofortueberweisung_Block_Form_Ideal extends Mage_Payment_Block_Form
24
- {
25
- /**
26
- * store array with bank codes
27
- *
28
- * @var array
29
- */
30
- private $_relatedBanks = null;
31
-
32
- /**
33
- * Init default template for block
34
- */
35
- protected function _construct()
36
- {
37
- $this->setTemplate('pnsofortueberweisung/form/ideal.phtml');
38
- // replace title with image
39
- $this->setMethodTitle('');
40
- $this->setMethodLabelAfterHtml('<img src="'.Mage::helper('pnsofortueberweisung')->__('https://images.sofort.com/en/ideal/logo_155x50.png').'">');
41
- return parent::_construct();
42
- }
43
-
44
- /**
45
- * Retrieve payment configuration object
46
- *
47
- * @return Mage_Payment_Model_Config
48
- */
49
- protected function _getConfig()
50
- {
51
- return Mage::getSingleton('payment/config');
52
- }
53
-
54
- /**
55
- * return banks with code
56
- *
57
- * @return array
58
- */
59
- public function getBanks() {
60
- if(empty($this->_relatedBanks)){
61
- $sofort = new SofortLib_iDealClassic(Mage::getStoreConfig('payment/sofort_ideal/configkey'),Mage::getStoreConfig('payment/sofort_ideal/password'), 'sha1');
62
- $this->_relatedBanks = $sofort->getRelatedBanks();
63
- }
64
- return $this->_relatedBanks;
65
- }
66
-
67
- /**
68
- * get current account holder
69
- *
70
- * @return string
71
- */
72
- public function getAccountHolder() {
73
- return Mage::getSingleton('core/session')->getIdealHolder();
74
- }
75
-
76
- /**
77
- * return current account number
78
- *
79
- * @return string
80
- */
81
- public function getAccountNumber() {
82
- return Mage::getSingleton('core/session')->getIdealAccountNumber();
83
- }
84
-
85
- /**
86
- * return bank code
87
- *
88
- * @return int
89
- */
90
- public function getIdealBankCode() {
91
- return Mage::getSingleton('core/session')->getIdealBankCode();
92
- }
93
-
94
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Lastschriftsofort.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id$
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Form_Lastschriftsofort extends Mage_Payment_Block_Form
22
- {
23
- /**
24
- * Init default template for block
25
- */
26
- protected function _construct()
27
- {
28
- $this->setTemplate('pnsofortueberweisung/form/lastschriftsofort.phtml');
29
- return parent::_construct();
30
- }
31
-
32
- /**
33
- * Retrieve payment configuration object
34
- *
35
- * @return Mage_Payment_Model_Config
36
- */
37
- protected function _getConfig()
38
- {
39
- return Mage::getSingleton('payment/config');
40
- }
41
-
42
- public function getImageUrl() {
43
- return Mage::getStoreConfig('payment/pnsofort/logourl').Mage::helper('pnsofortueberweisung')->__('de').'/ls/'.Mage::getStoreConfig('payment/sofort/logo').'.png';
44
- }
45
-
46
- public function isDisplayText() {
47
- return substr(Mage::getStoreConfig('payment/sofort/logo'), 0, 4) == 'logo';
48
- }
49
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Paycode.php DELETED
@@ -1,41 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Paycode.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Form_Paycode extends Mage_Payment_Block_Form
22
- {
23
- /**
24
- * Init default template for block
25
- */
26
- protected function _construct()
27
- {
28
- parent::_construct();
29
- $this->setTemplate('pnsofortueberweisung/form/paycode.phtml');
30
- }
31
-
32
- /**
33
- * Retrieve payment configuration object
34
- *
35
- * @return Mage_Payment_Model_Config
36
- */
37
- protected function _getConfig()
38
- {
39
- return Mage::getSingleton('payment/config');
40
- }
41
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Pnsofortueberweisung.php DELETED
@@ -1,79 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Pnsofortueberweisung.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Form_Pnsofortueberweisung extends Mage_Payment_Block_Form
22
- {
23
- /**
24
- * Init default template for block
25
- */
26
- protected function _construct()
27
- {
28
- $this->setTemplate('pnsofortueberweisung/form/sofortueberweisung.phtml');
29
- if($this->isDisplayText()) {
30
- $this->setMethodTitle('');
31
- $this->setMethodLabelAfterHtml('<img src="'.Mage::helper('pnsofortueberweisung')->__('https://images.sofort.com/de/su/logo_155x50.png').'">');
32
- }
33
- return parent::_construct();
34
- }
35
-
36
- /**
37
- * Retrieve payment configuration object
38
- *
39
- * @return Mage_Payment_Model_Config
40
- */
41
- protected function _getConfig()
42
- {
43
- return Mage::getSingleton('payment/config');
44
- }
45
-
46
- public function getImageUrl() {
47
- if(Mage::getStoreConfig('payment/sofort/pnsofort_customerprotection') && Mage::getStoreConfig('payment/sofort/logo') == 'banner_300x100') {
48
- return Mage::getStoreConfig('payment/pnsofort/logourl').'de/su/banner_400x100_ks.png';
49
- }
50
-
51
- return Mage::getStoreConfig('payment/pnsofort/logourl').Mage::helper('pnsofortueberweisung')->__('de').'/su/'.Mage::getStoreConfig('payment/sofort/logo').'.png';
52
- }
53
-
54
- public function isDisplayText() {
55
- return substr(Mage::getStoreConfig('payment/sofort/logo'), 0, 4) == 'logo';
56
- }
57
-
58
- public function getNetherlandBanks($selected)
59
- {
60
- $bankArray = Array(
61
- 'NL_101' => 'ING Calculator',
62
- 'NL_102' => 'Fortis Bank',
63
- 'NL_103' => 'ABN Amro Bank',
64
- 'NL_104' => 'SNS Bank',
65
- 'NL_105' => 'Rabobank',
66
- 'NL_106' => 'ING Wachtwoord',
67
- 'NL_109' => 'SNS Regio Bank',
68
- );
69
-
70
- foreach($bankArray AS $key => $val){
71
- $selectArray[$key] = Array('value' => $val,'selected' => 0);
72
- if($key == $selected){
73
- $selectArray[$key]['selected'] = 1;
74
- }
75
- }
76
-
77
- return $selectArray;
78
- }
79
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofort.php ADDED
@@ -0,0 +1,51 @@
1
+ <?php
2
+
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category PayIntelligent
17
+ * @package Paintelligent_Sofort
18
+ * @copyright Copyright (c) 2014 PayIntelligent GmbH (http://www.payintelligent.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Form_Sofort extends Mage_Payment_Block_Form
22
+ {
23
+ /**
24
+ * Construct
25
+ */
26
+ protected function _construct()
27
+ {
28
+ parent::_construct();
29
+ $this->setTemplate('paymentnetwork/sofort/form/sofort.phtml');
30
+ }
31
+
32
+ /**
33
+ * Check if presentation method is banner
34
+ *
35
+ * @return boolean
36
+ */
37
+ public function isBanner()
38
+ {
39
+ return (Mage::getStoreConfig('payment/paymentnetwork_pnsofortueberweisung/checkout_presentation') === 'banner');
40
+ }
41
+
42
+ /**
43
+ * Is customer protection enabled
44
+ *
45
+ * @return boolean
46
+ */
47
+ public function isCustomerProtectionEnabled()
48
+ {
49
+ return (boolean) Mage::getStoreConfig('payment/paymentnetwork_pnsofortueberweisung/customer_protection');
50
+ }
51
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofortlastschrift.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Sofortlastschrift.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Form_Sofortlastschrift extends Mage_Payment_Block_Form
22
- {
23
- /**
24
- * Init default template for block
25
- */
26
- protected function _construct()
27
- {
28
- $this->setTemplate('pnsofortueberweisung/form/sofortlastschrift.phtml');
29
- if($this->isDisplayText()) {
30
- $this->setMethodTitle('');
31
- $this->setMethodLabelAfterHtml('<img src="'.Mage::helper('pnsofortueberweisung')->__('https://images.sofort.com/de/sl/logo_155x50.png').'">');
32
- }
33
- return parent::_construct();
34
- }
35
-
36
- /**
37
- * Retrieve payment configuration object
38
- *
39
- * @return Mage_Payment_Model_Config
40
- */
41
- protected function _getConfig()
42
- {
43
- return Mage::getSingleton('payment/config');
44
- }
45
-
46
- public function getImageUrl() {
47
- return Mage::getStoreConfig('payment/pnsofort/logourl').Mage::helper('pnsofortueberweisung')->__('de').'/sl/'.Mage::getStoreConfig('payment/sofort/logo').'.png';
48
- }
49
-
50
- public function isDisplayText() {
51
- return substr(Mage::getStoreConfig('payment/sofort/logo'), 0, 4) == 'logo';
52
- }
53
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofortrechnung.php DELETED
@@ -1,52 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Sofortrechnung.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Form_Sofortrechnung extends Mage_Payment_Block_Form
22
- {
23
- /**
24
- * Init default template for block
25
- */
26
- protected function _construct()
27
- {
28
- $this->setTemplate('pnsofortueberweisung/form/sofortrechnung.phtml');
29
-
30
- return parent::_construct();
31
- }
32
-
33
- /**
34
- * Retrieve payment configuration object
35
- *
36
- * @return Mage_Payment_Model_Config
37
- */
38
- protected function _getConfig()
39
- {
40
- return Mage::getSingleton('payment/config');
41
- }
42
-
43
- public function getImageUrl()
44
- {
45
- return Mage::getStoreConfig('payment/pnsofort/logourl').'de/sr/'.Mage::getStoreConfig('payment/sofort/logo').'.png';
46
- }
47
-
48
- public function isDisplayText()
49
- {
50
- return substr(Mage::getStoreConfig('payment/sofort/logo'), 0, 4) == 'logo';
51
- }
52
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Form/Sofortvorkasse.php DELETED
@@ -1,50 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Sofortvorkasse.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Form_Sofortvorkasse extends Mage_Payment_Block_Form
22
- {
23
- /**
24
- * Init default template for block
25
- */
26
- protected function _construct()
27
- {
28
- $this->setTemplate('pnsofortueberweisung/form/sofortvorkasse.phtml');
29
-
30
- return parent::_construct();
31
- }
32
-
33
- /**
34
- * Retrieve payment configuration object
35
- *
36
- * @return Mage_Payment_Model_Config
37
- */
38
- protected function _getConfig()
39
- {
40
- return Mage::getSingleton('payment/config');
41
- }
42
-
43
- public function getImageUrl() {
44
- return Mage::getStoreConfig('payment/pnsofort/logourl').Mage::helper('pnsofortueberweisung')->__('de').'/sv/'.Mage::getStoreConfig('payment/sofort/logo').'.png';
45
- }
46
-
47
- public function isDisplayText() {
48
- return substr(Mage::getStoreConfig('payment/sofort/logo'), 0, 4) == 'logo';
49
- }
50
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Paycode.php DELETED
@@ -1,62 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Paycode.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- class Paymentnetwork_Pnsofortueberweisung_Block_Info_Paycode extends Mage_Payment_Block_Info
22
- {
23
- /**
24
- * Init default template for block
25
- */
26
- protected function _construct()
27
- {
28
- parent::_construct();
29
- $this->setTemplate('pnsofortueberweisung/info/paycode.phtml');
30
- }
31
-
32
- /**
33
- * Retrieve info model
34
- *
35
- * @return Mage_Sofortueberweisung_Model_Info
36
- */
37
- public function getInfo()
38
- {
39
- $info = $this->getData('info');
40
-
41
- if (!($info instanceof Mage_Payment_Model_Info)) {
42
- Mage::throwException($this->__('Can not retrieve payment info model object.'));
43
- }
44
- return $info;
45
- }
46
-
47
- /**
48
- * Retrieve payment method model
49
- *
50
- * @return Mage_Payment_Model_Method_Abstract
51
- */
52
- public function getMethod()
53
- {
54
- return $this->getInfo()->getMethodInstance();
55
- }
56
-
57
- public function toPdf()
58
- {
59
- $this->setTemplate('pnsofortueberweisung/info/pdf/paycode.phtml');
60
- return $this->toHtml();
61
- }
62
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Pnsofortueberweisung.php DELETED
@@ -1,119 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Pnsofortueberweisung.php 3844 2012-04-18 07:37:02Z dehn $
20
- */
21
- require_once Mage::getModuleDir('', 'Paymentnetwork_Pnsofortueberweisung').'/Helper/library/sofortLib.php';
22
- class Paymentnetwork_Pnsofortueberweisung_Block_Info_Pnsofortueberweisung extends Mage_Payment_Block_Info
23
- {
24
- private $sofort;
25
- /**
26
- * Init default template for block
27
- */
28
- protected function _construct()
29
- {
30
- parent::_construct();
31
- $this->setTemplate('pnsofortueberweisung/info/sofortueberweisung.phtml');
32
-
33
- }
34
-
35
- /**
36
- * Retrieve info model
37
- *
38
- * @return Mage_Sofortueberweisung_Model_Info
39
- */
40
- public function getInfo()
41
- {
42
- $info = $this->getData('info');
43
-
44
- if (!($info instanceof Mage_Payment_Model_Info)) {
45
- Mage::throwException($this->__('Can not retrieve payment info model object.'));
46
- }
47
- return $info;
48
- }
49
-
50
- /**
51
- * Retrieve payment method model
52
- *
53
- * @return Mage_Payment_Model_Method_Abstract
54
- */
55
- public function getMethod()
56
- {
57
- return $this->getInfo()->getMethodInstance();
58
- }
59
-
60
- public function toPdf()
61
- {
62
-
63
- //$pdf = $this->getMethod()->getInfoInstance()->getAdditionalInformation('sofortrechnung_invoice_url');
64
- //return Zend_Pdf::parse(file_get_contents($pdf));
65
- $this->setTemplate('pnsofortueberweisung/info/pdf/sofortueberweisung.phtml');
66
- return $this->toHtml();
67
- }
68
-
69
- public function _toHtml() {
70
- if($this->getMethod()->getCode() == 'sofortvorkasse')
71
- $this->setTemplate('pnsofortueberweisung/info/sofortvorkasse.phtml');
72
- return parent::_toHtml();
73
- }
74
-
75
- public function getAmount() {
76
- return $this->sofort->getAmount();
77
- }
78
-
79
- public function getHolder() {
80
- return $this->sofort->getRecipientHolder();
81
- }
82
-
83
- public function getAccountNumber() {
84
- return $this->sofort->getRecipientAccountNumber();
85
- }
86
-
87
- public function getBankCode() {
88
- return $this->sofort->getRecipientBankCode();
89
- }
90
-
91
- public function getBic() {
92
- return $this->sofort->getRecipientBic();
93
- }
94
-
95
- public function getIban() {
96
- return $this->sofort->getRecipientIban();
97
- }
98
-
99
- public function getReason1() {
100
- $reason = $this->sofort->getReason();
101
- return $reason[0];
102
- }
103
-
104
- public function getReason2() {
105
- $reason = $this->sofort->getReason();
106
- return $reason[1];
107
- }
108
-
109
- public function loadData() {
110
- $tid = $this->getMethod()->getInfoInstance()->getAdditionalInformation('sofort_transaction');
111
- if($tid) {
112
- $this->sofort = new SofortLib_TransactionData(Mage::getStoreConfig('payment/sofort/configkey'));
113
- $this->sofort->setTransaction($tid)->sendRequest();
114
- return !($this->sofort->isError());
115
- }
116
- return false;
117
- }
118
-
119
- }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Sofort.php ADDED
@@ -0,0 +1,32 @@
1
+ <?php
2
+
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Paymill
17
+ * @package Paymill_Paymill
18
+ * @copyright Copyright (c) 2013 PAYMILL GmbH (https://paymill.com/en-gb/)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ class Paymentnetwork_Pnsofortueberweisung_Block_Info_Sofort extends Mage_Payment_Block_Info
22
+ {
23
+
24
+ /**
25
+ * Construct
26
+ */
27
+ protected function _construct()
28
+ {
29
+ parent::_construct();
30
+ $this->setTemplate('paymentnetwork/sofort/info/sofort.phtml');
31
+ }
32
+ }
app/code/community/Paymentnetwork/Pnsofortueberweisung/Block/Info/Sofortrechnung.php DELETED
@@ -1,114 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * @category Paymentnetwork
16
- * @package Paymentnetwork_Sofortueberweisung
17
- * @copyright Copyright (c) 2008 [m]zentrale GbR, 2010 Payment Network AG
18
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Pnsofortueberweisung.php 2654 2011-12-09 11:08:14Z poser $
20
- */
21
- require_once Mage::getModuleDir('', 'Paymentnetwork_Pnsofortueberweisung').'/Helper/library/sofortLib.php';
22
- class Paymentnetwork_Pnsofortueberweisung_Block_Info_Sofortrechnung extends Mage_Payment_Block_Info
23
- {
24
- private $sofort;
25
- /**
26
- * Init default template for block
27
- */
28
- protected function _construct()
29
- {
30
- parent::_construct();
31
- $this->setTemplate('pnsofortueberweisung/info/sofortrechnung.phtml');
32
-
33
- }
34
-
35
- /**
36
- * Retrieve info model
37
- *
38
- * @return Mage_Sofortueberweisung_Model_Info
39
- */
40
- public function getInfo()
41
- {
42
- $info = $this->getData('info');
43
-
44
- if (!($info instanceof Mage_Payment_Model_Info)) {
45
- Mage::throwException($this->__('Can not retrieve payment info model object.'));
46
- }
47
- return $info;
48
- }
49
-
50
- /**
51
- * Retrieve payment method model
52
- *
53
- * @return Mage_Payment_Model_Method_Abstract
54
- */
55
- public function getMethod()
56
- {
57
- return $this->getInfo()->getMethodInstance();
58
- }
59
-
60
- public function toPdf()
61
- {
62
- //$pdf = $this->getMethod()->getInfoInstance()->getAdditionalInformation('sofortrechnung_invoice_url');
63
- //return Zend_Pdf::parse(file_get_contents($pdf));
64
- $this->setTemplate('pnsofortueberweisung/info/pdf/sofortueberweisung.phtml');
65
- return $this->toHtml();
66
- }
67
-
68
- public function _toHtml() {
69
- return parent::_toHtml();
70
- }
71
-
72
- public function getAmount() {
73
- return $this->sofort->getAmount();
74
- }
75
-
76
- public function getHolder() {
77
- return $this->sofort->getInvoiceBankHolder();
78
- }
79
-
80
- public function getAccountNumber() {
81
- return $this->sofort->getInvoiceBankAccountNumber();
82
- }
83
-
84
- public function getBankCode() {
85
- return $this->sofort->getInvoiceBankCode();
86
- }
87
-
88
- public function getBic() {
89
- return '';
90
- }
91
-
92
- public function getIban() {
93
- return '';
94
- }
95
-
96
- public function getReason1() {
97
- return $this->sofort->getInvoiceReason(1);
98
- }
99
-
100
- public function getReason2() {
101
- return $this->sofort->getInvoiceReason(2);
102
- }
103
-
104
- public function loadData() {
105
- $tid = $this->getMethod()->getInfoInstance()->getAdditionalInformation('sofort_transaction');
106
- if($tid) {
107
- $this->sofort = new SofortLib_TransactionData(Mage::getStoreConfig('payment/sofort/configkey'));
108
- $this->sofort->setTransaction($tid)->sendRequest();
109
- return !($this->sofort->isError()) && $this->sofort->getStatusReason() == 'not_credited_yet';
110
- }
111
- return false;
112
- }
113
-
114
- }