npm / @stripe/react-stripe-js
@stripe/react-stripe-js
What changed in @stripe/react-stripe-js 2 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
9 breaking1 deprecations19 new APIs and options1 performance4 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@stripe/react-stripe-js 75 changes
Breaking changes 1
Removed the payment request button for Endive.
New APIs and options 2
Adds fieldchange types.
Adds PricingProvider and related hooks to the /pricing export.
Behavior and default changes 1
Upgraded to React 19, which may affect the React version used with this package.
Fixes and other changes 1
Fixes EmbeddedCheckoutProvider not registering react-stripe-js with Stripe.js.
@stripe/react-stripe-js 617 changes
Breaking changes 2
The minimum supported peer version is now 9.10.0.
Renames the embedded checkout page API to createEmbeddedCheckoutPage.
Deprecations 1
Deprecated in favor of useCheckoutElements and useCheckoutForm; it continues working under both providers for backward compatibility and is planned for removal in v7.0.0.
New APIs and options 10
Adds the TreasuryDisclosure component for application developers to use.
Adds React wrappers for the Link Signup Element.
Adds the Terms Element to @stripe/react-stripe-js.
CSE was added to the base types in react-stripe-js.
The Checkout ExpressCheckoutElement now exposes an onCancel prop.
Adds availablepaymentmethodschange functionality.
Added a hook to use inside CheckoutElementsProvider.
Added a hook to use inside CheckoutFormProvider.
Adds the contactDetails element for developers to use.
Adds React components for Stripe Issuing Elements.
Performance 1
Checkout hook results are memoized, which can help avoid unnecessary updates when their references are used by consumers.
Behavior and default changes 1
The wrapper now returns the event handler result.
Fixes and other changes 2
Checkout provider initialization failures are handled.
Both new hooks throw a clear runtime error when called under the wrong provider.
@stripe/react-stripe-js 510 changes
Breaking changes 2
Updates CheckoutProvider to use a new shape, which may require changes to existing usage.
Removes Clover element types.
New APIs and options 6
Adds full props and options support for PaymentFormElement.
Exports disclosure components with typing.
Adds the PaymentForm Element.
Adds an Issuing disclosure React component.
Adds onChange to the Shipping and Billing Address Elements.
Exports StripeCheckoutValue from the checkout entrypoint.
Behavior and default changes 2
Publishing now fails fast when hub GitHub authentication is invalid, so maintainers discover the authentication problem sooner.
Removes the beta comment from the CurrencySelector element.
@stripe/react-stripe-js 43 changes
Breaking changes 2
CheckoutProvider now renders children unconditionally, including while checkout initialization is pending or has failed.
useCheckout() now returns a disjoint union for loading, success, and error states instead of returning the SDK or throwing an error.
New APIs and options 1
Checkout Sessions API integrations should import useCheckout and PaymentElement from this subpath instead of the package root.
@stripe/react-stripe-js 31 changes
Breaking changes 1
CustomCheckoutProvider was renamed to CheckoutProvider; update code using the old name.
@stripe/react-stripe-js 21 changes
Breaking changes 1
Renames PayButtonElement to ExpressCheckoutElement; update code using the old name.