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

bottelet's avatar

Laravel Cashier 3DS avoid duplication authorization

Hello, I am trying to implement 3DS with stripe, but have hit my head aginst a wall.

Whenever I try to create a new subscription it throws an IncompletePayment exception which it also shows in the docs.. It creates the subscription in the database

I then do the redirect.

         catch (IncompletePayment $exception) {
            return redirect()->route(
                'cashier.payment',
                [$exception->payment->id, 'redirect' => url('/')]
            );
        }

But why does the customer have to verify them self twice? once on the modal popup from stripe js, and then agian? Am i missing something?

0 likes
4 replies
bottelet's avatar

@sti3bas Yes i am indeed, i also looked that thread through too figure out what i was missing, but could not figure it out.

bottelet's avatar

Whenever I try to create a new subscription it throws an IncompletePayment exception which it also shows in the docs.. It creates the subscription in the database but with an status of incomplete.

I have looked trhough the issue here: https://github.com/laravel/cashier/issues/743

Which shows the same error, but was fixed with session_off => true which i have checked that I also have in my payload using cahsier 10.2.0..

The way I'm doing it is calling ->createSetupIntent in my controller passing it to my view. in my view i use handleCardSetup(this.intent.client_secret, this.cardNumberElement, {.... and in my POST request to create the subscription i do ->newSubscription(.....)->create([$request->intent["payment_method"]])

The StripeJs modal windows allowing me to click complete or fail does pop-up. So I'm wondering what I'm doing wrong.

I am testing with stripe card 4000 0000 0000 3220 it throws the PaymentActionRequired/IncompletePayment Exception saying:

"next_action" => array:2 [
          "type" => "use_stripe_sdk"
                    ......
                    ]
markokaup's avatar

Old thread but i'm facing same issue here. Did you get this working?

Thanks!

Please or to participate in this conversation.