Looking for ePay classic docs? Go to docs.epay.dk
ePay documentationDocsePay documentation

Opencart

Use this guide if your webshop runs on OpenCart 4.

The OpenCart module is the fastest way to connect your shop to ePay without building a custom integration. You install the module, activate the payment extension, add your ePay credentials and place a test order.

What you will do

In this guide, you will:

Download and install the ePay module
Activate the module in OpenCart

Add your test API key, test Point of Sale ID and webhook authorization

Enable the payment method
Place a test order and confirm that the payment works

Before you start

You need:

  • An OpenCart 4 installation
  • Access to the OpenCart administration
  • Access to ePay Backoffice
  • An API key
  • A test Point of Sale ID
  • A webhook authorization value

If you still need your credentials, see Set up your account.

Before installing a new module on a live shop, take a backup first.

Step 1: Download the module

Download the latest OpenCart module release from GitHub:

OpenCart4 releases

Use the latest released version unless you have a specific reason to stay on an older one.

Step 2: Install the module in OpenCart

In OpenCart administration:

Go to Extensions -> Installer

Click Upload

Select the downloaded .zip file

Wait for the upload to complete

Uploading ePay OpenCart extension via the OpenCart installer

After this step, the module files are installed but the payment extension is not yet active.

Step 3: Activate the module

OpenCart activation happens in two places.

First:

Go to Extensions -> Installed Extensions

Find the ePay module
Click the green install button

Installing the ePay OpenCart module from the Installed Extensions list

Then:

Go to Extensions

Choose Payments in the extension type dropdown

Find ePay Payment Solutions

Click the green install button

Activating ePay Payment Solutions under OpenCart payment extensions

After this step, the payment method is available for configuration.

Step 4: Add your ePay credentials

Go to Extensions -> Payments, find the ePay payment method and click the blue edit button.

Editing the ePay payment method settings in OpenCart

Then add:

ValueWhat to use while testing
API keyYour test API key
Point of Sale IDYour test Point of Sale ID
Webhook authorizationThe webhook authorization value for the selected Point of Sale

Save the configuration after entering the values.

Entering ePay API key, Point of Sale ID and webhook credentials in OpenCart

Use test values while setting up the module.

Do not mix test and live values. A live API key with a test Point of Sale ID, or the other way around, will usually cause checkout problems.

Step 5: Review the key module settings

Start with the minimum setup that gets checkout working.

The most important settings are:

SettingWhat it does
API keyConnects OpenCart to your ePay account
Point of Sale IDTells ePay which webshop or sales channel the payment belongs to
Webhook authorizationLets OpenCart verify incoming payment updates
Status or enabled settingMakes the payment method available in checkout

Keep the initial setup simple. You can fine-tune other options after the first successful payment.

Step 6: Place a test order

Go through your webshop like a normal customer:

Add a product to the cart
Go to checkout
Choose ePay as the payment method
Place the order
Complete the payment in the ePay payment window

OpenCart checkout before selecting payment

OpenCart checkout with ePay selected

After the payment finishes, the customer should return to your OpenCart storefront.

OpenCart checkout after completed payment

Step 7: Check the result

Confirm that:

  • The payment method appears correctly in checkout
  • The order was created in OpenCart
  • The payment was attached to the correct order
  • The order status changed as expected
  • The transaction is visible in ePay Backoffice

Common problems

The payment method does not appear in checkout

Check that:

  • The module was uploaded successfully
  • The module was installed in both required places in OpenCart
  • The payment method is enabled
  • The API key is correct
  • The Point of Sale ID is correct

The payment starts, but the order is not updated correctly

Check that:

  • The webhook authorization value is correct
  • OpenCart can receive the payment result correctly
  • Your store is publicly reachable during testing
  • The order status behavior matches your OpenCart configuration

The credentials seem valid, but checkout still fails

Check that:

  • Test API key is paired with test Point of Sale ID
  • The selected Point of Sale belongs to the same environment
  • You did not switch only one of the values

What you built

You have now connected OpenCart 4 to ePay and completed your first test payment through the module.

Before going live, also test:

  • A successful payment
  • A failed payment
  • A cancelled payment
  • The full customer return flow
  • Order status updates after payment completion

Next steps

How is this guide?

On this page