sst / guide

Repo for guide.sst.dev
https://guide.sst.dev
MIT License
3.68k stars 445 forks source link

Migrating to @stripe/react-stripe-js and using the Stripe hooks #511

Open tomhoad opened 3 years ago

tomhoad commented 3 years ago

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:

to reflect the change, if this would be helpful? It might take a couple of weeks though.

jayair commented 3 years ago

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.

mstibbard commented 3 years ago

Hi @tomhoad are you able to share the updated code?

pavinduLakshan commented 3 years ago

@jayair @mstibbard I replaced react-stripe-elements with react-stripe-js in the above mentioned PR.