From: twomice Date: Thu, 5 May 2016 09:07:28 +0000 (+0530) Subject: CRM-18070: Packaged eWAY classes not loaded for Event registration X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=404d48bf6cc810d1ea13a1f4c8f79cdf37e3318e;p=civicrm-core.git CRM-18070: Packaged eWAY classes not loaded for Event registration --- diff --git a/CRM/Core/Payment/eWAY.php b/CRM/Core/Payment/eWAY.php index 12bbb7bc01..b0fab3cedc 100644 --- a/CRM/Core/Payment/eWAY.php +++ b/CRM/Core/Payment/eWAY.php @@ -90,6 +90,11 @@ * * ----------------------------------------------------------------------------------------------- */ + +// 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;