Skip to main content
OpenCart

OpenCart Plugin

Integrate Two's B2B payment solution into your OpenCart store, allowing business customers to pay on invoice with flexible payment terms.


Prerequisites​

Before you begin, ensure you have:

  • OpenCart 3.x or 4.x installed
  • Admin access to your OpenCart store
  • Your Two API credentials
Get Your API Keys
  1. Sign up at portal.two.inc
  2. You'll receive an email with your test API keys
  3. Once ready for production, you'll receive your live API keys

Installation​

Choose one of the following installation methods:

Option 1: Automatic Installation via Admin Panel​

  1. Download the Two OpenCart Plugin ZIP file
  2. Log in to your OpenCart admin panel
  3. Navigate to Extensions → Installer
  4. Click Upload and select the downloaded ZIP file

Installation step 1

  1. Go to Extensions → Modifications and click the Refresh button

Installation step 2

  1. Navigate to Extensions → Extensions
  2. Select Payments from the extension type dropdown
  3. Find Two Extension and click Install

Option 2: Installation via Marketplace​

  1. Log in to your OpenCart admin panel
  2. Navigate to Extensions → Marketplace
  3. Search for Two
  4. Click on the module, then select the Download tab
  5. Click Install

Option 3: Manual Installation via FTP​

Upload the plugin files to your OpenCart installation directory, maintaining the folder structure.


Configuration​

General Configuration​

After installation, configure your API credentials:

  1. Navigate to Extensions → Extensions → Payments
  2. Find Two and click Edit
  3. Enter your credentials:
    • API Key – Your Two API key
    • Merchant ID – Your Two merchant identifier
    • Environment – Select Staging or Production

General configuration

Other Configuration​

Configure additional settings for your integration:

Other configuration

Order Status Mapping​

Map Two order states to your OpenCart order statuses:

Two StateRecommended OpenCart Status
PendingPending
ApprovedProcessing
FulfilledComplete
CancelledCancelled
RefundedRefunded

Order status configuration

info

Proper order status mapping ensures your OpenCart orders stay synchronised with Two's order lifecycle.


Need Help?​

If you have questions or need assistance, please contact our support team.