thephpleague / omnipay

A framework agnostic, multi-gateway payment processing library for PHP 5.6+
http://omnipay.thephpleague.com/
MIT License
5.91k stars 925 forks source link

Laravel 8 Conflict #614

Open marbuser opened 3 years ago

marbuser commented 3 years ago

Laravel 8 Upgraded to Guzzle 7. Omnipay uses php-http/guzzle6-adapter which has a constraint set for only Guzzle 6.

nielspeen commented 3 years ago

You can specify a different adapter by using omnipay/common instead of league/omnipay:

composer require omnipay/common:^3 php-http/curl-client

barryvdh commented 3 years ago

I think Guzzle 7 supports the php-http implementation directly, so can you try with just omnipay/common instead of league/omnipay? I'll test with requiring Guzzle 7 by default now: https://github.com/thephpleague/omnipay/pull/615

bbashy commented 3 years ago

@barryvdh Nope, I changed it and same issue.

"omnipay/common": "^3.0",
"omnipay/paypal": "^3.0",
$ composer update
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 omnipay/common ^3.0 -> satisfiable by omnipay/common[3.0.x-dev, v3.0-RC1, v3.0-RC2, v3.0-alpha.1, v3.0-alpha.2, v3.0-alpha.3, v3.0-alpha.4, v3.0-beta.1, v3.0-beta.2, v3.0-beta.3, v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4].
    - Can only install one of: guzzlehttp/guzzle[7.0.1, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.0.x-dev, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[7.1.x-dev, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
    - Conclusion: install guzzlehttp/guzzle 6.5.x-dev
    - Installation request for guzzlehttp/guzzle ^7.0.1 -> satisfiable by guzzlehttp/guzzle[7.0.1, 7.0.x-dev, 7.1.x-dev].
carlos-mg89 commented 2 years ago

@marbuser you can check that in September 2020, a few days after this post got written, Composer got an update with Guzzle 7: https://github.com/thephpleague/omnipay/commit/1ba7c8a3312cf2342458b99c9e5b86eaae44aed2

souravdutt commented 1 year ago

Hi..! I'm also trying to run composer require league/omnipay:^3 omnipay/paypal in my Laravel 8 project but having following issue: Problem 1

After that when I try running composer require league/omnipay:^3 omnipay/paypal -W it gives me following error: Problem 1

My composer file: "require": { "php": "^7.3|^8.0", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.75", "laravel/sanctum": "^2.11", "laravel/tinker": "^2.5" },

Anybody, please help me with this issue!

Further more, I tried running: composer require league/common:^3 which gives error stated: Could not find package league/common. And composer require omnipay/common:^3 which gives the following: Problem 1

Potential causes: