Demo: https://nextjs-typescript-react-stripe-js.now.sh/
Code: https://github.com/vercel/next.js/tree/canary/examples/with-stripe-typescript
Code...
For further actions, you may consider blocking this person and/or reporting abuse
Thks Thor, is it possible to let a user decide the amount and the frequency for a subscription??
I can do it with my revolut, I can decide the amount and add a frequency, hence it becomes a recurrent subscription.
This is great, although there is much I donβt understand... if you would consider doing a version of this tutorial for Gatsby/Netlify as well, and compare/contrast the two that would be amazing... also gonna look at the Lambda thing you posted a few comments down :-)
Hi @rchrdnsh - check out this guide: gatsbyjs.org/tutorial/ecommerce-tu...
Thor, thank you for the post, could you maybe go into detail how would one create a payment intent with Gatsby? I need to create a custom payment form so using Stripe Checkout is not enough ..
For this you will need a server-side component. This can be a Lambda/Netlify/Zeit function.
Nader Dabit
has an example of this over at github.com/jamstack-cms/jamstack-e.... Hope that helps :)
This is fantastic -- thank you Thor!
Great article! Thanks for sharing, could you please include the part where we add webhooks to Stripe using Stripe CLI?