Installing the Magento extension

By installing our Magento extension, we enable you to easily configure and deploy a streamlined and secure checkout for your customers, with built in support for the most popular payment brands that your customers use.

For easiest setup, we recommend installing the extension through the Magento Marketplace.
  Click here to learn more about the features provided and install through the Marketplace.
Otherwise, read on to learn how to install the extension manually.

Installation

  1. Navigate to your Magento 2 /app/code directory on your server.

    cd /var/www/magento/app/code
  2. Create a folder named 'SecureTrading/Trust' within the /app/code directory.

    mkdir /var/www/magento/app/code/SecureTrading/Trust
  3. Navigate to the newly created '/SecureTrading/Trust' folder.

    cd /var/www/magento/app/code/SecureTrading/Trust
  4. Place the extension file within this directory.

    scp : <path to your extension> <ssh server>:<path to SecureTrading/Trust directory>
  5. Execute the following command to decompress the module.

    tar -xzvf <.tar.gz compressed extension>
  6. Once the module has been extracted, navigate to the Magento root directory.

    cd /var/www/magento
  7. Once in the Magento root directory run the following commands to configure Magento 2 to use the module.

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    composer require securetrading/stpp_json
    php bin/magento setup:static-content:deploy

    After running the above commands, your Command line/Terminal window should appear as follows:

    myst-magento-01.png

    Ensure the correct permissions are set on your Magento directory (In the example above this is on a development box where we perform: sudo chmod -R 777 var pub)

  8. Finally, you need to flush the cache by either typing into the Command Line/Terminal:

    php bin/magento cache:flush

    Alternatively, you can perform this by accessing System > Cache Management. Click the following buttons to completely clear the store cache:

    1. Flush Magento Cache
    2. Flush Cache Storage
    3. Flush Catalog Images Cache
    4. Flush JavaScript/CSS Cache

    myst-magento-02.png

Once completed, the extension will be installed, and you will be able to perform the configure steps
following the User Guide. Click here to open this in a new tab.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request