Тёмный

Build a Stripe Checkout with Next.js 13 

Brett Westwood - Software Engineer
Подписаться 9 тыс.
Просмотров 23 тыс.
50% 1

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 118   
@bstoynov
@bstoynov 10 месяцев назад
This man single handedly saved Stripe because they're too lazy to update their docs for Next.js 13 ❤
@brettwestwooddeveloper
@brettwestwooddeveloper 10 месяцев назад
Thank you so much Bobby!
@maxskewes
@maxskewes 10 месяцев назад
So is Nextjs...
@michamichalik9719
@michamichalik9719 4 месяца назад
I'm mobile dev trying to learn web development and I struggled for so long with Strip checkout. Finally managed to implement it thanks to this video. Awesome content!
@KriszX12
@KriszX12 9 месяцев назад
Creating the UI wasnt so important (for me) but you did it boss and I do think it is important for many of us devs. Very useful content thank you.
@brettwestwooddeveloper
@brettwestwooddeveloper 9 месяцев назад
Thank you Kris for tuning in! Appreciate it!
@ccccssss-df
@ccccssss-df 10 месяцев назад
Thank you so much for posting this video. I'm using Stripe for the first time in my side project, and it was challenging to implement. But thanks to you, I was able to apply it smoothly.
@1medotube
@1medotube 11 месяцев назад
thanks alot! your video really helped me, Stripe documentation is not the best but you made it easy, thank you keep going!
@brettwestwooddeveloper
@brettwestwooddeveloper 10 месяцев назад
Glad it helped! Those Stripe docs can be confusing when it comes to Next.js
@t.r.prakash6784
@t.r.prakash6784 4 месяца назад
Wow...thanks a lot for this tutorial...by the way tip for nextjs 14 users: use server actions instead of traditional route handlers
@brettwestwooddeveloper
@brettwestwooddeveloper 3 месяца назад
Yes correct! Server actions are recommended over API routes.
@Wolf0909
@Wolf0909 9 месяцев назад
Thank you so much for this! I am new to NextJS and have been fighting with making this work on my own. Your video was super clear and extremely helpful! Liked and subbed :)
@brettwestwooddeveloper
@brettwestwooddeveloper 9 месяцев назад
Thank you so much! That is awesome you are starting out with Next.js! Great framework to use
@gauravsharma4994
@gauravsharma4994 Год назад
Bro all of ur videos are so helpful and easy to understand.I can even watch them in 2x . PLEASE make more videos on Next js.Thank you for such awesome content and if possible make authentication on next js with mongodb without prisma.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Thank you for the kind words, coming out with a fetching data in NextJS 13 video and more
@jacopopaccioretti2331
@jacopopaccioretti2331 7 месяцев назад
I would like to add 1000 thumbs up. Thank you so much for this tutorial.
@brettwestwooddeveloper
@brettwestwooddeveloper 7 месяцев назад
No problem! Thanks for tuning into my channel!
@glauberbispo8922
@glauberbispo8922 10 месяцев назад
Thanks you help me a lot, to have an idea about how I implemented, you're really tallent when it comes to teach
@brettwestwooddeveloper
@brettwestwooddeveloper 10 месяцев назад
Happy to help! And thank you!
@mzafarr
@mzafarr 5 месяцев назад
Amazing videos Brett!
@brettwestwooddeveloper
@brettwestwooddeveloper 5 месяцев назад
Thank you!
@Rikimkigsck
@Rikimkigsck 9 месяцев назад
I just love how you try to explain everything. You are a great teacher. Liked and subbed
@rhh1090
@rhh1090 7 месяцев назад
Dude this was super helpful, thank you so much!
@brettwestwooddeveloper
@brettwestwooddeveloper 7 месяцев назад
Glad it helped!
@SauravPant
@SauravPant 10 месяцев назад
Thank you for the amazing explanation, Brett
@brettwestwooddeveloper
@brettwestwooddeveloper 10 месяцев назад
No problem you are welcome! Thanks for tuning in!
@radar_raps
@radar_raps 7 месяцев назад
I was following along up until the last bit. There's a form that the users fill out which picks the membership type. I was submitting this membership information to a sheets doc, however when I added stripe, it messed up how my data is saved and instead I get 500 internal errors. Any ideas of how I should do this and work with the flow that I want to implement?
@maxskewes
@maxskewes 10 месяцев назад
Hey, really appreciate the tutorial - got me really far. I called the product object api instead of the price by changing the GET method, but I need a picture, description, title, and price and this data is spread between the product and the price objects. I can find no way to set product. default_price (stripe's docs lead to a nebulous or non-existent endpoint) so it appears I need both objects to display all necessary data in one card on the site. So is there one all-encompassing object that I can get with all data (I can't find one)? Or do I need to call both, in which case I need to link them though the same product does not share an id common to both the product and the price obj. Any help on which direction to go would be much appreciated and thanks again for the concise tutorial.
@leonardomoura9770
@leonardomoura9770 6 месяцев назад
One question: it works on localhost, in production it does not display the "Elements" (form), why?
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
You are using the Elements from Stripe? and if so make sure you are using the stripe secret and publishable key
@ezehbomote6384
@ezehbomote6384 11 месяцев назад
Yo you play AOE 4, that's really dope. your desktop app clutter really gave me pause for a sec there tho😅😅. Loving the video so far.
@brettwestwooddeveloper
@brettwestwooddeveloper 11 месяцев назад
Thanks for tuning in! And yes I do play AOE4, do you? Yea my desktop has been recently cleaned up it was giving me anxiety as well
@diwanshuji947
@diwanshuji947 6 месяцев назад
Amazing and Very Helpful Video
@brettwestwooddeveloper
@brettwestwooddeveloper 6 месяцев назад
Thank you!
@jonathanpodvin5727
@jonathanpodvin5727 10 месяцев назад
Hey guys, does it work with a simple "total" / "amount" ? Or I have to create a "product" for every single product from my database ?
@tonysanchez1000
@tonysanchez1000 Год назад
Awesome video. If you hit Alt+z in vscode, it will wrap the line so you dont have to scroll to the right to see the whole line.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Thank you for tuning in! and yes I don't know why I didn't do that
@tonysanchez1000
@tonysanchez1000 Год назад
The video is a really good tutorial on how to get involved with stripe. The stripe documentation is not so great, as you pointed out, but watching the video, I can tell you put a lot of time into creating this tutorial. Thanks man.@@brettwestwooddeveloper
@rajanlagah4529
@rajanlagah4529 Год назад
Great video. I have learnt so much.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
I am glad you did!
@mdshalimsadman2614
@mdshalimsadman2614 Год назад
when I click on the button, the following runtime error is coming: 1 of 1 unhandled error Next.js (13.4.5) out of date (learn more) Unhandled Runtime Error AxiosError: Request failed with status code 500 Call Stack AxiosError node_modules\axios\lib\core\AxiosError.js (22:0) settle node_modules\axios\lib\core\settle.js (19:0) onloadend node_modules\axios\lib\adapters\xhr.js (107:12)
@seyitylmaz192
@seyitylmaz192 Год назад
I wondered about something. Do we need to write the api part to bring our data on Stripe? Couldn't we bring our data in the client part? By the way, I can say that it is a great video
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Thanks for tuning in and yes this needs to be in an API
@dyrnacht
@dyrnacht Год назад
That was incredibly helpful. Thank you!
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
I am glad I could help!
@sevprogramming
@sevprogramming Год назад
thanks bro very informative and straight forward
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
You are welcome! Thanks for tuning in!
@tonyjaradev
@tonyjaradev Год назад
Awesome! Thank you
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Thank you!
@MortalTechInsights
@MortalTechInsights Год назад
Very effective content. Please continue this kind of content also I want to know how to build a saas and setup free trail. You can continue this series and effectively see your growth because there are less tutorial about next 13 and app router. So, please create videos like this. Thanks for helping me buddy ❤
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Will do!
@learnwithfunwithrana
@learnwithfunwithrana 2 месяца назад
Can i save this all payment data to my database (MongodDB). How?
@brettwestwooddeveloper
@brettwestwooddeveloper Месяц назад
You would have to console log the the variable and I know you can save some info but not all of it.
@SakibAnsari-e3j
@SakibAnsari-e3j 8 месяцев назад
I have deployed the project on Vercel but when I Checkout to Stripe Payment I got error 405 Method not Allowed can you tell me how can I fix this issue Locally it's wokring fine only issue I got on Live Version.
@brettwestwooddeveloper
@brettwestwooddeveloper 8 месяцев назад
could be a few things. Did you update the env variables inside of vercel on your project page? Also, did you use the secret key from stripe that is in production and update the URL to the production URL
@SakibAnsari-e3j
@SakibAnsari-e3j 8 месяцев назад
​@@brettwestwooddeveloper Hi, thank you for your response. I've included the Stripe Secret Key, Stripe Publishable Key, and Production URL. Could we connect on another messenger briefly? I could really use your help to resolve this issue. Thanks a lot.
@brettwestwooddeveloper
@brettwestwooddeveloper 8 месяцев назад
join my discord and send me friend request @@SakibAnsari-e3j
@Dongnutla
@Dongnutla Год назад
Thanks, bro. That's pretty nice
@brettwestwooddeveloper
@brettwestwooddeveloper 11 месяцев назад
Glad you like it
@ayoubkhatouri2095
@ayoubkhatouri2095 Год назад
Thank you for the tutorial. I'm a bit confused about where the money goes after a successful payment.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
the money goes in your stripe account and you link a bank a=account to stripe
@ayoubkhatouri2095
@ayoubkhatouri2095 Год назад
@@brettwestwooddeveloper Got it, Thank you so much.
@OganicaBean
@OganicaBean Год назад
Thank you very much! Your video helped me a lot.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
No problem! Glad I can help!
@mdshalimsadman2614
@mdshalimsadman2614 8 месяцев назад
Please make a video on how to verify stripe payment using session ID
@DanielClipsTVS
@DanielClipsTVS Год назад
Hey bro. How do you track if a user has paid for a particular product ?
@brettwestwooddeveloper
@brettwestwooddeveloper 11 месяцев назад
This will be done through Stripe's dashboard. It will show you what they paid for.
@elmurodtadjibayev3212
@elmurodtadjibayev3212 10 месяцев назад
Bro thank you for video, If I turn off test mode, I can accept money for real?
@rhh1090
@rhh1090 7 месяцев назад
Both of my products have a name in Stripe (obviously) but the nickname field comes through as null. Any ideas? TIA
@brettwestwooddeveloper
@brettwestwooddeveloper 7 месяцев назад
You have to manually give it a nickname in your Stripe dashboard. So, if you are getting everything back and the nickname is null then you haven't created a nickname
@rhh1090
@rhh1090 7 месяцев назад
@@brettwestwooddeveloper thanks for the reply. How do I do this mate? I can't see the nickname field anywhere in the Stripe dashboard/settings.
@rhh1090
@rhh1090 7 месяцев назад
Found it. Update price > Advanced > Price Description
@ekchills6948
@ekchills6948 Год назад
You always have what I'm looking for (:
@jss_developer
@jss_developer Год назад
im having issues accessing the payment data and assigning it to a db attached to a User OBJ. that then has to check if subscription is activeor not.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Can you send me some of the code so I can try to debug it, I can invite you to a discord server or you can email. Which do you prefer?
@jss_developer
@jss_developer Год назад
@@brettwestwooddeveloper heeey thanks for the response, I actually figured it out . I placed a web hook on my app and added it to stripe webhooks. They have a easy to use playground and testing environment. Thank you for the response! Your one of few ppl that actually reply to help! Thank you
@AnandIyer
@AnandIyer Год назад
Great video. It would be good include Supabase as the backend to sync customer information, subscription type i.e. Free, Premium or Enterprise for recurring subscription
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
I will definitely look into making that video. Thanks for the idea and support!
@rayyazdi7744
@rayyazdi7744 Год назад
Hey Brett can you do a simple full-stack with auth and ecommerce?
@speedster784
@speedster784 Год назад
will this be the same for reocurring prices?
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
just change mode to subscriptions instead of payment. Also, in Stripe dashboard have payment reoccuring
@dreamtheater_92
@dreamtheater_92 8 месяцев назад
How do your secrets remain secret when you deploy this static site to say S3?
@brettwestwooddeveloper
@brettwestwooddeveloper 8 месяцев назад
you would just store in env file and I know S3 even has further security that I think is a monthly fee
@mariummagdy4359
@mariummagdy4359 Год назад
great video thank you
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
No problem! Thanks for tuning in!
@goodstuff2read
@goodstuff2read 5 месяцев назад
Does anyone have a tutorial for doing your own products? kind of stuff on the return_url and its purpose
@hgizem
@hgizem 8 месяцев назад
Awesomeeee!! Thank you
@jackepner9984
@jackepner9984 9 месяцев назад
I don't understand these tuts... it just goes to the Stripe payment page... you could literally do this with a single link.
@brettwestwooddeveloper
@brettwestwooddeveloper 9 месяцев назад
I mean you aren't wrong, you can actually just use the link in an anchor tag
@blackpurple9163
@blackpurple9163 Год назад
Hey, I have a request, make a full stack app project in NextJs 13.3 for people who are coming straight from react and have never learnt Next js 12 (I did isse NextJs 12 but it's redundant now) Because NextJs 13 is so new for us beginners that the only way to learn it properly is to make a project ( a project with lots of api handling and backend stuff that a typical junior react developer will use in a small project in a company) I don't see a lot of people making such projects yet that explain how handling api calls differs from normal React + node/express setup
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
okay will do
@blackpurple9163
@blackpurple9163 Год назад
@@brettwestwooddeveloper thanks a lot, btw I liked your sidebar video, very clear and concise, generally I don't like long videos but that one was very good, and if possible always implement some accessibility features like aria-labels and roles in your components, not too many just the basic ones that will let screen reader users navigate the website
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
@@blackpurple9163 I don't have a sidebar video.
@blackpurple9163
@blackpurple9163 Год назад
@@brettwestwooddeveloper This one bro Side navbar ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8s4DK5PkRNQ.html
@blackpurple9163
@blackpurple9163 Год назад
@@brettwestwooddeveloper ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8s4DK5PkRNQ.html This
@filipjnc
@filipjnc Год назад
Why not make use of the app dir and make "Pricing" an RSC fetching the prices server-side. Doing it in an useEffect is highly inefficient, not rendered on the server, no SEO, etc.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
you are correct it would be more efficient.
@xiiEJRAM
@xiiEJRAM Год назад
tyyy so much , this is so helpful , please we need source code
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
source code will be updated in description
@jesusvazquez527
@jesusvazquez527 Год назад
Thank you
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
You are welcome!
@afaqahmad8918
@afaqahmad8918 Год назад
Kindly zoom in while video making
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
I did, what device are you watching on and what specific part is hard to see?
@QtheCoder
@QtheCoder Год назад
Just bigger font size
@ziacodes
@ziacodes Год назад
👋Hey Brett, Wanna play Fortnite sometime? 😅
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
I'm down
@ziacodes
@ziacodes Год назад
@@brettwestwooddeveloper Do you play on Middle east server or us one?
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
@@ziacodes US
@sadique_x_
@sadique_x_ 7 месяцев назад
Is it my eyes or the man's page isn't pure white
@brettwestwooddeveloper
@brettwestwooddeveloper 7 месяцев назад
Might be your screen settings
@kechicheyounes78
@kechicheyounes78 Год назад
Bro thanks a lot , just save me with the window.locate.assign() ! I was fighting with the Cors so nice tips thank you really great and helpful content 👌
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
no worries! Glad I can help!
@sadique_x_
@sadique_x_ 7 месяцев назад
please focus on the stripe part rather than the styling part next time man!
@brettwestwooddeveloper
@brettwestwooddeveloper 7 месяцев назад
Time stamps
@gabriel_lk
@gabriel_lk Год назад
BROOO ty so much, the window.locate.assign() save my life!
@juicyberg
@juicyberg Год назад
Legend.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Thank you!
Далее
Next.js 14 Tutorial | Routing & Navigation
6:49
Просмотров 1,1 тыс.
The Ultimate Guide to Next Auth - Everything You Need
1:36:26
I Built A Startup in 1 Month (SaaS)
19:43
Просмотров 1,5 тыс.