> For the complete documentation index, see [llms.txt](https://docs.ecommerce.seb.ee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecommerce.seb.ee/seb-docs-draft/seb-docs-public-et/integratsioon/veebipluginad/magento-2/installimine.md).

# Installimine

Installige SEB e-kaubanduse makselüüsi Magento 2 moodul

**See leht on mõeldud arendajatele.** Kaupmehed: edastage see sellele, kes teie Magento paigaldust haldab.

## Eeldused

* Magento Open Source PHP 8.3+ peal
* SSH/CLI juurdepääs koos õigustega koodi juurutamiseks ja käivitamiseks `bin/magento`
* SEB E-commerce Payment Gateway mandaadid käepärast (vt [eeldused](/seb-docs-draft/seb-docs-public-et/integratsioon/veebipluginad.md))
* Varundage kood ja andmebaas enne paigaldamist

## Paigaldamine

1. Laadige alla ja pakkige Magento 2 mooduli pakett lahti.
2. Kopeerige moodul oma Magento paigaldusse:

   ```bash
   mkdir -p app/code/EGW/Checkout
   cp -R <extracted>/EGW/Checkout/* app/code/EGW/Checkout/
   ```
3. Lubage moodul ja uuendage seadistus:

   ```bash
   bin/magento module:enable EGW_Checkout
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```
4. Tootmisrežiimis juurutage ka staatiline sisu uuesti:

   ```bash
   bin/magento setup:static-content:deploy
   ```
5. Kontrollige: `bin/magento module:status EGW_Checkout` annab teada, et moodul on lubatud, ning **Poed → Konfiguratsioon → Müük → Maksemeetodid** näitab *SEB E-commerce Payment Gateway*.

Moodul ei vaja faili muudatusi ega keskkonnaspetsiifilisi väärtusi peale nende mandaadid, mille sisestate administraatoris. Jätkake [Konfiguratsioon](/seb-docs-draft/seb-docs-public-et/integratsioon/veebipluginad/magento-2/konfigureerimine.md).

![Poed → Konfiguratsioon → Müük → Maksemeetodid → Muud maksemeetodid, avatud nii, et kohe pärast paigaldamist, enne kui ühtegi väärtust on sisestatud, on nähtaval SEB E-commerce Payment Gateway jaotis.](https://4089891531-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuBDtfypkI85zidcVwaDj%2Fuploads%2FUjFLfo5FGxzpsNqLH18T%2Fm2-payment-methods-panel.png?alt=media)

## Eemalda

```bash
bin/magento module:disable EGW_Checkout
bin/magento setup:upgrade
rm -rf app/code/EGW/Checkout
bin/magento setup:di:compile && bin/magento cache:flush
```

Järele jääb: mooduli konfiguratsiooniväärtused (sh mandaadid) asukohas `core_config_data`ning kõik tellimused/arved/krediidimärkmikud, mille see lõi. Vajadusel eemaldage konfiguratsiooniread käsitsi ja kustutage tagasihelistamise URL-i registreering Merchanti portaalis.

## Uuendamine

Asendage `app/code/EGW/Checkout` uue versiooniga ja käivitage lubamisjärjestus uuesti (`setup:upgrade`, `di:compile`, `cache:flush`ning staatilise sisu juurutus tootmiskeskkonnas).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ecommerce.seb.ee/seb-docs-draft/seb-docs-public-et/integratsioon/veebipluginad/magento-2/installimine.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
