sst.dev
sst.dev copied to clipboard
Migrating to @stripe/react-stripe-js and using the Stripe hooks
The react-stripe-elements
package has been deprecated and it is recommended that users migrate to react-stripe-js
(https://github.com/stripe/react-stripe-js/blob/master/docs/migrating.md). The new package includes some convenience hooks.
I'm happy to rewrite the chapters:
- Create a billing form
- Connect the billing form
to reflect the change, if this would be helpful? It might take a couple of weeks though.
Ah thanks for letting us know. Actually, what would really help is if you submit a PR for the demo repo — https://github.com/AnomalyInnovations/serverless-stack-demo-client. Then I can go make the changes to the chapters and the steps.
Hi @tomhoad are you able to share the updated code?
@jayair @mstibbard I replaced react-stripe-elements
with react-stripe-js
in the above mentioned PR.