Tested on Magento 2.1.15, 2.2.5, 2.2.6 and 2.3.4.
-
Install Smart2Pay Magento plugin using composer:
composer require smart2pay/magento2
-
Follow steps from Magento setup section.
-
Login in admin area of your Magento shop and configure the plugin.
-
Copy Smart2Pay plugin files:
1.1. Zip file
Download zip file from Smart2Pay Magento 2 releases and unzip it in a temporary location on your Magento 2 server.
1.2. git clone
Execute
git clone https://github.com/Smart2Pay/magento2
in a temporary directory on your Magento 2 server. -
In {Magento_root}/app/code directory create Smart2Pay/GlobalPay directories. If you don't have a code directory in {Magento_root}/app/, create it first.
-
Copy plugin files from the temporary directory created at step 1 in {Magento_root}/app/code/Smart2Pay/GlobalPay directory.
-
To check if the files were copied correctly, check if there is a registration.php file in {Magento_root}/app/code/Smart2Pay/GlobalPay directory.
-
Run
composer require smart2pay/sdk-php
in {Magento_root} directory (not in module's directory). -
Complete steps from Magento setup section.
-
Login in admin area of your Magento and configure the plugin.
If you have problems with any version please let us know your Magento, Smart2Pay module and Smart2Pay SDK versions at [email protected].
-
Open a shell in Magento 2 root directory.
-
To make sure the plugin is enabled run
bin/magento module:enable Smart2Pay_GlobalPay
. -
Run following commands:
bin/magento setup:upgrade bin/magento setup:di:compile