stripe
23.2.0 · 19 Nov 2026MIT36.1M / weekRepositorynpmAtom feed
19.3.1 is the newest release of 19.x.
In short
2 breaking1 removed3 new1 fixed2 changed
- Breaking
This release changes the pinned API version to
2025-09-30.cloverand contains breaking changes (prefixed with ⚠️ below) - Breaking
⚠️ Build SDK w/ V2 OpenAPI spec
- Removed
Drop support for Node < 16 & clarify policy
Release note
This release changes the pinned API version to 2025-09-30.clover and contains breaking changes (prefixed with ⚠️ below)
Move
V2.EventAPI resources toV2.Core.Events⚠️ Move the below event related interfaces and types from
Stripe.V2toStripe.V2.Core. This enables us to correctly match the API path to the namespaceStripe.V2.EventDestination->Stripe.V2.Core.EventDestinationStripe.V2.Event->Stripe.V2.Core.EventStripe.V2.EventBase->Stripe.V2.Core.EventBaseStripe.V2.Events.RelatedObject->Stripe.V2.Core.Events.RelatedObject
Add strongly typed EventNotifications
We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of.⚠️ Rename function
StripeClient.parseThinEventtoStripeClient.parseEventNotificationand remove theStripe.ThinEventinterface.This function now returns a
Stripe.V2.EventNotificationwhich is a union of all possible event notifications instead ofStripe.ThinEvent. When applicable, these event notifications will have therelatedObjectfield and a functionfetchRelatedObject(). They also have afetchEvent()method to retrieve their corresponding event.If this union type does not cover a new event notification that you parsed, you can cast it to
UnknownEventNotificationto then access therelatedObjectfield and the functionfetchRelatedObject()
- Removed
Drop support for Node < 16 & clarify policy
Publish our new language version support policy and add a link to the README.
⚠️ Drop support for Node versions < 16
Node 16 support is deprecated and will be removed in the next scheduled major release (March 2026)
Add
StripeContextobjectAdd the
StripeContextclass. It can be used anywhere the context option is supplied and gets serialized to a string when making requests.⚠️ Change
EventNotification(formerly known asThinEvent)'scontextproperty fromstringtoStripeContext⚠️ We no longer remove the stripe-context header from /v1 requests and the stripe-account header from /v2 requests. The server may reject a request with both of these headers, so if you're sending both, remove any reference to stripeAccount (since the headers are identical, but context is preferred)
- Breaking
⚠️ Build SDK w/ V2 OpenAPI spec
⚠️ The delete methods for v2 APIs (the ones in the
StripeClient.v2namespace) now return aV2DeletedObjectwhich has the id of the object that has been deleted and a string representing the type of the object that has been deleted.⚠️ Change the types of nullable properties in objects returned by v2 APIs (the ones in the
StripeClient.v2namespace) from a null union to optional (e.g.prop: string | null->prop?: string).
Fixed file uploading in Bun runtimes
Fixed issue (#2416) with file uploads in runtimes using
FetchHttpClient(e.g. Bun). This bug affected Node SDK versions between 18.1.0 to 18.5.0.
Support more npm tags
⚠️ Starting with this release, we'll no longer be tagging releases with
betanpm tag. Instead, we'll uselatest,public-preview, orprivate-previewto more closely align with Stripe's release phases
#2402, #2413, #2430, #2428 Update generated code based on incoming API changes in the
2025-09-30.cloverAPI version.⚠️ Remove support for
balance_reportandpayout_reconciliation_reportonAccountSession.componentsandAccountSessionCreateParams.components⚠️ Remove support for values
saturdayandsundayfrom enumsAccount.settings.payouts.schedule.weekly_payout_days,AccountCreateParams.settings.payouts.schedule.weekly_payout_days, andAccountUpdateParams.settings.payouts.schedule.weekly_payout_daysAdd support for new values
external_requestandunsupported_business_typeon enumsAccount.future_requirements.errors.code,Account.requirements.errors.code,BankAccount.future_requirements.errors.code,BankAccount.requirements.errors.code,Capability.future_requirements.errors.code,Capability.requirements.errors.code,Person.future_requirements.errors.code, andPerson.requirements.errors.codeRemove support for
linkandpay_by_bankonPaymentMethodUpdateParams
⚠️ Remove support for
coupononDiscount,PromotionCodeCreateParams, andPromotionCode. UseDiscount.source.coupon,PromotionCodeCreateParams.promotion.couponandPromotionCode.couponinstead.Change
Invoice.idto be required.Add support for new value
preventedon enumDispute.statusAdd support for new resource
BalanceSettingsAdd support for
retrieveandupdatemethods on resourceBalanceSettingsAdd support for
mb_way_paymentsonAccount.capabilities,AccountCreateParams.capabilities, andAccountUpdateParams.capabilitiesAdd support for
sourceonDiscountAdd support for
trial_update_behavioronBillingPortal.Configuration.features.subscription_update,BillingPortal.ConfigurationCreateParams.features.subscription_update, andBillingPortal.ConfigurationUpdateParams.features.subscription_updateAdd support for
mb_wayonCharge.payment_method_details,ConfirmationToken.payment_method_preview,ConfirmationTokenCreateParams.testHelpers.payment_method_data,PaymentIntent.payment_method_options,PaymentIntentConfirmParams.payment_method_data,PaymentIntentConfirmParams.payment_method_options,PaymentIntentCreateParams.payment_method_data,PaymentIntentCreateParams.payment_method_options,PaymentIntentUpdateParams.payment_method_data,PaymentIntentUpdateParams.payment_method_options,PaymentMethodCreateParams,PaymentMethod,SetupIntentConfirmParams.payment_method_data,SetupIntentCreateParams.payment_method_data, andSetupIntentUpdateParams.payment_method_dataAdd support for
branding_settingsandname_collectiononCheckout.SessionCreateParamsandCheckout.SessionAdd support for
excluded_payment_method_typesonCheckout.SessionCreateParams,Checkout.Session,PaymentIntentConfirmParams, andPaymentIntentUpdateParamsAdd support for
unit_labelonCheckout.SessionCreateParams.line_items.price_data.product_data,InvoiceAddLinesParams.lines.price_data.product_data,InvoiceLineItemUpdateParams.price_data.product_data,InvoiceUpdateLinesParams.lines.price_data.product_data, andPaymentLinkCreateParams.line_items.price_data.product_dataAdd support for
alma,billie, andsatispayonCheckout.Session.payment_method_optionsandCheckout.SessionCreateParams.payment_method_optionsAdd support for
demo_payonCheckout.SessionCreateParams.payment_method_optionsAdd support for
capture_methodonCheckout.Session.payment_method_options.affirm,Checkout.Session.payment_method_options.afterpay_clearpay,Checkout.Session.payment_method_options.amazon_pay,Checkout.Session.payment_method_options.card,Checkout.Session.payment_method_options.cashapp,Checkout.Session.payment_method_options.klarna,Checkout.Session.payment_method_options.link,Checkout.Session.payment_method_options.mobilepay,Checkout.Session.payment_method_options.revolut_pay,Checkout.SessionCreateParams.payment_method_options.affirm,Checkout.SessionCreateParams.payment_method_options.afterpay_clearpay,Checkout.SessionCreateParams.payment_method_options.amazon_pay,Checkout.SessionCreateParams.payment_method_options.card,Checkout.SessionCreateParams.payment_method_options.cashapp,Checkout.SessionCreateParams.payment_method_options.klarna,Checkout.SessionCreateParams.payment_method_options.link,Checkout.SessionCreateParams.payment_method_options.mobilepay, andCheckout.SessionCreateParams.payment_method_options.revolut_payAdd support for
flexibleonCheckout.SessionCreateParams.subscription_data.billing_mode,InvoiceCreatePreviewParams.schedule_details.billing_mode,InvoiceCreatePreviewParams.subscription_details.billing_mode,Quote.subscription_data.billing_mode,QuoteCreateParams.subscription_data.billing_mode,Subscription.billing_mode,SubscriptionCreateParams.billing_mode,SubscriptionMigrateParams.billing_mode,SubscriptionSchedule.billing_mode, andSubscriptionScheduleCreateParams.billing_modeAdd support for
business_nameandindividual_nameonCheckout.Session.collected_information,Checkout.Session.customer_details,CustomerCreateParams,CustomerUpdateParams, andCustomerAdd support for new values
mb_wayon enumsConfirmationTokenCreateParams.testHelpers.payment_method_data.type,PaymentIntentConfirmParams.payment_method_data.type,PaymentIntentCreateParams.payment_method_data.type,PaymentIntentUpdateParams.payment_method_data.type,SetupIntentConfirmParams.payment_method_data.type,SetupIntentCreateParams.payment_method_data.type, andSetupIntentUpdateParams.payment_method_data.typeAdd support for new values
mb_wayon enumsConfirmationToken.payment_method_preview.typeandPaymentMethod.typeAdd support for new values
mb_wayon enumsCustomerListPaymentMethodsParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typeAdd support for
chargeback_loss_reason_codeonDispute.payment_method_details.klarnaAdd support for
net_amountandproration_detailsonInvoiceItemRemove support for
iterationsonInvoiceCreatePreviewParams.schedule_details.phases,SubscriptionScheduleCreateParams.phases, andSubscriptionScheduleUpdateParams.phasesAdd support for
fraud_disputability_likelihoodandrisk_assessmentonIssuing.AuthorizationCreateParams.testHelpersAdd support for
second_lineonIssuing.CardAdd support for new values
mb_wayon enumsPaymentIntent.excluded_payment_method_typesandPaymentIntentCreateParams.excluded_payment_method_typesAdd support for
fr_meal_voucher_conecsonPaymentMethodConfigurationCreateParamsandPaymentMethodConfigurationUpdateParamsAdd support for
promotiononPromotionCodeCreateParamsandPromotionCodeAdd support for new values
acknowledgedandpayment_never_settledon enumReview.closed_reasonAdd support for
provideronTax.Settings.defaultsAdd support for
bbpos_wisepad3onTerminal.ConfigurationCreateParams,Terminal.ConfigurationUpdateParams, andTerminal.ConfigurationAdd support for
address_kana,address_kanji,display_name_kana,display_name_kanji, andphoneonTerminal.LocationCreateParams,Terminal.LocationUpdateParams, andTerminal.LocationChange
Terminal.LocationCreateParams.addressto be optionalChange
Terminal.LocationCreateParams.display_nameto be optionalAdd support for new value
2025-09-30.cloveron enumWebhookEndpointCreateParams.api_versionAdd support for error codes
financial_connections_account_pending_account_numbersandfinancial_connections_account_unavailable_account_numbersonInvoice.last_finalization_error,PaymentIntent.last_payment_error,SetupAttempt.setup_error,SetupIntent.last_setup_error, andStripeError
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.