Permalink
Browse files

Moving MoP directories into moptools directory/repository for integra…

…ted distribution.
  • Loading branch information...
1 parent 4375a2d commit fc2806e6f9492489bac8e4643bb6db3ff89fb311 Deepwinter committed Jun 6, 2011
Showing with 0 additions and 1,570 deletions.
  1. +0 −10 modules/payment/i18n/en_US/payment.php
  2. +0 −83 modules/payment/i18n/en_US/payment_Trident.php
  3. +0 −36 modules/payment/i18n/en_US/payment_Trustcommerce.php
  4. +0 −123 modules/payment/libraries/Payment.php
  5. +0 −28 modules/payment/libraries/drivers/Payment.php
  6. +0 −150 modules/payment/libraries/drivers/Payment/Authorize.php
  7. +0 −464 modules/payment/libraries/drivers/Payment/Paypal.php
  8. +0 −229 modules/payment/libraries/drivers/Payment/Paypalpro.php
  9. +0 −134 modules/payment/libraries/drivers/Payment/Trident.php
  10. +0 −137 modules/payment/libraries/drivers/Payment/Trustcommerce.php
  11. +0 −176 modules/payment/libraries/drivers/Payment/Yourpay.php
  12. 0 {modules → moptools}/mopcms/classes/controller/associator.php
  13. 0 {modules → moptools}/mopcms/classes/controller/cms.php
  14. 0 {modules → moptools}/mopcms/classes/controller/cms_file.php
  15. 0 {modules → moptools}/mopcms/classes/controller/list.php
  16. 0 {modules → moptools}/mopcms/classes/model/association.php
  17. 0 {modules → moptools}/mopcms/classes/model/content.php
  18. 0 {modules → moptools}/mopcms/classes/model/file.php
  19. 0 {modules → moptools}/mopcms/classes/model/fileimage.php
  20. 0 {modules → moptools}/mopcms/classes/model/list.php
  21. 0 {modules → moptools}/mopcms/classes/model/objectmap.php
  22. 0 {modules → moptools}/mopcms/classes/model/page.php
  23. 0 {modules → moptools}/mopcms/classes/model/template.php
  24. BIN {modules → moptools}/mopcms/classes/mop/.cms.php.swp
  25. 0 {modules → moptools}/mopcms/classes/mop/cms.php
  26. 0 {modules → moptools}/mopcms/classes/mop/cmsinterface.php
  27. 0 {modules → moptools}/mopcms/classes/mopcms.php
  28. 0 {modules → moptools}/mopcms/config/clusters.xml
  29. 0 {modules → moptools}/mopcms/config/cms.php
  30. 0 {modules → moptools}/mopcms/config/cmsModules.dtd
  31. 0 {modules → moptools}/mopcms/config/cmsModules.xml
  32. 0 {modules → moptools}/mopcms/config/cms_templates.php
  33. 0 {modules → moptools}/mopcms/config/list.php
  34. 0 {modules → moptools}/mopcms/config/mop_cms.php
  35. 0 {modules → moptools}/mopcms/init.php
  36. 0 {modules → moptools}/mopcms/views/css/mop_cms.css
  37. BIN {modules → moptools}/mopcms/views/icon_doc.gif
  38. BIN {modules → moptools}/mopcms/views/images/admin/bg_row.gif
  39. BIN {modules → moptools}/mopcms/views/images/admin/bg_row_alt.gif
  40. BIN {modules → moptools}/mopcms/views/images/admin/bg_white60.png
  41. BIN {modules → moptools}/mopcms/views/images/admin/bg_white80.png
  42. BIN {modules → moptools}/mopcms/views/images/admin/bgk80.png
  43. BIN {modules → moptools}/mopcms/views/images/admin/bgk88.png
  44. BIN {modules → moptools}/mopcms/views/images/admin/bgk90.png
  45. BIN {modules → moptools}/mopcms/views/images/admin/bgk94.png
  46. BIN {modules → moptools}/mopcms/views/images/admin/icon_add_category.gif
  47. BIN {modules → moptools}/mopcms/views/images/admin/icon_addpage.gif
  48. BIN {modules → moptools}/mopcms/views/images/admin/icon_addpage.jpg
  49. BIN {modules → moptools}/mopcms/views/images/admin/icon_cancel.gif
  50. BIN {modules → moptools}/mopcms/views/images/admin/icon_cancel.png
  51. BIN {modules → moptools}/mopcms/views/images/admin/icon_cancel_hover.png
  52. BIN {modules → moptools}/mopcms/views/images/admin/icon_confirm.gif
  53. BIN {modules → moptools}/mopcms/views/images/admin/icon_confirm.png
  54. BIN {modules → moptools}/mopcms/views/images/admin/icon_confirm_hover.png
  55. BIN {modules → moptools}/mopcms/views/images/admin/icon_delete.gif
  56. BIN {modules → moptools}/mopcms/views/images/admin/icon_delete.png
  57. BIN {modules → moptools}/mopcms/views/images/admin/icon_delete_hover.png
  58. BIN {modules → moptools}/mopcms/views/images/admin/icon_download.png
  59. BIN {modules → moptools}/mopcms/views/images/admin/icon_folder.gif
  60. BIN {modules → moptools}/mopcms/views/images/admin/icon_folder_hover.gif
  61. BIN {modules → moptools}/mopcms/views/images/admin/icon_folderadd.gif
  62. BIN {modules → moptools}/mopcms/views/images/admin/icon_folderadd_hover.gif
  63. BIN {modules → moptools}/mopcms/views/images/admin/icon_folderopen.gif
  64. BIN {modules → moptools}/mopcms/views/images/admin/icon_folderopen_hover.gif
  65. BIN {modules → moptools}/mopcms/views/images/admin/icon_gif.gif
  66. BIN {modules → moptools}/mopcms/views/images/admin/icon_jpg.gif
  67. BIN {modules → moptools}/mopcms/views/images/admin/icon_none.gif
  68. BIN {modules → moptools}/mopcms/views/images/admin/icon_pdf.gif
  69. BIN {modules → moptools}/mopcms/views/images/admin/icon_png.gif
  70. BIN {modules → moptools}/mopcms/views/images/admin/icon_published.gif
  71. BIN {modules → moptools}/mopcms/views/images/admin/icon_published_hover.gif
  72. BIN {modules → moptools}/mopcms/views/images/admin/icon_sort.png
  73. BIN {modules → moptools}/mopcms/views/images/admin/icon_sort_hover.png
  74. BIN {modules → moptools}/mopcms/views/images/admin/icon_trash.gif
  75. BIN {modules → moptools}/mopcms/views/images/admin/icon_unpublished.gif
  76. BIN {modules → moptools}/mopcms/views/images/admin/icon_unpublished_hover.gif
  77. BIN {modules → moptools}/mopcms/views/images/admin/icon_upload.png
  78. BIN {modules → moptools}/mopcms/views/images/admin/icon_view.png
  79. BIN {modules → moptools}/mopcms/views/images/admin/navbg.gif
  80. BIN {modules → moptools}/mopcms/views/images/admin/spinner.gif
  81. BIN {modules → moptools}/mopcms/views/images/admin/switch_handle.png
  82. BIN {modules → moptools}/mopcms/views/images/admin/switch_track.png
  83. BIN {modules → moptools}/mopcms/views/images/bar.gif
  84. BIN {modules → moptools}/mopcms/views/images/bg_row.gif
  85. BIN {modules → moptools}/mopcms/views/images/bg_row_alt.gif
  86. BIN {modules → moptools}/mopcms/views/images/bg_white60.png
  87. BIN {modules → moptools}/mopcms/views/images/bg_white80.png
  88. BIN {modules → moptools}/mopcms/views/images/bgk80.png
  89. BIN {modules → moptools}/mopcms/views/images/bgk88.png
  90. BIN {modules → moptools}/mopcms/views/images/bgk90.png
  91. BIN {modules → moptools}/mopcms/views/images/bgk94.png
  92. BIN {modules → moptools}/mopcms/views/images/failed.png
  93. BIN {modules → moptools}/mopcms/views/images/file.png
  94. BIN {modules → moptools}/mopcms/views/images/guideBg.gif
  95. BIN {modules → moptools}/mopcms/views/images/icon_add_category.gif
  96. BIN {modules → moptools}/mopcms/views/images/icon_addpage.gif
  97. BIN {modules → moptools}/mopcms/views/images/icon_addpage.jpg
  98. BIN {modules → moptools}/mopcms/views/images/icon_cancel.gif
  99. BIN {modules → moptools}/mopcms/views/images/icon_cancel.png
  100. BIN {modules → moptools}/mopcms/views/images/icon_cancel_hover.png
  101. BIN {modules → moptools}/mopcms/views/images/icon_confirm.gif
  102. BIN {modules → moptools}/mopcms/views/images/icon_confirm.png
  103. BIN {modules → moptools}/mopcms/views/images/icon_confirm_hover.png
  104. BIN {modules → moptools}/mopcms/views/images/icon_delete.gif
  105. BIN {modules → moptools}/mopcms/views/images/icon_delete.png
  106. BIN {modules → moptools}/mopcms/views/images/icon_delete_hover.png
  107. BIN {modules → moptools}/mopcms/views/images/icon_doc.gif
  108. BIN {modules → moptools}/mopcms/views/images/icon_download.png
  109. BIN {modules → moptools}/mopcms/views/images/icon_folder.gif
  110. BIN {modules → moptools}/mopcms/views/images/icon_folder_hover.gif
  111. BIN {modules → moptools}/mopcms/views/images/icon_folderadd.gif
  112. BIN {modules → moptools}/mopcms/views/images/icon_folderadd_hover.gif
  113. BIN {modules → moptools}/mopcms/views/images/icon_folderopen.gif
  114. BIN {modules → moptools}/mopcms/views/images/icon_folderopen_hover.gif
  115. BIN {modules → moptools}/mopcms/views/images/icon_gif.gif
  116. BIN {modules → moptools}/mopcms/views/images/icon_jpg.gif
  117. BIN {modules → moptools}/mopcms/views/images/icon_none.gif
  118. BIN {modules → moptools}/mopcms/views/images/icon_pdf.gif
  119. BIN {modules → moptools}/mopcms/views/images/icon_png.gif
  120. BIN {modules → moptools}/mopcms/views/images/icon_published.gif
  121. BIN {modules → moptools}/mopcms/views/images/icon_published_hover.gif
  122. BIN {modules → moptools}/mopcms/views/images/icon_sort.png
  123. BIN {modules → moptools}/mopcms/views/images/icon_sort_hover.png
  124. BIN {modules → moptools}/mopcms/views/images/icon_trash.gif
  125. BIN {modules → moptools}/mopcms/views/images/icon_unpublished.gif
  126. BIN {modules → moptools}/mopcms/views/images/icon_unpublished_hover.gif
  127. BIN {modules → moptools}/mopcms/views/images/icon_upload.png
  128. BIN {modules → moptools}/mopcms/views/images/icon_view.png
  129. BIN {modules → moptools}/mopcms/views/images/navbg.gif
  130. BIN {modules → moptools}/mopcms/views/images/progress.gif
  131. BIN {modules → moptools}/mopcms/views/images/spinner.gif
  132. BIN {modules → moptools}/mopcms/views/images/success.png
  133. BIN {modules → moptools}/mopcms/views/images/switch_handle.png
  134. BIN {modules → moptools}/mopcms/views/images/switch_track.png
  135. BIN {modules → moptools}/mopcms/views/images/uploading.png
  136. 0 {modules → moptools}/mopcms/views/js/list.js
  137. 0 {modules → moptools}/mopcms/views/js/mop_associator.js
  138. 0 {modules → moptools}/mopcms/views/js/mop_cms.js
  139. 0 {modules → moptools}/mopcms/views/list.php
  140. 0 {modules → moptools}/mopcms/views/list_item.php
  141. 0 {modules → moptools}/mopcms/views/mop_associator.php
  142. 0 {modules → moptools}/mopcms/views/mop_cms.php
  143. 0 {modules → moptools}/mopcms/views/mop_cms_nodetitle.php
  144. 0 {modules → moptools}/mopcms/views/mop_cms_undelete.php
  145. 0 {modules → moptools}/mopcore/classes/controller/ajax.php
  146. 0 {modules → moptools}/mopcore/classes/controller/footer.php
  147. 0 {modules → moptools}/mopcore/classes/controller/header.php
  148. 0 {modules → moptools}/mopcore/classes/controller/headerfooter.php
  149. 0 {modules → moptools}/mopcore/classes/controller/html.php
  150. 0 {modules → moptools}/mopcore/classes/controller/layout.php
  151. 0 {modules → moptools}/mopcore/classes/controller/mop.php
  152. 0 {modules → moptools}/mopcore/classes/controller/test.php
  153. 0 {modules → moptools}/mopcore/classes/frontend.php
  154. 0 {modules → moptools}/mopcore/classes/helper/mop.php
  155. 0 {modules → moptools}/mopcore/classes/mop.php
  156. 0 {modules → moptools}/mopcore/classes/moputil.php
  157. 0 {modules → moptools}/mopcore/classes/response.php
  158. 0 {modules → moptools}/mopcore/config/LayoutAdmin.php
  159. 0 {modules → moptools}/mopcore/config/data.dtd
  160. 0 {modules → moptools}/mopcore/config/frontend.dtd
  161. 0 {modules → moptools}/mopcore/config/homepagesample.txt
  162. 0 {modules → moptools}/mopcore/config/mop.php
  163. 0 {modules → moptools}/mopcore/config/objects.dtd
  164. 0 {modules → moptools}/mopcore/config/test.php
  165. 0 {modules → moptools}/mopcore/init.php
  166. 0 {modules → moptools}/mopcore/views/LayoutAdmin.php
  167. 0 {modules → moptools}/mopcore/views/LayoutPublic.php
  168. 0 {modules → moptools}/mopcore/views/adminpage.php
  169. 0 {modules → moptools}/mopcore/views/css/test.css
  170. 0 {modules → moptools}/mopcore/views/footer_admin.php
  171. 0 {modules → moptools}/mopcore/views/footer_public.php
  172. 0 {modules → moptools}/mopcore/views/header_admin.php
  173. 0 {modules → moptools}/mopcore/views/header_public.php
  174. 0 {modules → moptools}/mopcore/views/js/test.js
  175. 0 {modules → moptools}/mopextras/classes/controller/keepalive.php
  176. 0 {modules → moptools}/mopextras/classes/controller/mopauth.php
  177. 0 {modules → moptools}/mopextras/views/auth/forgot.php
  178. 0 {modules → moptools}/mopextras/views/auth/install.php
  179. 0 {modules → moptools}/mopextras/views/auth/template.php
  180. 0 {modules → moptools}/mopextras/views/logged_in_as.php
  181. 0 {modules → moptools}/mopextras/views/noaccess.php
  182. 0 {modules → moptools}/mopfrontend/classes/controller/mopfrontend.php
  183. 0 {modules → moptools}/mopfrontend/classes/controller/publicmenu.php
  184. 0 {modules → moptools}/mopfrontend/config/mopfrontend.php
  185. 0 {modules → moptools}/mopfrontend/init.php
  186. 0 {modules → moptools}/mopfrontend/views/publicnav.php
  187. 0 {modules/mop → moptools/mopjs}/MoPCore.js
  188. 0 {modules/mop → moptools/mopjs}/MoPModules.js
  189. 0 {modules/mop → moptools/mopjs}/MoPUI.js
  190. 0 {modules/mop → moptools/mopjs}/thirdparty/960Grid/960.css
  191. 0 {modules/mop → moptools/mopjs}/thirdparty/960Grid/reset.css
  192. 0 {modules/mop → moptools/mopjs}/thirdparty/960Grid/text.css
  193. 0 {modules/mop → moptools/mopjs}/thirdparty/digitarald/fancyupload/Swiff.Uploader.js
  194. BIN {modules/mop → moptools/mopjs}/thirdparty/digitarald/fancyupload/Swiff.Uploader.swf
  195. BIN {modules/mop → moptools/mopjs}/thirdparty/digitarald/fancyupload/Swiff.Uploader3.swf
  196. BIN {modules/mop → moptools/mopjs}/thirdparty/digitarald/fancyupload/source/Swiff.Uploader.fla
  197. 0 {modules/mop → moptools/mopjs}/thirdparty/monkeyphysics/datepicker.js
  198. 0 {modules/mop → moptools/mopjs}/thirdparty/mootools/mootools-more.js
  199. 0 {modules/mop → moptools/mopjs}/thirdparty/mootools/mootools.js
  200. 0 {modules → moptools}/mopui/classes/mopui.php
  201. 0 {modules → moptools}/mopui/config/clusters.xml
  202. 0 {modules → moptools}/mopui/helpers/listModulePagination.php
  203. 0 {modules → moptools}/mopui/helpers/mopui.php
  204. 0 {modules → moptools}/mopui/helpers/pagination.php
  205. 0 {modules → moptools}/mopui/helpers/pagination_base.php
  206. 0 {modules → moptools}/mopui/views/clusters_wrapper.php
  207. BIN {modules → moptools}/mopui/views/images/iconDatePicker.gif
  208. BIN {modules → moptools}/mopui/views/images/iconDuplicate.gif
  209. BIN {modules → moptools}/mopui/views/images/iconEdit.gif
  210. BIN {modules → moptools}/mopui/views/images/iconExternalLink.gif
  211. BIN {modules → moptools}/mopui/views/images/iconMultiSelect.gif
  212. BIN {modules → moptools}/mopui/views/images/iconPayment.gif
  213. BIN {modules → moptools}/mopui/views/images/iconRenew.gif
  214. BIN {modules → moptools}/mopui/views/images/iconTrash.gif
  215. BIN {modules → moptools}/mopui/views/images/icon_doc.gif
  216. BIN {modules → moptools}/mopui/views/images/optionBg.png
  217. BIN {modules → moptools}/mopui/views/images/spinner.gif
  218. BIN {modules → moptools}/mopui/views/images/stickyBg.png
  219. BIN {modules → moptools}/mopui/views/images/stickyBottom.png
  220. BIN {modules → moptools}/mopui/views/images/stickyClose.gif
  221. BIN {modules → moptools}/mopui/views/images/stickyTop.png
  222. 0 {modules → moptools}/mopui/views/pagination/paginationControls.php
  223. 0 {modules → moptools}/mopui/views/ui_checkbox.php
  224. 0 {modules → moptools}/mopui/views/ui_date.php
  225. 0 {modules → moptools}/mopui/views/ui_dateRange.php
  226. 0 {modules → moptools}/mopui/views/ui_fieldmap.php
  227. 0 {modules → moptools}/mopui/views/ui_file.php
  228. 0 {modules → moptools}/mopui/views/ui_image.php
  229. 0 {modules → moptools}/mopui/views/ui_input.php
  230. 0 {modules → moptools}/mopui/views/ui_multiSelect.php
  231. 0 {modules → moptools}/mopui/views/ui_pulldown.php
  232. 0 {modules → moptools}/mopui/views/ui_pulldownNav.php
  233. 0 {modules → moptools}/mopui/views/ui_radioGroup.php
  234. 0 {modules → moptools}/mopui/views/ui_text.php
  235. 0 {modules → moptools}/mopui/views/ui_time.php
@@ -1,10 +0,0 @@
-<?php defined('SYSPATH') or die('No direct access allowed.');
-
-$lang = array
-(
- 'required' => 'Some required fields were not supplied: %s',
- 'gateway_connection_error' => 'An error occured connecting to the payment gateway. Please contact the webmaster if this problem persists.',
- 'invalid_certificate' => 'The certificate file is invalid: %s',
- 'no_dlib' => 'Could not load the dynamic library: %s',
- 'error' => 'There was an error processing the transaction: %s',
-);
@@ -1,83 +0,0 @@
-<?php defined('SYSPATH') or die('No direct access allowed.');
-
-$lang = array
-(
- '000' => 'No errors - Transaction Approved.',
- '001' => 'Call',
- '002' => 'Call',
- '003' => 'Merch Id Error',
- '004' => 'Hold-call or Pick Up Card',
- '005' => 'Decline. Do not honor.',
- '006' => 'General Transaction Error.',
- '007' => 'Hold-call or Pick Up Card',
- '012' => 'Invalid Trans',
- '013' => 'Amount Error',
- '014' => 'Card No. Error',
- '015' => 'No Such Issuer',
- '019' => 'Communication error with Visa. Customer should retry.',
- '021' => 'No Action Taken',
- '041' => 'Hold-call or Pick Up Card',
- '043' => 'Hold-call or Pick Up Card',
- '051' => 'Decline. Insufficient funds.',
- '054' => 'Expired Card',
- '055' => 'Serv Not Allowed',
- '058' => 'Serv Not Allowed',
- '062' => 'Decline. Invalid service code, restricted.',
- '063' => 'Sec Violation',
- '065' => 'Decline. Activity limit exceeded.',
- '076' => 'Unsolic Reversal',
- '077' => 'No Action Taken. Reversal amount larger then original amount.',
- '078' => 'No Account',
- '079' => 'Already Reversed',
- '080' => 'Date Error',
- '082' => 'Incorrect CVV',
- '085' => 'Card OK. No reason to decline.',
- '091' => 'No Reply',
- '092' => 'Invalid Routing',
- '093' => 'Decline. Violation, cannot complete.',
- '094' => 'Duplicate Trans',
- '096' => 'System Error. System malfunction. A bug in Trident. Escalate issue to developers.',
- '0N7' => 'CVV2 Mismatch',
- '101' => 'Invalid Profile ID or Profile Key.',
- '102' => 'Incomplete Request.',
- '103' => 'Invoice Number Length Error.',
- '104' => 'Reference Number Length Error.',
- '105' => 'AVS Address Length Error.',
- '106' => 'AVS Zip Length Error.',
- '107' => 'Merchant Name Length Error.',
- '108' => 'Merchant City Length Error.',
- '109' => 'Merchant State Length Error.',
- '110' => 'Merchant Zip Length Error.',
- '111' => 'Merchant Category Code Length Error.',
- '112' => 'Merchant Phone Length Error.',
- '113' => 'Reference Number Must Be Numeric.',
- '114' => 'Missing Card Holder Account Data.',
- '115' => 'Invalid Card Number.',
- '116' => 'Credits Not Allowed.',
- '117' => 'Card Type Not Accepted.',
- '118' => 'Currency Type Not Accepted.',
- '201' => 'Invalid Transaction ID.',
- '202' => 'Invalid Transaction Amount.',
- '203' => 'Void Failed.',
- '204' => 'Transaction Already Settled.',
- '205' => 'Transaction Already Voided.',
- '206' => 'Transaction Already refunded.',
- '207' => 'Refund failed.',
- '208' => 'Failed to receive a response from auth host.',
- '209' => 'Invalid tax amount.',
- '210' => 'AVS result is declined by user.',
- '211' => 'CVV2 result is declined by user.',
- '212' => 'Refund amount must be between zero and the original amount.',
- '213' => 'Only sale transactions can be refunded.',
- '214' => 'Only one type of card data allowed per request.',
- '215' => 'Invalid Card ID.',
- '216' => 'Failed to load card data, retry request.',
- '217' => 'Failed to store card data, retry request.',
- '218' => 'Card ID parameter cannot be included in this type of transaction.',
- '300' => 'Failed to capture PayVision transaction.',
- '301' => 'Failed to void PayVision transaction.',
- '302' => 'Failed to refund PayVision transaction.',
- '303' => 'Card Verify not supported.',
- '304' => 'Failed to reverse PayVision authorization.',
- '305' => 'Internal Error.'
-);
@@ -1,36 +0,0 @@
-<?php defined('SYSPATH') or die('No direct access allowed.');
-
-$lang = array
-(
- 'decline' => array
- (
- 'avs' => 'AVS failed; the address entered does not match the billing address on file at the bank.',
- 'cvv' => 'CVV failed; the number provided is not the correct verification number for the card.',
- 'call' => 'The card must be authorized manually over the phone. You may choose to call the customer service number listed on the card and ask for an offline authcode, which can be passed in the offlineauthcode field.',
- 'expiredcard' => 'The card has expired. Get updated expiration date from cardholder.',
- 'carderror' => 'Card number is invalid, which could be a typo, or sometimes a card reported stolen.',
- 'authexpired' => 'Attempt to postauth an expired (more than 14 days old) preauth.',
- 'fraud' => 'CrediGuard fraud score was below requested threshold.',
- 'blacklist' => 'CrediGuard blacklist value was triggered.',
- 'velocity' => 'CrediGuard velocity control was triggered.',
- 'dailylimit' => 'Daily limit in transaction count or amount as been reached.',
- 'weeklylimit' => 'Weekly limit in transaction count or amount as been reached.',
- 'monthlylimit' => 'Monthly limit in transaction count or amount as been reached.',
- ),
- 'baddata' => array
- (
- 'missingfields' => 'One or more parameters required for this transaction type were not sent.',
- 'extrafields' => 'Parameters not allowed for this transaction type were sent.',
- 'badformat' => 'A field was improperly formatted, such as non-digit characters in a number field.',
- 'badlength' => 'A field was longer or shorter than the server allows.',
- 'merchantcantaccept' => 'The merchant can\'t accept data passed in this field.',
- 'mismatch' => 'Data in one of the offending fields did not cross-check with the other offending field.',
- ),
- 'error' => array
- (
- 'cantconnect' => 'Couldn\'t connect to the TrustCommerce gateway. Check your Internet connection to make sure it is up.',
- 'dnsfailure' => 'The TCLink software was unable to resolve DNS hostnames. Make sure you have name resolving ability on the machine.',
- 'linkfailure' => 'The connection was established, but was severed before the transaction could complete.',
- 'failtoprocess' => 'The bank servers are offline and unable to authorize transactions. Try again in a few minutes, or try a card from a different issuing bank.',
- )
-);
@@ -1,123 +0,0 @@
-<?php defined('SYSPATH') or die('No direct script access.');
-/**
- * Provides payment support for credit cards and other providers like PayPal.
- *
- * $Id: Payment.php 3163 2008-07-20 16:15:31Z Shadowhand $
- *
- * @package Payment
- * @author Kohana Team
- * @copyright (c) 2007-2008 Kohana Team
- * @license http://kohanaphp.com/license.html
- */
-class Payment_Core {
-
- // Configuration
- protected $config = array
- (
- // The driver string
- 'driver' => NULL,
- // Test mode is set to true by default
- 'test_mode' => TRUE,
- );
-
- protected $driver = NULL;
-
- /**
- * Sets the payment processing fields.
- * The driver will translate these into the specific format for the provider.
- * Standard fields are (Providers may have additional or different fields):
- *
- * card_num
- * exp_date
- * cvv
- * description
- * amount
- * tax
- * shipping
- * first_name
- * last_name
- * company
- * address
- * city
- * state
- * zip
- * email
- * phone
- * fax
- * ship_to_first_name
- * ship_to_last_name
- * ship_to_company
- * ship_to_address
- * ship_to_city
- * ship_to_state
- * ship_to_zip
- *
- * @param array the driver string
- */
- public function __construct($config = array())
- {
- if (empty($config))
- {
- // Load the default group
- $config = Kohana::config('payment.default');
- }
- elseif (is_string($config))
- {
- $this->config['driver'] = $config;
- }
-
- // Merge the default config with the passed config
- is_array($config) AND $this->config = array_merge($this->config, $config);
-
- // Set driver name
- $driver = 'Payment_'.ucfirst($this->config['driver']).'_Driver';
-
- // Load the driver
- if ( ! Kohana::auto_load($driver))
- throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this));
-
- // Get the driver specific settings
- $this->config = array_merge($this->config, Kohana::config('payment.'.$this->config['driver']));
-
- // Initialize the driver
- $this->driver = new $driver($this->config);
-
- // Validate the driver
- if ( ! ($this->driver instanceof Payment_Driver))
- throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Payment_Driver');
- }
-
- /**
- * Sets the credit card processing fields
- *
- * @param string field name
- * @param string value
- */
- public function __set($name, $val)
- {
- $this->driver->set_fields(array($name => $val));
- }
-
- /**
- * Bulk setting of payment processing fields.
- *
- * @param array array of values to set
- * @return object this object
- */
- public function set_fields($fields)
- {
- $this->driver->set_fields((array) $fields);
-
- return $this;
- }
-
- /**
- * Runs the transaction
- *
- * @return TRUE|string TRUE on successful payment, an error string on failure
- */
- public function process()
- {
- return $this->driver->process();
- }
-}
@@ -1,28 +0,0 @@
-<?php defined('SYSPATH') or die('No direct script access.');
-/**
- * Payment driver interface
- *
- * $Id: Payment.php 3108 2008-07-14 00:01:27Z Shadowhand $
- *
- * @package Payment
- * @author Kohana Team
- * @copyright (c) 2007-2008 Kohana Team
- * @license http://kohanaphp.com/license.html
- */
-interface Payment_Driver {
-
- /**
- * Sets driver fields and marks reqired fields as TRUE.
- *
- * @param array array of key => value pairs to set
- */
- public function set_fields($fields);
-
- /**
- * Runs the transaction.
- *
- * @return boolean
- */
- public function process();
-
-} // End Payment Driver Interface
Oops, something went wrong.

0 comments on commit fc2806e

Please sign in to comment.