在lumen laravel中使用stripe-connect,安装问题

时间:2018-11-15 10:41:30

标签: laravel stripe-payments lumen

我正在以流明方式开发后端,并希望集成条纹连接。 我正在使用composer require rap2hpoutre/laravel-stripe-connect这个库进行条带连接。

我对laravel-stripe-connect的安装有疑问, 像以前一样,我正在使用Stripe,并且工作正常,但是按照要求,我想使用stripeConnect而不是Stripe。

现在,当我运行此composer require rap2hpoutre/laravel-stripe-connect时,它向我显示以下错误:

Problem 1
- Installation request for rap2hpoutre/laravel-stripe-connect ^0.2.1 -> satisfiable by rap2hpoutre/laravel-stripe-connect[v0.2.1].
- rap2hpoutre/laravel-stripe-connect v0.2.1 requires stripe/stripe-php ^5.0 -> satisfiable by stripe/stripe-php[v5.0.0, v5.1.0, v5.1.1, v5.1.2, v5.1.3, v5.2.0, v5.2.1, v5.2.2, v5.2.3, v5.3.0, v5.4.0, v5.5.0, v5.5.1, v5.6.0, v5.7.0, v5.8.0, v5.9.0, v5.9.1, v5.9.2] but these conflict with your requirements or minimum-stability.

这是我的composer.json文件:

{   
          "name": "laravel/lumen",    
          "description": "The Laravel Lumen  Framework.",    
          "keywords": ["framework", "laravel", "lumen"],       
          "license": "MIT",    
          "type": "project",    
          "require": {
              "php": ">=5.6.4",
              "laravel/lumen-framework": "5.5.*",
              "vlucas/phpdotenv": "~2.2",
              "tymon/jwt-auth": "^1.0@dev",
              "illuminate/mail": "^5.5",
              "stripe/stripe-php": "^6.21"    
          },    
          "require-dev": {
              "fzaninotto/faker": "~1.4",
              "phpunit/phpunit": "~6.0",
              "mockery/mockery": "~0.9"    
          },
         "autoload": {
              "psr-4": {
                  "App\\": "app/"
               }
         },    
         "autoload-dev": {
              "classmap": [
                 "tests/",
                 "database/"
               ]    
         },    
         "scripts": {
              "post-root-package-install": [
                  "php -r \"copy('.env.example', '.env');\""
               ]    
         },
         "minimum-stability": "dev",    
         "prefer-stable": true,    
         "optimize-autoloader": true    
}

1 个答案:

答案 0 :(得分:1)

您应该将"stripe/stripe-php": "^6.21"更改为"stripe/stripe-php": "^5.9",因为您尝试导入的库使用^5.0标签,所以它仅允许使用5.x格式标记的构建。您的要求至少超过了6.21,因此require失败。