How to integrate Stripe Checkout with Node.js
Вставка
- Опубліковано 30 лис 2024
- In this video, we're gonna learn how to integrate the Stripe Checkout with a Node.js project.
We're gonna use Express, EJS and the official Stripe module to create a simple page with some products that will lead the buyer to the Stripe Checkout page and then complete the payment by passing the card details and shipping address.
🔗 GitHub Repository:
github.com/man...
I've been looking for someone to explain the process for a newbie like me, and you were the first person to actually go in depth and explain what you're coding. Great video, you helped me a lot.
Thank you for the comment my friend.
Glad I could help 🤜🏻🤛🏻
@@manfraio Whats up man. How would you go about adding CSS? I made a CSS file and linked it to the index.ejs file but it would not work. Thanks
@erikaspetrauskas8251 you have to make the directory where the css file is, public for the browser.
For example, imagine you have a folder called “public”, where the css file is.
So on the index.js file, you have to make the public folder available for the frontend, so you can add this line of code:
app.use(express.static('public'))
Then on the index.ejs file:
@@manfraio Thank you so much!
Love it. Can you make more video like this on more advanced stuff in node pleasee!! You are very clear.
great!!! thanks! really appreciate your good vibe and excellent tutorial!!
Thank you for this video, really helped me. The best video for implementing Stripe checkout. All the best ! Subscribed !👍
Thank you🤜🏻🤛🏻
Great work. Please make a detailed video on stripe subscription in nodejs as I didn't find great content on youtube regarding.
Yes, there will be two Stripe videos next.
One about Stripe connect and the other, about Stripe Subscription.
Thanks. great simple explanation
Great great tutorial ❤ you got a new subscriber my bro ❤
Thank you 🤜🏻🤛🏻
I think there's a gap in UA-cam for content that puts focus in the production environment, with best practices and procesures explained in detail and the why's of them. I am (and probably a lot of your viewers) in that stage of putting out there my own projects, and being fully self taught I find it hard to know/learn the hows or find easy, quality content regarding production ready projects. I'd love that you keep giving the valuable insights that you include in your videos. Keeping a part of your focus in that is gonna make your videos blow, for sure! You got my subscribe, thank you so much for your effort and great work! I stumbled across your channel today and got this weird feeling that you are exactly explaining what I needed (Isn't it magic when that happens?) Keep it up brother 🫶
Thank you very much my friend 🤜🏻🤛🏻
Very helpful video, thank you!
THANK YOU! Great explanation bro, +1 sub
Thank you🤜🏻🤛🏻
@@manfraio 👊. Can you make a video about possible risks on the frontend? I was thinking about what a malicious user can do with the requests
Great tutorial, thanks!
Excellent!!!!
Thank you so much.
Thank you. I want to know, can we use these implementations for another payment gateway?
It depends which payment gateway you want to use. Some of them it differs the way you have to implement.
TOP!!! great work!
Can stripe take a variable for its title of the item added to cart, or does it always have to be a string? I’m trying to figure out how to create the add to check out for variables imputed client side.
Yes it should accept.
thank u so much sir ♥ ♥
hey, thanks for the video. by the way i have a question, suppose we want to integrate payment through card but also save payment details so that next time when user comes to pay he does not have to fill his details and just clicking the checkout page should auto deduct the payment and redirect to successful page, is it allowed in stripe as i am not able to find content related to this.
Thank you.
Once you receive the session details on the success route, grab the customer id and save somewhere on your database for example.
Next time, when you create a session checkout, you can pass the “customer” property which expects a customer id (generated by stripe).
It will fill the checkout payment details with the last payment details.
If you want to build you’re own card form and save to a customer or charge, please check this video:
ua-cam.com/video/Gss3XDfjNKo/v-deo.html
I am not getting the url in my terminal
what should i do
Are you getting any data on the response? What is showing on the terminal?
@@manfraio no I am not getting any other data also , it just showing server started at 300o
Now it is showing invalid api key in terminal how to correct this?
Thanks bro ! Also i want to know how to redirect back to app after payment completed.
You can redirect directly to the page you want instead of redirecting to a success page.
Hey can you please make a video on stripe connect standard? so for an app like lyft where the app takes lets say 10%
Hey, sure. Probably on 2 weeks. I’m finishing a video for next week, and after that I’ll make one about stripe connect.
@@manfraio great thanks so much. I thin it will do well because there isn't much content on it on youtube + others would like to try and build the lyft type app where the marketplace takes a percentage and distributes to drivers, for example
I am a newbie in stripe, i have a doubt that when u click in checkout the payment page open, is it by default come or you have created this page?
Thank you so much for your content ❤❤❤
It comes automatically.
@@manfraio thank you sir, plz keep making other required videos to implement other features of stripe. Also plz keep making videos on other important features packages same way so can get benefitted 💕💕
Love from India 🇮🇳🎉🎉🎉
Thank you my friend.
There’s a video about how to create Stripe Subscriptions:
ua-cam.com/video/iUJ82_mVEVI/v-deo.html
And also how to create your own card form to collect payments or save to a customer wallet, using Stripe Elements:
ua-cam.com/video/Gss3XDfjNKo/v-deo.html
@@manfraio thank you sir
great men thank you very much ♥
Error: Cannot find module 'ejs' ??? please give me solution
When this error is happening? When you’re installing the module or running the application?
@@manfraio when running the application in first time.
@karanchavan-xx8fs are you seeing ejs installed on the package.json file?
I want to collect donations in my stripe account with two preset and one custom amount.how can i create a checkout session for that plz guide by making a video on this
Hey. We’re making several of videos about Stripe and donations will be on the way as well.
Are you from Brazil?
Sim 🇧🇷
Wha about making a live version?
In future videos we’ll publish a complete project with Stripe to production.
@@manfraio Thank for the content. this is amazing. please build custom component instead of redirecting to stripe checkout page
nice
é do braza meu mano? kkk
Sim rsrs🇧🇷
@@manfraio dalee 🇧🇷 lkls. Reconheci pelo sotaque
I just closed all my paypal accounts after struggling for 8y with their ass Documentation that is rarely up to date and mostly merges v1 with v2 in a total mess. (+ their website loads like ass; even though documentation is mainly text)
But today , was too much. I have 2FA enabled on account so imagine what happens when the SMS CODE is no longer coming.
Try to ask for help in support chat ? Nope, you need to be loggedin.
Try to call ? Robot handler.
Try on forums ? Nope, Paypal loggin.
Try to make new dummy account ? Nope, it requires phone number , that uses OTP code .. back to square 1, since their SMS does not work/is down.
I am locked out from account for 3days now. With no remedy in sight.
Thanks for the video. I knew Stripe integration was easier .. but damn , this is too easy.
Hi, one quick question... when I first run "npm init" and then again click enter in the terminal, it doesn't create the package.json file
okay nvm I got it now
Great. Sometimes you might have to refresh VSCode when using npm init for the package.json file to appear.