Build a shopping cart with Laravel Cashier and Vue

  Рет қаралды 48,292

Andrew Schmelyun

Andrew Schmelyun

Күн бұрын

Пікірлер: 114
@aschmelyun
@aschmelyun 4 жыл бұрын
Check out the full source code in this video here: github.com/aschmelyun/laravel-vue-stripe-cashier
@nilmendes7710
@nilmendes7710 4 жыл бұрын
Thank you for your support.
@aminraeisi
@aminraeisi 3 жыл бұрын
Premium content. The first section (setting up the vue/vuex in Laravel as SPA) can turn into a good starter command/preset especially now that people have to decide between new Livewire/Inertia or the good old blade/vue.
@uniqueprogramming5299
@uniqueprogramming5299 3 жыл бұрын
I was always afraid of payment but you make it look like extremely easy. Thanks man for this amazing content. Please next upload subscription with cashier.
@fizoul356
@fizoul356 4 жыл бұрын
Sir, you are a treasure, thank you very much for these videos, I have never watched a tutorial that is that organized, fast, and simple as this one, I have learned a lot in a short time, plus you write nice clean code with good practices, and we can see how much experience you have through that, much love and admiration
@aschmelyun
@aschmelyun 4 жыл бұрын
Thank you so much! That means a lot to me, and keeps me motivated to continue producing videos.
@fizoul356
@fizoul356 4 жыл бұрын
@@aschmelyun you are the most welcome, i hope i could help with more than words, respect
@Stevensherah
@Stevensherah 3 ай бұрын
I learn this In 1 calendar Year Computer Science with PHP MVC now with this other technologies in Just 1 hour Thanks man😮😢
@apptimegr
@apptimegr 3 жыл бұрын
Premium content. Just to the point. Nicely made! 👏
@davidrowlands8548
@davidrowlands8548 3 жыл бұрын
For people who got an error around the 11 minute mark because of Str::slug($name). The video did not show that the module was being imported because it is done automatically in his editor. You need to import the Str module at the top of the file: use Illuminate\Support\Str; so that your code looks like this: use App\Models\Category; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str;
@davidrowlands8548
@davidrowlands8548 3 жыл бұрын
In fact, in quite a few places he is using modules that are automatically being imported at the top of a file. So if you're not using php storm you will get errors. So beware.
@alexlytle089
@alexlytle089 3 жыл бұрын
This dude is the fastest typer i have ever seen
@joshbarros1995
@joshbarros1995 3 жыл бұрын
Thanks for this awesome video!!! Now I'll figure out how to install IUGU (Brazilian Payment Gateway) on a Laravel / NuxtJS project ;)
@pradeepspace3
@pradeepspace3 4 жыл бұрын
Wow Andrew, This is a fantastic content. Thanks for sharing this video 🙂
@nilmendes7710
@nilmendes7710 4 жыл бұрын
This tutorial is excellent, it helped me a lot. I believe that I can use this tutorial to understand, implement other means of payment. I have a request, if possible more tutorials on vuejs, I believe they will be excellent as well as all the other tutorials on your channel. Thanks!
@TysonLondon
@TysonLondon 4 жыл бұрын
This is some A+++ Content here! Thanks :) I love the speed of this video too!
@juicydruc2755
@juicydruc2755 3 жыл бұрын
Wow brother thank you for this video truly help me out you my friend are a genius. And to think I was almost doing it right, humbly saying I'm pretty proud of myself actually . I was just missing a couple key components that use shine light on , it all makes sense now. thank you
@peterbraganza441
@peterbraganza441 4 жыл бұрын
Amazing video, so concise and to the point. Love It....more videos like these please !!!.
@JohnnyBigodes
@JohnnyBigodes 4 жыл бұрын
I know that for learning it is better to type everything by myself, but on this video you could really use the autocompletion of PHPStorm, so that new people on your channel is not bothered to see you typing everything. That would also show the power of the autocompletion in PHPStorm. With autocompletion I mean: - HTML scaffold - Autocomplete classes - Import class namespaces and so on.
@mel-182
@mel-182 2 жыл бұрын
Is there a way to autofill the card details on the card element? I am storing the card details in my database.
@igerardogc
@igerardogc 4 жыл бұрын
Excellent video, what IDE did you use to develop that app? And what plugin do you use for the html tag breadcrumb.
@bergglobus2428
@bergglobus2428 3 жыл бұрын
Based upon the folder icons and error labels and foldable code symbols, I think he is using some kind of Intellij product with the extension material UI or material UI light and material icons installed, so he can use one of the rlly cool dark themes. So I guess it's phpstorm. I use intellij Idea and I love the IDE, sadly my bos does not want to pay for phpstorm (yet)
@stojankukrika7242
@stojankukrika7242 4 жыл бұрын
Andrew, would you like to share this awesome code on git? It will be easy to follow and some parts double-check.
@aschmelyun
@aschmelyun 4 жыл бұрын
Of course, I knew I forgot to do something! Check out the pinned comment for the git repo.
@stojankukrika7242
@stojankukrika7242 4 жыл бұрын
@@aschmelyun Thank you for reading the comments and for this repo! Wish you all the best in new 2021 year ;)
@aschmelyun
@aschmelyun 4 жыл бұрын
@@stojankukrika7242 I always read the comments! It keeps me inspired. You too!
@faizanakbar7175
@faizanakbar7175 3 жыл бұрын
I have done exactly everything from the video but the summary page won't load. I checked stripe, it is getting successful requests under 'Developer' tab but nothing in payments. I have done exactly the same from the video, I copied the code when the transaction wasn't taking place and still no use. Its been 2 days and I cannot figure it out. I checked console log and it shows some error regarding 'reduce'.
@NyloXD
@NyloXD 3 жыл бұрын
hey mate. i am having the same problem. Was you able to fix it?
@faizanakbar7175
@faizanakbar7175 3 жыл бұрын
@@NyloXD No man, I wasn't able to fix it.. let me know if you found out the solution
@NyloXD
@NyloXD 3 жыл бұрын
@@faizanakbar7175 sure mate, if i find the solution i will keep you posted.
@NyloXD
@NyloXD 3 жыл бұрын
The problem is from the Checkout.vue to the Summary.vue. The Summary is not receiving the 'order' object. I dont know how to fix though
@faizanakbar7175
@faizanakbar7175 3 жыл бұрын
@@NyloXD Yes initially I tried to look into it, but I still couldn't find the solution. That's when I commented here, I checked the codes too and it's same..
@LinhPham-iu2fr
@LinhPham-iu2fr 4 жыл бұрын
Thank your for the video. Can I ask a question. How can I setup the terminal inside phpstorn that has command completion like you?
@jtech04
@jtech04 2 жыл бұрын
AWesome, Please make again this video in Laravel and blade
@dailypromos6477
@dailypromos6477 2 жыл бұрын
You are amazing, Thanks you for this worthy tutorial keep going!
@flutter643
@flutter643 2 жыл бұрын
what if the base route has a segment? How do I provide vue routes in the routes js file ?
@8693alenieto
@8693alenieto 3 жыл бұрын
Which extension makes the arrows like that?
@hevityaus631
@hevityaus631 3 жыл бұрын
Working perfectly, thank you so much for this video!
@DanyAguilar
@DanyAguilar 3 жыл бұрын
Saving millions of salaries this year with this video lol
@aschmelyun
@aschmelyun 3 жыл бұрын
Lmao!
@muhammadbasil8698
@muhammadbasil8698 2 жыл бұрын
Good work sir 🙂
@JJ-ot3ps
@JJ-ot3ps 2 жыл бұрын
this is very good tutorials! I am wondering does vue work with django as I never work with laraval befroe though? do you also have any more how vue frontend turotrial like design navbar etc?
@aschmelyun
@aschmelyun 2 жыл бұрын
Yes, Vue is known as "backend agnostic" meaning that it doesn't matter what backend framework you use, it should work! Django, Flask, Express, WordPress, all can work. I have a few older frontend tutorials for Vue, but not a lot. Planning on adding more soon though!
@JJ-ot3ps
@JJ-ot3ps 2 жыл бұрын
@@aschmelyun that would be great! would love to see how vue vite work with django too, I see axios is the only way to connect them, not sure if that is best way though.
@ЕвгенийЕвгений-з2с
@ЕвгенийЕвгений-з2с 3 жыл бұрын
Hi, what font do you use in ide?
@denisgaraux
@denisgaraux 3 жыл бұрын
Nice tutorial. But how to implement SCA and 3D secure?
@effhamather7660
@effhamather7660 3 жыл бұрын
at 6:36 he said each product belongs to many catagories which i think is wrong because each product can only belong to a single catagory
@franksmith2324
@franksmith2324 3 жыл бұрын
It depends on your project structure, you might want something like tags, so he is right, a single product can belong to many categories
@eli007s
@eli007s 3 жыл бұрын
how do you keep the cart items on page refresh?
@Rakshaara
@Rakshaara 3 жыл бұрын
Hi is it okay to calculate total amount in frontend ? I think you are requesting amount from frontend, right?
@musawirhussain1926
@musawirhussain1926 2 жыл бұрын
Error in cents. Hello, I am seeing the amount I am charging isn't the same on stripe. I charged for 420 EUR and on the stripe, it shows 4Eur. please help me with this
@assoftTR
@assoftTR 3 жыл бұрын
This video saved my day. Thank you Andrew!
@mukangangugi9930
@mukangangugi9930 3 жыл бұрын
A very nice tutorial. I checked for the code in your github but you just did initial commit. kindly update it for cross-checking
@reavielx
@reavielx 2 жыл бұрын
I developed my app with help of this great tutorial but wondering now, why body request with sensitive data like credit card details are visible in browser devtools? It's not safe. Is there a way to handle that safety issue?
@dfordemo981
@dfordemo981 2 жыл бұрын
super awesome, thanks for the good better best content, huge like from Pakistan
@Ramziddin_Rustamovv
@Ramziddin_Rustamovv 2 жыл бұрын
Hi , good , but i have a question about credit card , after paying some amount of 💸 money , it give me Purchase ID , costomer should screenshot this or not becouse they share us when they visit at shop -> this is a first question. Second one is after paying method finished , credit card may lost some amount of money that puted into input field . Please answer those . I will wait . Bye 🤝☺️
@andrewang707
@andrewang707 3 жыл бұрын
Anybody knows what plug-in Andrew uses to show the parameters’ type automatically in the code?
@boxfreshpidge
@boxfreshpidge 3 жыл бұрын
It's not a plugin its automatic in Php Storm which is the IDE he is using
@fatimabartels7447
@fatimabartels7447 3 жыл бұрын
I get error from in my index.vue :
@bryanjadeloplop3074
@bryanjadeloplop3074 3 жыл бұрын
i think you need to add :key for this. as for me I added :key="category.id"
@aschmelyun
@aschmelyun 3 жыл бұрын
That is correct, for Vue it will probably throw an error unless you include the key attribute above.
@jai256
@jai256 3 жыл бұрын
I tried following this, but the credit card form does not appear. I don't know whats wrong
@mohammadalhajali2899
@mohammadalhajali2899 3 жыл бұрын
Thank you so much for this video. I am using it but i have problem in adding user auth (register, login, confirm email). Could guide me to add auth pls
@thebirdhasbeencharged
@thebirdhasbeencharged 4 жыл бұрын
Damn what's with the random spam comments? Anyways perfect timing with this was I had planned to do this this weekend!
@aschmelyun
@aschmelyun 4 жыл бұрын
Yeah, they always seem to pop up with every new video. Glad I got this published just in time, then!
@pad6y639
@pad6y639 3 жыл бұрын
thanks for the video. everything worked in dev, however when i deployed my demo with strip still in test mode. when i do npm run dev and then deploy the strip still works but as soon as i do npm run prod and deploy i get 'IntegrationError: Missing value for Stripe(): apiKey should be a string." Any suggestion as to why would be appreciated. Even when i hard code the key in it still doenst recognise it despite being a string..
@fatimabartels7447
@fatimabartels7447 3 жыл бұрын
How to add an image to this? coz its all blank image.. thank you
@elikarkanane9643
@elikarkanane9643 2 жыл бұрын
Great, many thanks... premium course
@jigarkumar9073
@jigarkumar9073 3 жыл бұрын
Great tutorial, you saved my time. 👏 👏 👏
@jpandagaming5995
@jpandagaming5995 9 ай бұрын
"A `return_url` must be specified because this Payment Intent is configured to automatically accept the payment methods enabled in the Dashboard, some of which may require a full page redirect to succeed. If you do not want to accept redirect-based payment methods, set `automatic_payment_methods[enabled]` to `true` and `automatic_payment_methods[allow_redirects]` to `never` when creating Setup Intents and Payment Intents." Please help...
@andrewang707
@andrewang707 3 жыл бұрын
When I do products.find(product => product.slug === route.params.slug); Sometimes the data is loaded, and sometimes not. Does anyone know the reason? I suppose it'd be something related to the lifecycle as the Products/Show page is loaded before the find() function is done. It may be because I have over 700 products in the database. Any possibility that I can ask the page to wait until the find() function is done?
@sodiqabdullaev7661
@sodiqabdullaev7661 3 жыл бұрын
Yo bro spot on 👍 . Perfectly done
@SaeedNeamati
@SaeedNeamati 3 жыл бұрын
what is your IDE?
@quantumcd1045
@quantumcd1045 3 жыл бұрын
looks like PHP storm from jetbrains
@muhammadaminudinbahtiar6847
@muhammadaminudinbahtiar6847 3 жыл бұрын
thanks andrew. your content very best
@fatimabartels7447
@fatimabartels7447 3 жыл бұрын
Hello Sir, I want to put a product manually, not through API, how will I do that? this is really a good tutorial!
@kristiyan.zhelyazkov
@kristiyan.zhelyazkov 2 жыл бұрын
Why don’t you adding foreign keys anywhere?
@andrewho1700
@andrewho1700 3 жыл бұрын
Awesome video ! Totally what I need Thanksss
@fatimabartels7447
@fatimabartels7447 3 жыл бұрын
Hello Sir, I am new to Laravel and I am a student having exam in Laravel, So we have to make a project. I already have one but I wanna add this to my project. how will I put it in my route and navigation? since this is already one project. I know this is a very stupid question but hopefully you can answer me. Thanks a lot!
@aachdev8052
@aachdev8052 3 жыл бұрын
Keep Going Please Make More Videos
@ilijatatalovic
@ilijatatalovic 4 жыл бұрын
Thank you Andrew for great video.
@huyphamuc6372
@huyphamuc6372 Жыл бұрын
It's okay, I don't like the SPA UI structure much. Expected header and footer as a component. Great work overall
@MrJoboski
@MrJoboski 2 жыл бұрын
Wonderful tutorial!
@noID457
@noID457 3 жыл бұрын
The price should also be denormalized since we can later sell a product for a different price
@vepamirzayev
@vepamirzayev 2 жыл бұрын
Useful Content Thanks.
@soniablanche5672
@soniablanche5672 2 жыл бұрын
shouldn't you recalculate the total price on the backend instead of blindly accepting it from the front end ? can't you just set it to 0$ in the front end ?
@marcinmaj3609
@marcinmaj3609 3 жыл бұрын
Please the same with react
@3clipse911
@3clipse911 3 жыл бұрын
Thank you so Much Andrew
@Paul-oz5se
@Paul-oz5se 3 жыл бұрын
Hello Andrew, very nice tutorial. Can you add video tutorial on how to upload image file using laravel and vue?Thank you
@aschmelyun
@aschmelyun 3 жыл бұрын
Sure thing! I'll be sure to add it to my list.
@marcinmaj3609
@marcinmaj3609 3 жыл бұрын
Maybe nextjs with laravel cashier subscriptions
@marcinmaj3609
@marcinmaj3609 3 жыл бұрын
Continue this video and add subscriptions plan🤘
@uchchhash-dev
@uchchhash-dev 3 жыл бұрын
Thank you very much for the content
@edsonrodsilva
@edsonrodsilva 3 жыл бұрын
Very Good! Congratulation!
@AllinOne-qc5it
@AllinOne-qc5it 4 жыл бұрын
Great video, thanks
@GerardLC
@GerardLC 4 жыл бұрын
this is gold
@eugenbelousov5027
@eugenbelousov5027 3 жыл бұрын
great tutorial
@perfect.stealth
@perfect.stealth 3 жыл бұрын
Thanks for this useful tutorial. However some things you do is very bad practice. No product SKU (slugs can change) The customer data should be stored as a profile and not in the users table. Using relationships from product to order isn't smart either, in case a product is deleted the order will be wrong.
@allandacasin9041
@allandacasin9041 3 жыл бұрын
Thank you!
@RyuBateson218
@RyuBateson218 Жыл бұрын
Thanks!
@EricAmigo
@EricAmigo 3 жыл бұрын
brayta nimo kol oi
@hamidreza-mozhdeh
@hamidreza-mozhdeh 2 жыл бұрын
Awsome
@gradientofsky5589
@gradientofsky5589 3 жыл бұрын
awesome
@SebastianPerezG
@SebastianPerezG 3 жыл бұрын
Good
Getting started with Laravel Breeze and Jetstream
28:07
Andrew Schmelyun
Рет қаралды 12 М.
Building a shopping cart app with Laravel, Vue + Stripe
1:20:24
Andrew Schmelyun
Рет қаралды 5 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
StripeDev Live - Laravel Cashier
49:27
Stripe Developers
Рет қаралды 1,6 М.
Get started with Laravel events and listeners
15:37
Andrew Schmelyun
Рет қаралды 20 М.
Authentication in Vue using Laravel Sanctum
23:06
Andrew Schmelyun
Рет қаралды 72 М.
Stripe Complete Checkout Process in Laravel
1:03:36
The Codeholic
Рет қаралды 55 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 111 М.
Vue JS Crash Course
1:50:52
Traversy Media
Рет қаралды 1,3 МЛН
I built an app using a single index.php file, here's how it went
32:42
Andrew Schmelyun
Рет қаралды 91 М.
Build A Ride Share App: Full Stack Tutorial with Laravel and Vue
4:12:53
Andrew Schmelyun
Рет қаралды 81 М.
Laravel Stripe Checkout tutorial | VueJS
23:52
Matt Socha
Рет қаралды 13 М.