High everyone,
I am a newbie. I hope I have chosen the right category. If not, I'm sorry.
I've tried for a week now, to install an extension via composer. The extension is Mollie, which is a payment plugin.
Unfortunately, I don't know how to install this extension.
I've read many tutorials, tried to search on youtube, but to be frank I came not further than installing php7 and composer on my computer.
I preferred to install the extension with Magento connect, but that option is only available for Magento 1 and I use Magento 2.
I read that I should change something in the .JSON file.
I hope someone could help me out?
Thanks a lot!
Solved! Go to Solution.
Hello @elisa123456
Find the auth.json file in the Magento root directory.
If it does not exist, create the file and enter public and private key as shown here:
{ "http-basic": { "repo.magento.com": { "username": "enter-public-key", "password": "enter-private-key" } } }
Make sure that you have valid authenticate keys.
You may refer https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html
Thanks.
@elisa123456 If your problem is solved, you can "Accept it as Solution" so that it may useful for others facing the same issue.
Thanks
Hello @elisa123456
In the ssh command prompt, check the composer using "which composer"command.
You'll see something like https://drops.meetanshi.com/Mrrg5n
And then, you run the below command:
composer require mollie/magento2
After the 100% successful installation, run the Magento setup, upgrade and deploy command.
I hope it helps.
Hello @Meethanshi
Thank you for helping me!
I managed to run the SSH command.
composer require mollie/magento2
After this command they require me to use my public and private key.
Inserting my public key is accepted.
However, the next problem I encountered is inserting my private key.
I'm not able to insert any letter or number at this prompt.
Ignoring it doesn't work, then I will get errors.
Do you know how to solve this issue?
Thanks for helping!
@elisa123456 When you use the public key it prompt for private key
You have to paste your private key, it is not visible to you so just paste once and then press enter.
Thanks
Hello @elisa123456
@Rahul Gupta is correct. The private key is not visible.
You need to simply copy & paste.
Another solution is to use the FREE Magento 2 extension, Mollie, by Mollie Payments to resolve the issue.
Hope it helps.
Thank you too!
I'll try the copy paste variant.
That is exactly what I was trying. But they did not provide authentication keys for the magento2 version. Only for the magento1 version. That's why I couldn't use the easy way and needed to install molly via composer.
@elisa123456 if your problem is solved then please "Accept it as a Solution" so that it would be helpful for others who are facing the same issue.
Thanks
Hello @elisa123456
Find the auth.json file in the Magento root directory.
If it does not exist, create the file and enter public and private key as shown here:
{ "http-basic": { "repo.magento.com": { "username": "enter-public-key", "password": "enter-private-key" } } }
Make sure that you have valid authenticate keys.
You may refer https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html
Thanks.