Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18176

CiviEvent Registration Fails (Server Error 500) with PayJunction

    Details

    • 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.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              slgooding Lee Gooding
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m