this version has a couple of breaking changes. The changes you are encountering are documented here, that Invoice now doesn't have a direct connection to the PaymentIntent. Instead, you would want to expand invoice.confirmation_secret instead, and grab to client_secret from here. You could also look at our renewed Subscription Doc
Description
A Stripe developer just made me aware of those breaking changes : https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices#use-for-payment-element-integrations
The
payment_intentis removed from the invoice object so this : https://github.com/craftcms/commerce-stripe/blob/4.x/src/gateways/PaymentIntents.php#L416 is not working anymore.Getting an error :
This property cannot be expanded because it doesn't exist: payment_intent.Original message from developer :
Additional info