You can install the Mastercard Gateway module in two ways.
Before installing or uninstalling, ensure you have the necessary permissions for the module.
chmod 777 -R (project directory)
Please note that 777 is just an example, use your permissions according to your requirements.