Using composer to pull in Swipestripe module - requires payment module, no matching package found?

58 views Asked by At

I am trying to pull in Swipestripe using composer using the following command as per their instructions: http://swipestripe.com/dev/docs/swipestripe/en/Basics/Install

composer require swipestripe/swipestripe:2.1.*@dev

I am getting this:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - swipestripe/swipestripe 2.1.x-dev requires silverstripe/payment 1.0.* -> no matching package found.
    - swipestripe/swipestripe 2.1.0 requires silverstripe/payment 1.0.* -> no matching package found.
    - Installation request for swipestripe/swipestripe 2.1.*@dev -> satisfiable by swipestripe/swipestripe[2.1.0, 2.1.x-dev].

I have tried to require just the silverstripe/payment module 2 ways, both don't work.

composer require "silverstripe/payment:1.0"

and

composer require "silverstripe-labs/silverstripe-payment:1.0"

What am I doing wrong?

1

There are 1 answers

0
wmk On BEST ANSWER

According to packagist.org/packages/silverstripe/payment#1.0.x-dev there is a 1.0.x dev branch.

The according command is:

composer require silverstripe/payment:1.0.x-dev