Тёмный
No video :(

Laravel Stripe Checkout tutorial | VueJS 

Matt Socha
Подписаться 2,3 тыс.
Просмотров 13 тыс.
50% 1

My Gear:
Monitors 1. amzn.to/2X9IC37 2. amzn.to/3CadhwA
Mouse: amzn.to/3nAtIhH
Keyboard: amzn.to/3z7jfw7
Webcam: amzn.to/3hvWbRF
Mic: amzn.to/3lj7uhn
Hey what’s going on in this video were gonna integrate stripe checkout into a laravel app were also gonna be using VueJs for the frontend
Stripe checkout is a really nice and easy way to implement a checkout page
By the end of this video you will have stripe checkout set up for one time purchases, Subscriptions And the web hooks you need to confirm the purchase on your app

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

 

5 дек 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@ammhirarath
@ammhirarath Месяц назад
Best video i found in one day
@oshjones
@oshjones Год назад
Thanks for this video from Wales in the UK :) very helpful
@ChourikFousseni
@ChourikFousseni Год назад
thanks for the tutorial , you help me , god bless you
@paatuc6457
@paatuc6457 2 года назад
thank you for the tutorial, best laravel coach! not 7h tutorials like others :D and good explanation too
@paatuc6457
@paatuc6457 2 года назад
trying to make optimized perfect (code) from the very beginning like in most tutorials by others is anxious, frustrating and makes passive to learn and easy to quit :D your tuts are the best from this part also, if it works its perfect :D after years make it better if needed. Laravel is pretty secure out of box already with database and authetication.
@mattsocha8754
@mattsocha8754 2 года назад
Yeah exactly. I try to focus getting things working and if people want to organize the code or rewrite things they can! But the most fun part is getting the app working imo lol
@josefournier9272
@josefournier9272 Год назад
Thank you for this tutorial which allowed me to take off with Stripe while I was floundering for several days. However, I encountered the following problem. In my view, since sessionId values ​​only arrive once the page has loaded, the component was not properly initialized and the program was complaining about not receiving this value. A v-if="oneTimeId" respectively v-if="sessionSubId" in the divs enclosing the component solved the problem. Also, no offense, it seems to me that your speaking rate is a bit fast, especially for people like me whose native language is not English.
@nemac23
@nemac23 11 месяцев назад
@9:59 For production it's better to use the config files and then cache them, rather than accessing env directly , eg "config('services.stripe.stripe_api_key')"
@lobobogard9236
@lobobogard9236 Год назад
excelent video thnx so much from mexico
@bieberbalazs6826
@bieberbalazs6826 2 года назад
great video. Thanks for your time. However i have an issue: IntegrationError: Missing value for Stripe(): apiKey should be a string.
@283518
@283518 2 месяца назад
thanks a million
@evgenyromanov6643
@evgenyromanov6643 2 года назад
Great video, thanks, Matt!
@mattsocha8754
@mattsocha8754 2 года назад
Glad you liked it! Thanks :)
@bomstechnology15
@bomstechnology15 2 года назад
Hi, and already thank you for this tutorial which is very explicit, but when I reproduce it I encounter a problem I don't know if it's because I'm still local... the error is: "Vue Stripe will not work on an insecure host. Make sure that your site is using TCP/SSL. " Thanks for your help
@Br4400klyn
@Br4400klyn Год назад
Great tutorial, thank you!
@manishisaxena2712
@manishisaxena2712 2 года назад
Just what I wanted! thanks 👍
@tephgab8023
@tephgab8023 Год назад
Great video, thank you!
@ankitsubedi829
@ankitsubedi829 Год назад
Hello Matt, My webhooks is basically saying "Failed to POST" and idk what to do.
@youssefvideotube
@youssefvideotube Год назад
Amazing video ! thank you so much for sharing this video ! I have a question... How do we link the checkout session with the authenticated user on the laravel side ?
@mattsocha8754
@mattsocha8754 Год назад
When creating a checkout session you can add a key 'client_reference_id' which can take the authenticated user Id.
@nrickfikd4015
@nrickfikd4015 2 года назад
Nice video thanks a lot. Two questions please, After checkout.session.complete, and de payment.intent.successed I want send an invoice to my customer. How to do that? Could you make a new video, to do that? Thank you
@mattsocha8754
@mattsocha8754 2 года назад
Thanks! Glad you enjoyed it! I’ve actually never sent a invoice with stripe but the php stripe plug-in should be able to do it with \Stripe\InvoiceItem::create([ 'customer' => 'cus_4fdAW5ftNQow1a', 'price' => 'price_CBb6IXqvTLXp3f', ]); $stripe->invoices->sendInvoice('in_18jwqyLlRB0eXbMtrUQ97YBw', []); This is from the docs. I’d recommend taking a look if you need more info
@legitcyberlord869
@legitcyberlord869 2 года назад
Please can you make a video on Stripe Issuing? Creating and managing of virtual cards.
@mattsocha8754
@mattsocha8754 2 года назад
Thanks for the suggestion. If I get the time I’ll make a video on that!
@legitcyberlord869
@legitcyberlord869 2 года назад
@@mattsocha8754 Thanks very much. Looking forward to that
@nightchiller
@nightchiller Год назад
Instead of implementing the webhook just to get the check if the payment succeeded, can't you just use the success route?
@mattsocha8754
@mattsocha8754 Год назад
Technically yes but depending on what I your success route is anyone can visit it and may be able to fake a purchase if they just visit /success The web hooks guarantee that the purchase is valid from both stripe and your systems side. It’s way more secure
@nightchiller
@nightchiller Год назад
@@mattsocha8754 you get a session back. Can you verify that on a successcontroller or do you need the webhook with the signiture header?
@nightchiller
@nightchiller Год назад
maybe `$session = Session::retrieve(request()->query('session_id'));` is doing that
@nemac23
@nemac23 11 месяцев назад
Webhooks are for when you can't successfully redirect your user to the success page.
@hugoguillermo4392
@hugoguillermo4392 2 года назад
Hello, how can I pass the ID of the person who made the payment through checkout?
@mattsocha8754
@mattsocha8754 2 года назад
When creating the session. You can pass in a extra value of client_reference_id
@davidrowlands8548
@davidrowlands8548 2 года назад
keep getting this error when I click on the Pay now! button: Vue Stripe will not work on an insecure host. Make sure that your site is using TCP/SSL.
@mattsocha8754
@mattsocha8754 2 года назад
Hmm that’s strange. I would double check that I’m importing vue stripe correctly and that I’m using stripe test api keys. If that doesn’t work I’d take a look at the vue stripe documentation
@mattsocha8754
@mattsocha8754 2 года назад
Nice good find!
@dominicgonzaga2709
@dominicgonzaga2709 2 года назад
got this problem too, any fix?
@bryonswanson6326
@bryonswanson6326 2 года назад
Same issue-- here is the error message I get on the localhost: Error: Vue Stripe will not work on an insecure host. Make sure that your site is using TCP/SSL.
@entriL1337
@entriL1337 2 года назад
@@mattsocha8754 same happens to me, looked into documentation still can't solve it. The key is correct. Whenever component with vue-stripe is used it says that Vue Stripe will not work on an insecure host. Any ideas, maybe you got the fix?
@everytrends3768
@everytrends3768 2 года назад
for whom did you made this video???????
@TechPrakashdotcom
@TechPrakashdotcom 11 месяцев назад
Great tutorial, it helped a lot. Thanks for sharing😊
@martindrake8707
@martindrake8707 2 года назад
🙋 Promo-SM.
@arturmuellerromanov4438
@arturmuellerromanov4438 2 года назад
If you encounter "Vue Stripe will not work on an insecure host. Make sure that your site is using TCP/SSL." you might have used the wrong key (secret key) instead of the publishable key (pk_test_xxx...) for which you have to activce test mode in your stripe account.
Далее
Stripe Complete Checkout Process in Laravel
1:03:36
Просмотров 50 тыс.
How To Accept Payments With Stripe
23:05
Просмотров 271 тыс.
Build a shopping cart with Laravel Cashier and Vue
55:07
You don't need a frontend framework
15:45
Просмотров 119 тыс.
Laravel 10 + Vue 3 + Vite | 2023
39:24
Просмотров 26 тыс.
Laravel Mail Basics 2024 | Send emails with Laravel
9:31