It's like you know what every one of us are working on at all times, Leigh. Always with great timing. Looking forward to more Stripe content :) I would love to see full-stack how to handle subscriptions, webhooks etc with Next as well.
I'm thinking of exploring these sorts of topics... I sort of want to make a full course that covers this from start to finish, an app that sells a digital subscription product.
I'm loving the content! I do wish there was more setup involved though. Since, I'm just getting started in Next.js it's hard to determine what packages are needed. I'm glad you showed your package.json file though cause that was very helpful for what is needed. Nextjs seems to be native to javascript rather than typescript, I'm curious why you chose that as opposed to JS. Anyway, great stuff, and can't wait to try this out! Thank you!
Hey Jeremy! That's a great point... I'll try to always at least show the setup stuff even if I had done it ahead of time. Honestly it's mostly because I can't remember the packages haha, so I just do it ahead of time when nobody is watching :D Next.js works super well with TypeScript! I am trying to show the setup I would use if it were a production project for a company I work for, and I think in that case I would go with TS.
@@leighhalliday cool, thank you! even if it was a separate video, you could always link to that in your video and explain "the setup video is over here" or something similar. That way you can focus on building the app/website/etc., but it gives us noobs an avenue to see how you would set it up. Anyway, I really appreciate the work you put into the video. Thanks again!
Hey Kameshwar! I suppose it's really up to you and how comfortable you are... maybe dig into the code mode, see how many other people are using it, are they maintaining it. Beta is just a label... Gmail was in beta for years and people were using it like crazy haha.
Hello, I would love some help. Currently, my nextjs application does not redirect to stripe checkout when I make the request. I do not know where the problem is, Any ideas?
Hi Leigh. Everything works great on my end until I click buy and get an unhandled runtime error. Something with the createStripeCheckout function but I can't figure it out. Any ideas?
I'm getting a 401 error when attempting to purchase an item in development (untested in production). Double checked api keys, etc. Not sure the solution or if it's an issue with the next-stripe package.
Thank you for this explanation. I got the same results as you in my local environment, but when I published this same thing to Vercel, Stripe is telling me that "something went wrong" once the checkout session is loaded. Is this same thing happening to you? I checked all my environment variables and they seem correct, so I am at a loss as to how this can work in my local environment but not on Vercel.
Check out my new course called Next Level Next.js! A full stack course covering GraphQL, TypeScript, Apollo, Prisma, auth and lots more! next.leighhalliday.com
It's like you know what every one of us are working on at all times, Leigh. Always with great timing. Looking forward to more Stripe content :) I would love to see full-stack how to handle subscriptions, webhooks etc with Next as well.
I'm thinking of exploring these sorts of topics... I sort of want to make a full course that covers this from start to finish, an app that sells a digital subscription product.
I'm loving the content! I do wish there was more setup involved though. Since, I'm just getting started in Next.js it's hard to determine what packages are needed. I'm glad you showed your package.json file though cause that was very helpful for what is needed.
Nextjs seems to be native to javascript rather than typescript, I'm curious why you chose that as opposed to JS.
Anyway, great stuff, and can't wait to try this out! Thank you!
Hey Jeremy! That's a great point... I'll try to always at least show the setup stuff even if I had done it ahead of time. Honestly it's mostly because I can't remember the packages haha, so I just do it ahead of time when nobody is watching :D
Next.js works super well with TypeScript! I am trying to show the setup I would use if it were a production project for a company I work for, and I think in that case I would go with TS.
@@leighhalliday cool, thank you! even if it was a separate video, you could always link to that in your video and explain "the setup video is over here" or something similar. That way you can focus on building the app/website/etc., but it gives us noobs an avenue to see how you would set it up.
Anyway, I really appreciate the work you put into the video. Thanks again!
Love this, fantastic work Leigh!
Thanks Doan!!
Extremely helpful Stripe Guide for NextJS. Thanks a lot, Leigh 🚀🚀
Thanks Nuran! I plan to do more... maybe cover different ways to collect payments, receiving webhooks, etc... subscriptions?
@@leighhalliday, great idea, sir. I can't wait. I just wish all the best for you because of your effort putting into these videos to create for us.
Great work, leigh
Thank you Dominique!
Very good video, thanks.
I keep getting this error that saying module not found for the next-stripe package any thoughts or help would greatly appreciated.
Thanks for a great video. Have a question. next-stripe is in beta is it safe to use in production. If not can you suggest alternative.
Hey Kameshwar! I suppose it's really up to you and how comfortable you are... maybe dig into the code mode, see how many other people are using it, are they maintaining it. Beta is just a label... Gmail was in beta for years and people were using it like crazy haha.
Hello, I would love some help. Currently, my nextjs application does not redirect to stripe checkout when I make the request. I do not know where the problem is, Any ideas?
Very good video, thank you very much for your work
Thanks very much Florian!
Hi Leigh. Everything works great on my end until I click buy and get an unhandled runtime error. Something with the createStripeCheckout function but I can't figure it out. Any ideas?
It is something with the API key. The message says I need to provide Authorization: Bearer to the API key but still can't get it to go through.
Whew fixed the issue. Had to change "secret_key" to "stripe_key" in the [...nextstripe].js file.
I'm getting a 401 error when attempting to purchase an item in development (untested in production). Double checked api keys, etc. Not sure the solution or if it's an issue with the next-stripe package.
Debug the request and make sure it is sending up the correct keys… honestly not sure though :)
Thank you for this explanation. I got the same results as you in my local environment, but when I published this same thing to Vercel, Stripe is telling me that "something went wrong" once the checkout session is loaded. Is this same thing happening to you? I checked all my environment variables and they seem correct, so I am at a loss as to how this can work in my local environment but not on Vercel.
Love you
So the products actually comes from stripe and not from our own database?
In this case yes :)
Check out my new course called Next Level Next.js! A full stack course covering GraphQL, TypeScript, Apollo, Prisma, auth and lots more! next.leighhalliday.com
There is an issue with installing the stipe dependencies mentioned in the video
Hey Husain! What was the issue? Did you get it figured out?
NICE!!!
Thanks Michael!!
Thanks.
You're very welcome!
Wish there were more tutorials like this but for Braintree or Paddle (for Paypal support).
Sounds like a good idea for a future video :D
Make a video with Paypal too please
first comment :D
You did it Mario!!
@@leighhalliday thank you Leigh for everything , is it possible to add a file-uploader tut in next js in production ?
I accidentally clicked on this video, so while I am here I will express my absolute disdain for the flaming piece of garbage that is javascript.