# Installation instructions

### OpenCart Payment Widget:

{% tabs %}
{% tab title="OpenCart 3.0" %}
{% file src="/files/21VtPoISR2A6DiReVD85" %}
{% endtab %}

{% tab title="OpenCart 4.0" %}
{% file src="/files/21lQ4EJYvCbtoQFuLCxb" %}
{% endtab %}
{% endtabs %}

### Download Open Step-by-step instructions for installing the payment widget:

1. In the "OpenCart" admin in the "Extensions" -> "Installer" section, you need to download the archive specified above

<figure><img src="/files/gQfMdPUVocGjAMu0Kj0E" alt=""><figcaption></figcaption></figure>

1. In the "Extensions" -> "Extensions' section, you need to activate and configure the module

<figure><img src="/files/5QXBuWs2NnEdZXw4Dr8T" alt=""><figcaption></figcaption></figure>

### Requirements for the server where to install the payment module&#x20;

1. The payment module is developed only for the OpenCart 4.X version. That is, the version must be 4.0.0 or higher (I personally developed and tested on version 4.1.0.0)
2. Php version 8.0 or higher
3. For decryption and communication with the EC, the payment module uses the following library - [GitHub - kelvinmo/simplejwt: A simple JSON web token library written in PHP](https://github.com/kelvinmo/simplejwt). , which is built into the module itself
4. The PHP extension must be enabled on the server - gmp \[for simplejwt library to work]
5. The server must have the php extension - hash \[for simplejwt library to work]
6. The server must have the php extension - openssl \[for simplejwt library to work]
7. The server must have the php extension - sodium \[for simplejwt library to work]
8. GuzzleHttp requires a module. In Opencart 4.1.0 it seems to come out of the box but you need to test it on different versions


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.merchant.alb.ua/en/payment-widgets-for-cms/opencart/installation-instructions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
