How To Setup Paypal on a Django Project (Simple Setup)

  Рет қаралды 11,397

Zack Plauché

Zack Plauché

Күн бұрын

Пікірлер: 37
@Nikhilkumar-tv3ei
@Nikhilkumar-tv3ei Жыл бұрын
loved it.. keep growing man
@johncrunk8038
@johncrunk8038 4 ай бұрын
it works! Thanks for doing the dirty work.
@zackplauche
@zackplauche 4 ай бұрын
Glad it worked for you 🙂 It definitely felt like dirtywork 😂😂😂
@machib77
@machib77 Жыл бұрын
thank you so much for this excellent tutorial. I hope you can consider doing one for membership subscriptions
@zackplauche
@zackplauche Жыл бұрын
Ooo, interesting idea! How do you mean exactly?
@mikebowser48
@mikebowser48 3 ай бұрын
Thank you!
@mikebowser48
@mikebowser48 3 ай бұрын
Thanks! One problem I am having is what URL do you use if I"m public facing already to receive the Paypal IPN's on my sandbox business account. I don't know what URL to receive them at.
@zackplauche
@zackplauche 3 ай бұрын
That's a good question, this video is a bit old and I haven't worked with it in a while :/
@prismon1266
@prismon1266 2 жыл бұрын
Thank you for this tutorial. I have a question, in the signals, when creating an order model, how to i save new data to my custom order model
@muganzikisembo238
@muganzikisembo238 2 жыл бұрын
Boss thanks for the video but I have problem of reverse it seems to have failed to work
@zackplauche
@zackplauche Жыл бұрын
So this video is a bit outdated now, I haven't worked with Paypal's api in a long time, and quite frankly it was a nightmare 😬 trying to figure out better ways of working with it.
@hjluna7760
@hjluna7760 2 жыл бұрын
thank you so much for this video....but I am having an issue in this part , I tried to follow you step by step but then this error while clicking the paypal button : "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." and it doesn't bring me to paypal page.... I don't know how can I solve it, I try adding CORS_ORIGIN_ALLOW_ALL = True in my project settings.py and tried to add CORS extension in my chrome but doesn't work ...
@zackplauche
@zackplauche 2 жыл бұрын
Hey hj! Hmm, I haven't had this error before. I will try to reproduce it on my own and see if I can get the same error and get back to you.
@hjluna7760
@hjluna7760 2 жыл бұрын
@@zackplauche thank you so much
@jen24499
@jen24499 2 жыл бұрын
December 2022 still works fine! The only problem was with trusted origins after ngrok connection, but it was easy to fix! And Flag is also a red cross for every IPN, but payment status is complete🤔
@zeroday6379
@zeroday6379 Жыл бұрын
how did you fix that pal?
@jen24499
@jen24499 Жыл бұрын
@@zeroday6379 add CSRF_TRUSTED_ORIGINS=['*'] in settigs
@tomhunja8731
@tomhunja8731 9 ай бұрын
I believe the flag should be False since the transaction is not Flagged for further review...
@xxriverbeetxx1.065
@xxriverbeetxx1.065 2 жыл бұрын
great tutorial
@giku2681
@giku2681 2 жыл бұрын
Is it still working? Because in my project i don`t get any IPN`s to admin panel from my site but only from PayPal IPN Simulator.
@zackplauche
@zackplauche 2 жыл бұрын
Hmm, I might have to take this vid down. People keep having problems with it. Sorry about that 😬 They may have changed it since I made this one.
@giku2681
@giku2681 2 жыл бұрын
@@zackplauche You have any ideas how to resolve this problem?
@cynet9042
@cynet9042 2 жыл бұрын
do i need ngrok in production? or do i just set PAYPAL_TEST = False and it's ready to be deployed? thanks!
@Eptapus
@Eptapus Жыл бұрын
Probably you figured it out already but the short answer is probably no.. Your computer at home is behind your home router and that router by default does not allow anyone from the outside world to connect to your computer for security reasons. I said "by default" since that is the common case for most users. In cases likes yours now where you want to allow traffic from the outside world to your computer at home you should change some of the network configuration of the home router. This could be complicated if you are not familiar with some networking concepts such as opening ports or port-forwarding, ips etc.. What Ngrok does is to forward traffic to your local computer through some kind of vpn technology(this is how I understand it at least). By running the command shown on the video, your computer is connected to an Ngrok server and takes over the random domain name. Then any traffic or request towards that random domain is forwarded to your computer. When the time comes for you to put your django in production, probably you will use a dedicated server at some data center or the cloud. That server will be accessible to the internet so you will not need to have any "workarounds" with Ngrok. You will need though to have set your own domain name eg mydjangoappblabla.com On the Ngrok website is mentioned that the service can be used in production as well but I do not remember the example cases.
@zackplauche
@zackplauche Жыл бұрын
@Eptapus dude thanks for the detailed reply haha.
@zackplauche
@zackplauche Жыл бұрын
@Eptapus you should join my Discord!
@kiptoo01
@kiptoo01 2 жыл бұрын
Good staff, I have a simple quiz though! How can I integrate the amount to an amount set by clients..say prices increase with quantity demanded? Thanks Zack
@zackplauche
@zackplauche 2 жыл бұрын
Hey Tony! For this, it would depend on what you're selling specifically 🙂 If you're setting up a Product, you can just add a price and pass that into Paypal's checkout parameters dynamically and making sure you have the ability to edit the price in the User Admin. If it's something more like a service, it's roughly the same thing. In the usecase I had to learn Paypal for, I ended up using the django-dynamic-preferences package: django-dynamic-preferences.readthedocs.io/en/latest/ that lets you create customized settings.
@miguelsoares3680
@miguelsoares3680 2 жыл бұрын
so it doesn't redirect its always processing
@zackplauche
@zackplauche Жыл бұрын
Yeah, it's been a while since I worked with Paypal so it might not be the best tutorial anymore :/
@lordflaqo1
@lordflaqo1 6 ай бұрын
can you update this video plz. i ran onto an issue
@zackplauche
@zackplauche 6 ай бұрын
Paypal was super hard to setup. Unlikely to use their API again. Much easier to use stripe.
@MannuelPortraitsdev
@MannuelPortraitsdev Жыл бұрын
+1 sub
@zackplauche
@zackplauche Жыл бұрын
Thanks! 😄
@Eptapus
@Eptapus Жыл бұрын
I am using Ngork but the IPNs do not work.. If someone finds a solution please reply to my comment. @Zack Plauché please do NOT take this video down.
@Eptapus
@Eptapus Жыл бұрын
In my case the IPN was NOT getting created because I was using basic auth to access my django app through Ngrok. I removed the basic auth and the IPN was create just fine! So this video is still relevant!
@zackplauche
@zackplauche Жыл бұрын
Hey Eptapus! So I actually haven't used Paypal in a long time now :/ it's been a huge pain to work with (and I actually got banned from them accidentally lol)
Take Paypal Payments On Our Site - Django Wednesdays ECommerce 47
28:20
Recurring Payments with Paypal
19:03
Django Lessons
Рет қаралды 7 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
How To Accept Payments With PayPal
24:35
Web Dev Simplified
Рет қаралды 130 М.
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 321 М.
Django + React JS - How To Integrate React Into Your Django Project
10:46
Django Paypal Payment Integration in 30 Minutes
30:20
THE PROTON GUY
Рет қаралды 12 М.
How to Make Your Own VPN (And Why You Would Want to)
25:54
Wolfgang's Channel
Рет қаралды 2,3 МЛН
Learn Flask for Python - Full Tutorial
46:59
freeCodeCamp.org
Рет қаралды 1,9 МЛН
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 189 М.