srmklive / laravel-paypal

Laravel plugin for processing payments through PayPal.
https://laravel-paypal-demo.srmk.info/
MIT License
1.05k stars 316 forks source link

Having issues installing laravel-paypal using composer in Laravel 7 #390

Closed GrnPero closed 3 years ago

GrnPero commented 3 years ago

Hello, I am having issues installing srmklive/paypal:~3.0 in Laravel 7.0. This is the error message

**[localhost] $ COMPOSER_MEMORY_LIMIT=-1 composer require srmklive/paypal**

Using version ^3.0 for srmklive/paypal

./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

    - The requested package laravel/ui (locked at v2.1.0, required as ^2.2) is satisfiable by laravel/ui[v2.1.0] but these conflict with your requirements or minimum-stability.

  Problem 2

    - Conclusion: remove guzzlehttp/guzzle 6.5.5

    - Conclusion: don't install guzzlehttp/guzzle 6.5.5

    - srmklive/paypal v3.0 requires guzzlehttp/guzzle ~7.0 -> satisfiable by guzzlehttp/guzzle[7.0.x-dev, 7.1.x-dev].

    - srmklive/paypal v3.0.x-dev requires guzzlehttp/guzzle ~7.0 -> satisfiable by guzzlehttp/guzzle[7.0.x-dev, 7.1.x-dev].

    - Can only install one of: guzzlehttp/guzzle[7.0.x-dev, 6.5.5].

    - Can only install one of: guzzlehttp/guzzle[7.1.x-dev, 6.5.5].

    - Installation request for guzzlehttp/guzzle (locked at 6.5.5, required as ^6.2) -> satisfiable by guzzlehttp/guzzle[6.5.5].

    - Installation request for srmklive/paypal ^3.0 -> satisfiable by srmklive/paypal[v3.0, v3.0.x-dev].

Installation failed, reverting ./composer.json to its original content.

This is my composer.json file:

{

    "name": "laravel/laravel",

    "type": "project",

    "description": "The Laravel Framework.",

    "keywords": [

        "framework",

        "laravel"

    ],

    "license": "MIT",

    "require": {

        "php": "^7.2.5",

        "backpack/crud": "4.1.*",

        "backpack/menucrud": "^2.0",

        "backpack/newscrud": "^4.0",

        "backpack/pagemanager": "^3.0",

        "backpack/permissionmanager": "^6.0",

        "backpack/settings": "^3.0",

        "barryvdh/laravel-elfinder": "^0.4.5",

        "bumbummen99/shoppingcart": "^2.9",

        "fideloper/proxy": "^4.0",

        "guzzlehttp/guzzle": "^6.2",

        "laravel/framework": "^7.0",

        "laravel/helpers": "^1.3",

        "laravel/tinker": "^2.0",

        "laravel/ui": "^2.2",

        "srmklive/paypal": "^3.0"

    },

    "require-dev": {

        "backpack/generators": "^3.0",

        "facade/ignition": "^2.0",

        "fzaninotto/faker": "^1.4",

        "laracasts/generators": "^1.1",

        "mockery/mockery": "^1.0",

        "nunomaduro/collision": "^4.1",

        "phpunit/phpunit": "^8.5"

    },

    "config": {

        "optimize-autoloader": true,

        "preferred-install": "dist",

        "sort-packages": true

    },

    "extra": {

        "laravel": {

            "dont-discover": []

        }

    },

    "autoload": {
 "psr-4": {

            "App\\": "app/"

        },

        "classmap": [

            "database/seeds",

            "database/factories"

        ]

    },

    "autoload-dev": {

        "psr-4": {

            "Tests\\": "tests/"

        }

    },

    "minimum-stability": "dev",

    "prefer-stable": true,

    "scripts": {

        "post-autoload-dump": [

            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",

            "@php artisan package:discover --ansi"

        ],

        "post-root-package-install": [

            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""

        ],

        "post-create-project-cmd": [

            "@php artisan key:generate --ansi"

        ]

    }

}
chriischambers commented 3 years ago

Can you not update to Laravel 8? I have just install it fine.

GrnPero commented 3 years ago

Can you not update to Laravel 8? I have just install it fine.

Do you know if Laravel Backpack will behave badly with it? I wanted to update to Laravel 8 but I don't know if that's an issue for Laravel Backpack. That's the only thing holding me back. But if it isn't an issus then I could.

chriischambers commented 3 years ago

I don't use backpack but it looks like they support Laravel 8 now - https://github.com/Laravel-Backpack/CRUD/pull/3189

GrnPero commented 3 years ago

I don't use backpack but it looks like they support Laravel 8 now - https://github.com/Laravel-Backpack/CRUD/pull/3189

Looks good. Thanks dude!