Skip to content

Improved Moneris library for Moneris API (Canada) payment method.

Notifications You must be signed in to change notification settings

maciejzgadzaj/moneris-api-ca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Moneris API (Canada) library

Improved Moneris library for Moneris API (Canada) payment method.

Payment methods

Moneris API payment method description: https://developer.moneris.com/Downloads/Canada/API.aspx

Original library

Original version 2.5.6 of this library can be found at: https://developer.moneris.com/Downloads/Canada/API/Basic%20Transaction%20Functions.aspx

Changes

Original library was updated to support the following new features:

  • support for production servers

    Original library has test server hostname hardcoded in mpgGlobals class. To use the production server the library needs to be manually edited (see Chapter 24 "How Do I Configure My Store For Production?" of eSelectPlus Merchant Integration Guide). This change adds both test and production server hostnames, and the required one could be selected using a new optional parameter to mpgHttpsPost::mpgHttpsPost() method.

  • support for CA root certificates

    Original library doesn't support using CA root certificate out of the box, forcing a user to modify the library manually if they want to use this (see Chapter 21 "How Do I Test My Solution?" of eSelectPlus Merchant Integration Guide). This change introduces this feature, providing an option to specify certificate file path in a new optional parameter to mpgHttpsPost::mpgHttpsPost() method.

  • support for fetching cURL responses

    Original cURL response and error message (if any) are not being made available by the library to the calling system. Original library returns vague "Global Error Receipt" error instead. This update provides two new methods of mpgHttpsPost class to get original cURL response and cURL error (if any).

About

Improved Moneris library for Moneris API (Canada) payment method.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages