CRM-18176 payjunction error on events
authoreileen <emcnaughton@wikimedia.org>
Fri, 13 May 2016 17:42:31 +0000 (05:42 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 13 May 2016 17:43:34 +0000 (05:43 +1200)
CRM/Core/Payment/PayJunction.php

index 2b14306c6dcc52203b2db4d429cb7eef773a6b6d..81b113b1f585ad92d7b495414e35791e54f0ea30 100644 (file)
@@ -15,6 +15,8 @@
  * $Id$
  *
  */
+require_once 'PayJunction/pjClasses.php';
+
 class CRM_Core_Payment_PayJunction extends CRM_Core_Payment {
   # (not used, implicit in the API, might need to convert?)
   const CHARSET = 'UFT-8';
@@ -38,9 +40,6 @@ class CRM_Core_Payment_PayJunction extends CRM_Core_Payment {
    * @return \CRM_Core_Payment_PayJunction
    */
   public function __construct($mode, &$paymentProcessor) {
-    //require PayJunction API library
-    require_once 'PayJunction/pjClasses.php';
-
     $this->_mode = $mode;
     $this->_paymentProcessor = $paymentProcessor;
     $this->_processorName = ts('PayJunction');