Closed thorsten-stripe closed 4 years ago
Mh, with the new stripe-js module we might not actually need a plugin anymore: https://github.com/stripe/stripe-js#import-as-a-side-effect
Wdyt?
Hi Thor! So nice to hear from you!
I think you're right, I don't think we actually need a plugin anymore! So I think my migration plan will be:
stripe-js
ES module.Anything I'm missing?
Thanks, @njosefbeck, those are exactly the right steps, appreciate your help with this!
In parallel I'll look into updating the Gatsby eCom tutorial: https://www.gatsbyjs.org/tutorial/ecommerce-tutorial/
Of course! I'll work on this over the weekend 👍
@thorsten-stripe So I've updated Dragon Mart to use stripe-js
and I've updated this repo's README.
I've also updated the npm package so it shows the deprecation notice: https://www.npmjs.com/package/gatsby-plugin-stripe
How long do you think I should wait before archiving the repo?
@njosefbeck thanks a mill. The stripe-js
module is now officially out of beta 🎉
I've updated my demo: https://github.com/thorsten-stripe/ecommerce-gatsby-tutorial/pull/20
And opened a PR that updates the Gatsby eCom tutorial: https://github.com/gatsbyjs/gatsby/pull/21675
I think we're in a good place to archive this repo 👍 Thanks again for all your help with this ❤️
My pleasure! Thanks for reaching out! So great to see Stripe releasing these packages :heart:
@njosefbeck would you be up for updating this plugin to use the new
loadStripe
utility: https://stripe.com/docs/stripe-js/react#elements-provider?