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

matmateo's avatar

How to handle PaymentActionRequired exceptions when swapping plans using Stripe Checkout?

I'm using Cashier to handle subscription billing via Stripe Checkout.

When a subscriber wants to swap their plan (and I need them to be billed immediately), I use the swapAndInvoice method.

In many cases, this returns a PaymentActionRequired exception - e.g. the user needs to do 3D Secure authentication.

It's not clear to me in the documentation how to handle this if I am using Checkout. I could create an entirely new subscription checkout, but that would result in a second subscription, rather than updating the existing one. Can I redirect to Checkout in a way that means the user is updating a current subscription, rather than creating a new one?

0 likes
0 replies

Please or to participate in this conversation.