Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Randy_Johnson's avatar

Unable to require stripe/stripe php

Help, I am pretty sure this is already install but I just tried to require it to see and I am getting this.

Laravel Framework 5.8.35
Using version ^7.27 for stripe/stripe-php
./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
    - Conclusion: don't install cartalyst/stripe-laravel v12.0.0
    - Conclusion: don't install cartalyst/stripe-laravel 12.x-dev
    - Conclusion: remove laravel/framework v5.8.35
    - Installation request for cartalyst/stripe-laravel ^12.0 -> satisfiable by cartalyst/stripe-laravel[12.x-dev, 12.0.x-dev, v12.0.0].
    - Conclusion: don't install laravel/framework v5.8.35
    - cartalyst/stripe-laravel 12.0.x-dev requires illuminate/support ^7.0 -> satisfiable by laravel/framework[7.x-dev], illuminate/support[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0].
    - Can only install one of: laravel/framework[7.x-dev, v5.8.35].
    - don't install illuminate/support 7.x-dev|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.0|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.1|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.2|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.3|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.4|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.5|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.6|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.7|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.0.8|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.1.0|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.1.1|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.1.2|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.1.3|don't install laravel/framework v5.8.35
    - don't install illuminate/support v7.2.0|don't install laravel/framework v5.8.35
    - Installation request for laravel/framework (locked at v5.8.35, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.35].


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

0 likes
4 replies
bobbybouwmann's avatar
Level 88

You're trying to install cartalyst/stripe-laravel which requires you to be on Laravel 7. You're still on Laravel 5.8.

You need to install version 10 for Laravel 5.8

composer require cartalyst/stripe-laravel:^10.0
Randy_Johnson's avatar

Well, this wasn't the problem, but it helped me to find the real problem.

Anyone going through stripe payment and finding the payment isn't completing try sticking this in your controller after the payment intent.

$payment_intent->confirm([ 'payment_method' => 'pm_card_visa', ]);

bobbybouwmann's avatar

What does that have to do with the composer error? Just wondering what the real issue was here.

Randy_Johnson's avatar

Yes, this was the problem, but the real problem is that stripe isn't detecting what payment method I am using when entering the test card number. I had to manually have it put in through the payment_method. This seems to have it working, but am still at lack of understanding to why this is happening.

When entering the card number you can see on the stripe element that it is saying visa, until I enter date and then icon changes.

Since putting this new code in, the icon will change to a blank card (unknown card) but when pressing the button, now it changes back to visa, which am guessing is reading from the $payment_intent->confirm([ 'payment_method' => 'pm_card_visa', ]);.

I feel that there is something wrong on the stripe end, maybe an error with a new update or something, or possible that is on my end, but I followed so many different tutorials, as well as the stripe tutorial, which all worked fine.

If you have any input I am all ears.

Please or to participate in this conversation.