sst.dev icon indicating copy to clipboard operation
sst.dev copied to clipboard

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

Open tomhoad opened this issue 4 years ago • 3 comments

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.

tomhoad avatar Nov 16 '20 12:11 tomhoad

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.

jayair avatar Nov 22 '20 20:11 jayair

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

mstibbard avatar Apr 21 '21 06:04 mstibbard

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

pavinduLakshan avatar Jun 24 '21 03:06 pavinduLakshan