Mage_Payone - Version 3.3.1

Version Notes

Mage_Payone-3.2.0

Download this release

Release Info

Developer PAYONE
Extension Mage_Payone
Version 3.3.1
Comparing to
See all releases


Code changes from version 3.3.0 to 3.3.1

Files changed (342) hide show
  1. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Capture.php +6 -2
  2. app/code/community/Payone/Core/etc/config.xml +1 -1
  3. js/payone/core/client_api.js +97 -97
  4. js/payone/core/onlinebanktransfer.js +1 -1
  5. lib/Payone/Api/Adapter/Http/Curl.php +76 -76
  6. lib/Payone/Api/Adapter/Http/Socket.php +112 -112
  7. lib/Payone/Api/Enum/AccessAction.php +40 -40
  8. lib/Payone/Api/Enum/AddressCheckDivergence.php +39 -39
  9. lib/Payone/Api/Enum/AddressCheckPersonstatus.php +43 -43
  10. lib/Payone/Api/Enum/AddressCheckScore.php +38 -38
  11. lib/Payone/Api/Enum/AddressCheckSecstatus.php +38 -38
  12. lib/Payone/Api/Enum/AddressCheckType.php +38 -38
  13. lib/Payone/Api/Enum/AvsResult.php +40 -40
  14. lib/Payone/Api/Enum/BankaccountCheckType.php +37 -37
  15. lib/Payone/Api/Enum/CaptureMode.php +36 -36
  16. lib/Payone/Api/Enum/ConsumerscoreScore.php +41 -41
  17. lib/Payone/Api/Enum/ConsumerscoreType.php +38 -38
  18. lib/Payone/Api/Enum/CreditcardType.php +53 -53
  19. lib/Payone/Api/Enum/DebitTransactionType.php +42 -42
  20. lib/Payone/Api/Enum/Ecommercemode.php +38 -38
  21. lib/Payone/Api/Enum/FileFormat.php +34 -34
  22. lib/Payone/Api/Enum/FileType.php +34 -34
  23. lib/Payone/Api/Enum/FinancingType.php +39 -39
  24. lib/Payone/Api/Enum/Gender.php +36 -36
  25. lib/Payone/Api/Enum/InvoiceDeliverymode.php +38 -38
  26. lib/Payone/Api/Enum/InvoicingItemType.php +38 -38
  27. lib/Payone/Api/Enum/OnlinebanktransferType.php +43 -43
  28. lib/Payone/Api/Enum/PayoutOpenBalance.php +37 -37
  29. lib/Payone/Api/Enum/PeriodUnit.php +38 -38
  30. lib/Payone/Api/Enum/PeriodUnitRecurring.php +39 -39
  31. lib/Payone/Api/Enum/Settleaccount.php +38 -38
  32. lib/Payone/Api/Enum/Shippingprovider.php +37 -37
  33. lib/Payone/Api/Enum/Storecarddata.php +37 -37
  34. lib/Payone/Api/Enum/UseCustomerdata.php +37 -37
  35. lib/Payone/Api/Enum/WalletType.php +36 -36
  36. lib/Payone/Api/Exception/Abstract.php +36 -36
  37. lib/Payone/Api/Exception/InvalidParameters.php +36 -36
  38. lib/Payone/Api/Exception/InvalidResponse.php +36 -36
  39. lib/Payone/Api/Exception/InvalidUrl.php +36 -36
  40. lib/Payone/Api/Exception/MappingNotFound.php +35 -35
  41. lib/Payone/Api/Exception/Payone.php +36 -36
  42. lib/Payone/Api/Exception/Request/InvalidKey.php +36 -36
  43. lib/Payone/Api/Exception/Request/InvalidMid.php +36 -36
  44. lib/Payone/Api/Exception/Request/InvalidMode.php +36 -36
  45. lib/Payone/Api/Exception/Request/InvalidPortalid.php +36 -36
  46. lib/Payone/Api/Exception/Timeout.php +36 -36
  47. lib/Payone/Api/Exception/UnknownStatus.php +36 -36
  48. lib/Payone/Api/Exception/WritingRequestToServer.php +36 -36
  49. lib/Payone/Api/Mapper/Abstract.php +35 -35
  50. lib/Payone/Api/Mapper/Currency.php +308 -308
  51. lib/Payone/Api/Mapper/Currency/Interface.php +60 -60
  52. lib/Payone/Api/Mapper/Request/Abstract.php +56 -56
  53. lib/Payone/Api/Mapper/Request/Interface.php +40 -40
  54. lib/Payone/Api/Mapper/Request/Management/UpdateAccess.php +95 -95
  55. lib/Payone/Api/Mapper/Request/Payment/Abstract.php +80 -80
  56. lib/Payone/Api/Mapper/Request/Payment/Authorization.php +46 -46
  57. lib/Payone/Api/Mapper/Request/Payment/Capture.php +46 -46
  58. lib/Payone/Api/Mapper/Request/Payment/CreateAccess.php +96 -96
  59. lib/Payone/Api/Mapper/Request/Payment/Debit.php +46 -46
  60. lib/Payone/Api/Mapper/Request/Payment/Preauthorization.php +45 -45
  61. lib/Payone/Api/Mapper/Request/Payment/Refund.php +46 -46
  62. lib/Payone/Api/Mapper/Request/Payment/Vauthorization.php +46 -46
  63. lib/Payone/Api/Mapper/Response/3dsCheck.php +64 -64
  64. lib/Payone/Api/Mapper/Response/Abstract.php +167 -167
  65. lib/Payone/Api/Mapper/Response/AddressCheck.php +61 -61
  66. lib/Payone/Api/Mapper/Response/Authorization.php +63 -63
  67. lib/Payone/Api/Mapper/Response/BankAccountCheck.php +65 -65
  68. lib/Payone/Api/Mapper/Response/Capture.php +61 -61
  69. lib/Payone/Api/Mapper/Response/Consumerscore.php +62 -62
  70. lib/Payone/Api/Mapper/Response/CreateAccess.php +61 -61
  71. lib/Payone/Api/Mapper/Response/CreditCardCheck.php +62 -62
  72. lib/Payone/Api/Mapper/Response/Debit.php +60 -60
  73. lib/Payone/Api/Mapper/Response/GetFile.php +64 -64
  74. lib/Payone/Api/Mapper/Response/GetInvoice.php +64 -64
  75. lib/Payone/Api/Mapper/Response/Interface.php +42 -42
  76. lib/Payone/Api/Mapper/Response/ManageMandate.php +60 -60
  77. lib/Payone/Api/Mapper/Response/Preauthorization.php +63 -63
  78. lib/Payone/Api/Mapper/Response/Refund.php +61 -61
  79. lib/Payone/Api/Mapper/Response/UpdateAccess.php +61 -61
  80. lib/Payone/Api/Mapper/Response/Vauthorization.php +60 -60
  81. lib/Payone/Api/Persistence/Interface.php +58 -58
  82. lib/Payone/Api/Request/3dsCheck.php +257 -257
  83. lib/Payone/Api/Request/AddressCheck.php +317 -317
  84. lib/Payone/Api/Request/Authorization.php +58 -58
  85. lib/Payone/Api/Request/BankAccountCheck.php +237 -237
  86. lib/Payone/Api/Request/Capture.php +179 -179
  87. lib/Payone/Api/Request/Consumerscore.php +337 -337
  88. lib/Payone/Api/Request/CreateAccess.php +526 -526
  89. lib/Payone/Api/Request/CreditCardCheck.php +197 -197
  90. lib/Payone/Api/Request/Debit.php +239 -239
  91. lib/Payone/Api/Request/GetFile.php +98 -98
  92. lib/Payone/Api/Request/GetInvoice.php +57 -57
  93. lib/Payone/Api/Request/ManageMandate.php +161 -161
  94. lib/Payone/Api/Request/Parameter/Authorization/3dsecure.php +96 -96
  95. lib/Payone/Api/Request/Parameter/Authorization/Abstract.php +40 -40
  96. lib/Payone/Api/Request/Parameter/Authorization/Business.php +102 -102
  97. lib/Payone/Api/Request/Parameter/Authorization/DeliveryData.php +221 -221
  98. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Abstract.php +40 -40
  99. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CashOnDelivery.php +56 -56
  100. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CreditCard.php +256 -256
  101. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/DebitPayment.php +176 -176
  102. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Financing.php +135 -135
  103. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/OnlineBankTransfer.php +236 -236
  104. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Wallet.php +116 -116
  105. lib/Payone/Api/Request/Parameter/Authorization/PersonalData.php +340 -340
  106. lib/Payone/Api/Request/Parameter/Capture/Business.php +71 -71
  107. lib/Payone/Api/Request/Parameter/Capture/Invoicing/Transaction.php +47 -47
  108. lib/Payone/Api/Request/Parameter/CreateAccess/3dsecure.php +96 -96
  109. lib/Payone/Api/Request/Parameter/CreateAccess/Abstract.php +38 -38
  110. lib/Payone/Api/Request/Parameter/CreateAccess/Billing.php +151 -151
  111. lib/Payone/Api/Request/Parameter/CreateAccess/Invoicing/Transaction.php +132 -132
  112. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/Abstract.php +36 -36
  113. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/CreditCard.php +156 -156
  114. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/DebitPayment.php +176 -176
  115. lib/Payone/Api/Request/Parameter/CreateAccess/PersonalData.php +288 -288
  116. lib/Payone/Api/Request/Parameter/Debit/Abstract.php +37 -37
  117. lib/Payone/Api/Request/Parameter/Debit/Business.php +116 -116
  118. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/Abstract.php +36 -36
  119. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/BankAccount.php +216 -216
  120. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/CreditCard.php +176 -176
  121. lib/Payone/Api/Request/Parameter/Interface.php +63 -63
  122. lib/Payone/Api/Request/Parameter/Invoicing/Access/Item.php +258 -258
  123. lib/Payone/Api/Request/Parameter/Invoicing/Item.php +220 -220
  124. lib/Payone/Api/Request/Parameter/Invoicing/Transaction.php +195 -195
  125. lib/Payone/Api/Request/Parameter/ManageMandate/Abstract.php +40 -40
  126. lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/Abstract.php +40 -40
  127. lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/BankAccount.php +136 -136
  128. lib/Payone/Api/Request/Parameter/ManageMandate/PersonalData.php +200 -200
  129. lib/Payone/Api/Request/Parameter/Refund/Abstract.php +40 -40
  130. lib/Payone/Api/Request/Parameter/Refund/PaymentMethod/BankAccount.php +196 -196
  131. lib/Payone/Api/Request/Parameter/UpdateAccess/Invoicing/Transaction.php +90 -90
  132. lib/Payone/Api/Request/Parameter/Vauthorization/Abstract.php +38 -38
  133. lib/Payone/Api/Request/Parameter/Vauthorization/Invoicing/Transaction.php +112 -112
  134. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/Abstract.php +36 -36
  135. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/CreditCard.php +177 -177
  136. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/DebitPayment.php +176 -176
  137. lib/Payone/Api/Request/Parameter/Vauthorization/PersonalData.php +288 -288
  138. lib/Payone/Api/Request/Preauthorization.php +37 -37
  139. lib/Payone/Api/Request/Refund.php +198 -198
  140. lib/Payone/Api/Request/UpdateAccess.php +353 -353
  141. lib/Payone/Api/Request/Vauthorization.php +330 -330
  142. lib/Payone/Api/Response/3dsCheck/Enrolled.php +175 -175
  143. lib/Payone/Api/Response/3dsCheck/Invalid.php +37 -37
  144. lib/Payone/Api/Response/3dsCheck/Valid.php +95 -95
  145. lib/Payone/Api/Response/AddressCheck/Invalid.php +55 -55
  146. lib/Payone/Api/Response/AddressCheck/Valid.php +215 -215
  147. lib/Payone/Api/Response/Authorization/Abstract.php +278 -278
  148. lib/Payone/Api/Response/Authorization/Approved.php +96 -96
  149. lib/Payone/Api/Response/Authorization/Redirect.php +94 -94
  150. lib/Payone/Api/Response/BankAccountCheck/Blocked.php +35 -35
  151. lib/Payone/Api/Response/BankAccountCheck/Invalid.php +37 -37
  152. lib/Payone/Api/Response/BankAccountCheck/Valid.php +155 -155
  153. lib/Payone/Api/Response/Capture/Approved.php +395 -395
  154. lib/Payone/Api/Response/Consumerscore/Invalid.php +55 -55
  155. lib/Payone/Api/Response/Consumerscore/Valid.php +295 -295
  156. lib/Payone/Api/Response/CreateAccess/Approved.php +95 -95
  157. lib/Payone/Api/Response/CreditCardCheck/Invalid.php +37 -37
  158. lib/Payone/Api/Response/CreditCardCheck/Valid.php +75 -75
  159. lib/Payone/Api/Response/Debit/Approved.php +75 -75
  160. lib/Payone/Api/Response/Error.php +116 -116
  161. lib/Payone/Api/Response/Interface.php +99 -99
  162. lib/Payone/Api/Response/Invalid.php +116 -116
  163. lib/Payone/Api/Response/Management/GetFile.php +70 -70
  164. lib/Payone/Api/Response/Management/GetInvoice.php +70 -70
  165. lib/Payone/Api/Response/Management/ManageMandate/Approved.php +155 -155
  166. lib/Payone/Api/Response/Management/UpdateAccess/Ok.php +35 -35
  167. lib/Payone/Api/Response/Preauthorization/Approved.php +35 -35
  168. lib/Payone/Api/Response/Preauthorization/Redirect.php +35 -35
  169. lib/Payone/Api/Response/Refund/Approved.php +75 -75
  170. lib/Payone/Api/Response/Vauthorization/Approved.php +95 -95
  171. lib/Payone/Api/Service/Abstract.php +171 -171
  172. lib/Payone/Api/Service/Interface.php +54 -54
  173. lib/Payone/Api/Service/Management/GetFile.php +66 -66
  174. lib/Payone/Api/Service/Management/GetInvoice.php +85 -85
  175. lib/Payone/Api/Service/Management/ManageMandate.php +67 -67
  176. lib/Payone/Api/Service/Management/UpdateAccess.php +83 -83
  177. lib/Payone/Api/Service/Payment/Abstract.php +36 -36
  178. lib/Payone/Api/Service/Payment/Authorize.php +83 -83
  179. lib/Payone/Api/Service/Payment/AuthorizeInterface.php +42 -42
  180. lib/Payone/Api/Service/Payment/Capture.php +84 -84
  181. lib/Payone/Api/Service/Payment/CaptureInterface.php +42 -42
  182. lib/Payone/Api/Service/Payment/CreateAccess.php +84 -84
  183. lib/Payone/Api/Service/Payment/CreateAccessInterface.php +42 -42
  184. lib/Payone/Api/Service/Payment/Debit.php +84 -84
  185. lib/Payone/Api/Service/Payment/DebitInterface.php +42 -42
  186. lib/Payone/Api/Service/Payment/Preauthorize.php +90 -90
  187. lib/Payone/Api/Service/Payment/PreauthorizeInterface.php +42 -42
  188. lib/Payone/Api/Service/Payment/Refund.php +85 -85
  189. lib/Payone/Api/Service/Payment/RefundInterface.php +42 -42
  190. lib/Payone/Api/Service/Payment/Vauthorize.php +83 -83
  191. lib/Payone/Api/Service/Payment/VauthorizeInterface.php +42 -42
  192. lib/Payone/Api/Service/ProtocolRequest/Interface.php +47 -47
  193. lib/Payone/Api/Service/Verification/3dsCheck.php +93 -93
  194. lib/Payone/Api/Service/Verification/AddressCheck.php +87 -87
  195. lib/Payone/Api/Service/Verification/BankAccountCheck.php +86 -86
  196. lib/Payone/Api/Service/Verification/Consumerscore.php +86 -86
  197. lib/Payone/Api/Service/Verification/CreditCardCheck.php +85 -85
  198. lib/Payone/Api/Validator/Abstract.php +35 -35
  199. lib/Payone/Api/Validator/DefaultParameters.php +60 -60
  200. lib/Payone/Api/Validator/Interface.php +41 -41
  201. lib/Payone/Bootstrap.php +48 -48
  202. lib/Payone/ClientApi/Enum/RequestType.php +36 -36
  203. lib/Payone/ClientApi/Enum/ResponseType.php +37 -37
  204. lib/Payone/ClientApi/Exception/Abstract.php +36 -36
  205. lib/Payone/ClientApi/Exception/InvalidParameters.php +36 -36
  206. lib/Payone/ClientApi/Request/Abstract.php +427 -427
  207. lib/Payone/ClientApi/Request/CreditCardCheck.php +116 -116
  208. lib/Payone/ClientApi/Request/Interface.php +173 -173
  209. lib/Payone/ClientApi/Service/GenerateHash.php +108 -108
  210. lib/Payone/Config.php +264 -264
  211. lib/Payone/Log4php/Logger.php +571 -571
  212. lib/Payone/Log4php/LoggerAppender.php +287 -287
  213. lib/Payone/Log4php/LoggerAppenderConsole.php +105 -105
  214. lib/Payone/Log4php/LoggerAppenderDailyFile.php +110 -110
  215. lib/Payone/Log4php/LoggerAppenderEcho.php +85 -85
  216. lib/Payone/Log4php/LoggerAppenderFile.php +162 -162
  217. lib/Payone/Log4php/LoggerAppenderMail.php +113 -113
  218. lib/Payone/Log4php/LoggerAppenderMailEvent.php +151 -151
  219. lib/Payone/Log4php/LoggerAppenderMongoDB.php +313 -313
  220. lib/Payone/Log4php/LoggerAppenderNull.php +51 -51
  221. lib/Payone/Log4php/LoggerAppenderPDO.php +294 -294
  222. lib/Payone/Log4php/LoggerAppenderPhp.php +56 -56
  223. lib/Payone/Log4php/LoggerAppenderPool.php +98 -98
  224. lib/Payone/Log4php/LoggerAppenderRollingFile.php +231 -231
  225. lib/Payone/Log4php/LoggerAppenderSocket.php +122 -122
  226. lib/Payone/Log4php/LoggerAppenderSyslog.php +305 -305
  227. lib/Payone/Log4php/LoggerAutoloader.php +140 -140
  228. lib/Payone/Log4php/LoggerConfigurator.php +41 -41
  229. lib/Payone/Log4php/LoggerException.php +28 -28
  230. lib/Payone/Log4php/LoggerFilter.php +126 -126
  231. lib/Payone/Log4php/LoggerFilterDenyAll.php +56 -56
  232. lib/Payone/Log4php/LoggerFilterLevelMatch.php +100 -100
  233. lib/Payone/Log4php/LoggerFilterLevelRange.php +138 -138
  234. lib/Payone/Log4php/LoggerFilterStringMatch.php +89 -89
  235. lib/Payone/Log4php/LoggerFormattingInfo.php +54 -54
  236. lib/Payone/Log4php/LoggerHierarchy.php +240 -240
  237. lib/Payone/Log4php/LoggerLayout.php +74 -74
  238. lib/Payone/Log4php/LoggerLayoutHtml.php +214 -214
  239. lib/Payone/Log4php/LoggerLayoutPattern.php +153 -153
  240. lib/Payone/Log4php/LoggerLayoutSimple.php +56 -56
  241. lib/Payone/Log4php/LoggerLayoutTTCC.php +197 -197
  242. lib/Payone/Log4php/LoggerLayoutXml.php +210 -210
  243. lib/Payone/Log4php/LoggerLevel.php +256 -256
  244. lib/Payone/Log4php/LoggerLocationInfo.php +110 -110
  245. lib/Payone/Log4php/LoggerLoggingEvent.php +370 -370
  246. lib/Payone/Log4php/LoggerMDC.php +118 -118
  247. lib/Payone/Log4php/LoggerNDC.php +203 -203
  248. lib/Payone/Log4php/LoggerOptionConverter.php +451 -451
  249. lib/Payone/Log4php/LoggerPatternParser.php +238 -238
  250. lib/Payone/Log4php/LoggerReflectionUtils.php +153 -153
  251. lib/Payone/Log4php/LoggerRendererDefault.php +51 -51
  252. lib/Payone/Log4php/LoggerRendererException.php +40 -40
  253. lib/Payone/Log4php/LoggerRendererMap.php +149 -149
  254. lib/Payone/Log4php/LoggerRendererObject.php +46 -46
  255. lib/Payone/Log4php/LoggerRoot.php +70 -70
  256. lib/Payone/Log4php/LoggerThrowableInformation.php +75 -75
  257. lib/Payone/Log4php/xml/log4php.dtd +148 -148
  258. lib/Payone/Protocol/Exception/FilterNotFound.php +36 -36
  259. lib/Payone/Protocol/Exception/InvalidConfig.php +36 -36
  260. lib/Payone/Protocol/Filter/Abstract.php +73 -73
  261. lib/Payone/Protocol/Filter/Interface.php +53 -53
  262. lib/Payone/Protocol/Filter/MaskValue.php +96 -96
  263. lib/Payone/Protocol/Logger/Interface.php +51 -51
  264. lib/Payone/Protocol/Logger/Log4php.php +219 -219
  265. lib/Payone/Protocol/Service/Protocol/Abstract.php +92 -92
  266. lib/Payone/SessionStatus/Enum/Action.php +42 -42
  267. lib/Payone/SessionStatus/Exception/Abstract.php +36 -36
  268. lib/Payone/SessionStatus/Exception/MissmatchingKeys.php +37 -37
  269. lib/Payone/SessionStatus/Exception/NoPostRequest.php +37 -37
  270. lib/Payone/SessionStatus/Exception/NoRequestData.php +37 -37
  271. lib/Payone/SessionStatus/Exception/Validation.php +37 -37
  272. lib/Payone/SessionStatus/Mapper/RequestInterface.php +42 -42
  273. lib/Payone/SessionStatus/Persistence/Interface.php +53 -53
  274. lib/Payone/SessionStatus/Request/Item.php +280 -280
  275. lib/Payone/SessionStatus/Response/Interface.php +36 -36
  276. lib/Payone/SessionStatus/Service/HandleRequest.php +206 -206
  277. lib/Payone/SessionStatus/Service/ProtocolRequest.php +115 -115
  278. lib/Payone/SessionStatus/Service/ProtocolRequest/Interface.php +76 -76
  279. lib/Payone/SessionStatus/Validator/Abstract.php +39 -39
  280. lib/Payone/SessionStatus/Validator/DefaultParameters.php +70 -70
  281. lib/Payone/SessionStatus/Validator/Interface.php +41 -41
  282. lib/Payone/SessionStatus/Validator/Ip.php +146 -146
  283. lib/Payone/Settings/Configuration/Abstract.php +45 -45
  284. lib/Payone/Settings/Configuration/Api/RequestType.php +48 -48
  285. lib/Payone/Settings/Configuration/Api/ResponseType.php +48 -48
  286. lib/Payone/Settings/Configuration/Mode.php +48 -48
  287. lib/Payone/Settings/Configuration/PaymentMethod.php +48 -48
  288. lib/Payone/Settings/Configuration/PaymentMethod/CreditCard.php +48 -48
  289. lib/Payone/Settings/Configuration/PaymentMethod/Financing.php +48 -48
  290. lib/Payone/Settings/Configuration/PaymentMethod/OnlineBankTransfer.php +48 -48
  291. lib/Payone/Settings/Configuration/PaymentMethod/Wallet.php +48 -48
  292. lib/Payone/Settings/Configuration/Reminderlevel.php +48 -48
  293. lib/Payone/Settings/Configuration/TransactionStatus/Action.php +48 -48
  294. lib/Payone/Settings/Configuration/Verification/AddressCheck.php +48 -48
  295. lib/Payone/Settings/Configuration/Verification/AvsResult.php +48 -48
  296. lib/Payone/Settings/Configuration/Verification/BankaccountCheck.php +48 -48
  297. lib/Payone/Settings/Configuration/Verification/Consumerscore.php +60 -60
  298. lib/Payone/Settings/Configuration/Verification/Personstatus.php +49 -49
  299. lib/Payone/Settings/Data/ConfigFile/Abstract.php +74 -74
  300. lib/Payone/Settings/Data/ConfigFile/Collection.php +36 -36
  301. lib/Payone/Settings/Data/ConfigFile/Global/StatusMapping.php +73 -73
  302. lib/Payone/Settings/Data/ConfigFile/Interface.php +46 -46
  303. lib/Payone/Settings/Data/ConfigFile/Misc/TransactionstatusForwarding.php +71 -71
  304. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Abstract.php +232 -232
  305. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/AdvancePayment.php +47 -47
  306. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/CashOnDelivery.php +152 -152
  307. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Creditcard.php +74 -74
  308. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/DebitPayment.php +171 -171
  309. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Financing.php +99 -99
  310. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Invoice.php +152 -152
  311. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/OnlineBankTransfer.php +44 -44
  312. lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Wallet.php +43 -43
  313. lib/Payone/Settings/Data/ConfigFile/Protect/Addresscheck.php +179 -179
  314. lib/Payone/Settings/Data/ConfigFile/Protect/Consumerscore.php +198 -198
  315. lib/Payone/Settings/Data/ConfigFile/Root.php +73 -73
  316. lib/Payone/Settings/Data/ConfigFile/Shop.php +180 -180
  317. lib/Payone/Settings/Data/ConfigFile/Shop/ClearingTypes.php +84 -84
  318. lib/Payone/Settings/Data/ConfigFile/Shop/Global.php +206 -206
  319. lib/Payone/Settings/Data/ConfigFile/Shop/Misc.php +84 -84
  320. lib/Payone/Settings/Data/ConfigFile/Shop/Protect.php +84 -84
  321. lib/Payone/Settings/Data/ConfigFile/Shop/System.php +137 -137
  322. lib/Payone/Settings/Service/XmlGenerate.php +500 -500
  323. lib/Payone/Settings/Service/XmlParse.php +36 -36
  324. lib/Payone/TransactionStatus/Enum/Failedcause.php +55 -55
  325. lib/Payone/TransactionStatus/Enum/Txaction.php +47 -47
  326. lib/Payone/TransactionStatus/Exception/Abstract.php +36 -36
  327. lib/Payone/TransactionStatus/Exception/MissmatchingKeys.php +37 -37
  328. lib/Payone/TransactionStatus/Exception/NoPostRequest.php +37 -37
  329. lib/Payone/TransactionStatus/Exception/NoRequestData.php +37 -37
  330. lib/Payone/TransactionStatus/Exception/Validation.php +37 -37
  331. lib/Payone/TransactionStatus/Mapper/Request.php +46 -46
  332. lib/Payone/TransactionStatus/Mapper/RequestInterface.php +42 -42
  333. lib/Payone/TransactionStatus/Persistence/Interface.php +53 -53
  334. lib/Payone/TransactionStatus/Request/Interface.php +300 -300
  335. lib/Payone/TransactionStatus/Service/HandleRequest.php +206 -206
  336. lib/Payone/TransactionStatus/Service/ProtocolRequest.php +115 -115
  337. lib/Payone/TransactionStatus/Service/ProtocolRequest/Interface.php +76 -76
  338. lib/Payone/TransactionStatus/Validator/Abstract.php +39 -39
  339. lib/Payone/TransactionStatus/Validator/DefaultParameters.php +70 -70
  340. lib/Payone/TransactionStatus/Validator/Interface.php +41 -41
  341. lib/Payone/TransactionStatus/Validator/Ip.php +146 -146
  342. package.xml +23 -23
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Capture.php CHANGED
@@ -84,6 +84,7 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
84
protected function mapDefaultCaptureParameters(Payone_Api_Request_Capture $request)
85
{
86
$order = $this->getOrder();
87
88
$transaction = $this->getFactory()->getModelTransaction();
89
$transaction = $transaction->loadByPayment($order->getPayment());
@@ -91,8 +92,11 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
91
$request->setTxid($order->getPayment()->getLastTransId());
92
$request->setSequencenumber($transaction->getNextSequenceNumber());
93
$request->setCurrency($order->getOrderCurrencyCode());
94
- // $request->setAmount($this->getAmount());
95
- $request->setAmount($order->getGrandTotal());
96
$request->setRequest(Payone_Api_Enum_RequestType::CAPTURE);
97
}
98
84
protected function mapDefaultCaptureParameters(Payone_Api_Request_Capture $request)
85
{
86
$order = $this->getOrder();
87
+ $invoice = $this->getInvoice();
88
89
$transaction = $this->getFactory()->getModelTransaction();
90
$transaction = $transaction->loadByPayment($order->getPayment());
92
$request->setTxid($order->getPayment()->getLastTransId());
93
$request->setSequencenumber($transaction->getNextSequenceNumber());
94
$request->setCurrency($order->getOrderCurrencyCode());
95
+ if(!empty($invoice) && $invoice->hasData()) {
96
+ $request->setAmount($invoice->getGrandTotal());
97
+ } else {
98
+ $request->setAmount($this->getAmount());
99
+ }
100
$request->setRequest(Payone_Api_Enum_RequestType::CAPTURE);
101
}
102
app/code/community/Payone/Core/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
<config>
25
<modules>
26
<Payone_Core>
27
- <version>3.3.0</version>
28
</Payone_Core>
29
</modules>
30
24
<config>
25
<modules>
26
<Payone_Core>
27
+ <version>3.3.1</version>
28
</Payone_Core>
29
</modules>
30
js/payone/core/client_api.js CHANGED
@@ -1,97 +1,97 @@
1
- /**
2
- * Namespaces
3
- * @type {Object}
4
- */
5
- var PAYONE = {};
6
- PAYONE.Handler = {};
7
- PAYONE.Service = {};
8
- PAYONE.Validation = {};
9
-
10
- /**
11
- * A Gatewaay to send Requests to Payone
12
- *
13
- * @param data
14
- * @constructor
15
- */
16
- PAYONE.Gateway = function (config, callback) {
17
- this.config = config;
18
- this.callback = callback;
19
- this.request = '';
20
- this.response = '';
21
-
22
- this.call = function (data) {
23
-
24
- this.initRequest(data);
25
-
26
- // Options
27
- var options = {
28
- callback_function_name:'PAYONE.Callback.invoke'
29
- };
30
-
31
- // AJAX Callback
32
- PAYONE.Callback.gateway = this;
33
- PAYONE.Callback.callback = this.callback;
34
-
35
- // Send Request to PAYONE
36
- var request = new PayoneRequest(this.request, options);
37
- request.checkAndStore();
38
- };
39
-
40
- this.initRequest = function (data) {
41
- this.request = data;
42
-
43
- // Add Default Parameters
44
- for (var key in this.config) {
45
- this.request[key] = this.config[key];
46
- }
47
-
48
- // init Request
49
- this.request.callback_method = 'PAYONE.Callback.invoke';
50
- }
51
-
52
- this.setResponse = function (response) {
53
- this.response = response;
54
- };
55
-
56
- this.getLastResponse = function () {
57
- return this.response;
58
- };
59
-
60
- this.getLastRequest = function () {
61
- return this.request;
62
- };
63
-
64
- this.setCallback = function (callback) {
65
- this.callback = callback;
66
- };
67
- };
68
-
69
- /**
70
- * A Callback Object that replaces default PAYONE Callback and improves Callback Handling
71
- *
72
- * @type {Object}
73
- */
74
- PAYONE.Callback = {
75
- /**
76
- * @type {Object} reference to the Gateway Object
77
- */
78
- gateway:'',
79
- /**
80
- * @type callback should be a valid Callback
81
- */
82
- callback:'',
83
-
84
- /**
85
- * Callback entry method
86
- *
87
- * @param response
88
- */
89
- invoke:function (response) {
90
- this.gateway.setResponse(response);
91
-
92
- document.getElementsByTagName("body")[0].removeChild(payoneCallbackFunction.payoneScript);
93
-
94
- var callback = this.callback;
95
- callback(response);
96
- }
97
- };
1
+ /**
2
+ * Namespaces
3
+ * @type {Object}
4
+ */
5
+ var PAYONE = {};
6
+ PAYONE.Handler = {};
7
+ PAYONE.Service = {};
8
+ PAYONE.Validation = {};
9
+
10
+ /**
11
+ * A Gatewaay to send Requests to Payone
12
+ *
13
+ * @param data
14
+ * @constructor
15
+ */
16
+ PAYONE.Gateway = function (config, callback) {
17
+ this.config = config;
18
+ this.callback = callback;
19
+ this.request = '';
20
+ this.response = '';
21
+
22
+ this.call = function (data) {
23
+
24
+ this.initRequest(data);
25
+
26
+ // Options
27
+ var options = {
28
+ callback_function_name:'PAYONE.Callback.invoke'
29
+ };
30
+
31
+ // AJAX Callback
32
+ PAYONE.Callback.gateway = this;
33
+ PAYONE.Callback.callback = this.callback;
34
+
35
+ // Send Request to PAYONE
36
+ var request = new PayoneRequest(this.request, options);
37
+ request.checkAndStore();
38
+ };
39
+
40
+ this.initRequest = function (data) {
41
+ this.request = data;
42
+
43
+ // Add Default Parameters
44
+ for (var key in this.config) {
45
+ this.request[key] = this.config[key];
46
+ }
47
+
48
+ // init Request
49
+ this.request.callback_method = 'PAYONE.Callback.invoke';
50
+ }
51
+
52
+ this.setResponse = function (response) {
53
+ this.response = response;
54
+ };
55
+
56
+ this.getLastResponse = function () {
57
+ return this.response;
58
+ };
59
+
60
+ this.getLastRequest = function () {
61
+ return this.request;
62
+ };
63
+
64
+ this.setCallback = function (callback) {
65
+ this.callback = callback;
66
+ };
67
+ };
68
+
69
+ /**
70
+ * A Callback Object that replaces default PAYONE Callback and improves Callback Handling
71
+ *
72
+ * @type {Object}
73
+ */
74
+ PAYONE.Callback = {
75
+ /**
76
+ * @type {Object} reference to the Gateway Object
77
+ */
78
+ gateway:'',
79
+ /**
80
+ * @type callback should be a valid Callback
81
+ */
82
+ callback:'',
83
+
84
+ /**
85
+ * Callback entry method
86
+ *
87
+ * @param response
88
+ */
89
+ invoke:function (response) {
90
+ this.gateway.setResponse(response);
91
+
92
+ document.getElementsByTagName("body")[0].removeChild(payoneCallbackFunction.payoneScript);
93
+
94
+ var callback = this.callback;
95
+ callback(response);
96
+ }
97
+ };
js/payone/core/onlinebanktransfer.js CHANGED
@@ -52,7 +52,7 @@ function payoneSwitchOnlineBankTransfer(element, country, currency) {
52
var bankGroupSelectAt = $('payone_online_bank_transfer_bank_group_at');
53
var bankGroupSelectNl = $('payone_online_bank_transfer_bank_group_nl');
54
55
- if (ElementValue == '' || typeCode == 'PFF' || typeCode == 'PFC') {
56
disableAll();
57
} else if (typeCode == 'PNT') {
58
disableAll();
52
var bankGroupSelectAt = $('payone_online_bank_transfer_bank_group_at');
53
var bankGroupSelectNl = $('payone_online_bank_transfer_bank_group_nl');
54
55
+ if (ElementValue == '' || typeCode == 'PFF' || typeCode == 'PFC' || typeCode == 'P24') {
56
disableAll();
57
} else if (typeCode == 'PNT') {
58
disableAll();
lib/Payone/Api/Adapter/Http/Curl.php CHANGED
@@ -1,76 +1,76 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Adapter
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Adapter
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Adapter_Http_Curl extends Payone_Api_Adapter_Http_Abstract
34
- {
35
- /**
36
- * @return array
37
- * @throws Payone_Api_Exception_InvalidResponse
38
- */
39
- protected function doRequest()
40
- {
41
- $response = array();
42
- $urlArray = $this->generateUrlArray();
43
-
44
- $urlHost = $urlArray['host'];
45
- $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
46
- $urlScheme = $urlArray['scheme'];
47
- $urlQuery = $urlArray['query'];
48
-
49
- $curl = curl_init($urlScheme . "://" . $urlHost . $urlPath);
50
-
51
- curl_setopt($curl, CURLOPT_POST, 1);
52
- curl_setopt($curl, CURLOPT_POSTFIELDS, $urlQuery);
53
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
54
- curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
55
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
56
- curl_setopt($curl, CURLOPT_TIMEOUT, self::DEFAULT_TIMEOUT);
57
-
58
- $result = curl_exec($curl);
59
-
60
- $this->setRawResponse($result);
61
-
62
- if (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 200) {
63
- throw new Payone_Api_Exception_InvalidResponse();
64
- }
65
- elseif (curl_error($curl)) {
66
- $response[] = "errormessage=" . curl_errno($curl) . ": " . curl_error($curl);
67
- }
68
- else {
69
- $response = explode("\n", $result);
70
- }
71
- curl_close($curl);
72
-
73
- return $response;
74
- }
75
-
76
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Adapter
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Adapter
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Adapter_Http_Curl extends Payone_Api_Adapter_Http_Abstract
34
+ {
35
+ /**
36
+ * @return array
37
+ * @throws Payone_Api_Exception_InvalidResponse
38
+ */
39
+ protected function doRequest()
40
+ {
41
+ $response = array();
42
+ $urlArray = $this->generateUrlArray();
43
+
44
+ $urlHost = $urlArray['host'];
45
+ $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
46
+ $urlScheme = $urlArray['scheme'];
47
+ $urlQuery = $urlArray['query'];
48
+
49
+ $curl = curl_init($urlScheme . "://" . $urlHost . $urlPath);
50
+
51
+ curl_setopt($curl, CURLOPT_POST, 1);
52
+ curl_setopt($curl, CURLOPT_POSTFIELDS, $urlQuery);
53
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
54
+ curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
55
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
56
+ curl_setopt($curl, CURLOPT_TIMEOUT, self::DEFAULT_TIMEOUT);
57
+
58
+ $result = curl_exec($curl);
59
+
60
+ $this->setRawResponse($result);
61
+
62
+ if (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 200) {
63
+ throw new Payone_Api_Exception_InvalidResponse();
64
+ }
65
+ elseif (curl_error($curl)) {
66
+ $response[] = "errormessage=" . curl_errno($curl) . ": " . curl_error($curl);
67
+ }
68
+ else {
69
+ $response = explode("\n", $result);
70
+ }
71
+ curl_close($curl);
72
+
73
+ return $response;
74
+ }
75
+
76
+ }
lib/Payone/Api/Adapter/Http/Socket.php CHANGED
@@ -1,112 +1,112 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Adapter
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Adapter
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Adapter_Http_Socket extends Payone_Api_Adapter_Http_Abstract
34
- {
35
- protected function doRequest()
36
- {
37
- $response = array();
38
- $errno = '';
39
- $errstr = '';
40
- $urlArray = $this->generateUrlArray();
41
-
42
- $urlHost = $urlArray['host'];
43
- $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
44
- $urlScheme = $urlArray['scheme'];
45
- $urlQuery = $urlArray['query'];
46
-
47
- $socketScheme = '';
48
- $socketPort = 80;
49
-
50
- if ($urlScheme == 'https') {
51
- $socketScheme = 'ssl://';
52
- $socketPort = 443;
53
- }
54
-
55
- // Request - Method
56
- $method = 'Post';
57
-
58
- // Request - Header
59
- $headers = array();
60
- $headers[] = "POST " . $urlPath . " HTTP/1.1\r\n";
61
- $headers[] = "Host: " . $urlHost . "\r\n";
62
- $headers[] = "Content-Type: application/x-www-form-urlencoded\r\n";
63
- $headers[] = "Content-Length: " . strlen($urlQuery) . "\r\n";
64
- $headers[] = "Connection: close\r\n\r\n";
65
-
66
- // Request - Body
67
- $body = $urlArray['query'];
68
-
69
- // Request - Build
70
- $request = "{$method} {$urlPath} HTTP/1.1\r\n";
71
- foreach ($headers as $k => $v) {
72
- $request .= "$v\r\n";
73
- }
74
-
75
- $request .= "\r\n" . $body;
76
-
77
- // Socket - Connect
78
- $flags = STREAM_CLIENT_CONNECT;
79
- $context = stream_context_create();
80
- $socket = @stream_socket_client(
81
- $socketScheme . $urlHost . ':' . $socketPort,
82
- $errno,
83
- $errstr,
84
- self::DEFAULT_TIMEOUT,
85
- $flags,
86
- $context
87
- );
88
-
89
- // Socket - Write
90
- if (!@fwrite($socket, $request)) {
91
- throw new Payone_Api_Exception_WritingRequestToServer();
92
- }
93
-
94
- $gotStatus = false;
95
- while (($line = @fgets($socket)) !== false) {
96
- $gotStatus = $gotStatus || (strpos($line, 'HTTP') !== false);
97
- if ($gotStatus) {
98
- $response[] = $line;
99
- if (rtrim($line) === '') {
100
- break;
101
- }
102
- }
103
- }
104
-
105
- if (count($response) == 0) {
106
- throw new Payone_Api_Exception_InvalidResponse();
107
- }
108
-
109
- return $response;
110
- }
111
-
112
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Adapter
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Adapter
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Adapter_Http_Socket extends Payone_Api_Adapter_Http_Abstract
34
+ {
35
+ protected function doRequest()
36
+ {
37
+ $response = array();
38
+ $errno = '';
39
+ $errstr = '';
40
+ $urlArray = $this->generateUrlArray();
41
+
42
+ $urlHost = $urlArray['host'];
43
+ $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
44
+ $urlScheme = $urlArray['scheme'];
45
+ $urlQuery = $urlArray['query'];
46
+
47
+ $socketScheme = '';
48
+ $socketPort = 80;
49
+
50
+ if ($urlScheme == 'https') {
51
+ $socketScheme = 'ssl://';
52
+ $socketPort = 443;
53
+ }
54
+
55
+ // Request - Method
56
+ $method = 'Post';
57
+
58
+ // Request - Header
59
+ $headers = array();
60
+ $headers[] = "POST " . $urlPath . " HTTP/1.1\r\n";
61
+ $headers[] = "Host: " . $urlHost . "\r\n";
62
+ $headers[] = "Content-Type: application/x-www-form-urlencoded\r\n";
63
+ $headers[] = "Content-Length: " . strlen($urlQuery) . "\r\n";
64
+ $headers[] = "Connection: close\r\n\r\n";
65
+
66
+ // Request - Body
67
+ $body = $urlArray['query'];
68
+
69
+ // Request - Build
70
+ $request = "{$method} {$urlPath} HTTP/1.1\r\n";
71
+ foreach ($headers as $k => $v) {
72
+ $request .= "$v\r\n";
73
+ }
74
+
75
+ $request .= "\r\n" . $body;
76
+
77
+ // Socket - Connect
78
+ $flags = STREAM_CLIENT_CONNECT;
79
+ $context = stream_context_create();
80
+ $socket = @stream_socket_client(
81
+ $socketScheme . $urlHost . ':' . $socketPort,
82
+ $errno,
83
+ $errstr,
84
+ self::DEFAULT_TIMEOUT,
85
+ $flags,
86
+ $context
87
+ );
88
+
89
+ // Socket - Write
90
+ if (!@fwrite($socket, $request)) {
91
+ throw new Payone_Api_Exception_WritingRequestToServer();
92
+ }
93
+
94
+ $gotStatus = false;
95
+ while (($line = @fgets($socket)) !== false) {
96
+ $gotStatus = $gotStatus || (strpos($line, 'HTTP') !== false);
97
+ if ($gotStatus) {
98
+ $response[] = $line;
99
+ if (rtrim($line) === '') {
100
+ break;
101
+ }
102
+ }
103
+ }
104
+
105
+ if (count($response) == 0) {
106
+ throw new Payone_Api_Exception_InvalidResponse();
107
+ }
108
+
109
+ return $response;
110
+ }
111
+
112
+ }
lib/Payone/Api/Enum/AccessAction.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AccessAction
34
- {
35
- const UPDATE = 'update';
36
- const CANCEL = 'cancel';
37
- const REVERSE_CANCEL = 'reverse_cancel';
38
- const LOCK = 'lock';
39
- const UNLOCK = 'unlock';
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AccessAction
34
+ {
35
+ const UPDATE = 'update';
36
+ const CANCEL = 'cancel';
37
+ const REVERSE_CANCEL = 'reverse_cancel';
38
+ const LOCK = 'lock';
39
+ const UNLOCK = 'unlock';
40
+ }
lib/Payone/Api/Enum/AddressCheckDivergence.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckDivergence
34
- {
35
- const DEVIANT_SURNAME = 'L';
36
- const DEVIANT_FIRSTNAME = 'F';
37
- const DEVIANT_ADDRESS= 'A';
38
- const DEVIANT_DATE_OF_BIRTH = 'B';
39
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckDivergence
34
+ {
35
+ const DEVIANT_SURNAME = 'L';
36
+ const DEVIANT_FIRSTNAME = 'F';
37
+ const DEVIANT_ADDRESS= 'A';
38
+ const DEVIANT_DATE_OF_BIRTH = 'B';
39
+ }
lib/Payone/Api/Enum/AddressCheckPersonstatus.php CHANGED
@@ -1,43 +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 to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckPersonstatus
34
- {
35
- const NONE = 'NONE'; //NONE: no verification of personal data carried out
36
- const PPB = 'PPB'; //PPB: first name & surname unknown
37
- const PHB = 'PHB'; //PHB: surname known
38
- const PAB = 'PAB'; //PAB: first name & surname unknown
39
- const PKI = 'PKI'; //PKI: ambiguity in name and address
40
- const PNZ = 'PNZ'; //PNZ: cannot be delivered (any longer)
41
- const PPV = 'PPV'; //PPV: person deceased
42
- const PPF = 'PPF'; //PPF: postal address details incorrect
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 to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckPersonstatus
34
+ {
35
+ const NONE = 'NONE'; //NONE: no verification of personal data carried out
36
+ const PPB = 'PPB'; //PPB: first name & surname unknown
37
+ const PHB = 'PHB'; //PHB: surname known
38
+ const PAB = 'PAB'; //PAB: first name & surname unknown
39
+ const PKI = 'PKI'; //PKI: ambiguity in name and address
40
+ const PNZ = 'PNZ'; //PNZ: cannot be delivered (any longer)
41
+ const PPV = 'PPV'; //PPV: person deceased
42
+ const PPF = 'PPF'; //PPF: postal address details incorrect
43
+ }
lib/Payone/Api/Enum/AddressCheckScore.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckScore
34
- {
35
- const GREEN = 'G';
36
- const YELLOW = 'Y';
37
- const RED = 'R';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckScore
34
+ {
35
+ const GREEN = 'G';
36
+ const YELLOW = 'Y';
37
+ const RED = 'R';
38
+ }
lib/Payone/Api/Enum/AddressCheckSecstatus.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckSecstatus
34
- {
35
- const ADDRESS_CORRECT = '10';
36
- const ADDRESS_CORRECTABLE = '20';
37
- const ADDRESS_NONE_CORRECTABLE = '30';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckSecstatus
34
+ {
35
+ const ADDRESS_CORRECT = '10';
36
+ const ADDRESS_CORRECTABLE = '20';
37
+ const ADDRESS_NONE_CORRECTABLE = '30';
38
+ }
lib/Payone/Api/Enum/AddressCheckType.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckType
34
- {
35
- const NONE = 'NO';
36
- const BASIC = 'BA';
37
- const PERSON = 'PE';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckType
34
+ {
35
+ const NONE = 'NO';
36
+ const BASIC = 'BA';
37
+ const PERSON = 'PE';
38
+ }
lib/Payone/Api/Enum/AvsResult.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AvsResult
34
- {
35
- const RESULT_A = 'A';
36
- const RESULT_F = 'F';
37
- const RESULT_N = 'N';
38
- const RESULT_U = 'U';
39
- const RESULT_Z = 'Z';
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AvsResult
34
+ {
35
+ const RESULT_A = 'A';
36
+ const RESULT_F = 'F';
37
+ const RESULT_N = 'N';
38
+ const RESULT_U = 'U';
39
+ const RESULT_Z = 'Z';
40
+ }
lib/Payone/Api/Enum/BankaccountCheckType.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_BankaccountCheckType
34
- {
35
- const REGULAR = '0';
36
- const POS_BLACKLIST = '1';
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_BankaccountCheckType
34
+ {
35
+ const REGULAR = '0';
36
+ const POS_BLACKLIST = '1';
37
+ }
lib/Payone/Api/Enum/CaptureMode.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
-
3
- /**
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the GNU General Public License (GPL 3)
8
- * that is bundled with this package in the file LICENSE.txt
9
- *
10
- * DISCLAIMER
11
- *
12
- * Do not edit or add to this file if you wish to upgrade Payone to newer
13
- * versions in the future. If you wish to customize Payone for your
14
- * needs please refer to http://www.payone.de for more information.
15
- *
16
- * @category Payone
17
- * @package Payone_Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Enum
28
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
- * @link http://www.noovias.com
31
- */
32
- class Payone_Api_Enum_CaptureMode
33
- {
34
- const COMPLETED = 'completed';
35
- const NOTCOMPLETED = 'notcompleted';
36
- }
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the GNU General Public License (GPL 3)
8
+ * that is bundled with this package in the file LICENSE.txt
9
+ *
10
+ * DISCLAIMER
11
+ *
12
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
13
+ * versions in the future. If you wish to customize Payone for your
14
+ * needs please refer to http://www.payone.de for more information.
15
+ *
16
+ * @category Payone
17
+ * @package Payone_Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Enum
28
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
+ * @link http://www.noovias.com
31
+ */
32
+ class Payone_Api_Enum_CaptureMode
33
+ {
34
+ const COMPLETED = 'completed';
35
+ const NOTCOMPLETED = 'notcompleted';
36
+ }
lib/Payone/Api/Enum/ConsumerscoreScore.php CHANGED
@@ -1,41 +1,41 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_ConsumerscoreScore
34
- {
35
- // @note Class is intentionally called ConsumerscoreScore, it´s the valid values for response "Consumerscore", parameter "score"
36
- const GREEN = 'G';
37
- const YELLOW = 'Y';
38
- const RED = 'R';
39
-
40
- // TEST
41
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_ConsumerscoreScore
34
+ {
35
+ // @note Class is intentionally called ConsumerscoreScore, it´s the valid values for response "Consumerscore", parameter "score"
36
+ const GREEN = 'G';
37
+ const YELLOW = 'Y';
38
+ const RED = 'R';
39
+
40
+ // TEST
41
+ }
lib/Payone/Api/Enum/ConsumerscoreType.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_ConsumerscoreType
34
- {
35
- const INFOSCORE_HARD = 'IH';
36
- const INFOSCORE_ALL = 'IA';
37
- const INFOSCORE_ALL_BONI = 'IB';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_ConsumerscoreType
34
+ {
35
+ const INFOSCORE_HARD = 'IH';
36
+ const INFOSCORE_ALL = 'IA';
37
+ const INFOSCORE_ALL_BONI = 'IB';
38
+ }
lib/Payone/Api/Enum/CreditcardType.php CHANGED
@@ -1,53 +1,53 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_CreditcardType
34
- {
35
- //V: Visa
36
- const VISA = 'V';
37
- //M: MasterCard
38
- const MASTERCARD = 'M';
39
- //A: Amex
40
- const AMEX = 'A';
41
- //D: Diners
42
- const DINERS = 'D';
43
- //J: JCB
44
- const JCB = 'J';
45
- //O: Maestro International
46
- const MAESTRO_INTERNATIONAL = 'O';
47
- //U: Maestro UK
48
- const MAESTRO_UK = 'U';
49
- //C: Discover
50
- const DISCOVER = 'C';
51
- //B: Carte Bleue
52
- const CARTE_BLEUE = 'B';
53
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_CreditcardType
34
+ {
35
+ //V: Visa
36
+ const VISA = 'V';
37
+ //M: MasterCard
38
+ const MASTERCARD = 'M';
39
+ //A: Amex
40
+ const AMEX = 'A';
41
+ //D: Diners
42
+ const DINERS = 'D';
43
+ //J: JCB
44
+ const JCB = 'J';
45
+ //O: Maestro International
46
+ const MAESTRO_INTERNATIONAL = 'O';
47
+ //U: Maestro UK
48
+ const MAESTRO_UK = 'U';
49
+ //C: Discover
50
+ const DISCOVER = 'C';
51
+ //B: Carte Bleue
52
+ const CARTE_BLEUE = 'B';
53
+ }
lib/Payone/Api/Enum/DebitTransactionType.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_DebitTransactionType
34
- {
35
- const DIRECT_DEBIT_REFUND_FEE = 'RL'; //RL: Rücklastschriftgebühr
36
- const DUNNING_CHARGE = 'MG'; //MG: Mahngebühren
37
- const DEFAULT_INTEREST = 'VZ'; //VZ: Verzugszinsen
38
- const SHIPPING_COSTS = 'VD'; //VD: Versandkosten
39
- const PAYMENT_REQUEST = 'FD'; //FD: Forderung (default bei amount >0)
40
- const CREDIT = 'GT'; //GT: Gutschrift (default bei amount <0)
41
- const RETURNS = 'RT'; //RT: Retoure
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_DebitTransactionType
34
+ {
35
+ const DIRECT_DEBIT_REFUND_FEE = 'RL'; //RL: Rücklastschriftgebühr
36
+ const DUNNING_CHARGE = 'MG'; //MG: Mahngebühren
37
+ const DEFAULT_INTEREST = 'VZ'; //VZ: Verzugszinsen
38
+ const SHIPPING_COSTS = 'VD'; //VD: Versandkosten
39
+ const PAYMENT_REQUEST = 'FD'; //FD: Forderung (default bei amount >0)
40
+ const CREDIT = 'GT'; //GT: Gutschrift (default bei amount <0)
41
+ const RETURNS = 'RT'; //RT: Retoure
42
+ }
lib/Payone/Api/Enum/Ecommercemode.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_Ecommercemode
34
- {
35
- const INTERNET = 'internet';
36
- const SECURE3D = '3dsecure';
37
- const MOTO = 'moto';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Ecommercemode
34
+ {
35
+ const INTERNET = 'internet';
36
+ const SECURE3D = '3dsecure';
37
+ const MOTO = 'moto';
38
+ }
lib/Payone/Api/Enum/FileFormat.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Enum
17
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
- * @author Matthias Walter <info@noovias.com>
19
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
- * @link http://www.noovias.com
21
- */
22
-
23
- /**
24
- *
25
- * @category Payone
26
- * @package Payone_Enum
27
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
- * @link http://www.noovias.com
30
- */
31
- class Payone_Api_Enum_FileFormat
32
- {
33
- const PDF = 'PDF';
34
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Enum
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Enum
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_Api_Enum_FileFormat
32
+ {
33
+ const PDF = 'PDF';
34
+ }
lib/Payone/Api/Enum/FileType.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Enum
17
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
- * @author Matthias Walter <info@noovias.com>
19
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
- * @link http://www.noovias.com
21
- */
22
-
23
- /**
24
- *
25
- * @category Payone
26
- * @package Payone_Enum
27
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
- * @link http://www.noovias.com
30
- */
31
- class Payone_Api_Enum_FileType
32
- {
33
- const SEPA_MANDATE = 'SEPA_MANDATE';
34
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Enum
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Enum
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_Api_Enum_FileType
32
+ {
33
+ const SEPA_MANDATE = 'SEPA_MANDATE';
34
+ }
lib/Payone/Api/Enum/FinancingType.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_FinancingType
34
- {
35
- const BSV = 'BSV'; // BILLSAFE
36
- const CFR = 'CFR'; // COMMERZ FINANZ
37
- const KLV = 'KLV'; // KLARNA INVOICING
38
- const KLS = 'KLS'; // KLARNA FINANCING
39
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_FinancingType
34
+ {
35
+ const BSV = 'BSV'; // BILLSAFE
36
+ const CFR = 'CFR'; // COMMERZ FINANZ
37
+ const KLV = 'KLV'; // KLARNA INVOICING
38
+ const KLS = 'KLS'; // KLARNA FINANCING
39
+ }
lib/Payone/Api/Enum/Gender.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_Gender
34
- {
35
- const FEMALE = 'f';
36
- const MALE = 'm';
37
}
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Gender
34
+ {
35
+ const FEMALE = 'f';
36
+ const MALE = 'm';
37
}
lib/Payone/Api/Enum/InvoiceDeliverymode.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_InvoiceDeliverymode
34
- {
35
- const POST = 'M';
36
- const PDF = 'P';
37
- const NONE = 'N';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_InvoiceDeliverymode
34
+ {
35
+ const POST = 'M';
36
+ const PDF = 'P';
37
+ const NONE = 'N';
38
+ }
lib/Payone/Api/Enum/InvoicingItemType.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
-
3
- /**
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the GNU General Public License (GPL 3)
8
- * that is bundled with this package in the file LICENSE.txt
9
- *
10
- * DISCLAIMER
11
- *
12
- * Do not edit or add to this file if you wish to upgrade Payone to newer
13
- * versions in the future. If you wish to customize Payone for your
14
- * needs please refer to http://www.payone.de for more information.
15
- *
16
- * @category Payone
17
- * @package Payone_Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Enum
28
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
- * @link http://www.noovias.com
31
- */
32
- class Payone_Api_Enum_InvoicingItemType
33
- {
34
- const GOODS = 'goods';
35
- const SHIPMENT = 'shipment';
36
- const HANDLING = 'handling';
37
- const VOUCHER = 'voucher';
38
- }
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the GNU General Public License (GPL 3)
8
+ * that is bundled with this package in the file LICENSE.txt
9
+ *
10
+ * DISCLAIMER
11
+ *
12
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
13
+ * versions in the future. If you wish to customize Payone for your
14
+ * needs please refer to http://www.payone.de for more information.
15
+ *
16
+ * @category Payone
17
+ * @package Payone_Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Enum
28
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
+ * @link http://www.noovias.com
31
+ */
32
+ class Payone_Api_Enum_InvoicingItemType
33
+ {
34
+ const GOODS = 'goods';
35
+ const SHIPMENT = 'shipment';
36
+ const HANDLING = 'handling';
37
+ const VOUCHER = 'voucher';
38
+ }
lib/Payone/Api/Enum/OnlinebanktransferType.php CHANGED
@@ -1,43 +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 to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_OnlinebanktransferType
34
- {
35
- const INSTANT_MONEY_TRANSFER = 'PNT';
36
- const GIROPAY = 'GPY';
37
- const EPS_ONLINE_BANK_TRANSFER = 'EPS';
38
- const POSTFINANCE_EFINANCE = 'PFF';
39
- const POSTFINANCE_CARD = 'PFC';
40
- const IDEAL = 'IDL';
41
- const P24 = 'P24';
42
-
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 to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_OnlinebanktransferType
34
+ {
35
+ const INSTANT_MONEY_TRANSFER = 'PNT';
36
+ const GIROPAY = 'GPY';
37
+ const EPS_ONLINE_BANK_TRANSFER = 'EPS';
38
+ const POSTFINANCE_EFINANCE = 'PFF';
39
+ const POSTFINANCE_CARD = 'PFC';
40
+ const IDEAL = 'IDL';
41
+ const P24 = 'P24';
42
+
43
+ }
lib/Payone/Api/Enum/PayoutOpenBalance.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_PayoutOpenBalance
34
- {
35
- const YES = 'yes';
36
- const NO = 'no';
37
- }