Moneris PHP API (Global Error Receipt)

Hi,

I am implementing an purchase solution for a website using Moneris’s PHP API. The configuration process to enable the use of cURL PHP extension & TLS 1.2 went well according to their documentation.  I receive an error saying “Global Error Receipt” ? Moneris’s documentation says “You are not connecting to our servers. This can be caused by a firewall or your internet connection”. It turned out that for some reasons, the API was not able to access the cURL certificate which resulted in such error.

I already checked the following 

  • TLS Version (TLS 1.2)
  • Curl Enable on server
  • SSL certificate
  • Web Browser version (Google Chrome = 67, Internet Explorer = 11, Firefox = 61 )

 

I have already gone through different posts on Moneris's forum but I could not able to fix this problem. 

https://community.moneris.com/blogs/b/announcements/posts/pci-compliance-amp-tls-1-0-retirement

https://community.moneris.com/product-forums/f/5/t/157

 

Here is the link to PHP purchase API

https://developer.moneris.com/Documentation/NA/E-Commerce%20Solutions/API/Purchase?lang=php

 

Here is the response I am getting while testing PHP purchase API

CardType = null
TransAmount = null
TxnNumber = null
ReceiptId = Global Error Receipt
TransType = null
ReferenceNum = null
ResponseCode = null
ISO = 
Message = Global Error Receipt
IsVisaDebit = 
AuthCode = null
Complete = false
TransDate = null
TransTime = null
Ticket = 
TimedOut = null
StatusCode = 
StatusMessage = 
MCPAmount = 
MCPCurrenyCode = 
HostId = 
IssuerId =

I am using the API for Canada (CA) on test environment. 

$mpgRequest->setProcCountryCode("CA");

$mpgRequest->setTestMode(true);

Anyone has an idea how to fix this problem ?

Thanks!!