From 404d48bf6cc810d1ea13a1f4c8f79cdf37e3318e Mon Sep 17 00:00:00 2001 From: twomice Date: Thu, 5 May 2016 14:37:28 +0530 Subject: [PATCH] CRM-18070: Packaged eWAY classes not loaded for Event registration --- CRM/Core/Payment/eWAY.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.25.1