CRM-19372 allow payment processors to define an array of accepted credit card types
[civicrm-core.git] / 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');