OpenCart

OpenCart
Install the Solidgate payment module for OpenCart to accept card transactions and alternative payment methods on your online storefront

Solidgate offers secure card payment processing for your OpenCart store.

Follow the steps below to integrate Solidgate and start accepting payments. Before you begin, ensure you have:

  • Solidgate account
    Access to your account at Solidgate Hub to get your Guide
    Authenticate with the Solidgate API using merchant credentials, configure request signing, and start processing live payment transactions.
    API keys.
  • OpenCart & PHP versions
    Ensure your OpenCart version and PHP version meet the requirements for the module.
    • OpenCart 3.x / 4.x or higher
    • PHP 7.4(OC3)+ / 8.1(OC4)+

Install module

To install the module


  1. Copy module files of the Solidgate directory to your OpenCart installation directory:
    catalog/controller/extension/payment/solidgate.php
    catalog/model/extension/payment/solidgate.php
    catalog/view/theme/default/template/extension/payment/solidgate.twig
    catalog/language/en-gb/extension/payment/solidgate.php
    admin/controller/extension/payment/solidgate.php
    admin/view/template/extension/payment/solidgate.twig
    admin/language/en-gb/extension/payment/solidgate.php
    system/library/php-sdk-master/
  2. In OpenCart admin panel, go to Back Office > Extensions > Payments.
  3. Find Solidgate.
  4. Proceed with Install.
  5. Click on Edit and then Enable.

Get API keys

To get API keys


  1. Log in to the Solidgate Hub account.
  2. Navigate to Developers > Channels.
  3. Click on the needed channel to go to the Channel details page.
  4. For the OpenCart configuration page, find the following credentials:
    • Public key - API public key from the Solidgate Hub api_pk
    • Secret key - API secret key from the Solidgate Hub api_sk
  5. Optionally, on the Channel details page, add a Guide
    Configure webhook endpoints to receive real-time event notifications for payment status changes, subscription updates, and refund outcomes.
    Webhook
    URL for payment status updates.
    https://yourstore/solidgate/payment/notify

Configure payment gateway

To complete OpenCart configuration


  1. In OpenCart admin panel, go to Extensions > Payments.
  2. Find Solidgate.
  3. Click Configure and fill in the following details:
    • Public key: API public key from the Solidgate Hub api_pk
    • Secret key: API secret key from the Solidgate Hub api_sk
    • Webhook URL: For payment sync status, copy it to add to Solidgate Hub
    • Webhook public key: Webhook public key from the Solidgate Hub wh_pk
    • Webhook secret key: Webhook secret key from the Solidgate Hub wh_sk
  4. Click on Save to complete the configuration.
Additionally, you can configure extra processing settings in OpenCart admin panel.

Checkout flow

The following steps show how payment processing works with Solidgate in OpenCart:


  1. Customer selects Solidgate as the payment method.
  2. Store redirects the customer to the Solidgate’s secure Guide
    Set up a Solidgate-hosted payment page by configuring your API request, setting order parameters, and redirecting customers to checkout.
    payment page.
  3. Customer enters their card details and confirms the payment.
  4. Solidgate processes the transaction and redirects them back to:
    • Success - OpenCart order success page
    • Failure - OpenCart error message
For testing, you can use sandbox keys that allow you to simulate payments without any real charges.


Looking for help? Contact us
Stay informed with Changelog