Installing the Adobe Commerce extension

  Last updated: 

  Magento Commerce is now Adobe Commerce

The Trust Payments extension will continue to support both Magento Open Source and Adobe Commerce environments going forward. In our documentation, we will refer to this extension exclusively using the Adobe Commerce branding, but all instructions also apply when integrating using Magento Open Source.

Click here to learn more about Adobe Commerce.

 

  Unfortunately, the product documented here is currently only available in English.

 

Please refer to the integration methods provided below to get started:

  • If you have version 2.4.4 of Adobe Commerce installed, you should target composer require securetrading/stpp_json:4.0.1
  • If you have a version older than 2.4.4, you should target composer require securetrading/stpp_json:2.0.0
Marketplace installation

Navigate to    our extension's listing in the Adobe Marketplace (link to external site), ensure you have selected the appropriate Edition and Store version from the drop-downs provided (1) and click "Add to Cart" (2).

adobecommerce1.png

 

Then place the order. You will be shown the following - click "Install" to proceed:

adobecommerce2.png

 

You will then be presented with the following:

adobecommerce3.png

 

Next, create new Access Keys by going to My Profile > Access Keys > Create A New Access Key, with your desired name.

Within your root directory, add the following in a file called auth.json

(Where your public key is the username and your private key is the password)

{
"http-basic": {
"repo.magento.com": {
"username": "<public Magento key>",
"password": "<private Magento key>"
}
}
}

This file will be used to authorise the Github repository access to repo.magento.com.

If successful, you can now install our extension by running the following commands:

composer require securetrading/stpp_json

If you are receiving the following warnings while installing securetrading/stpp_json extension-

"magento/magento-composer-installer" plugin was skipped because it requires a Plugin API ("^1.0") that does not match your Composer installation ("2.1.0").

-run the following command sudo composer self-update –-1 and try again. This will update your composer to version 1 to install the extension. Once done, you can revert it by running sudo composer self-update –-rollback

composer require trust-payments-limited/module-trust
bin/magento deploy:mode:set developer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

Ensure the correct permissions are set on your Magento directory:

sudo chmod -R 777 var pub
php bin/magento cache:flush
bin/magento deploy:mode:set production

If you encounter the following issue while installing our Adobe Commerce extension via composer-

magento-install-1011-en-05.png

-please ensure you have the following in your composer.json file and that composer is using the latest version. By default, composer will use the repo.packagist.com repository. If you are using multiple repos in your Composer file, ensure that your repositories is an array.

"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
]

If you are still having problems installing our extension via composer, please contact our Support Team to acquire a copy of extension for manual installation.

You can check our modules have been downloaded correctly by running the following command:

php bin/magento module:status

In the list returned, you should now see "securetrading/stpp_json" & "trust-payments-limited/module-trust" are displayed.

Manual installation

Follow the steps detailed below to manually install the extension:

Navigate to the Magento /app/code directory on your server.

cd /var/www/magento/app/code

Create a folder named SecureTrading/Trust within the /app/code directory.

mkdir /var/www/magento/app/code/SecureTrading/Trust

Navigate to the newly created /SecureTrading/Trust folder.

cd /var/www/magento/app/code/SecureTrading/Trust

Place the extension file within this directory.

scp : <path to your extension> <ssh server>:<path to SecureTrading/Trust directory>

Once the extension has been extracted, navigate to the Magento root directory.

cd /var/www/magento

You can now run the bin/magento commands.

If you are still having issues when installing our extension, please contact our Support Team and provide your staging environment, Store Admin login credentials and SSH access to your server.

Was this article helpful?
0 out of 0 found this helpful