Тёмный

Accepting Payments in Flask Using Stripe Checkout 

Pretty Printed
Подписаться 96 тыс.
Просмотров 37 тыс.
50% 1

Accepting payments in Flask is straightforward using Stripe Checkout. All you need to do is redirect to Stripe's checkout page after creating a session, and Stripe will process the payment for you. In this video, I show you exactly how you can get started with payments in Flask using Stripe Checkout.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Get the code here: prettyprinted.com/l/ccJ
Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql
Documentation Referenced in Video:
stripe.com/docs/payments/chec...
stripe.com/docs/stripe-cli
Twitter: / pretty_printed
Github: github.com/prettyprinted

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

 

11 июн 2020

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 65   
@cedrickiplimo2991
@cedrickiplimo2991 3 года назад
I've built an entire application with lots of functions by relying a lot on your tutorials. PP, keep it up 👍. Thanks big time.
@maxwellmuhanda7940
@maxwellmuhanda7940 2 года назад
does this stripe work for Kenya?
@cedrickiplimo2991
@cedrickiplimo2991 2 года назад
@@maxwellmuhanda7940 Not at all. I don't think it works anywhere in Africa. You need an American bank account probably. Maybe try using it with TransferWise or some other service that provides you with a US bank account. Or try other APIs
@yomajo
@yomajo 4 года назад
I set out to become a Patron of Corey Schaffer, once I get salary for python development. That happened month ago. Today I set out to become your Patron, once I set up a flask e-commerce and make a first real sale. Stellar tutorials quality, thank you! Regards, happy subscriber, python newb.
@tadashitani
@tadashitani 2 года назад
Video from almost 2 years ago, but still inicredibly useful! Congratulations!
@somnathpatel4588
@somnathpatel4588 2 года назад
Hi Felipe. Hope you are well. Can you guide me as per your knowledge ?
@swamyp2050
@swamyp2050 4 года назад
If not because of your tutorials, I wouldn't have integrated stripe into one of my Saas service to accept payments. Thanks a ton. A video on "Dynamic product catalog and pricing" would be much helpful in most of the times, also, no other channel does flask+stripe as neat as yours. Hoping a video from you on it. Again, thanks a ton.
@stanleytroy4805
@stanleytroy4805 4 года назад
You are a blessing to the world ❤❤
@SilvianDragan
@SilvianDragan 4 года назад
Amazing video dude. Love your stuff! I actually needed this although I will be writing it in Django this is super helpful :)
@IroncladDev
@IroncladDev 3 года назад
This tutorial is a very nice one. Super well worded and explained. Other than the mistakes, I'd rate this video 100%
@gopher256
@gopher256 4 года назад
Great work as always!
@andysmason
@andysmason 4 года назад
This is a great tutorial.
@johnpricejoseca1705
@johnpricejoseca1705 3 месяца назад
Nice tutorial! Thanks!
@dare2make
@dare2make 5 месяцев назад
Fabulous.! Thank you for putting the code on Github as well.
@Nenadc1989
@Nenadc1989 4 года назад
Beautiful video. Kudos mate. Tho can i ask, could you make video about FLASK and Stripe with recurring subscription? or just normal subscription?
@funniyadotcom
@funniyadotcom 4 года назад
Its really help us ThankYou
@kishoreandra
@kishoreandra 4 года назад
Amazing 👌
@dtube6330
@dtube6330 3 года назад
Very informative
@jesavius
@jesavius 4 года назад
Thank you!
@rokrok27
@rokrok27 6 месяцев назад
Bro this sh’t is crazy a whole nother thing to learn
@digitalboltwebdesign
@digitalboltwebdesign 4 года назад
Can you also show how to do this with paypal web checkout. The version that is server side
@abdelazizsharaf7305
@abdelazizsharaf7305 3 года назад
you made my day, isn't there away to accept payment from card to your card directly without getaway in python, I mean handling your own checkouts
@tusharpatel7794
@tusharpatel7794 4 года назад
I love your django REST API series , if possible make basic e-commerce type project using django REST API..
@rangabharath4253
@rangabharath4253 4 года назад
Awesome
@drac8854
@drac8854 4 года назад
Hi there Anthony thanks for listening to my request This videos explains a lot and is very helpful for me But strips subscription plan isnt clear to me yet so ut would be great if you can make a video on that And thanks for this video❤❤
@mattlion321
@mattlion321 3 года назад
Hi! How do I insert an Image into the Stripe API inside the .py files?
@GewoonFinn-
@GewoonFinn- 3 года назад
Hey I am bit late with this but can we get a website intergrated one without redirecting to checkout.stripe :)
@mike_vahemoubayed8099
@mike_vahemoubayed8099 3 года назад
I have a question, I want flask to return_template the thank you page after payment, that means it is not a separate link, how canI achieve this?
@davidonwuli9352
@davidonwuli9352 Год назад
How do I like this to an already existing app I see that the products are created on strip directly is there a way to make it work with the products in the database instead??
@user-bq5sv4tq4k
@user-bq5sv4tq4k 3 года назад
in flask sqlalchemy use back_populates??
@davidmasterson4329
@davidmasterson4329 Год назад
That works great in development but my success page doesnt display in production. The stripe support says my success url must be publicly accessible. How do i do that?
@shyamkumarrana5856
@shyamkumarrana5856 3 года назад
how to get transaction id from strip for customer
@sayhellotoroy
@sayhellotoroy Год назад
Webhook url should be public, meaning unlogged users should have access to it so Stripe will send confirmation. How do I pass user id to this webhook, so I can save some data related to user after his payment? It works easily with Thanks page (success) but not via webhook.
@emeraldthunder
@emeraldthunder 2 года назад
Does this work in the UK.
@andysmason
@andysmason 4 года назад
Is it just me? but according to the documentation on checkout, it is supposed to wait on a successful 2xx code back from the webhook "checkout completed event" before proceeding to the success URL, or 10 seconds (whichever comes first). So even if after 10 seconds you will still get directed to the success URL.
@andysmason
@andysmason 4 года назад
So, I figured out my own issue. If you are using the Stripe CLI and have a registered webhook forwarded, then it doesn't care about the 10 second delay before forwarding. To get Stripe to wait 10 seconds, go to the dashboard > developer > webhooks and enter a fictitious address for the checkout.completed event. I haven't looked yet, but hopefully there is a log or a trigger for failed webhooks.
@sibongisenixaba512
@sibongisenixaba512 Год назад
hello sir, webhook is not called on my side, what can i do?
@NeoVirusOfficial
@NeoVirusOfficial Год назад
I get the error : TypeError: unhashable type: 'Charge' after the payment has been successful I always get this at the end in my terminal (after the webhook is called)
@lloydbalogun
@lloydbalogun 4 года назад
why does my webhook not printing to cosole when using print() ? any help please?
@PrimevalShrimp
@PrimevalShrimp 4 года назад
I have the same problem
@IlyasML
@IlyasML 3 года назад
Same it's like my webhook endpoint never gets called, what could i be missing ?
@sibongisenixaba512
@sibongisenixaba512 Год назад
have you found a solution?
@ElChe-Ko
@ElChe-Ko 4 года назад
29:48 after i place the order i keep getting this in the terminal: Timestamp outside the tolerance zone (xxxxxxxxxx) INVALID SIGNATURE. It looks like that the timestamp is too old but even if i try to be super fast by doing the whole process i keep gettting the same error... any solution to that? To me it looks like the problem is that the created time by stripe is utc while mine is locall
@ElChe-Ko
@ElChe-Ko 4 года назад
I was able to solve it only by putting tolerance=7200 in stripe.Webhook.construct_event(payload, sig_header, endpoint_secret) .... not the best workaround
@shortstoriesbyPJ
@shortstoriesbyPJ 4 года назад
I am having a problem will be glad if you could help me I want to add 3 one time payment plans So I can't understand that I have to make multiple sessions or what Please help
@asmitkumar9068
@asmitkumar9068 3 года назад
Hey had u solved ur problem if u did please guide me also
@rayanrahmoune1064
@rayanrahmoune1064 4 года назад
nice video nice way to explain I liked it, I saw you courses and I liked them I'm not able to afford to your course for me they are expensive, I'm a teenager 15 yo, I will be very thankful if you make your courses free for a day please (A lot of people are doing that I really hope you will). Thanks.
@r4z74
@r4z74 4 года назад
But the payment went through although you used like I guess an innocent credentials for your payment
@djohnworthy1040
@djohnworthy1040 Год назад
Hey man, would you be interested on giving me a tutoring session? I am in an intership and it is about to end. The only phase left is the admin page and the payment page. Your videos are amazing, but I need some kind of an helping hand out here.
@prettyprinted
@prettyprinted Год назад
I do have my coaching program where I help people one-on-one. prettyprinted.com/coaching
@drac8854
@drac8854 4 года назад
✋qustion What if i don't want to add product in strip rather than that i just want to send amount needs to be changed And even if it is necessary to send product i could just send a json data? Will that work?
@William_ar98
@William_ar98 3 года назад
yea im also looking for this. can't find any answer on the web but i feel like this would be a pretty common thing to do. Mabye im just wrong
@ThaEzioAuditore
@ThaEzioAuditore 4 года назад
BROOO
@misha1998923ify
@misha1998923ify 2 года назад
WHO DISLIKED IT?????
@ravikumawat7
@ravikumawat7 Год назад
Please make a video on Paytm Payment Gateway Integration.
@prettyprinted
@prettyprinted Год назад
I'll look into some topics. Thanks for the idea.
@zootechdrum
@zootechdrum 5 месяцев назад
Thank you!
Далее
Intro to Flask Blueprints
9:15
Просмотров 48 тыс.
Stop, Intel’s Already Dead!
13:47
Просмотров 401 тыс.
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
Django and Stripe Payments Tutorial
1:10:27
Просмотров 94 тыс.
Server-Side Sessions in Flask with Flask-Session
12:23
Authentication with stripe-python
8:49
Просмотров 16 тыс.
Intro to Flask-Caching
13:15
Просмотров 22 тыс.
REST API With Flask & SQL Alchemy
35:25
Просмотров 296 тыс.