Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.3
-
Fix Version/s: 4.7.8
-
Component/s: CiviContribute, CiviEvent
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
I can't really test this on the sandbox. We did not have this issue in CiviCRM 4.6.
When using the PayJunction payment provider, event registration will fail at the last step of submission.
The server will return error 500. Error.log shows:
PHP Fatal error: Class 'pjpgCustInfo' not found in /civicrm/CRM/Core/Payment/PayJunction.php on line 65, referer: https://XXXXX/civicrm/event/register?_qf_Confirm_display=true
I had to add: require_once 'PayJunction/pjClasses.php';
right below: public function doDirectPayment(&$params) {
public function doDirectPayment(&$params) { require_once 'PayJunction/pjClasses.php'; $logon = $this->_paymentProcessor['user_name']; $password = $this->_paymentProcessor['password']; $url_site = $this->_paymentProcessor['url_site']; // create pjpgCustInfo object $pjpgCustInfo = new pjpgCustInfo();
Currently pjClasses include is within the __construct function, but that doesn't seem to be working with the event registrations.
By adding the include to the doDirectPayment function everything works as expected.
I tested payment through a contribution page and it worked fine which leads me to believe this is directly related to event registration.