> 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-lt/integracija/ziniatinklio-papildiniai/magento-2/idiegimas.md).

# Įdiegimas

Įdiekite SEB el. prekybos mokėjimų vartų Magento 2 modulį

**Šis puslapis skirtas kūrėjams.** Prekeiviai: persiųskite tai tam, kas prižiūri jūsų „Magento“ diegimą.

## Būtinosios sąlygos

* „Magento Open Source“ su PHP 8.3+
* SSH/CLI prieiga su teisėmis diegti kodą ir vykdyti `bin/magento`
* SEB e. prekybos mokėjimų šliuzo prisijungimo duomenys po ranka (žr. [būtinosios sąlygos](/seb-docs-draft/seb-docs-public-lt/integracija/ziniatinklio-papildiniai.md))
* Prieš diegdami sukurkite atsarginę kodo ir duomenų bazės kopiją

## Įdiegimas

1. Atsisiųskite ir išskleiskite „Magento 2“ modulio paketą.
2. Nukopijuokite modulį į savo „Magento“ diegimą:

   ```bash
   mkdir -p app/code/EGW/Checkout
   cp -R <išskleista>/EGW/Checkout/* app/code/EGW/Checkout/
   ```
3. Įjunkite modulį ir atnaujinkite diegimą:

   ```bash
   bin/magento module:enable EGW_Checkout
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```
4. Gamybos režimu taip pat iš naujo įdiekite statinį turinį:

   ```bash
   bin/magento setup:static-content:deploy
   ```
5. Patikrinkite: `bin/magento module:status EGW_Checkout` nurodo, kad modulis įjungtas, ir **Parduotuvės → Konfigūracija → Pardavimai → Mokėjimo būdai** rodo *SEB e. prekybos mokėjimų šliuzas*.

Moduliui nereikia redaguoti failų ir nereikia nuo aplinkos priklausančių reikšmių, išskyrus kredencialus, kuriuos įvedate administravimo srityje. Tęskite su [Konfigūracija](/seb-docs-draft/seb-docs-public-lt/integracija/ziniatinklio-papildiniai/magento-2/konfiguravimas.md).

![Parduotuvės → Konfigūracija → Pardavimai → Mokėjimo būdai → Kiti mokėjimo būdai, išplėsta taip, kad iškart po diegimo, dar neįvedus jokių reikšmių, būtų matomas skyrius „SEB e. prekybos mokėjimų šliuzas“.](https://2761608772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuBDtfypkI85zidcVwaDj%2Fuploads%2FUjFLfo5FGxzpsNqLH18T%2Fm2-payment-methods-panel.png?alt=media)

## Pašalinimas

```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
```

Kas lieka: modulio konfigūracijos reikšmės (įskaitant kredencialus) faile `core_config_data`, ir visi jo sukurti užsakymai/sąskaitos faktūros/kreditinės sąskaitos. Jei reikia, konfigūracijos įrašus pašalinkite rankiniu būdu ir Merchant Portale ištrinkite Callback URL registraciją.

## Naujinimas

Pakeiskite `app/code/EGW/Checkout` nauja versija ir iš naujo paleiskite įjungimo seką (`setup:upgrade`, `di:compile`, `cache:flush`, gamyboje – statinio turinio diegimą).


---

# 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-lt/integracija/ziniatinklio-papildiniai/magento-2/idiegimas.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.
