Installation via Composer
To install the Mercado Pago module in Magento 2 via Composer, you must follow these steps:
- In your terminal, run this command to download the Magento 2 module with Composer:
plain
composer require mercadopago/magento2-plugin:3.*
- Then run this command to update the list of Magento modules:
plain
bin/magento setup:upgrade
- Now you must run this command to clear the Magento cache:
plain
bin/magento cache:clean
- When the store is in productive mode, it will be necessary to generate the
static
files again. You can do it this way:
plain
bin/magento setup:static-content:deploy
In case you experience folder permission issues when accessing the store, you will need to renew the permissions like this:
plain
chmod 777 -R var/ pub/ generated/
And you’re done! You have already successfully installed the Mercado Pago module for Magento 2.