Skip to content

Subscriptions not working with API version 2025-03-31.basil #343

Description

@ryssbowh

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_intent is 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 :

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

Additional info

  • Craft CMS version: 4.14.15
  • Stripe for Craft Commerce version: 4.1.7
  • PHP version: 8.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions