stripe
23.2.0 · 19 Nov 2026MIT36.1M / weekRepositorynpmAtom feed
22.6.2 is the newest release of 22.x.
In short
2 new2 changed
Release note
This release changes the pinned API version to 2026-08-26.dahlia.
Add discriminatedUnion kind to V2RuntimeSchema coercion
Adds runtime support for coercing int64/decimal fields within discriminated union variants in V2 API requests and responses.
⚠️ Throws when serializing a discriminated union parameter whose discriminator is missing or is not a string. This avoids skipping coercion entirely which could silently truncate
int64fields aboveNumber.MAX_SAFE_INTEGER.
Add new
EventNotificationHandlerclass for better thin event managementWe'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: docs.stripe.com/webhooks/event-notification-han…
Correctly throw connection errors if the server drops while sending the HTTP response body
This change results in new exceptions being thrown instead of hanging indefinitely
in an effort to make this change backwards compatible, it doesn't affect a case that was already throwing an error: if the stripe API sends invalid JSON, we were treating it as an API error instead of a connection error.
In the next major version, we'll change the exception thrown from
StripeAPIErrortoStripeConnectionErrorand document it accordingly.
Update generated code
Add support for new resource
Billing.FeedbackOptionAdd support for
create,deactivate,list,retrieve, andupdatemethods on resourceBilling.FeedbackOptionAdd support for
payment_method_settingsonAccountSession.componentsandAccountSessionCreateParams.componentsAdd support for
feedback_optionsonBillingPortal.Configuration.features.subscription_cancel.cancellation_reason,BillingPortal.ConfigurationCreateParams.features.subscription_cancel.cancellation_reason, andBillingPortal.ConfigurationUpdateParams.features.subscription_cancel.cancellation_reasonAdd support for new value
customer_updateon enumsBillingPortal.Session.flow.typeandBillingPortal.SessionCreateParams.flow_data.typeAdd support for
customer_updateonBillingPortal.Session.flowAdd support for
funding_source_grouponCharge.payment_method_details.card.wallet.linkandCharge.payment_method_details.linkAdd support for
funding_types_blockedonCheckout.Session.payment_method_options.card.restrictionsandCheckout.SessionCreateParams.payment_method_options.card.restrictionsAdd support for
metadataonConfirmationTokenAdd support for
active_entitlementsandcustomer_portalonCustomerSession.componentsandCustomerSessionCreateParams.componentsAdd support for
countryonFinancialConnections.Session.filtersAdd support for
frozen_fieldsonInvoiceItemAdd support for
billieonInvoice.payment_settings.payment_method_options,InvoiceCreateParams.payment_settings.payment_method_options,InvoiceUpdateParams.payment_settings.payment_method_options,Subscription.payment_settings.payment_method_options,SubscriptionCreateParams.payment_settings.payment_method_options, andSubscriptionUpdateParams.payment_settings.payment_method_optionsAdd support for new value
billieon enumsInvoice.payment_settings.payment_method_types,InvoiceCreateParams.payment_settings.payment_method_types,InvoiceUpdateParams.payment_settings.payment_method_types,Subscription.payment_settings.payment_method_types,SubscriptionCreateParams.payment_settings.payment_method_types, andSubscriptionUpdateParams.payment_settings.payment_method_types⚠️ Remove support for
cryptogramonPaymentAttemptRecord.payment_method_details.card.three_d_secureandPaymentRecord.payment_method_details.card.three_d_secureAdd support for new value
touch_n_goon enumsPaymentIntent.allowed_payment_method_types,PaymentIntentConfirmParams.allowed_payment_method_types,PaymentIntentCreateParams.allowed_payment_method_types,PaymentIntentUpdateParams.allowed_payment_method_types,SetupIntent.allowed_payment_method_types,SetupIntentConfirmParams.allowed_payment_method_types,SetupIntentCreateParams.allowed_payment_method_types, andSetupIntentUpdateParams.allowed_payment_method_typesChange
PaymentIntent.allowed_payment_method_typesandSetupIntent.allowed_payment_method_typesto be requiredAdd support for
application_fee_amount,application_fee_percent,on_behalf_of, andtransfer_dataonPaymentLinkUpdateParamsAdd support for
feedback_optiononSubscription.cancellation_details,SubscriptionCancelParams.cancellation_details, andSubscriptionUpdateParams.cancellation_detailsAdd 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.RegistrationCreateParams.country_options.at,Tax.RegistrationCreateParams.country_options.be,Tax.RegistrationCreateParams.country_options.bg,Tax.RegistrationCreateParams.country_options.cy,Tax.RegistrationCreateParams.country_options.cz,Tax.RegistrationCreateParams.country_options.de,Tax.RegistrationCreateParams.country_options.dk,Tax.RegistrationCreateParams.country_options.ee,Tax.RegistrationCreateParams.country_options.es,Tax.RegistrationCreateParams.country_options.fi,Tax.RegistrationCreateParams.country_options.fr,Tax.RegistrationCreateParams.country_options.gr,Tax.RegistrationCreateParams.country_options.hr,Tax.RegistrationCreateParams.country_options.hu,Tax.RegistrationCreateParams.country_options.ie,Tax.RegistrationCreateParams.country_options.it,Tax.RegistrationCreateParams.country_options.lt,Tax.RegistrationCreateParams.country_options.lu,Tax.RegistrationCreateParams.country_options.lv,Tax.RegistrationCreateParams.country_options.mt,Tax.RegistrationCreateParams.country_options.nl,Tax.RegistrationCreateParams.country_options.pl,Tax.RegistrationCreateParams.country_options.pt,Tax.RegistrationCreateParams.country_options.ro,Tax.RegistrationCreateParams.country_options.se,Tax.RegistrationCreateParams.country_options.si, andTax.RegistrationCreateParams.country_options.skAdd support for new value
2026-08-26.dahliaon enumWebhookEndpointCreateParams.api_versionAdd 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
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.