Skip to main content

Integrate OpenCart

Integrate OpenCart

Last updated: 21-Apr-2023
Rate this article:


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 is available only for 2Checkout accounts that handle their own tax and invoice management (2Sell and 2Subscribe accounts).

Note: OpenCart 4 is not supported.

Integrate OpenCart with 2Checkout

Whether you are an existing merchant using OpenCart and you need to upgrade your integration, or you are a new merchant looking to integrate with 2Checkout, you need to follow the instructions below.

OpenCart Settings

  1. Download the 2Checkout payment module from Github.
  2. Upload the files to your server under your store’s directory.


3. Sign in to your OpenCart admin.

4. Navigate to Extensions → Installer.


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


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


7.  Click Install on the payment option you want to use (2Checkout API2Checkout Convert Plus2Checkout Inline).

8. Click on the Edit button of the selected integration to enable it.


9. Configure your 2Checkout integration by editing the details of the 2Checkout API, 2Checkout ConvertPlus, or 2Checkout InLine, as shown in the next image. 

  • Input your Merchant Code, Secret Key, and Buy-link Secret Word from the 2Checkout Merchant Control Panel into the OpenCart admin. 
  • To obtain the Merchant Code, log in to your 2Checkout Merchant Control Panel.
  • Navigate to Integrations → Webhooks & API → Merchant Code and copy and paste the code into the OpenCart admin area.
  • Then copy and paste the Secret Key from the 2Checkout Control Panel into the OpenCart admin.
  • Go to Integrations → Webhooks & API → Secret Word → Buy-Link secret word and copy and paste the buy-link secret word into the OpenCart admin. 


10. Under Test Mode select No for live sales or Yes for test sales.

11. Select Complete under Order Status.

12. Select Enabled under Status.

13. Save your changes.

2Checkout Settings

  1. Sign in to your 2Checkout Merchant Control Panel account.
  2. Navigate to Dashboard → Integrations → Webhooks & API section.
  3. Make sure to enable the IPN webhook notification in your Merchant Control Panel.
    • Log in to the 2Checkout Merchant Control Panel and navigate to Integrations → Webhooks & API
    • Scroll down to the Notifications section and enable the IPN webhook.
    • For the Payment notification type field, select IPN or Email Text & IPN, and then click on the Configure IPN button.
    • On the IPN settings page, click on the Add IPN URL button and input the IPN URL available on the configuration page in OpenCart.


  • Enable all triggers and response tags.


2Checkout PayPal Direct Setup

OpenCart Settings

  1. Sign in to your OpenCart admin.
  2. Click Extensions tab and Payments subtab.
  3. Under 2Checkout PayPal Direct click Install and then click Edit.
  4. Enter your 2Checkout Merchant Code.
  5. Select Complete under Order Status.
  6. Select Enabled under Status.
  7. Enter your Secret Word (Must be the same value entered on your 2Checkout Site Management page.)
  8. Save your changes.

2Checkout Settings:

  1. Sign in to your 2Checkout account.
  2. Navigate to Dashboard → Integrations → Webhooks & API
  3. Follow these steps to activate Redirect URL:

About OpenCart

OpenCart si a free open-source eCommerce platform for web developers looking for a user-friendly interface and for shop owners just launching their online business. More than 30,000 companies, mostly small and medium businesses from the US, are using OpenCart in the retail industry. OpenCart offers support for both physical and digital products, as well as services.
Rate this article:

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo