Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stripe/react-stripe-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.5.0
Choose a base ref
...
head repository: stripe/react-stripe-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.5.1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 18, 2025

  1. Preserve Session Proxy returned from useCheckout hook (#579)

    bmathews-stripe authored Mar 18, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    jrfnl Juliette
    Copy the full SHA
    e21a0b3 View commit details

Commits on Mar 19, 2025

  1. v3.5.1

    bmathews-stripe committed Mar 19, 2025
    Copy the full SHA
    0099237 View commit details
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 src/components/CheckoutProvider.tsx
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stripe/react-stripe-js",
"version": "3.5.0",
"version": "3.5.1",
"description": "React components for Stripe.js and Stripe Elements",
"main": "dist/react-stripe.js",
"module": "dist/react-stripe.esm.mjs",
4 changes: 2 additions & 2 deletions src/components/CheckoutProvider.tsx
Original file line number Diff line number Diff line change
@@ -58,10 +58,10 @@ export const extractCheckoutContextValue = (

const {on: _on, session: _session, ...actions} = checkoutSdk;
if (!sessionState) {
return {...actions, ...checkoutSdk.session()};
return Object.assign(checkoutSdk.session(), actions);
}

return {...actions, ...sessionState};
return Object.assign(sessionState, actions);
};

interface CheckoutProviderProps {