Skip to main content

Online Payments

Rate this article:

Overview 

OpenCart is a free open-source eCommerce platform for seasoned web developers looking for a user-friendly interface and for shop owners just launching their online business.

OpenCart Integration Settings

Follow the steps below to integrate with the Hosted Payments Page (HPP) by using the OpenCart plugin:

1. Download the Verifone payment module from the link provided in the table at the bottom of this page.

2. Log in to your OpenCart admin panel and navigate to Extensions → Installer.

Integrate OpenCart Plugin for Verifone_1

3. On the Extension Installer page, click on Upload to upload your extension files.

Integrate OpenCart Plugin for Verifone_2

4. Go to Extensions → Choose the extension type and select the Payments extension type from the drop-down list.

Integrate OpenCart Plugin for Verifone_3

5. Scroll down through the Extensions list and click Install on the Verifone Hosted payment option.

Integrate OpenCart Plugin for Verifone_4

6. Click on the Edit button to enable the Verifone Hosted payment option.

7. Use the same Edit button to configure your integration by adding all the required information (you can find all the details in your Verifone Central account).

Integrate OpenCart Plugin for Verifone_5

  • General settings
  • Production credentials
    • Verifone API Username and Password - This is the username and password used to log in to your Verifone Central account. 
    • API User & API Key - You can find them under Profile → API Keys.Integrate opencart Plugin for Verifone_6
    • Entity ID - The Entity ID can be found in Verifone Central, under Administration  Organisations. The 'Organisation ID' listed is the Entity ID required for configuring the plugin.   
    • Payment Contract Id - The payment contract can be found in the Verifone Central, under Administration  Payment Contract Providers. The 'Payment Provider Contract ID' listed is the Payment Contract ID required for the plugin configuration. 
    • 3DS Contract  Id - The 3DS Contract ID can be found in Verifone Central, under Administration  3-D Secure Provider Contracts. Select the 3DS facility required. The ‘3-D Secure Contract ID’ listed is the 3DS Contract ID needed for the plugin configuration.
  • Test credentials (If you choose to enable the Test mode. For more details about the Test mode and how you can use it, you can contact our support team.)
  • Payment options (select if you want to Use 3DS and CVV on payment)
  • Advanced options (choose to enable/disable cURL verify host and peer and overlay when placing order)

8. Click the Save button  Integrate opencart Plugin for Verifone_7  to save your configuration. 

9. Create a public key for Secure Card Capture to start accepting eCommerce transactions. You do not need to use this key for the plugin configuration, it simply needs to be created to ensure any card details are encrypted in the browser, so that information can be safely passed from you (merchant) to Verifone. 

To generate a public key from your Verifone Central account follow these steps:

  • Navigate to Administration  Organisations, and select the required organization.
  • Scroll down to the bottom of the page to see the Secure Card Capture area.
  • Click on the Create new public key button. 

Integrate PrestaShop Plugin for Verifone_9

Error handling and Troubleshooting

If you encounter any errors during the installation and configuration of the OpenCart plugin, you can find a log of all errors under the System → Maintenance → Error Logs section.

Integrate OpenCart Plugin for Verifone_8

If some errors are not logged, you can always view the Apache or Nginx logs.

Common errors

  • Not having the currency of OpenCart set to the one that the payment contract supports
  • Entity ID, Payment Contract ID, or 3DS Contract ID don’t match the correct entity for which they were created
  • The cURL verify host and peer option is enable/disable but the host server doesn’t have proper TLS certificates
  • Not having the latest PrestaShop module version installed
  • Make sure that the credentials are correct: Payment Contract ID, User ID, Password, Realm, Entity ID, Client ID, etc.

In most cases, the error may be caused by various PHP errors and/or warnings.

If the error is caused by a request to the Verifone server then the error message received when the request fails is very informative. Here's an example:

{
    "code": 116,
    "details": {},
    "timestamp": 1608705038970,
    "message": "Access is restricted to authenticated users only. The query can't be made without a valid JWT (check the Authorization header of your request)."
}

The above request was denied because the user wasn’t authorized. This is due to an invalid token being present in the Authorization bearer.

This kind of error format will be present on almost all requests that fail and will deliver a concrete error message along with it which in turn will pinpoint the problem precisely.

Download Verifone Payment Module

 

Release date Build Release notes
2021-08-31 verifone-2.0.1.ocmod_.zip
  • hotfix production urls

 

 

Rate this article:
Logo of Verifone