# Magento 2

### Plugin IOPAY para Magento 2

Este módulo para Magento 2.x permite integrar sua loja com a IOPAY API.

Métodos de pagamento disponíveis:

* Pix
* Boleto
* Cartão de Crédito

### Requerimentos para integração

* [PHP 7.1+](https://www.php.net)
* [Magento 2.x](https://magento.com/tech-resources/download)

### Instalação via Composer

```
$ composer require iopay-payments/magento2
```

### Instalação via GIT

```
$ git clone https://github.com/iopay-payments/magento2 ~/iopay
$ cp -r ~/iopay/* /dir/magento2x/app/code/IoPay/Core
```

#### Manual <a href="#user-content-manual" id="user-content-manual"></a>

1. Clique [aqui](https://github.com/iopay-payments/magento2/archive/refs/tags/v1.0.0.zip) e baixe o arquivo `.zip` de nossa versão mais recente. O arquivo será semelhante a `iopay-payments-magento2-master.zip`
2. Descompacte o arquivo **zip** e copie todo o conteúdo na pasta raiz da sua instalação do Magento em `app`/`code`/`IoPay`/`Core` (essa pasta deverá ser criada manualmente)
3. Limpe o cache em `Sistema > Gerenciamento de Cache`

**Após a instalação execute os comandos a seguir:**

```
$ rm -rf pub/static/*
$ php bin/magento setup:upgrade;
$ php bin/magento setup:di:compile;
$ php bin/magento setup:static-content:deploy -f
$ php bin/magento cache:clean;
$ php bin/magento cache:flush;
```

### Configuração

Todas as opção de configuração do módulo se encontram no painel administrativo Acesse o menu: `Lojas`/`Configurações`/`Vendas`/`Formas de pagamento`/`IOPAY Pagamentos`

### Webhook Callback Url <a href="#user-content-webhook-callback-url" id="user-content-webhook-callback-url"></a>

```
$ seudominio.com.br/iopay/webhook
```

### &#x20;<a href="#user-content-api" id="user-content-api"></a>

### &#x20;<a href="#user-content-api" id="user-content-api"></a>

### Api <a href="#user-content-api" id="user-content-api"></a>

[https://docs-api.iopay.com.br/](https://docs.iopay.com.br/)

### Contato <a href="#user-content-contato" id="user-content-contato"></a>

Para maiores informações acesse: <https://iopay.com.br>


---

# 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.iopay.com.br/products/modulos-para-ecommerce/magento-2.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.
