cancel
Showing results for 
Search instead for 
Did you mean: 

Installing payment service via composer

SOLVED
Highlighted

Installing payment service via composer

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!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted

Re: Installing payment service via composer

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.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

View solution in original post

Highlighted

Re: Installing payment service via composer

@elisa123456 If your problem is solved, you can "Accept it as Solution" so that it may useful for others facing the same issue.

 

Thanks

View solution in original post

10 REPLIES 10
Highlighted

Re: Installing payment service via composer

Hello @elisa123456 

 

In the ssh command prompt, check the composer using "which composer"command.

You'll see something like https://meetanshi.d.pr/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.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
Highlighted

Re: Installing payment service via composer

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.
magento community forum 1.pngmagento community forum 2.pngDo you know how to solve this issue?

 

Thanks for helping!

Highlighted

Re: Installing payment service via composer

@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

Highlighted

Re: Installing payment service via composer

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.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
Highlighted

Re: Installing payment service via composer

@Rahul Gupta 

Thank you!

Highlighted

Re: Installing payment service via composer

@Meetanshi 

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.

Highlighted

Re: Installing payment service 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

Highlighted

Re: Installing payment service via composer

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.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

View solution in original post

Highlighted

Re: Installing payment service via composer

Thanks you both for your great help!
All the answers were usefull and neccesary to finish this installation. Thanks a lot!!!