Skip to content

Commit 3f73bb0

Browse files
[breaking] Update CheckoutProvider to use new shape (#615)
This is to change `<CheckoutProvider />` to use https://js.stripe.com/clover/stripe.js - options change from `fetchClientSecret: () => Promise<string>;` to `clientSecret: string | Promise<string>` - `useCheckout` return the exact same object as https://github.com/stripe/react-stripe-js/releases/tag/v4.0.0
1 parent 8d95722 commit 3f73bb0

File tree

8 files changed

+345
-225
lines changed

8 files changed

+345
-225
lines changed

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"@rollup/plugin-replace": "^5.0.5",
9494
"@rollup/plugin-terser": "^0.4.4",
9595
"@storybook/react": "^6.5.0-beta.8",
96-
"@stripe/stripe-js": "^7.8.0",
96+
"@stripe/stripe-js": "^8.0.0-rc.1",
9797
"@testing-library/jest-dom": "^5.16.4",
9898
"@testing-library/react": "^13.1.1",
9999
"@testing-library/react-hooks": "^8.0.0",
@@ -132,7 +132,7 @@
132132
"@types/react": "18.0.5"
133133
},
134134
"peerDependencies": {
135-
"@stripe/stripe-js": ">=1.44.1 <8.0.0",
135+
"@stripe/stripe-js": ">=8.0.0-rc.1 <9.0.0",
136136
"react": ">=16.8.0 <20.0.0",
137137
"react-dom": ">=16.8.0 <20.0.0"
138138
}

0 commit comments

Comments
 (0)