Install Extension
How to install the Gratify Pay Magento 2 extension
Installation
The Gratify Pay Magento 2 extension can be installed either from the commerce marketplace composer repo or from Gratify's composer repo.
Repositories
This requires console access. For more information about console access and using console commands, see Magento's Documentation.
Commerce Marketplace Repo
To install the extension using the commerce marketplace repo, follow these steps:
-
Ensure your composer.json has a repository entry for "repo.magento.com"
{ "repositories": [ { "type": "composer", "url": "https://repo.magento.com/" } ] }
-
Make sure you know your access key information or have added it to your auth.json file
{ "http-basic": { "repo.magento.com": { "username": "<Public Key>", "password": "<Private Key>" } } }
Install using Gratify Repo
To install the extension using the Gratify repo, follow these steps:
- In the Magento 2 root directory, add the following to the composer.json's repositories section:
{
"repositories": [
{
"type": "composer",
"url": "https://repo.gratifypay.com"
}
]
}
Install
Now that you have configured your repositories, its time to install the extension:
- Navigate to the Magento 2 root directory, where your composer.json file lives
- Add the extension and optionally the desired version, by one of the following commands:
composer require gratifypay/plugin-magento2
composer require gratifypay/plugin-magento2:1.1.0
- If you haven't setup your auth.json file, you might be prompted for this information now.
- Wait for Composer to finish installing the extension
Enabling
After the extension has been installed, we now need to enable it. Run the following command from the same directory as your composer.json file.
bin/magento module:enable GratifyPay_Magento --clear-static-content;
bin/magento setup:upgrade;
bin/magento setup:di:compile;
bin/magento cache:clean;
bin/magento setup:static-content:deploy
Verify
Verify that the module is installed and enabled:
bin/magento module:status GratifyPay_Magento
Updated about 2 years ago