This release changes the pinned API version to 2026-08-26.dahlia.
-
#2113 Support discriminated unions in the V2 runtime and fix array coercion
- Adds support for
nullableanddiscriminatedUnionfield encodings in the V2 coercion runtime, soint64anddecimalfields wrapped in those schema kinds convert correctly. - Encoding a V2 request throws
\Stripe\Exception\InvalidArgumentExceptionwhen a polymorphic (discriminated union) parameter is missing its discriminator field, or that field is not a string. - Fixes
int64_stringanddecimal_stringfields inside arrays not being coerced in either direction.
- Adds support for
-
#2124 Add new
EventNotificationHandlerclass for better thin event management- We've been putting a lot of time into rethinking the event handling experience in the SDKs. This new class is the culmination of that effort.
- They're designed for a tight coupling with both
StripeClientand the fully-typed nature of thin events. This delivers painless event destination upgrades, in-editor checks for common mistakes, and better code modularity. - Now that we've released thin event notifications for v1 objects, these new handlers are our recommended path for all integrations using thin event notifications.
- See more detailed docs here: https://docs.stripe.com/webhooks/event-notification-handlers
-
#2118 Update generated code
- Add support for new resource
Billing.FeedbackOption - Add support for
all,create,deactivate,retrieve, andupdatemethods on resourceBilling.FeedbackOption - Add support for
payment_method_settingsonAccountSession.componentsandAccountSession.create().$params.component - Add support for
feedback_optionsonBillingPortal.Configuration.features.subscription_cancel.cancellation_reason,BillingPortal\Configuration.create().$params.feature.subscription_cancel.cancellation_reason, andBillingPortal\Configuration.update().$params.feature.subscription_cancel.cancellation_reason - Add support for
customer_updateonBillingPortal.Session.flow - Add support for new value
customer_updateon enumBillingPortal.Session.flow.type - Add support for
funding_source_grouponCharge.payment_method_details.card.wallet.linkandCharge.payment_method_details.link - Add support for
funding_types_blockedonCheckout.Session.payment_method_options.card.restrictionsandCheckout\Session.create().$params.payment_method_option.card.restriction - Add support for
metadataonConfirmationToken - Add support for
active_entitlementsandcustomer_portalonCustomerSession.componentsandCustomerSession.create().$params.component - Add support for
countryonFinancialConnections.Session.filters - Add support for
frozen_fieldsonInvoiceItem - Add support for
billieonInvoice.create().$params.payment_setting.payment_method_option,Invoice.payment_settings.payment_method_options,Invoice.update().$params.payment_setting.payment_method_option,Subscription.create().$params.payment_setting.payment_method_option,Subscription.payment_settings.payment_method_options, andSubscription.update().$params.payment_setting.payment_method_option - Add support for new value
billieon enumsInvoice.payment_settings.payment_method_typesandSubscription.payment_settings.payment_method_types ⚠️ Remove support forcryptogramonPaymentAttemptRecord.payment_method_details.card.three_d_secureandPaymentRecord.payment_method_details.card.three_d_secure- Add support for new value
touch_n_goon enumsPaymentIntent.allowed_payment_method_typesandSetupIntent.allowed_payment_method_types - Change
PaymentIntent.allowed_payment_method_typesandSetupIntent.allowed_payment_method_typesto be required - Add support for
application_fee_amount,application_fee_percent,on_behalf_of, andtransfer_dataonPaymentLink.update().$params - Add support for
feedback_optiononSubscription.cancel().$params.cancellation_detail,Subscription.cancellation_details, andSubscription.update().$params.cancellation_detail - Add support for
igiconTax.Registration.country_options.at,Tax.Registration.country_options.be,Tax.Registration.country_options.bg,Tax.Registration.country_options.cy,Tax.Registration.country_options.cz,Tax.Registration.country_options.de,Tax.Registration.country_options.dk,Tax.Registration.country_options.ee,Tax.Registration.country_options.es,Tax.Registration.country_options.fi,Tax.Registration.country_options.fr,Tax.Registration.country_options.gr,Tax.Registration.country_options.hr,Tax.Registration.country_options.hu,Tax.Registration.country_options.ie,Tax.Registration.country_options.it,Tax.Registration.country_options.lt,Tax.Registration.country_options.lu,Tax.Registration.country_options.lv,Tax.Registration.country_options.mt,Tax.Registration.country_options.nl,Tax.Registration.country_options.pl,Tax.Registration.country_options.pt,Tax.Registration.country_options.ro,Tax.Registration.country_options.se,Tax.Registration.country_options.si,Tax.Registration.country_options.sk,Tax\Registration.create().$params.country_option.at,Tax\Registration.create().$params.country_option.be,Tax\Registration.create().$params.country_option.bg,Tax\Registration.create().$params.country_option.cy,Tax\Registration.create().$params.country_option.cz,Tax\Registration.create().$params.country_option.de,Tax\Registration.create().$params.country_option.dk,Tax\Registration.create().$params.country_option.e,Tax\Registration.create().$params.country_option.ee,Tax\Registration.create().$params.country_option.fi,Tax\Registration.create().$params.country_option.fr,Tax\Registration.create().$params.country_option.gr,Tax\Registration.create().$params.country_option.hr,Tax\Registration.create().$params.country_option.hu,Tax\Registration.create().$params.country_option.ie,Tax\Registration.create().$params.country_option.it,Tax\Registration.create().$params.country_option.lt,Tax\Registration.create().$params.country_option.lu,Tax\Registration.create().$params.country_option.lv,Tax\Registration.create().$params.country_option.mt,Tax\Registration.create().$params.country_option.nl,Tax\Registration.create().$params.country_option.pl,Tax\Registration.create().$params.country_option.pt,Tax\Registration.create().$params.country_option.ro,Tax\Registration.create().$params.country_option.se,Tax\Registration.create().$params.country_option.si, andTax\Registration.create().$params.country_option.sk - Add support for error codes
authentication_failure,capability_not_active,expired_payment_method,incorrect_postal_code,invalid_canceled_subscription_fields, andpayment_method_restrictedonInvoice.last_finalization_error,PaymentIntent.last_payment_error,SetupAttempt.setup_error,SetupIntent.last_setup_error,StripeError, andTerminal.Reader.action.api_error
- Add support for new resource