Moneris Payment Terminal

Overview

 This script allows you to have a quick & easy payment terminal for your clients to pay with major credit cards on your website without leaving it, using moneris.com as a payment processor. You just need to put this script into any directory on your hosting account, edit configuration file and give the link to your customers.  There are 2 options to pay: first option is that customers can input price themselves and type description, second option you can turn on pre-defined services and customers will select service from dropdown. Please note: in order to use this script you need to have SSL installed on your server, script must be run under SSL (https:// instead of http://) and you must have moneris.com (or monerisusa.com) merchant account.

Installation

  1. After downloading and unzipping contents find file “config.php” inside includes folder, open it with any text editor and edit following: (There are comments in the file describing each of variables)
    1. Line 18 – global page title
    2. Line 20 – administrator email for new payment notifications
    3. Line 22 – currency code (USD/CAD/EUR), please note that currency must be supported by your payment provider.
    4. Line 24 to Line 29 – array with services (Service name / price)
    5. Line 32 – variable which helps to turn on/off services dropdown. If set to “false” – description field and amount fields will be shown on payment form, if true – dropdown with services.
    6. Line 37 – little helper variable to turn on/off automatic HTTPS:// check and redirects user in case page accessed through regular http://, if you don’t have SSL installed on the server this should be “false”, however please note that to go live YOU MUST HAVE SSL INSTALLED.
    7. Line 40 – Your store name (will be shown to customers in receipt)
    8. Line 41 – Your store URL (again, will be shown to customers in the receipt) i. Line 43-Line46 – Moneris Credentials
    9. Line 48 – Country Selector variable (can be US or CA)
  2. Upload all files to any location on your hosting account and you are ready to accept payments! As stated before several times – you must have SSL certificate to accept payments moneris merchant account.

Moneris Test API

It is very important to use correct test API credentials for Moneris terminal. If it is wrong – you will receive NULL responses in test transactions.
Moneris Canada TEST API settings:
API TOKEN: yesguy
API URL: esqa.moneris.com
STORE ID: store1
When going live – API URL must be set to www3.moneris.com and API TOKEN and STORE ID should be taken from your account.

Moneris US TEST API settings:
API TOKEN: yesguy
API URL: esqa.moneris.com
STORE ID: store1
When going live – API URL must be set to esplus.moneris.com and API TOKEN and STORE ID should be taken from your account.

Where do I find my API Token?
Log into your Moneris Merchant Resource Center at either https://www3.moneris.com/mpg/index.php or https://esplus.moneris.com/usmpg/index.php depending on whether you have a Canadian or US account, respectively, then go to Admin > store settings > API Token where your 20-digit API token can be found.

You can easily edit terminal styles in style.css – code is commented in sections there.

Is this document useful? 0 0

Published: March 5, 2016 Updated: April 29, 2016

« back to all manuals