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:

  1. Ensure your composer.json has a repository entry for "repo.magento.com"

    {
      "repositories": [
          {
              "type": "composer",
              "url": "https://repo.magento.com/"
          }
      ]
    }
    
  2. 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:

  1. 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:

  1. Navigate to the Magento 2 root directory, where your composer.json file lives
  2. 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
    
  3. If you haven't setup your auth.json file, you might be prompted for this information now.
  4. 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