root@server:/ $ composer require imaginationmedia/magento2-payment-request
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^1.0 for imaginationmedia/magento2-payment-request
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for braintree/braintree_php (locked at 4.5.0) -> satisfiable by braintree/braintree_php[4.5.0].
- magento/module-braintree 100.3.0 requires php ~7.1.3||~7.2.0 -> your PHP version (7.3.19) does not satisfy that requirement.
- magento/module-braintree 100.3.1 requires php ~7.1.3||~7.2.0 -> your PHP version (7.3.19) does not satisfy that requirement.
- magento/module-braintree 100.3.2 requires php ~7.1.3||~7.2.0 -> your PHP version (7.3.19) does not satisfy that requirement.
- magento/module-braintree 100.3.5 requires braintree/braintree_php 3.35.0 -> satisfiable by braintree/braintree_php[3.35.0].
- magento/module-braintree 100.3.4 requires braintree/braintree_php 3.35.0 -> satisfiable by braintree/braintree_php[3.35.0].
- magento/module-braintree 100.3.3 requires braintree/braintree_php 3.35.0 -> satisfiable by braintree/braintree_php[3.35.0].
- Conclusion: don't install imaginationmedia/magento2-payment-request 1.0.1|install braintree/braintree_php 3.35.0
- Conclusion: don't install braintree/braintree_php 3.35.0
- imaginationmedia/magento2-payment-request 1.0.0 requires magento/module-braintree >=100.3 -> satisfiable by magento/module-braintree[100.3.5, 100.3.4, 100.3.3, 100.3.2, 100.3.1, 100.3.0].
- Installation request for imaginationmedia/magento2-payment-request ^1.0 -> satisfiable by imaginationmedia/magento2-payment-request[1.0.0, 1.0.1].
Installation failed, reverting ./composer.json to its original content.
Just tested on Magento 2.4.0: