Commit 3f73bb0
authored
[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.01 parent 8d95722 commit 3f73bb0
File tree
8 files changed
+345
-225
lines changed- src
- checkout
- components
- components
- test
8 files changed
+345
-225
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
0 commit comments