Before any installation put your Magento store in developer mode, to do that please go to the Magento folder and run the following command:
php bin/magento deploy:mode:set developer
Next turn off Magento cache:
php bin/magento cache:disable
Now you're ready for the installation.
You can download as "zip" file and unzip Safepay extension:
or clone this repository by the following commands:
git clone https://github.com/abdelkebir/magento2-safepay.git
Please create the folder app/code/Godogi/Safepay and copy all files which you have downloaded to it.
The code directory would be like this:
To complete the installation open your terminal, change to magento root directory and use command line :
cd [magento 2 root folder]
php bin/magento setup:upgrade
After that, if your website is in the production mode, please run the command:
php bin/magento setup:static-content:deploy
Log in to your Magento admin panel, go to STORES > Configuration:
Then go to SALES > Payment Methods:
You will find Safepay configuration block under Safepay tab:
In this form you need to add your Safepay sandbox and production keys, you can also enable or disable this module and change the module title on checkout. Remember to save your configuration.