[
{
"title":"Testing",
"link":"https://docs.solidgate.com/payments/testing/",
"text":"Simulate payments to test your integration before launching in production.",
"imgSrc":"https://solidgate.com/wp-content/uploads/2022/06/icon-customizable.svg"
}
,
{
"title":"Create your payment form",
"link":"https://docs.solidgate.com/payments/integrate/payment-form/create-your-payment-form/",
"text":"Understand how to integrate the payment form into your product.",
"imgSrc":"https://solidgate.com/wp-content/uploads/2022/06/icon-payments.svg"
}
,
{
"title":"Billing",
"link":"https://docs.solidgate.com/billing/",
"text":"Smart billing solutions designed for diverse business models.",
"imgSrc":"https://solidgate.com/wp-content/uploads/2022/06/icon-global.svg"
}
]
Integrate Solidgate to accept secure card payments in OpenCart
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
Learn to authenticate API requests and fix validation errors effectively.
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
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/
In OpenCart admin panel, go to Back Office > Extensions > Payments.
Click on the needed channel to go to the Channel details page.
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
Optionally, on the Channel details page, add a
Guide
Subscribe for events on your Solidgate account so your integration can automatically trigger actions
Webhook
URL for payment status updates.
https://yourstore/solidgate/payment/notify
Configure payment gateway
To complete OpenCart configuration
In OpenCart admin panel, go to Extensions > Payments.
Find Solidgate.
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
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:
Customer selects Solidgate as the payment method.
Store redirects the customer to the Solidgate’s secure
Guide
Create and customize a secure payment page for your customers.
payment page.
Customer enters their card details and confirms the payment.
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.