Skip to content

Commit

Permalink
CRM-18070: Packaged eWAY classes not loaded for Event registration
Browse files Browse the repository at this point in the history
  • Loading branch information
twomice authored and monishdeb committed May 5, 2016
1 parent 5af25e3 commit 01ef449
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CRM/Core/Payment/eWAY.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,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;
Expand Down Expand Up @@ -149,12 +146,14 @@ public function doDirectPayment(&$params) {
//------------------------------------
// create eWAY gateway objects
//------------------------------------
require_once 'eWAY/eWAY_GatewayRequest.php';
$eWAYRequest = new GatewayRequest();

if (($eWAYRequest == NULL) || (!($eWAYRequest instanceof GatewayRequest))) {
return self::errorExit(9001, "Error: Unable to create eWAY Request object.");
}

require_once 'eWAY/eWAY_GatewayResponse.php';
$eWAYResponse = new GatewayResponse();

if (($eWAYResponse == NULL) || (!($eWAYResponse instanceof GatewayResponse))) {
Expand Down

0 comments on commit 01ef449

Please sign in to comment.