CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • Moneris mpgClasses.php v 2.0.4
Pages: [1]

Author Topic: Moneris mpgClasses.php v 2.0.4  (Read 1436 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Moneris mpgClasses.php v 2.0.4
October 11, 2012, 08:00:51 am
There are license restrictions on a file provided by Moneris to interact with their payment processor that prevent it from being committed to the CiviCRM repository. It also needs to be modified very slightly in order to use the credentials entered in the CiviCRM admin page for payment processors.

For those who would like to use Moneris as a payment processor, I've attached here an appropriately modified version of Moneris mpgClasses.php v 2.0.4. Note we added .txt to the name to allow it to be attached here in the forum, but you need to remove that extension.

You should put it into

packages/Services/mpgClasses.php

inside the civicrm directory, eg for Drupal sites/all/modules/civicrm/packages/Services/mpgClasses.php
« Last Edit: October 11, 2012, 08:06:21 am by JoeMurray »
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

m4olivei

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 2
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: MySQL 5
  • PHP version: PHP 5.3
Re: Moneris mpgClasses.php v 2.0.4
October 11, 2012, 09:27:50 am
Thanks for uploading the file.  Are you sure this is a modified copy of the mpgClasses.php file?  Looks to me that the MONERIS_HOST variable is hardcoded to point at the Moneris test server.  Furthurmore, this version is tagged as 2.0.4 of the Moneris PHP API, whereas the current version is at 2.5.1.  This is an old version with dated PHP syntax that throws tons of PHP Notices.  Do you maybe have a diff of changes you made so that I can apply the changes to the current version of mpgClasses.php and upload that instead?

Thanks,
Matt

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • Moneris mpgClasses.php v 2.0.4

This forum was archived on 2017-11-26.