Laravel 5.2 PHP - Build a Shopping Cart - #10 Stripe Payments View

  Рет қаралды 50,136

Academind

Academind

Күн бұрын

Пікірлер: 44
@Duciito
@Duciito 8 жыл бұрын
"Uh, not strip, I'm not looking for any hot girls" - lol, brilliant :D
@academind
@academind 8 жыл бұрын
;-D
@sozp
@sozp 7 жыл бұрын
hi i have a question , how could you delete 1 quantity from that item with the action?, can you make a video about that or reply this message thank you.
@suryas9534
@suryas9534 7 жыл бұрын
Brilliant tutorial!
@academind
@academind 7 жыл бұрын
Thanks so much Surya!
@JirayuChartiyanon
@JirayuChartiyanon 7 жыл бұрын
Thank you, teacher
@academind
@academind 7 жыл бұрын
You're welcome! I'm happy to hear you're enjoying the content!
@shem2382
@shem2382 8 жыл бұрын
dude your a beast. i had no clue this is the lvl of detail one would need to be able to do this. I really appreciate this. keep doing your thing. i definitely check u out on udemy; if u ever get into ionic 2 then that will be awesome bro. your series on angular 2 is great. angular 2 and ionic 2 have many similarities so maybe one day u can do a few. I know angular 2 is still in beta, but im hoping they will release v2 this year or in the first quarter of 2017 i think it a great framework to learn. Thanks #beastmode
@academind
@academind 8 жыл бұрын
Many thanks for your amazing feedback and your suggestion - Ionic 2 is certainly very interesting :)
@DanFletcher90
@DanFletcher90 8 жыл бұрын
Now that's officially released NG2 tuts with Ionic would be awesome!
@ShahidFoy
@ShahidFoy 8 жыл бұрын
Hi friends I was reading the stripe docs and noticed a few changes but not many the code that Mindspace uses probably still works fine but you can also use 'data-stripe="cvc" or what not instead of using id's for the inputs here is what i did for the form Checkout Your Total: ${{ $total }} {{ Session::get('error') }} Name Address Card Holder Name Credit Card Number Expiration Month Expiration Year CVC {{ csrf_field() }} Buy Now! then in the checkout.js I just used the current stripe tutorials for Stripe.js here stripe.com/docs/custom-form#step-1-collecting-credit-card-information in the checkout.js i used this................................................... $(function() { var $form = $('#checkout-form'); $form.submit(function(event) { $('#charge-error').addClass('hidden'); // Disable the submit button to prevent repeated clicks: $form.find('.submit').prop('disabled', true); // Request a token from Stripe: Stripe.card.createToken($form, stripeResponseHandler); // Prevent the form from being submitted: return false; }); function stripeResponseHandler(status, response) { if(response.error) { $('#charge-error').removeClass('hidden'); $('#charge-error').text(response.error.message); $form.find('button').prop('disabled', false); } else { var token = response.id; $form.append($('').val(token)); // submits the form $form.get(0).submit(); } }; }); in the Stripe.card.createToken($form, stripeResponseHandler); the inputs will automatically be grabbed because we use data-stripe="cvc", data-stripe="name", data-stripe="exp_year", etc... in the HTML form ether way should work.
@robinshrestha900
@robinshrestha900 7 жыл бұрын
Nice tutorial..
@academind
@academind 7 жыл бұрын
Thanks so much Robin!
@Виталий96-к4я
@Виталий96-к4я 5 жыл бұрын
Thank you so much !!
@Coop9900
@Coop9900 8 жыл бұрын
I finished your tutorial a while ago and have Stripe implemented properly however now I'm reading a ton of horrible reviews about Stripe withholding payments and such. I'm now considering switching to Braintree and wish you had some videos on their integration. Does anyone have any good/bad experiences with Stripe or Braintree? I'm not launching for another month or 2 so I have time to decide. Thanks for the great tutorials.
@awaisahmad4570
@awaisahmad4570 8 жыл бұрын
greate big boss..
@mehtabhabib
@mehtabhabib 8 жыл бұрын
many thanks mat... :-)
@academind
@academind 8 жыл бұрын
You're welcome, great to hear that this is helpful!
@miodragniss
@miodragniss 8 жыл бұрын
this was great!
@academind
@academind 8 жыл бұрын
That in turn is great for me to hear! :)
@miodragniss
@miodragniss 8 жыл бұрын
Are you maybe planning to do some frontend tutorials? Like maybe API in Laravel + Vue.js frontend. I'm trying to learn how to do that stuff, but I am having trouble finding a good source for learning :)
@academind
@academind 8 жыл бұрын
Yes, I do plan to do something like this. Time is always the big issue, so I can't give any specific dates
@miodragniss
@miodragniss 8 жыл бұрын
Cool, thanks!
@MrKyriotetes1
@MrKyriotetes1 8 жыл бұрын
Hi, what is the main different between the paypal and stripe? Which one is better?
@academind
@academind 8 жыл бұрын
There's no clear answer here. It's best if you compare their services on your own. Stripe offers credit-cart payment whereas PayPal offers PayPal payment. Which then in turn also allows to pay via credit card or other payment ways. Again, check out both service descriptions on their web pages for more info.
@amjadc
@amjadc 8 жыл бұрын
I am just curios how do you remember all the code? Do we also need to remember the code or it will keep coming into our mind if we continue on developing different projects?
@academind
@academind 8 жыл бұрын
It will come on its own ... just by writing a lot of code ;) I didn't memorize it or something like that, but you get into it
@ngeanicet8993
@ngeanicet8993 7 жыл бұрын
hi,great tuto,but what if the user disable javascript ?
@judehashane
@judehashane 8 жыл бұрын
I got an error saying "Must provide source or customer" after submission. Do I have to have a card linked to my stripe account even just to test the API? Could you please help?
@academind
@academind 8 жыл бұрын
Hi Jude, did you successfully sign up to strip and can you access the testing environment there?
@judehashane
@judehashane 8 жыл бұрын
Thank you so much for the reply. Just awhile ago I found the bug. It was just minor issue in variable name. Thanks again.! Your tutorials are awesome. Keep up the good work! :D
@academind
@academind 8 жыл бұрын
I'll try my best - happy to hear that it's working now!
@daniloivanovic5961
@daniloivanovic5961 8 жыл бұрын
What was the bug, because i even copied files from github but the same error is still there?
@judehashane
@judehashane 8 жыл бұрын
Danilo Ivanovic sorry Wish I could help you . it's been awhile.. for me it was just a issue with the variable as I can remember. Il check my code again and try to help you figure it out
@ardaktileu4481
@ardaktileu4481 8 жыл бұрын
Hi,mate!How are u? I couldn't see source code on github.Could u help me?
@academind
@academind 8 жыл бұрын
Yes, switch the branch, everything should be on Github ;)
@ardaktileu4481
@ardaktileu4481 8 жыл бұрын
+Mindspace Thank you!)
@andresfernandoasfg
@andresfernandoasfg 5 жыл бұрын
Strip not operate in my country =( Ecuador.
@mauri29robayo
@mauri29robayo 5 жыл бұрын
Be careful for those who are programming, stripe changed v1 and v2 to v3.
@SaifAli-tf6lh
@SaifAli-tf6lh 7 жыл бұрын
Sir.... Where is the source code??? i have checked ur link but there is nothing in github laravel package .... PLzzzz reply soon..
@academind
@academind 7 жыл бұрын
Make sure to pick the right branch, all the source code should be there.
@ahmedhussin5704
@ahmedhussin5704 7 жыл бұрын
you're not updating repository all files are the same
You might not need useEffect() ...
21:45
Academind
Рет қаралды 177 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Laravel User Image
20:38
devdojo
Рет қаралды 136 М.
Laravel Tutorial For Beginners (Simple User CRUD App)
1:16:13
LearnWebCode
Рет қаралды 211 М.
Laravel Gems - Pipelines 💎
15:21
Laravel
Рет қаралды 10 М.
Build A Shopping Cart with PHP: Setting up (2/15)
23:20
Codecourse
Рет қаралды 73 М.
Don't avoid AI as a developer - embrace it!
2:44
Academind
Рет қаралды 18 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.