How can I install sample-module-payment-gateway (https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway) using composer?

I'm getting error "Your requirements could not be resolved to an installable set of packages.", apparently the package name is not recognised.

The documentation only says, that the component should be included in composer, but the how-to is missing?

To clarify: I'm not interested in sample data, but a sample module.

  • Can you please update question with composer.json code ? – Suresh Chikani Jul 27 '16 at 18:25

For now, sample modules doesn't allow to be installed via composer. But new documentation describes how you can install it with git cloning.

  • Thank you. Actually, I ended up doing the same on my own. In the master branch readme.md it says: "This module is intended to be installed using composer. " If it is not possible to use composer to install, this is perfectly in line with other Magento documentation. – Tero Lahtinen Aug 1 '16 at 13:31
  • The main readme is outdated, we are using git to works with sample modules. @TeroLahtinen, if the answer solves your problem, please, accept it. – joni jones Aug 2 '16 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.