> For the complete documentation index, see [llms.txt](https://docs.merchant.alb.ua/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.merchant.alb.ua/platizhni-vidzheti-dlya-cms/magento-2/instrukciya-po-vstanovlennyu.md).

# Інструкція по встановленню

Платіжний віджет Magento 2 :

{% embed url="<https://github.com/alliancedigital-tech/alliancepay-magento2>" %}

{% stepper %}
{% step %}

### Створення необхідної структури папок&#x20;

```
mkdir -p app/code/Alliance/AlliancePay
```

{% endstep %}

{% step %}

### Завантажте/скопіюйте файли модуля в створену папку

```
Шлях має бути: app/code/Alliance/AlliancePay/registration.php
```

{% endstep %}

{% step %}

### Надайте правильні права доступу на файли (**опціонально**)

```
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
```

{% endstep %}

{% step %}

### Встановіть залежності модуля

```
composer install
```

{% endstep %}

{% step %}

### Увімкніть модуль

```
php bin/magento module:enable Alliance_AlliancePay
```

{% endstep %}

{% step %}

### Оновіть систему

```
php bin/magento setup:upgrade
```

{% endstep %}

{% step %}

### Запустіть компіляцію

```
php bin/magento setup:di:compile
```

{% endstep %}

{% step %}

### Розгорніть статичні файли

```
php bin/magento setup:static-content:deploy -f
```

{% endstep %}

{% step %}

### Очистіть кеш

```
php bin/magento cache:flush
```

{% endstep %}
{% endstepper %}

### Технічні вимоги&#x20;

* Версія ***PHP*** - 8.2
* Версія ***Magento 2*** - 2.4
* Для дешифрування і комунікації з Ecom, платіжний модуль використовує наступну бібліотеку - [GitHub - kelvinmo/simplejwt: A simple JSON web token library written in PHP.](https://github.com/kelvinmo/simplejwt) , яка вбудована в сам модуль
* На сервері повинно бути ввімкнено розширення для ***PHP***, **`gmp`, `hash`, `openssl`, `sodium`** \[для роботи бібліотеки `simplejwt`]
* Для отримання необхідного коду країни у форматі `ISO3166` потрібно встановити бібліотеку [league/iso3166](https://packagist.org/packages/league/iso3166) версія 4.3.3

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.merchant.alb.ua/platizhni-vidzheti-dlya-cms/magento-2/instrukciya-po-vstanovlennyu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
