OptimalPayments.com Payment Terminal


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 optimalpayments.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 optimalpayments.com merchant account.


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. b. Line 20 – administrator email for new payment notifications
  3. Line 22 – currency code, please note that currency must be supported by your payment provider.
  4. d. 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. g. Line 40 – OptimalPayments account number
  8. h. Line 41 – OptimalPayments merchant ID
  9. Line 42 – OptimalPayments merchant password


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.


We provide courtesy support for all our products to our valued customers within 48-72 hours after receiving the request through our support ticketing system. Each purchase comes with 6 months support time. After that – you may either purchase extended support through the marketplace or purchase premium support with us.

If you need any help regarding the installation of the script or any other question please read through respective product documentation first and if solution is not found – open support ticket (please note, you will need to register account and you will be required to provide your license key (item purchase code) during the registration process, which will then be validated through CodeCanyon API. If your support period has expired you may either extend it with Envato or purchasepremium support from us).

Please note that we do not provide support by email. Any email related to support and not to pre-sales questions will be replied to after any other support tickets are resolved and in general will be directed to open a ticket, since we need to validate your purchase/support period validity.

For more details about our support policy and terms of service (including what is and is not included in Basic Support) click here.

Our business hours are Monday – Friday: 9:00am – 6:00pm (EST), and support is provided only at that time. Upon opening a ticket, we make it our goal to respond within 48-72 hours, however depending on the issue you’re having it may take a bit longer, but in any case we will address the issue within specified period of time with at least “resolution time” in reply.

Is this document useful? 0 0

Published: March 13, 2016 Updated: March 13, 2016

« back to all manuals