---
updatedAt: 2025-11-11T23:59:19.000Z
agentTools:
  projectIndex: https://docs.myfatoorah.com/llms.txt
---

# Magento2

## Source Files

Install the MyFatoorah Magento2 Gateway via [myfatoorah/magento2-gateway](https://packagist.org/packages/myfatoorah/magento2-gateway) composer.

```text
composer require myfatoorah/magento2-gateway
```

Or you can check the last plugin version from the official <a href="https://marketplace.magento.com/myfatoorah-magento2-gateway.html/" target="_blank">Magento2 marketplace</a> site.

<hr />

## Installation steps

Kindly run the below Magento commands to enable MyFatoorah Plugin.

```text Multi Gateway 
php -f bin/magento module:enable --clear-static-content MyFatoorah_Gateway
```

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

<hr />

## Merchant Configurations

In Magento Admin Panel Menu Stores → Configuration\
Expand Sales Menu → select Payment Methods → MyFatoorah Payment Gateway

![972](https://files.readme.io/87b5057-MyFatoorah_Configuration_Settings_at_Magento_Admin.png "MyFatoorah Configuration Settings at Magento Admin.png")

<ins>Demo Configuration:</ins>\
Please, set "Is Testing" with "Yes", and use [demo token](https://docs.myfatoorah.com/docs/test-token).\
You can use the list of [test cards](test-cards) to explore the payment process.

<ins>Live Configuration:</ins>\
Please, set "Is Testing" with "No", and use [your live token](live-token).