-
-
Notifications
You must be signed in to change notification settings - Fork 406
Update stripe (major) #4512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update stripe (major) #4512
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ariakit | 68f4ace | Visit preview | May 02 2025, 09:51 PM |
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
0d572c0 to
9ab7daa
Compare
9ab7daa to
605e711
Compare
605e711 to
1682646
Compare
1682646 to
052988a
Compare
052988a to
1749dfe
Compare
1749dfe to
0671ef6
Compare
c0f8d95 to
a88eaa0
Compare
a88eaa0 to
b3107e4
Compare
b3107e4 to
10e2981
Compare
10e2981 to
f6646f9
Compare
f6646f9 to
c493ec3
Compare
c493ec3 to
da5965b
Compare
e233fdb to
a70649c
Compare
a70649c to
99309f1
Compare
99309f1 to
556083b
Compare
556083b to
3fb6f2a
Compare
3fb6f2a to
c8df2ea
Compare
c8df2ea to
142fb88
Compare
142fb88 to
fdcbb9f
Compare
fdcbb9f to
61a3dc3
Compare
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
61a3dc3 to
3e9e1f6
Compare
3e9e1f6 to
115614c
Compare
115614c to
8c8b3d6
Compare
8c8b3d6 to
70bc37e
Compare
70bc37e to
ffd4e1b
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot].This notice will be removed on 2025-10-07.
This PR contains the following updates:
3.10.0->5.0.07.9.0->8.0.06.1.0->8.0.018.5.0->19.1.017.7.0->19.1.0Release Notes
stripe/react-stripe-js (@stripe/react-stripe-js)
v5.0.0Compare Source
Stripe.js Clover changelog: https://docs.stripe.com/changelog?category=stripejs
Fixes
Changed
v4.0.2Compare Source
Changed
v4.0.1Compare Source
Fixes
Changed
v4.0.0Compare Source
Changed
Upgrade guidance
Import changes
Checkout paths changed:
Note: this only applies to Elements with Checkout Sessions API integrations.
to
useCheckout changes
Previously:
Now (>= v4.0.0):
stripe/stripe-js (@stripe/stripe-js)
v8.0.0Compare Source
Stripe.js Clover changelog: https://docs.stripe.com/changelog?category=stripejs
New features
Fixes
Changed
redirectToCheckout(#806)stripe/stripe-node (stripe)
v19.1.0Compare Source
#2453 add missing fetchEvent type for UnknownEventNotification
fetchEvent()declaration to theStripe.Events.UnknownEventNotificationinterfaceStripe.Events.fetchRelatedObjectso that it's always defined and returnsnullif there's norelated_object. This fixes the situation where theUnknownEventNotificationsays thatfetchRelatedObject()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
v19.0.0Compare Source
This release changes the pinned API version to⚠️ below)
2025-09-30.cloverand contains breaking changes (prefixed with#2427 Move
V2.EventAPI resources toV2.Core.EventsStripe.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#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.
StripeClient.parseThinEventtoStripeClient.parseEventNotificationand remove theStripe.ThinEventinterface.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.UnknownEventNotificationto then access therelatedObjectfield and the functionfetchRelatedObject()#2432 Drop support for Node < 16 & clarify policy
#2426 Add
StripeContextobjectStripeContextclass. It can be used anywhere the context option is supplied and gets serialized to a string when making requests.EventNotification(formerly known asThinEvent)'scontextproperty fromstringtoStripeContext#2398⚠️ Build SDK w/ V2 OpenAPI spec
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.StripeClient.v2namespace) from a null union to optional (e.g.prop: string | null->prop?: string).#2420 Fixed file uploading in Bun runtimes
FetchHttpClient(e.g. Bun). This bug affected Node SDK versions between 18.1.0 to 18.5.0.#2405 support more npm tags
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.balance_reportandpayout_reconciliation_reportonAccountSession.componentsandAccountSessionCreateParams.componentssaturdayandsundayfrom enumsAccount.settings.payouts.schedule.weekly_payout_days,AccountCreateParams.settings.payouts.schedule.weekly_payout_days, andAccountUpdateParams.settings.payouts.schedule.weekly_payout_daysexternal_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[].codelinkandpay_by_bankonPaymentMethodUpdateParamscoupononDiscount,PromotionCodeCreateParams, andPromotionCode. UseDiscount.source.coupon,PromotionCodeCreateParams.promotion.couponandPromotionCode.couponinstead.Invoice.idto be required.preventedon enumDispute.statusBalanceSettingsretrieveandupdatemethods on resourceBalanceSettingsmb_way_paymentsonAccount.capabilities,AccountCreateParams.capabilities, andAccountUpdateParams.capabilitiessourceonDiscounttrial_update_behavioronBillingPortal.Configuration.features.subscription_update,BillingPortal.ConfigurationCreateParams.features.subscription_update, andBillingPortal.ConfigurationUpdateParams.features.subscription_updatemb_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_databranding_settingsandname_collectiononCheckout.SessionCreateParamsandCheckout.Sessionexcluded_payment_method_typesonCheckout.SessionCreateParams,Checkout.Session,PaymentIntentConfirmParams, andPaymentIntentUpdateParamsunit_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_dataalma,billie, andsatispayonCheckout.Session.payment_method_optionsandCheckout.SessionCreateParams.payment_method_optionsdemo_payonCheckout.SessionCreateParams.payment_method_optionscapture_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_payflexibleonCheckout.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_modebusiness_nameandindividual_nameonCheckout.Session.collected_information,Checkout.Session.customer_details,CustomerCreateParams,CustomerUpdateParams, andCustomermb_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.typemb_wayon enumsConfirmationToken.payment_method_preview.typeandPaymentMethod.typemb_wayon enumsCustomerListPaymentMethodsParams.type,PaymentMethodCreateParams.type, andPaymentMethodListParams.typechargeback_loss_reason_codeonDispute.payment_method_details.klarnanet_amountandproration_detailsonInvoiceItemiterationsonInvoiceCreatePreviewParams.schedule_details.phases[],SubscriptionScheduleCreateParams.phases[], andSubscriptionScheduleUpdateParams.phases[]fraud_disputability_likelihoodandrisk_assessmentonIssuing.AuthorizationCreateParams.testHelperssecond_lineonIssuing.Cardmb_wayon enumsPaymentIntent.excluded_payment_method_typesandPaymentIntentCreateParams.excluded_payment_method_typesfr_meal_voucher_conecsonPaymentMethodConfigurationCreateParamsandPaymentMethodConfigurationUpdateParamspromotiononPromotionCodeCreateParamsandPromotionCodeacknowledgedandpayment_never_settledon enumReview.closed_reasonprovideronTax.Settings.defaultsbbpos_wisepad3onTerminal.ConfigurationCreateParams,Terminal.ConfigurationUpdateParams, andTerminal.Configurationaddress_kana,address_kanji,display_name_kana,display_name_kanji, andphoneonTerminal.LocationCreateParams,Terminal.LocationUpdateParams, andTerminal.LocationTerminal.LocationCreateParams.addressto be optionalTerminal.LocationCreateParams.display_nameto be optional2025-09-30.cloveron enumWebhookEndpointCreateParams.api_versionfinancial_connections_account_pending_account_numbersandfinancial_connections_account_unavailable_account_numbersonInvoice.last_finalization_error,PaymentIntent.last_payment_error,SetupAttempt.setup_error,SetupIntent.last_setup_error, andStripeErrorConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.