Skip to content

Conversation

@nerdy-tech-com-gitub
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade stripe from 15.8.0 to 19.2.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 85 versions ahead of your current version.

  • The recommended version was released a month ago.

⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Insecure Randomness
SNYK-JS-UNDICI-8641354
101 Proof of Concept
high severity Incorrect Authorization
SNYK-JS-VITE-9512410
101 Mature
high severity Incorrect Authorization
SNYK-JS-VITE-9653016
101 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-WS-7266574
101 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-CROSSSPAWN-8303230
101 Proof of Concept
high severity Command Injection
SNYK-JS-GLOB-14040952
101 Proof of Concept
high severity Improper Neutralization of Special Elements in Data Query Logic
SNYK-JS-MONGOOSE-8446504
101 Proof of Concept
high severity Improper Neutralization of Special Elements in Data Query Logic
SNYK-JS-MONGOOSE-8623536
101 Proof of Concept
high severity Remote Code Execution (RCE)
SNYK-JS-NUXT-7640974
101 No Known Exploit
high severity Acceptance of Extraneous Untrusted Data With Trusted Data
SNYK-JS-NUXT-9486043
101 No Known Exploit
high severity Directory Traversal
SNYK-JS-NUXTDEVTOOLS-7640977
101 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-ROLLUP-8073097
101 Proof of Concept
medium severity Directory Traversal
SNYK-JS-SUPABASEAUTHJS-10255365
101 No Known Exploit
medium severity Improper Validation of Specified Type of Input
SNYK-JS-VALIDATOR-13395830
101 Proof of Concept
medium severity Directory Traversal
SNYK-JS-VITE-13644406
101 Proof of Concept
medium severity Information Exposure
SNYK-JS-VITE-8023174
101 Proof of Concept
medium severity Origin Validation Error
SNYK-JS-VITE-8648411
101 Proof of Concept
medium severity Access Control Bypass
SNYK-JS-VITE-9576207
101 Proof of Concept
medium severity Information Exposure
SNYK-JS-VITE-9685035
101 Proof of Concept
medium severity Directory Traversal
SNYK-JS-VITE-9919777
101 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-VUETEMPLATECOMPILER-7554675
101 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BABELHELPERS-9397697
101 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BABELRUNTIME-10044504
101 Proof of Concept
medium severity Prototype Pollution
SNYK-JS-JSYAML-13961110
101 No Known Exploit
medium severity Open Redirect
SNYK-JS-KOA-10944994
101 Proof of Concept
medium severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
101 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
101 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
101 No Known Exploit
medium severity Cross-site Scripting (XSS)
SNYK-JS-NUXT-7640972
101 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-NUXTDEVTOOLS-13849298
101 No Known Exploit
medium severity Origin Validation Error
SNYK-JS-NUXTVITEBUILDER-8663232
101 Proof of Concept
medium severity Prototype Pollution
SNYK-JS-PARSEGITCONFIG-9403763
101 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
101 Proof of Concept
low severity Cross-site Scripting
SNYK-JS-SEND-7926862
101 No Known Exploit
low severity Cross-site Scripting
SNYK-JS-SERVESTATIC-7926865
101 No Known Exploit
low severity Directory Traversal
SNYK-JS-SIRV-12558119
101 Proof of Concept
low severity Missing Release of Memory after Effective Lifetime
SNYK-JS-UNDICI-10176064
101 Proof of Concept
low severity Relative Path Traversal
SNYK-JS-VITE-12558116
101 Proof of Concept
low severity Cross-site Scripting (XSS)
SNYK-JS-VITE-8022916
101 Proof of Concept
low severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-VUETEMPLATECOMPILER-8219888
101 Proof of Concept
low severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BRACEEXPANSION-9789073
101 Proof of Concept
low severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BRACEEXPANSION-9789073
101 Proof of Concept
critical severity Prototype Pollution
SNYK-JS-DEVALUE-12205530
101 Proof of Concept
critical severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-KOA-8720152
101 No Known Exploit
low severity Cross-site Scripting (XSS)
SNYK-JS-KOA-9679272
101 Proof of Concept
low severity Directory Traversal
SNYK-JS-NUXT-12878602
101 Proof of Concept
Release notes
Package name: stripe
  • 19.2.0 - 2025-10-29
    • #2477 Update generated code
      • Improve docs for PaymentIntent related endpoints
    • #2469 Update generated code
      • Add support for new resources PaymentAttemptRecord, PaymentIntentAmountDetailsLineItem, and PaymentRecord
      • Add support for list and retrieve methods on resource PaymentAttemptRecord
      • Add support for report_payment_attempt_canceled, report_payment_attempt_failed, report_payment_attempt_guaranteed, report_payment_attempt_informational, report_payment_attempt, report_payment, report_refund, and retrieve methods on resource PaymentRecord
      • Add support for list method on resource PaymentIntentAmountDetailsLineItem
      • Add support for representative_declaration on Account.company, AccountCreateParams.company, AccountUpdateParams.company, and TokenCreateParams.account.company
      • Change Billing.CreditGrantCreateParams.category to be optional
      • Add support for payment_method_configuration on BillingPortal.ConfigurationCreateParams.features.payment_method_update and BillingPortal.ConfigurationUpdateParams.features.payment_method_update
      • Add support for new value solana on enum Charge.payment_method_details.crypto.network
      • Add support for new value mb_way on enum Checkout.SessionCreateParams.excluded_payment_method_types
      • Add support for twint on Checkout.Session.payment_method_options and Checkout.SessionCreateParams.payment_method_options
      • Add support for new value mb_way on enum Checkout.SessionCreateParams.payment_method_types
      • Add support for new value custom on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for payment_record_refund and type on CreditNote.refunds[], CreditNoteCreateParams.refunds[], CreditNotePreviewLinesParams.refunds[], and CreditNotePreviewParams.refunds[]
      • Add support for customer_sheet and mobile_payment_element on CustomerSession.components and CustomerSessionCreateParams.components
      • Add support for new value custom on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Add support for provider on Customer.tax
      • Add support for new values balance_settings.updated and invoice.payment_attempt_required on enum Event.type
      • Add support for new value platform_terms_of_service on enums File.purpose and FileListParams.purpose
      • Add support for new value platform_terms_of_service on enum FileCreateParams.purpose
      • Add support for payment_record on InvoiceAttachPaymentParams, InvoicePayment.payment, and InvoicePaymentListParams.payment
      • Change type of InvoicePaymentListParams.payment.type from literal('payment_intent') to enum('payment_intent'|'payment_record')
      • Add support for new value custom on enums Invoice.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, and SubscriptionUpdateParams.payment_settings.payment_method_types
      • Add support for amount_details on PaymentIntentCaptureParams, PaymentIntentConfirmParams, PaymentIntentCreateParams, PaymentIntentIncrementAuthorizationParams, and PaymentIntentUpdateParams
      • Add support for payment_details on PaymentIntentCaptureParams, PaymentIntentConfirmParams, PaymentIntentCreateParams, PaymentIntentIncrementAuthorizationParams, PaymentIntentUpdateParams, and PaymentIntent
      • Add support for discount_amount, line_items, shipping, and tax on PaymentIntent.amount_details
      • Add support for name_collection on PaymentLinkCreateParams, PaymentLinkUpdateParams, and PaymentLink
      • Add support for new value mb_way on enums PaymentLink.payment_method_types, PaymentLinkCreateParams.payment_method_types, and PaymentLinkUpdateParams.payment_method_types
      • Add support for crypto on PaymentMethodConfigurationCreateParams, PaymentMethodConfigurationUpdateParams, PaymentMethodConfiguration, and Refund.destination_details
      • Add support for mb_way on PaymentMethodConfigurationCreateParams, PaymentMethodConfigurationUpdateParams, and PaymentMethodConfiguration
      • Add support for custom on PaymentMethodCreateParams and PaymentMethod
      • Add support for excluded_payment_method_types on SetupIntentCreateParams, SetupIntentUpdateParams, and SetupIntent
      • Add support for tw on Tax.Registration.country_options and Tax.RegistrationCreateParams.country_options
      • Add support for gip on Terminal.Configuration.tipping, Terminal.ConfigurationCreateParams.tipping, and Terminal.ConfigurationUpdateParams.tipping
      • Add support for last_seen_at on Terminal.Reader
      • Add support for new values balance_settings.updated and invoice.payment_attempt_required on enums WebhookEndpointCreateParams.enabled_events and WebhookEndpointUpdateParams.enabled_events
      • Add support for new value 2025-10-29.clover on enum WebhookEndpointCreateParams.api_version
      • Add support for gt, gte, lt, lte, and types on V2.Core.EventListParams
      • Change V2.Core.EventListParams.object_id to be optional
      • Add support for snapshot event BalanceSettingsUpdatedEvent with resource BalanceSettings
      • Add support for snapshot event InvoicePaymentAttemptRequiredEvent with resource Invoice
      • Add support for error code payment_intent_rate_limit_exceeded on Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError

    See the changelog for more details.

  • 19.2.0-beta.1 - 2025-10-03
    • Contains bug fixes and improvements from v19.1.0.

    See the changelog for more details.

  • 19.2.0-alpha.4 - 2025-10-23
    • #2471 Update generated code for private-preview
      • Add support for new resource V2.Billing.PricingPlanSubscriptionComponents
      • Add support for retrieve method on resource V2.Billing.PricingPlanSubscriptionComponents
      • Add support for dimension_payload_keys on Billing.MeterCreateParams and Billing.Meter
      • Add support for dimension_filters and dimension_group_by_keys on Billing.MeterListMeterEventSummariesParams
      • Add support for dimensions on Billing.MeterEventSummary
      • Add support for fulfillment_details and payment_method_data on DelegatedCheckout.RequestedSessionCreateParams and DelegatedCheckout.RequestedSessionUpdateParams
      • Add support for line_item_details, metadata, payment_method, and shared_metadata on DelegatedCheckout.RequestedSessionCreateParams, DelegatedCheckout.RequestedSessionUpdateParams, and DelegatedCheckout.RequestedSession
      • Add support for currency, customer, and risk_details on DelegatedCheckout.RequestedSessionCreateParams
      • Add support for seller_details and setup_future_usage on DelegatedCheckout.RequestedSessionCreateParams and DelegatedCheckout.RequestedSession
      • Add support for amount_subtotal, amount_total, created_at, expires_at, order_details, shared_payment_issued_token, status, total_details, and updated_at on DelegatedCheckout.RequestedSession
      • Add support for address, email, fulfillment_options, name, phone, and selected_fulfillment_option on DelegatedCheckout.RequestedSession.fulfillment_details
      • Add support for new values billie, crypto, kr_card, kriya, mb_way, mondu, ng_bank_transfer, ng_bank, ng_card, ng_market, ng_ussd, ng_wallet, payco, paypay, rechnung, samsung_pay, satispay, scalapay, sequra, sunbit, us_bank_account, and vipps on enums EventsV2CoreHealthAuthorizationRateDropFiringEvent.impact.payment_method_type, EventsV2CoreHealthAuthorizationRateDropResolvedEvent.impact.payment_method_type, EventsV2CoreHealthPaymentMethodErrorFiringEvent.impact.payment_method_type, and EventsV2CoreHealthPaymentMethodErrorResolvedEvent.impact.payment_method_type

    See the changelog for more details.

  • 19.2.0-alpha.3 - 2025-10-17
    • #2463 Update generated code for private-preview
      • Add support for new resources DelegatedCheckout.RequestedSession and Identity.BlocklistEntry
      • Add support for confirm, create, expire, retrieve, and update methods on resource DelegatedCheckout.RequestedSession
      • Add support for create, disable, list, and retrieve methods on resource Identity.BlocklistEntry
      • Add support for blocked_by_entry on Identity.VerificationReport.document, Identity.VerificationReport.selfie, and Identity.VerificationReportListParams

    See the changelog for more details.

  • 19.2.0-alpha.2 - 2025-10-09
    • #2457 Update generated code for private-preview
      • Add support for new resource PaymentMethodBalance
      • Add support for check_balance method on resource PaymentMethod
      • Add support for benefits on Card, Charge.payment_method_details.card, ConfirmationToken.payment_method_preview.card, and PaymentMethod.card
      • Add support for benefit on PaymentIntent.payment_details, PaymentIntentConfirmParams.payment_details, PaymentIntentCreateParams.payment_details, and PaymentIntentUpdateParams.payment_details
      • Add support for setup_details on SetupIntentConfirmParams, SetupIntentCreateParams, SetupIntentUpdateParams, and SetupIntent
      • Add support for new value card_creator on enums V2.Core.Account.applied_configurations and V2.Core.AccountCloseParams.applied_configurations
      • Add support for card_creator on V2.Core.Account.configuration, V2.Core.Account.identity.attestations.terms_of_service, V2.Core.AccountCreateParams.configuration, V2.Core.AccountCreateParams.identity.attestations.terms_of_service, V2.Core.AccountUpdateParams.configuration, and V2.Core.AccountUpdateParams.identity.attestations.terms_of_service
      • Add support for new values commercial.celtic.charge_card, commercial.celtic.spend_card, commercial.cross_river_bank.charge_card, commercial.cross_river_bank.spend_card, commercial.stripe.charge_card, and commercial.stripe.prepaid_card on enum V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability
      • Add support for new value card_creator on enum V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].configuration
      • Add support for new value configuration.card_creator on enums V2.Core.AccountCreateParams.include, V2.Core.AccountRetrieveParams.include, and V2.Core.AccountUpdateParams.include
      • Add support for thin events V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent and V2CoreAccountIncludingConfigurationCardCreatorUpdatedEvent with related object V2.Core.Account
      • Remove support for thin events V1CustomerDiscountCreatedEvent, V1CustomerDiscountDeletedEvent, and V1CustomerDiscountUpdatedEvent with related object Discount
    • #2449 Update changelog for private preview

    See the changelog for more details.

  • 19.2.0-alpha.1 - 2025-10-03
    • Contains bug fixes and improvements from v19.1.0.

    See the changelog for more details.

  • 19.1.0 - 2025-10-03
    • #2453 add missing fetchEvent type for UnknownEventNotification

      • Add missing fetchEvent() declaration to the Stripe.Events.UnknownEventNotification interface
      • Tweak Stripe.Events.fetchRelatedObject so that it's always defined and returns null if there's no related_object. This fixes the situation where the UnknownEventNotification says that fetchRelatedObject() is defined, but calling it throws an error.
    • #2447 Update param in deprecation docs link

    • #2444 Update CHANGELOG.md to point to right API version

    See the changelog for more details.

  • 19.1.0-beta.1 - 2025-10-01

    This release changes the pinned API version to 2025-09-30.preview. It is built on top of SDK version 19.0.0 which contains breaking changes. Please review the changelog for 19.0.0 if upgrading from older SDK versions.

    • #2422 Update generated code for beta
      • Add support for attach_cadence method on resource Subscription
      • Add support for billing_cadence on InvoiceCreatePreviewParams, SubscriptionCreateParams, SubscriptionUpdateParams, and Subscription
      • Add support for billing_cadence_details on Invoice.parent and QuotePreviewInvoice.parent
      • Add support for new value billing_cadence_details on enums Invoice.parent.type and QuotePreviewInvoice.parent.type
    • #2410 Update generated code for beta
      • Add support for new resources V2.Billing.BillSettingVersion, V2.Billing.BillSetting, V2.Billing.Cadence, V2.Billing.CollectionSettingVersion, V2.Billing.CollectionSetting, and V2.Billing.Profile
      • Add support for create, list, retrieve, and update methods on resources V2.Billing.BillSetting, V2.Billing.CollectionSetting, and V2.Billing.Profile
      • Add support for list and retrieve methods on resources V2.Billing.BillSettingVersion and V2.Billing.CollectionSettingVersion
      • Add support for cancel, create, list, retrieve, and update methods on resource V2.Billing.Cadence
      • Add support for new value crypto_wallet on enum V2.Core.Account.configuration.recipient.default_outbound_destination.type
      • Add support for profile on V2.Core.Account.defaults, V2.Core.AccountCreateParams.defaults, and V2.Core.AccountUpdateParams.defaults
      • Add support for i_p on V2.Core.Account.identity.attestations.directorship_declaration, V2.Core.Account.identity.attestations.ownership_declaration, V2.Core.Account.identity.attestations.terms_of_service.account, V2.Core.Account.identity.attestations.terms_of_service.storer, V2.Core.Account.identity.individual.additional_terms_of_service.account, V2.Core.AccountCreateParams.identity.attestations.terms_of_service.account, V2.Core.AccountCreateParams.identity.attestations.terms_of_service.storer, V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.account, V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.storer, V2.Core.Person.additional_terms_of_service.account, V2.Core.PersonCreateParams.additional_terms_of_service.account, and V2.Core.PersonUpdateParams.additional_terms_of_service.account
      • Remove support for ip on V2.Core.Account.identity.attestations.directorship_declaration, V2.Core.Account.identity.attestations.ownership_declaration, V2.Core.Account.identity.attestations.terms_of_service.account, V2.Core.Account.identity.attestations.terms_of_service.storer, V2.Core.Account.identity.individual.additional_terms_of_service.account, V2.Core.AccountCreateParams.identity.attestations.terms_of_service.account, V2.Core.AccountCreateParams.identity.attestations.terms_of_service.storer, V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.account, V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.storer, V2.Core.Person.additional_terms_of_service.account, V2.Core.PersonCreateParams.additional_terms_of_service.account, and V2.Core.PersonUpdateParams.additional_terms_of_service.account
      • Remove support for doing_business_as, product_description, and url on V2.Core.Account.identity.business_details, V2.Core.AccountCreateParams.identity.business_details, and V2.Core.AccountUpdateParams.identity.business_details
      • Add support for settlement_currency on V2.MoneyManagement.FinancialAddress
      • Add support for sepa_bank_account on V2.MoneyManagement.FinancialAddress.credentials and V2.MoneyManagement.ReceivedCredit.bank_transfer
      • Add support for new value sepa_bank_account on enum V2.MoneyManagement.FinancialAddress.credentials.type
      • Add support for amount_details and payments_orchestration on V2.Payments.OffSessionPaymentCreateParams and V2.Payments.OffSessionPayment
      • Add support for new value authorization_expired on enum V2.Payments.OffSessionPayment.failure_reason
      • Add support for retry_policy on V2.Payments.OffSessionPayment.retry_details and V2.Payments.OffSessionPaymentCreateParams.retry_details
      • Add support for new values heuristic and scheduled on enums V2.Payments.OffSessionPayment.retry_details.retry_strategy and V2.Payments.OffSessionPaymentCreateParams.retry_details.retry_strategy
      • Change type of V2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_duration from literal('five_minutes') to enum('five_minutes'|'none')
      • Change type of V2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_expires_at from DateTime to DateTime | null
      • Add support for new value none on enum V2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_status
      • Add support for new value crypto_wallet on enums V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data.type, V2.MoneyManagement.OutboundSetupIntentUpdateParams.payout_method_data.type, and V2.MoneyManagement.PayoutMethod.type
      • Add support for origin_type on V2.MoneyManagement.ReceivedCredit.bank_transfer
      • Remove support for payment_method_type on V2.MoneyManagement.ReceivedCredit.bank_transfer
      • Add support for new value prevented on enum Dispute.status
      • Add support for mandate_data and payment_method_options on V2.Payments.OffSessionPaymentCreateParams
      • Add support for type on V2.MoneyManagement.FinancialAddressCreateParams
      • Remove support for currency on V2.MoneyManagement.FinancialAddressCreateParams
      • Add support for new values financial_addressses.crypto_wallets, holds_currencies.usdc, outbound_payments.crypto_wallets, and outbound_transfers.crypto_wallets on enum EventsV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.updated_capability
      • Add support for thin event V2BillingBillSettingUpdatedEvent with related object V2.Billing.BillSetting
      • Add support for error type RateLimitError
      • Add support for error code invalid_payout_method_crypto_wallet on InvalidPayoutMethodError
    • #2397 Update generated code for beta
      • Add support for new resources Billing.Analytics.MeterUsageRow and Billing.Analytics.MeterUsage
      • Remove support for resources Billing.MeterUsageRow and Billing.MeterUsage
      • Add support for retrieve method on resource Billing.Analytics.MeterUsage
      • Remove support for retrieve method on resource Billing.MeterUsage
      • Add support for report_payment_attempt_informational method on resource PaymentRecord
      • Add support for minimum_balance_by_currency on BalanceSettingUpdateParams.payments.payouts and BalanceSettings.payments.payouts
      • Remove support for values saturday and sunday from enums BalanceSettingUpdateParams.payments.payouts.schedule.weekly_payout_days and BalanceSettings.payments.payouts.schedule.weekly_payout_days
      • Change type of BalanceSettingUpdateParams.payments.settlement_timing.delay_days_override from longInteger to emptyable(longInteger)
      • Change BalanceSettingUpdateParams.payments to be optional
      • Add support for delay_days_override on BalanceSettings.payments.settlement_timing
      • Add support for automatic_tax and invoice_creation on Checkout.SessionUpdateParams
      • Add support for unit_label on Checkout.SessionUpdateParams.line_items[].price_data.product_data
      • Add support for invoice_settings on Checkout.SessionUpdateParams.subscription_data
      • Change Checkout.Session.collected_information.business_name to be required
      • Add support for intended_submission_method on DisputeUpdateParams and Dispute
      • Change type of Dispute.smart_disputes.recommended_evidence from string to array(string)
      • Add support for pix on Invoice.payment_settings.payment_method_options, InvoiceCreateParams.payment_settings.payment_method_options, InvoiceUpdateParams.payment_settings.payment_method_options, QuotePreviewInvoice.payment_settings.payment_method_options, Subscription.payment_settings.payment_method_options, SubscriptionCreateParams.payment_settings.payment_method_options, and SubscriptionUpdateParams.payment_settings.payment_method_options
      • Add support for new value pix on enums Invoice.payment_settings.payment_method_types, InvoiceCreateParams.payment_settings.payment_method_types, InvoiceUpdateParams.payment_settings.payment_method_types, QuotePreviewInvoice.payment_settings.payment_method_types, Subscription.payment_settings.payment_method_types, SubscriptionCreateParams.payment_settings.payment_method_types, and SubscriptionUpdateParams.payment_settings.payment_method_types
      • Add support for billing_schedules on InvoiceCreatePreviewParams.subscription_details, SubscriptionCreateParams, SubscriptionUpdateParams, and Subscription
      • Add support for paypay on PaymentAttemptRecord.payment_method_details and PaymentRecord.payment_method_details
      • Add support for wallet on PaymentAttemptRecord.payment_method_details.card and PaymentRecord.payment_method_details.card
      • Change type of PaymentAttemptRecord.processor_details.custom.payment_reference and PaymentRecord.processor_details.custom.payment_reference from string to string | null
      • Add support for flexible on QuotePreviewSubscriptionSchedule.billing_mode
      • Add support for billed_until on SubscriptionItem
      • Add support for error codes financial_connections_account_pending_account_numbers and financial_connections_account_unavailable_account_numbers on QuotePreviewInvoice.last_finalization_error

    See the changelog for more details.

  • 19.1.0-alpha.1 - 2025-10-01
  • 19.0.0 - 2025-09-30

    This release changes the pinned API version to 2025-09-30.clover and contains breaking changes (prefixed with ⚠️ below)

    • #2427 Move V2.Event API resources to V2.Core.Events

      • ⚠️ Move the below event related interfaces and types from Stripe.V2 to Stripe.V2.Core. This enables us to correctly match the API path to the namespace
        • Stripe.V2.EventDestination -> Stripe.V2.Core.EventDestination
        • Stripe.V2.Event -> Stripe.V2.Core.Event
        • Stripe.V2.EventBase -> Stripe.V2.Core.EventBase
        • Stripe.V2.Events.RelatedObject -> Stripe.V2.Core.Events.RelatedObject
    • #2370 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.parseThinEvent to StripeClient.parseEventNotification and remove the Stripe.ThinEvent interface.
        • This function now returns a Stripe.V2.EventNotification which is a union of all possible event notifications instead of Stripe.ThinEvent. When applicable, these event notifications will have the relatedObject field and a function fetchRelatedObject(). They also have a fetchEvent() 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 UnknownEventNotification to then access the relatedObject field and the function fetchRelatedObject()
    • #2432 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)
    • #2426 Add StripeContext object

      • Add the StripeContext class. It can be used anywhere the context option is supplied and gets serialized to a string when making requests.
      • ⚠️ Change EventNotification (formerly known as ThinEvent)'s context property from string to StripeContext
      • ⚠️ 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)
    • #2398 ⚠️ Build SDK w/ V2 OpenAPI spec

      • ⚠️ The delete methods for v2 APIs (the ones in the StripeClient.v2 namespace) now return a V2DeletedObject which 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.v2 namespace) from a null union to optional (e.g. prop: string | null -> prop?: string).
    • #2420 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.
    • #2405 support more npm tags

      • ⚠️ Starting with this release, we'll no longer be tagging releases with beta npm tag. Instead, we'll use latest, public-preview, or private-preview to 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.clover API version.

      • ⚠️ Remove support for balance_report and payout_reconciliation_report on AccountSession.components and AccountSessionCreateParams.components
      • ⚠️ Remove support for values saturday and sunday from enums Account.settings.payouts.schedule.weekly_payout_days, AccountCreateParams.settings.payouts.schedule.weekly_payout_days, and AccountUpdateParams.settings.payouts.schedule.weekly_payout_days
        • Add support for new values external_request and unsupported_business_type on enums Account.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, and Person.requirements.errors[].code
        • Remove support for link and pay_by_bank on PaymentMethodUpdateParams
      • ⚠️ Remove support for coupon on Discount, PromotionCodeCreateParams, and PromotionCode. Use Discount.source.coupon, PromotionCodeCreateParams.promotion.coupon and PromotionCode.coupon instead.
      • Change Invoice.id to be required.
      • Add support for new value prevented on enum Dispute.status
      • Add support for new resource BalanceSettings
      • Add support for retrieve and update methods on resource BalanceSettings
      • Add support for mb_way_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
      • Add support for source on Discount
      • Add support for trial_update_behavior on BillingPortal.Configuration.features.subscription_update, BillingPortal.ConfigurationCreateParams.features.subscription_update, and BillingPortal.ConfigurationUpdateParams.features.subscription_update
      • Add support for mb_way on Charge.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, and SetupIntentUpdateParams.payment_method_data
      • Add support for branding_settings and name_collection on Checkout.SessionCreateParams and Checkout.Session
      • Add support for excluded_payment_method_types on Checkout.SessionCreateParams, Checkout.Session, PaymentIntentConfirmParams, and PaymentIntentUpdateParams
      • Add support for unit_label on Checkout.SessionCreateParams.line_items[].price_data.product_data, InvoiceAddLinesParams.lines[].price_data.product_data, InvoiceLineItemUpdateParams.price_data.product_data, InvoiceUpdateLinesParams.lines[].price_data.product_data, and PaymentLinkCreateParams.line_items[].price_data.product_data
      • Add support for alma, billie, and satispay on Checkout.Session.payment_method_options and Checkout.SessionCreateParams.payment_method_options
      • Add support for demo_pay on Checkout.SessionCreateParams.payment_method_options
      • Add support for capture_method on Checkout.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, and Checkout.SessionCreateParams.payment_method_options.revolut_pay
      • Add support for flexible on Checkout.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, and SubscriptionScheduleCreateParams.billing_mode
      • Add support for business_name and individual_name on Checkout.Session.collected_information, Checkout.Session.customer_details, CustomerCreateParams, CustomerUpdateParams, and Customer
      • Add support for new values mb_way on enums ConfirmationTokenCreateParams.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, and SetupIntentUpdateParams.payment_method_data.type
      • Add support for new values mb_way on enums ConfirmationToken.payment_method_preview.type and PaymentMethod.type
      • Add support for new values mb_way on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
      • Add support for chargeback_loss_reason_code on Dispute.payment_method_details.klarna
      • Add support for net_amount and proration_details on InvoiceItem
      • Remove support for iterations on InvoiceCreatePreviewParams.schedule_details.phases[], SubscriptionScheduleCreateParams.phases[], and SubscriptionScheduleUpdateParams.phases[]
      • Add support for fraud_disputability_likelihood and risk_assessment on Issuing.AuthorizationCreateParams.testHelpers
      • Add support for second_line on Issuing.Card
      • Add support for new values mb_way on enums PaymentIntent.excluded_payment_method_types and PaymentIntentCreateParams.excluded_payment_method_types
      • Add support for fr_meal_voucher_conecs on PaymentMethodConfigurationCreateParams and PaymentMethodConfigurationUpdateParams
      • Add support for promotion on PromotionCodeCreateParams and PromotionCode
      • Add support for new values acknowledged and payment_never_settled on enum Review.closed_reason
      • Add support for provider on Tax.Settings.defaults
      • Add support for bbpos_wisepad3 on Terminal.ConfigurationCreateParams, Terminal.ConfigurationUpdateParams, and Terminal.Configuration
      • Add support for address_kana, address_kanji, display_name_kana, display_name_kanji, and phone on Terminal.LocationCreateParams, Terminal.LocationUpdateParams, and Terminal.Location
      • Change Terminal.LocationCreateParams.address to be optional
      • Change Terminal.LocationCreateParams.display_name to be optional
      • Add support for new value 2025-09-30.clover on enum WebhookEndpointCreateParams.api_version
      • Add support for error codes financial_connections_account_pending_account_numbers and financial_connections_account_unavailable_account_numbers on Invoice.last_finalization_error, PaymentIntent.last_payment_error, SetupAttempt.setup_error, SetupIntent.last_setup_error, and StripeError

    See the changelog for more details.

  • 18.6.0-beta.1 - 2025-08-27
  • 18.6.0-alpha.2 - 2025-09-17
  • 18.6.0-alpha.1 - 2025-08-27
  • 18.5.0 - 2025-08-27
  • 18.5.0-beta.2 - 2025-08-06
  • 18.5.0-beta.1 - 2025-07-30
  • 18.4.0 - 2025-07-30
  • 18.4.0-beta.2 - 2025-07-09
  • 18.4.0-beta.1 - 2025-07-01
  • 18.3.0 - 2025-07-01
  • 18.3.0-beta.2 - 2025-06-26
  • 18.3.0-beta.1 - 2025-05-28
  • 18.2.1 - 2025-06-02
  • 18.2.0 - 2025-05-28
  • 18.2.0-beta.1 - 2025-04-30
  • 18.1.1 - 2025-05-19
  • 18.1.0 - 2025-04-30
  • 18.1.0-beta.3 - 2025-04-17
  • 18.1.0-beta.2 - 2025-04-10
  • 18.1.0-beta.1 - 2025-04-02
  • 18.0.0 - 2025-04-01
  • 17.8.0-beta.1 - 2025-03-18
  • 17.7.0 - 2025-02-24
  • 17.7.0-beta.1 - 2025-02-07
  • 17.6.0 - 2025-01-27
  • 17.6.0-beta.3 - 2025-01-23
  • 17.6.0-beta.2 - 2025-01-18 ...

Snyk has created this PR to upgrade stripe from 15.8.0 to 19.2.0.

See this package in npm:
stripe

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/ef708957-d107-4807-bb9b-ffb67ea15337?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants