Тёмный
No video :(

Django and Stripe Payments Tutorial 

Matt Freire
Подписаться 81 тыс.
Просмотров 95 тыс.
50% 1

Hey everyone
In this video, we'll implement Stripe Payments and Stripe Checkout with Django.
📖 Read the blog post
justdjango.com...
💻 Project code
github.com/jus...
Build a Gumroad clone with Django:
👉 justdjango.com
✌️ Stay in touch
Facebook: / justdjangocode
Instagram: / justdjangocode
Twitter: / justdjangocode
Email: matt@justdjango.com
Thank you for watching and don't forget to subscribe :)
00:00 Intro
02:15 API Keys
04:50 Product Model
08:30 Stripe documentation
10:40 Install Stripe
11:05 Checkout Session view
15:45 Importing Json Response
17:30 Templates
19:40 Frontend - Add an order preview page
24:35 Creating a test product
25:15 Product and price configuration
27:50 Success & Cancel urls
30:50 Stripe webhooks
32:20 Install Stripe CLI
38:00 Verifying events on Stripe
43:30 Email Backend
48:20 Custom Payment flow -Payment Intent
57:20 Sending an email receipt

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

 

17 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 105   
@Pyplane
@Pyplane 3 года назад
No other option here but to leave a comment and a thumbs up. Amazing job!
@pil_low
@pil_low 3 года назад
Pyplane and the JustDjango are truly amazing. Lot's of respect for all the great contents.
@adilmohak
@adilmohak 3 года назад
I haven't seen a video of youtube covering a lot of strip content with django like this, Thanks a lot!
@mattfreire
@mattfreire 3 года назад
Most up to date tutorial: justdjango.com/blog/django-stripe-payments-tutorial Hey everyone. Stripe updates their docs more times than I can keep count. I've updated the blog post to follow the latest documentation. So this video now uses a slightly older version of their documentation. But the concepts that are taught are still relevant.
@duongbui8998
@duongbui8998 3 года назад
So, when Stripe updates the document. Does your system have to change the code?
@duongbui8998
@duongbui8998 3 года назад
I'm reading the document and found that next to the checkout.session.completed event. Stripe also has checkout.session.async_payment_succeeded and checkout.session.async_payment_failed. Do you know when the 2 events happend?
@ashadashraf10
@ashadashraf10 5 дней назад
Thank you Matt Freire for this amazing video
@csuzukib
@csuzukib 3 года назад
One of the best Django videos I've seen in my life, great job and thank you for teaching the community, I've learned a lot.
@anthonymwangi6889
@anthonymwangi6889 2 года назад
You are The GOAT of Django. RESPECT
@codewithluq
@codewithluq 2 года назад
For sure, this is the best content for stripe integration
@bicboi9006
@bicboi9006 2 года назад
if your watching this as of now dont waste your time its already outdated
@gavinwiener
@gavinwiener 3 года назад
A focus on subscriptions would be awesome as well
@PedroHenrique-fz7fv
@PedroHenrique-fz7fv Год назад
Show de bola o vídeo com Django e Stripe. Já estou um ano usando Django, me identifico muito. 🚀🚀🚀
@chrschoeni
@chrschoeni Год назад
Thank you very much for your really good video. I love it when not just one function is shown, but everything that can be done right away. You have a USP here.
@shporsoftcodingteam4388
@shporsoftcodingteam4388 3 года назад
Oh very good. Thanks. Can you make a Subscription tutorial with Stripe?
@pypro
@pypro 3 года назад
this came out 3 months later, than I needed hahaha, thanks very much dude!!! =) you rock
@mdnazmulh.8908
@mdnazmulh.8908 3 года назад
Cool tutorial man 💖
@vladusa
@vladusa Год назад
Does anybody know how to save the data from the webhook to the database? This doesn't work for me and I've tried literally every database saving alternative. Send_email is the only function that even quasi-saves (it isn't really saving anything, more just doing an action).
@bsmaheshkumar5328
@bsmaheshkumar5328 3 года назад
A much needed project for me... Tqs a ton 🙏
@gauravsingh-qt2zo
@gauravsingh-qt2zo 3 года назад
Hey brother can u help me in solving some problem related to m Django project???
@anandhuas598
@anandhuas598 3 года назад
I really love ur work , such an in depth explaination . Can you please show how to integrate google pay
@ermtly
@ermtly 2 года назад
Thank you bro. Your mentoring skills are excellent. I have learned a lot.
@fransubaru
@fransubaru 2 года назад
Amazing tutorial, exactly what I needed!!!! You are the best!
@supriyomitra6135
@supriyomitra6135 2 года назад
Great content! Cleared quite a few concepts on stripe payment GW for me. Thanks.
@Rabekkarabe
@Rabekkarabe 4 месяца назад
Django ക്ലാസ്സ്‌ എടുക്കുമോ? Stripe വച്ചു djangoyil എങ്ങനെ payment gateway പോസ്സിബിൾ ആകാമെന്നും ക്ലാസ്സ്‌ എടുക്കുമോ? അതുപോലെ തന്നെ otp send ആകുന്ന django ലൈബ്രറി കൂടി പഠിപ്പിക്കുമോ?. പിന്നെ django വഴി create ചെയ്ത django പ്രൊജക്റ്റ്‌ എങ്ങനെ റിയൽ ടൈമിൽ host purchase ചെയ്തു ആ hosthum നമ്മുടെ django പ്രൊജക്റ്റ്‌ എങ്ങനെ കണക്ട് നൽകാം എന്നുള്ളതിന്റെ കുറിച്ചും വീഡിയോ ചൈയ്യുമോ?
@alinab2824
@alinab2824 Год назад
Thanks for tutorial! Excellent content!
@VirelMontes
@VirelMontes 7 месяцев назад
I'm making a mexican restaurant website. How would I replace test product with actual menu items I have on my menu page. Instead of going from landing.html page go to menu add to cart then create a checkout session with stripe? Also if you could show an example of how to customize ingredients of each menu item before it goes into the cart.
@Rajnishdangar
@Rajnishdangar 2 года назад
One Of Best I ever Watch thank's
@JohnEstherGeocreatives
@JohnEstherGeocreatives 3 года назад
Also in this example how would you loop through all the products and display the prices with checkout on all of them?
@ammarjamil2467
@ammarjamil2467 3 года назад
Bro, your video is very informative kindly make one video on how to configure firebase push notification in Django
@Ali-kx7jf
@Ali-kx7jf 3 года назад
Bestestest Everrr❤️!! please can you make one for paypal with django.
@bellosegun
@bellosegun 3 года назад
OK first here... Thanks for this... On it Django Pirate
@tevhidigenc2502
@tevhidigenc2502 3 года назад
You are an amazing man. I appreciate you
@gabrielpasv
@gabrielpasv 6 месяцев назад
Could you please create a video tutorial of the following django packages django-tenants django-tenants-url django-tenants-users django rest framework Thanks
@fine-vine
@fine-vine 3 года назад
problem when u have multiple products is that the product id can be cheated in the front. If you change the product id of the button clicked. You can get the premium plan for the price of a basic one... In your case, if you change in the js product.id from 1 to 2, you get product 2 for the price of product 1
@Ali-kx7jf
@Ali-kx7jf 3 года назад
could you solve that ? I need solutions :(
@cesaraugusto9109
@cesaraugusto9109 Год назад
@@Ali-kx7jf block in the server side .
@dr.jamesross1024
@dr.jamesross1024 3 года назад
I have always wanted to learn that ,, thanks 😘😘😘😘😘
@axeljacobo4453
@axeljacobo4453 3 года назад
could you make a django tutorial with cryptocurrency payment methods?
@amirhosseinebneroomi7280
@amirhosseinebneroomi7280 Год назад
it saved my life :) Thanks
@franciscmoldovan2153
@franciscmoldovan2153 Год назад
Very helpful sir, keep up the good work, we thank you!
@AllthingsFoodieTX
@AllthingsFoodieTX 2 года назад
question if We wanted to add multiple Products instead of the Product.objects.get(name="productname") , How would we do it in that view with the queryset instead to be Product.objects.all() , when i do that i get a no reverse with arguments. Thanks how would i implement that in the Class based view thanks
@vladvlad3544
@vladvlad3544 Год назад
You got it do it?
@aminulc
@aminulc 2 года назад
Excellent Tutorial. Very well explained.
@user-de9xw2bi8p
@user-de9xw2bi8p 9 месяцев назад
Could you please tell me, I installed stripe cli but I can't find status commands, what could be the problem?
@gabrielreyes8324
@gabrielreyes8324 3 года назад
Dude you saved my life!
@ngawangg927
@ngawangg927 7 месяцев назад
idk whats wrong but my starter branch repo isnt even showing the blank django prj can any one help me plz
@sharhanalhassan7352
@sharhanalhassan7352 3 года назад
This is a great tutorial. The first method of using a prebuilt checkout page is straightforward and simpler. Is there any reason why someone will opt for the custom payment flow as it's cumbersome and still does the same thing
@flaviusteodorof2601
@flaviusteodorof2601 2 года назад
Because they might have different needs, or just for the sake of customization.
@Jose-ol5xk
@Jose-ol5xk 2 года назад
VERY GOOD MY FRIEND THANK YOU!!
@enesyurtsever
@enesyurtsever 3 года назад
I was wait for this
@oldelkhot
@oldelkhot 9 месяцев назад
Thanks Matt! I can't follow you, because I think the docs are changed. I did the first 30 minutes, but I can't find the JS part
@itsnevertoolatetolearn4875
@itsnevertoolatetolearn4875 8 месяцев назад
right
@shporsoftcodingteam4388
@shporsoftcodingteam4388 3 года назад
Can you please make a video about the video conversion in Django? Like RU-vid site clone where you can choose the quality of the playing video.
@karimkohel3240
@karimkohel3240 3 года назад
awesome i have always wanted to learn that!!
@shohanurnishad2801
@shohanurnishad2801 7 месяцев назад
if the webhook CLI is not running, will the send email function work?
@igorkulibaba7287
@igorkulibaba7287 3 года назад
Super! Hi in Russia!
@sifathasan2755
@sifathasan2755 3 года назад
Very informative and really good tutorial
@atulsharma3993
@atulsharma3993 3 года назад
Superb sir 🙏🙏🙏🙏🙏🙏
@rafaelsoteldosilva
@rafaelsoteldosilva Месяц назад
good!
@yoonkahchong1913
@yoonkahchong1913 3 года назад
Thanks for the tutorial
@DarshModi-il5et
@DarshModi-il5et 3 года назад
I got 403 error in webhook and in terminal it shows Forbidden (CSRF cookie not set) . But I did exactly same as this video and I have also passed pk in stripe intent url Like , create-payment-intent// So do I have to pass pk in webhook url too ? If I try by providing static pk like , stripe listen --forward-to localhost:8000/payments/webhook/5/ Then it works fine but how can I pass dynamic id if I'm on the correct way ..? Please help
@najwanalharbi
@najwanalharbi Год назад
(index):1 You may test your Stripe.js integration over HTTP. However, live Stripe.js integrations must use HTTPS. How can i solve this ?
@iamdemon8304
@iamdemon8304 3 года назад
Can you make a tutorial for building a helpdesk and issue tracking system?? Anyways loved the tutorial
@ChristianHaugland74
@ChristianHaugland74 3 года назад
great work. so easy to follow. thanks
@mattfreire
@mattfreire 3 года назад
You're welcome. Thanks for watching!
@CesarBArts
@CesarBArts 8 месяцев назад
You're amazing.
@johnjim3741
@johnjim3741 2 года назад
Can you make a video on how to integrate Stripe connect, Django and react? Not many videos on this
@Systemx93
@Systemx93 3 года назад
Next Video Handle Files, Images, Videos, and maps
@JohnEstherGeocreatives
@JohnEstherGeocreatives 3 года назад
what is the importance of the custom payment method and can I use just the checkout without the custom payment?
@mr-engin3er
@mr-engin3er 3 года назад
I followed your tutorial but card-element(cart input) not showing. Then i clone your repository and still same error. I searched it on Google but can't solve this issue. I'm not good at front end.
@Temea-pw5bv
@Temea-pw5bv 3 года назад
please come back to the chanel 😢😭
@BhatiJhabarSingh
@BhatiJhabarSingh 3 года назад
It shows 200 OK but no payment is done? I don't have enough amount so why is it not throwing an error instead.
@alinandrei6555
@alinandrei6555 3 года назад
Hi. First thanks for the tutorials, really breaks down to bits my mind can process I have an issue I implemented both options with one of your older tuts (building an ecommerce website with django). Both work just fine, I've messed up a bit the urls but that's fine. My problem is that the stripe webhooks are not called anymore after implementing the custom flow payment option. Could I ask, how is the webhook view called while the checkout process, in detail? What are the steps behind the scene? Thanks
@alinandrei6555
@alinandrei6555 3 года назад
Okay so it seems that I should've just run over stripe webhooks docs for a few minutes to understand that these are requests sent by stripe to my app. The reason these were not working was that I have forgot to forward these requests to my url..
@Migler1
@Migler1 3 года назад
I'd really like to know how to empty that cart after the payment is done.
@raindrop557
@raindrop557 3 года назад
hey matt i created an eccomerce site with your eccomerce series..it is working fine but now i am trying to incoporate stripe connect but every video of yours on stripe connect only deals with one item..any idea on how to use stripe connect where a person can checkout multipe items..please help i am at a loss..
@Iamklif
@Iamklif 3 года назад
This isn't that hard to do, have you solved it yet?
@raindrop557
@raindrop557 3 года назад
@@Iamklif i did
@Ali-kx7jf
@Ali-kx7jf 3 года назад
it's what I'm looking for can you please help me.
@looneytoons2006
@looneytoons2006 3 года назад
thanks a lot !!! question about production with stripe !? do i need to maintain thread for run the listener. or it better to make script that at transaction will be activated 47:30
@CodeWithTomi
@CodeWithTomi 3 года назад
Nice tutorial
@donotlook6048
@donotlook6048 3 года назад
To anyone doing it by by these dates the docs have already changed a lot. I could do this without any javascript in the html template
@aashayamballi
@aashayamballi 3 года назад
Thank you!
@nourelhoudazemni7404
@nourelhoudazemni7404 3 года назад
oui
@maxmeza4350
@maxmeza4350 3 года назад
Nice video. What VSCode theme are you using for Python's semantic color?
@usaava
@usaava 3 года назад
Thanks for your video :)
@mattfreire
@mattfreire 3 года назад
Thanks for watching :)
@khannakhanna815
@khannakhanna815 3 года назад
Sir How do I pay someone from my stripe to another customer bank account it is possible in the stripe or not
@dennielluissadian5026
@dennielluissadian5026 3 года назад
Hi! How can we make a withdraw process using stripe? Like the site pays the user. How can we do that?
@crishl19
@crishl19 Год назад
need some help . i got this : No module named 'stripe'
@rifathbinhossain2233
@rifathbinhossain2233 3 года назад
please make projects like creating website like udemy or coursera. thank you
@erfandjango8976
@erfandjango8976 3 года назад
Best
@davidbayo4243
@davidbayo4243 3 года назад
Is stripe working in Nigeria??
@mostnotoriouspinpin7581
@mostnotoriouspinpin7581 Год назад
is there a way to collect commision fees from sellers on your platform?
@vladusa
@vladusa Год назад
very difficult implementation bro. You could set this up in Stripe manually, I reckon
@mostnotoriouspinpin7581
@mostnotoriouspinpin7581 Год назад
@@vladusa thanks but i already did it. Used paypal and set the merchant it and stuff
@ebbevandijk8069
@ebbevandijk8069 2 года назад
I’ve spent a good few hours debugging just to find out the api doesn’t accept floats as amounts fml
@humayunkabir-jl9tj
@humayunkabir-jl9tj 2 года назад
25:50
@caglargulucan
@caglargulucan 2 года назад
well done, but the document is out of date.
@andremaia4040
@andremaia4040 Год назад
Unfortunately, it is now out of date. It seems that Stripe changes fast.
@norbertocammayo2334
@norbertocammayo2334 3 года назад
Your content are very good. Hope you could support Purchasing Power Parity on your courses to make it affordable for us low income countries.
@dziurappa
@dziurappa 3 года назад
.
@mastertys3059
@mastertys3059 2 года назад
I have this error: price_id = intent["metadata"]["price_id"] KeyError: 'price_id'
Далее
Django Dynamic Forms Tutorial with Htmx
48:27
Просмотров 67 тыс.
Django 4.0 Crash Course | Build a Real Estate Website
2:07:49
How to use Stripe for payment in Django
13:26
Просмотров 24 тыс.
PayPal Payments Tutorial with Django and React
47:16
Просмотров 10 тыс.
Django & React Payments with Stripe Checkout
41:07
Просмотров 11 тыс.
Stripe Complete Checkout Process in Laravel
1:03:36
Просмотров 50 тыс.
Accepting Payments in Flask Using Stripe Checkout
32:50