CRM-18070: Packaged eWAY classes not loaded for Event registration
authortwomice <no@email.com>
Thu, 5 May 2016 09:07:28 +0000 (14:37 +0530)
committerdeb.monish <monish.deb@webaccessglobal.com>
Wed, 11 May 2016 07:41:21 +0000 (13:11 +0530)
CRM/Core/Payment/eWAY.php

index 12bbb7bc0123b31978ae59421aa2b1889aba18cc..b0fab3cedca1fe78ffe883553e34ceb88d0c8895 100644 (file)
  *
  * -----------------------------------------------------------------------------------------------
  */
+
+// require Standard eWAY API libraries
+require_once 'eWAY/eWAY_GatewayRequest.php';
+require_once 'eWAY/eWAY_GatewayResponse.php';
+
 class CRM_Core_Payment_eWAY extends CRM_Core_Payment {
   # (not used, implicit in the API, might need to convert?)
   const CHARSET = 'UTF-8';
@@ -114,9 +119,6 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment {
    * *******************************************************
    */
   public function __construct($mode, &$paymentProcessor) {
-    // require Standard eWAY API libraries
-    require_once 'eWAY/eWAY_GatewayRequest.php';
-    require_once 'eWAY/eWAY_GatewayResponse.php';
 
     // live or test
     $this->_mode = $mode;