How to integrate Open Cart with 2Checkout

Standard Checkout
Process credit cards for your store using 2Checkout's Hosted Checkout.
Inline Checkout
Streamline your payment process by using 2Checkout's Inline Checkout.
Payment API
Integrate our checkout into your website using 2Checkout's API.
Recurring Payments
Plugin Required

Integrate OpenCart with 2Checkout

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 API, 2Checkout Convert Plus, 2Checkout 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 Convert Plus, or 2Checkout InLine, as shown in the next image.
    1. Input your Merchant Code, Secret Key, and Buy-link Secret Word from the 2Checkout Merchant Control Panel into the OpenCart admin.
    2. To obtain the Merchant Code, log in to your 2Checkout Merchant Control Panel.
    3. Navigate to Integrations > Webhooks & API > Merchant Code and copy and paste the code into the OpenCart admin area.
    4. Then copy and paste the Secret Key from the 2Checkout Control Panel into the OpenCart admin.
    5. 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.
    1. Log in to the 2Checkout Merchant Control Panel and navigate to Integrations > Webhooks & API
    2. Scroll down to the Notifications section and enable the IPN webhook.
    3. For the Payment notification type field, select IPN or Email Text & IPN, and then click on the Configure IPN button.
    4. On the IPN settings page, click on the Add IPN URL button and input the IPN URL available on the configuration page in OpenCart.
    5. Enable all triggers and response tags.
  4. Enter the IPN URL from the WHMCS Gateway configuration in the list of IPN URLs in the IPN settings tab of the Webhooks & API Section page.
  5. Save your changes

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:
    1. In the Redirect URL section check "Enable return after sale"
    2. For Return method, select Link in the Thank You Page
    3. Set the Approved URL to http://www.yourstore.com/index.php?r...ckout/callback (Replace http://www.yourstore.com with the actual URL to your store.).
    4. Click Update to save your settings

About OpenCart

OpenCart is a turn-key ready “out of the box” shopping cart solution. You simply install, select your template, add products and you’re ready to start accepting orders. It has order management built in and will provide lifetime free support and free software updates.

Simplify the eCommerce process. Try 2Checkout.
The most flexible digital commerce platform that can give your business a real boost.