Django Paypal | Client Side Integration

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 119

  • @DennisIvy
    @DennisIvy  2 місяці тому

    Don't forget to check out my Complete Django course! dub.sh/NvGboTI

  • @litDevYT
    @litDevYT 4 роки тому +21

    denis is just a gift from heaven

  • @kristoferkangro4217
    @kristoferkangro4217 3 роки тому +2

    Even though it is hard for me to understand everything completley I still find the video very useful and leading to me in the right direction. Thank you for making this video.

  • @mianawais2947
    @mianawais2947 4 роки тому +11

    Dude😍!!!!
    Just say, thank you so much 😍😍 for this kind of content.

  • @actionphotopassion5082
    @actionphotopassion5082 4 роки тому +1

    Hi Dennis,
    Which of the two you consider he most plug'n play between Stripe and Paypal as you played around with the 2 APIs ?

  • @TheCodeholic
    @TheCodeholic 3 роки тому

    Hey Dennis,
    I just need Paypal integration in my PHP application and this video definitely helped me out.
    Thanks.

  • @kosamomollo1072
    @kosamomollo1072 4 роки тому +1

    Received the notification right away and clicked the play button 🔥

    • @DennisIvy
      @DennisIvy  4 роки тому

      Haha I appreciate your support Khosam :)

  • @skateforhero
    @skateforhero 4 роки тому +9

    Hi Dennis! Thanks for the tutorial. It was extremely useful. I have however a question with regards to safety. With the current set up, wouldn't it be possible for someone to inject post requests manually and mess with your database? basically sending post requests to your completed URL containing a json (with potentially valid product ID's)

    • @arthurchoate5566
      @arthurchoate5566 3 роки тому

      For anyone who is curious: developer.paypal.com/docs/checkout/integration-features/auth-capture/#5-capture-the-authorization, you'll have to authorize it via Paypal.

  • @pranavgoswami2814
    @pranavgoswami2814 4 роки тому +1

    Thanks dude, I am inspired by you so much. You really are a great developer and a great programmer. Thank you so much and happy coding!

  • @aniekanessiet7886
    @aniekanessiet7886 3 роки тому

    Damn bro!!!!! God bless you. I'm without words, I've spent months on this shit to no avail, thanks bro 100%

  • @firasjb4393
    @firasjb4393 4 роки тому +3

    great content, i would appreciate a tutorial about PayPal integration in the back-end with a monthly subscription for example

  • @paulklein5167
    @paulklein5167 4 роки тому +3

    Thank you Dennis- much appreciated!

  • @kevindesforges8421
    @kevindesforges8421 Рік тому +1

    Did something happen to PayPal's client side integration? When I created my business account on PayPal, PayPal only shows server side integration in their SDK materials. I cannot get any of the client side code Dennis was using (noticing his video is now 3-years old).

  • @WilliamMcVey-wam
    @WilliamMcVey-wam 4 роки тому +1

    Seems like anyone who looks at the code can see the format of the paymentComplete() endpoint and push Order records into the database. For this to actually be sufficient, there needs to be server side validation of order from Paypal (including validating that the purchase_units record wasn't manipulated before Paypal processing occurs. Alternatively, using Paypal webhooks to validate the order and create the Order objects could work as well.

  • @ruancarlos4436
    @ruancarlos4436 3 роки тому

    Very good video Dennis get me a question, is it possible for the user to change the price of the product by inspecting the browser and sending the changed value to paypal? Or when the page loads, we already make a call to an API and it already holds this fixed value.

  • @evgeniymishchenko5107
    @evgeniymishchenko5107 4 роки тому +1

    Dennis, Hello! I like what you doing. Are you from Russia? I know that you do not live in Russia, I mean do you speak russian? Is it hard for you to learn Python (Django) and JS (React) ?

  • @mousex5532
    @mousex5532 4 роки тому +2

    how to get cvv no for that debit cards im stuck [I cant select standard paypal account(banking) not showing]

  • @patricklam18
    @patricklam18 4 роки тому +1

    It's really cool! Thank you man.

  • @AhmedAli-oc3xp
    @AhmedAli-oc3xp 4 роки тому +2

    Dennis Please! post the 2nd video of paypal integration...

  • @dailymeow3283
    @dailymeow3283 3 роки тому

    Hry Dennis, why it's never capturing credit and debit cards payment, it always shows " something went wrong, try again later"
    Is there a different code for credit and debit cards ?

  • @infinitx1330
    @infinitx1330 3 роки тому

    Hi Dennis, I have come to your video, for learning how to add paytm for an app I'm developing in django. I would like to know if it is safe to do client side integration or would it make things easier for a hacker.

  • @abijahmashava6279
    @abijahmashava6279 3 роки тому

    When I try to deploy in heroku I get error:"Requested runtime (python-3.8.3) is not available for this stack (heroku-20)" even though I am running python 3.8.3 and its set in 'runtime.txt'

  • @BeattapeFactory
    @BeattapeFactory 3 роки тому

    this saved me days of work

  • @rangabharath4253
    @rangabharath4253 4 роки тому

    Awesome as always

  • @agkayati2652
    @agkayati2652 4 роки тому +4

    @Dennis , It's great content ever I found on Google and UA-cam to add payment gateway into django website . you described everything well and very clearly . But my question is that , Is that is enough to receive secure transactions ? Can someone copy our payment content from browser inspector and miss use them ? You talked about server link in this video what is that and Is that play any important role to receive payments ? I love your videos . I am new on django but very crazy to build a secure website . Thank you for this video , I am waiting for your next video on django .

    • @WilliamMcVey-wam
      @WilliamMcVey-wam 4 роки тому +1

      I'm looking at this and as a pentester, I don't see anything that precludes me from directly interacting with the backend endpoint for paymentComplete() to push valid orders into the database while totally bypassing the PayPal processing. Or, just as easily, changing the orders json object that gets pushed into Paypal for approval. What really needs to be covered is either server side validation of the order payments or a description of using Paypal Webhooks to validate the order process completed as expected.

    • @kaibrown7214
      @kaibrown7214 4 роки тому +1

      ​@@WilliamMcVey-wam​ Gheesh thank goodness! Im a fish out of water with this web dev stuff, but was having the hardest time imagining this as secure, and was hoping to see something just like this. THANKS!
      Alsssooo if you dont mind my asking, im a lil lost on where to start with validating the orders on the backend. Where do I begin??

  • @etienneloutsch1718
    @etienneloutsch1718 4 роки тому +1

    Hi @Dennis, if i right click and go to console, i can change the amount.
    How to prevent from that ?

  • @mohammedqadir3851
    @mohammedqadir3851 4 роки тому +1

    Thank you so much sir adding Paytm and paypal type request using Django thank you Sir....

  • @franku.n.1798
    @franku.n.1798 4 роки тому

    Thank you Dennis this is so awesome and simplified. Can you make a video as your mention implementing the server side of PayPal integration with Django for video subscription. Thank you in anticipation.

  • @polymetisoutis
    @polymetisoutis 2 роки тому

    Thanks, Dnnis!!
    Just in case, image url explanation 19:31.

  • @oryankibandi3556
    @oryankibandi3556 4 роки тому +1

    Hey Dennis, i got started with django abt a month ago and was wondering whats the best frontend library,or how do i go about learning frontend development after grasping a bit of the django backend. Thanks.

    • @paristar3079
      @paristar3079 4 роки тому

      Learn CSS and JavaScript first and if you already know learn React or Vue

    • @DennisIvy
      @DennisIvy  4 роки тому

      Like Pari Mentioned, you will need to get a base understanding of HTML/CSS but I recommend you try using plain JavaScript before moving to a framework like React or Vue.

  • @rishabh152
    @rishabh152 3 роки тому

    very nice explanation sir, keep it up

  • @zacharykohs2378
    @zacharykohs2378 2 роки тому

    How would you redirect to another page after you completed an order? I used the the action.redirect function like suggested in the script but it keeps saying that it must be a fully qualified url. I'm using the url template tag too for my redirected url.

  • @NishithSinghai
    @NishithSinghai 3 роки тому

    amount = 5 is hard coded. How can we take input from user and pass it to stripe checkout. Also, say i enrol for course on teachable. Will there be space to ask such questions. Thank you

  • @wailik8783
    @wailik8783 3 роки тому

    hey dennis, when i change my value in the paypal setup transaction which value:total, my sandbox can't seem to load when i click on paypal payment option. Can anyone help me out?

  • @filipk2834
    @filipk2834 3 роки тому

    What if someone will just type completeOrder() in console? He will skip payment and get order without it.

  • @elnazdehkharghani6121
    @elnazdehkharghani6121 4 роки тому

    Dear Dennis, When I submit each of my orders they do not add automatically in my admin panel, would you please let me know where is my problem? (every other works properly...)

  • @gabi-e1i
    @gabi-e1i 2 роки тому

    After the user completes the payment, how do I give him access to the content that he bought?

  • @ashleywilkonson386
    @ashleywilkonson386 4 роки тому +1

    Do you need to have a licensed business to use this in production? I had to register an LLC to use Stripe, and it's such a headache.

    • @DennisIvy
      @DennisIvy  4 роки тому +1

      No you can select the "Sole-proprietorship" option and this will just require a social security number, at least in the US. Paypal makes it simple for individuals to use

    • @ashleywilkonson386
      @ashleywilkonson386 4 роки тому

      @@DennisIvy Damn I wish I would have looked more into it, their documentation wasn't very good when I made my Django shopping site and I assumed it would be a similar situation. Thanks man!

  • @pavodindoyi3415
    @pavodindoyi3415 3 роки тому

    I really appreciate the content of this video. Would you please share a link of the backend integration?

  • @saldax9489
    @saldax9489 4 роки тому

    wathe about membership and plans. can you help me I have a big problem to implement this in my project

  • @abdallahmahmoud8642
    @abdallahmahmoud8642 4 роки тому +1

    Hello Dennis,
    i have an important question, can someone make the browser send a post request without actually buying the product?? I don't think the csrf token will prevent that. please correct me if i am wrong.
    happy coding :'D

    • @DennisIvy
      @DennisIvy  4 роки тому

      In theory yes but in a real application we can right rules in our view to ensure the proper data is there, like a Transaction ID.

    • @abdallahmahmoud8642
      @abdallahmahmoud8642 4 роки тому

      @@DennisIvy alright yes.
      Thanks man, Stay safe.

  • @beksultankenzhebekov7193
    @beksultankenzhebekov7193 3 роки тому

    Hi, great tutorial series, unfortunately PayPal and Stripe are not supporting in my country, there is only QIWI international payment system, is it possible to integrate QIWI ?

  • @fsadykov
    @fsadykov 4 роки тому

    Can user inspect checkout page and change the amount? What is going to happen if the user will change that amount and submit payment? How you are validating the right amount?

  • @Jacob-ne7ro
    @Jacob-ne7ro 4 роки тому +1

    Hi Dennis, will you record a guide on how to create e-commerce?

    • @DennisIvy
      @DennisIvy  4 роки тому +1

      Yes that's coming next :) I try to make these videos before hand so I can just reference them and not have to teach paypal/stripe integration in one video.
      I'm gonna do something similar with the dashboard video where I will teach "Charts" and "google maps" in separate videos so you guys have time to learn.

  • @mariomartinezjr5519
    @mariomartinezjr5519 4 роки тому +2

    It is that I was looking for, but do you have a tutorial with integration in backend side?

  • @ИгорьКузнецов-т8р
    @ИгорьКузнецов-т8р 4 роки тому +1

    Hi Dennis! Thank you for great stuff! Can you advise wich settings I should use in settings.py file for my django site to deploy my site to real server to make it more secure?

    • @DennisIvy
      @DennisIvy  4 роки тому

      In production you should have a separate settings.py called, I have not taught on this yet. The main thing is to make sure DEBUG is set to false when you are live and try to put any items such as passwords and secret keys into environment variables, especially if you are sharing your code with others.

    • @ИгорьКузнецов-т8р
      @ИгорьКузнецов-т8р 4 роки тому

      @@DennisIvy ok. but what about allowed hosts? Maybe you can show how settinds.py file should looks like?

  • @abuyahyadiab363
    @abuyahyadiab363 Рік тому

    Hi, I wanna ask if this video still valid until this date.
    I'm asking because of the variations of django.
    Your projects is far powerfull(I'm now in chat application project, it's far nice), and I hope this also be valid

  • @bharathab8038
    @bharathab8038 4 роки тому +1

    hey Dennis, I like the content you are making, currently, I am having a hard time learning authorization and permissions with multi-tenant model. example, saas webapp with various companies and multi levels of users in that company. can you explore on that topic in your next video?

    • @sachinmishra4614
      @sachinmishra4614 4 роки тому

      Hi I know it's random but
      Can you help me out ith making n level user based upon dynamic sidebar bootstrap menu in django

    • @DennisIvy
      @DennisIvy  4 роки тому +1

      I might get to that when I create my subscription based website with permission levels. I'll do my best to answer your question when I get to it :)

    • @bharathab8038
      @bharathab8038 4 роки тому

      @@DennisIvy thanks for replying, any idea when might that be?

  • @janwszoek1578
    @janwszoek1578 4 роки тому

    Hello are you planning to do some videos about Phyton?

  • @JavierMezaOo
    @JavierMezaOo 4 роки тому

    You are Big ! THX for sharing

  • @pawanmandal8787
    @pawanmandal8787 4 роки тому +2

    how to learn django full course i have basic idea of django
    can you suggest me??

    • @ashoksa1484
      @ashoksa1484 4 роки тому

      follow his Django series he had already uploaded those tutorials

    • @DennisIvy
      @DennisIvy  4 роки тому +1

      Ashok already mentioned my course but I will keep adding more content to advance such as this video.

    • @ashoksa1484
      @ashoksa1484 4 роки тому

      @@DennisIvy I am eagerly waiting for those video sir

  • @Gaetano46096
    @Gaetano46096 3 роки тому

    hi, how do i REDIRECT IN OTHER PAGE ?
    // Finalize the transaction
    onApprove: function(data, actions) {
    return actions.order.capture().then(function(details) {
    // Show a success message to the buyer
    actions.redirect();
    completeOrder()
    alert('Transaction completed by ' + details.payer.name.given_name + '!');
    });

  • @mattkurantowicz
    @mattkurantowicz 4 роки тому +1

    Can you create a tutorial how to pay with cryptocurrency and Django?

  • @STANFORDCHIHOYI
    @STANFORDCHIHOYI Місяць тому

    so how to l integrate live paypal account with django then

  • @harshassp9144
    @harshassp9144 4 роки тому

    Please make video on solr search integration to Django website search

  • @clarencebaluyot8652
    @clarencebaluyot8652 4 роки тому

    Hi when will you upload the server side integration for this sir? im a beginner in integrating this things

  • @tjmcmanamey
    @tjmcmanamey Рік тому

    Is there a way to get the transaction ID with this?

  • @abdulazizalqallaf1704
    @abdulazizalqallaf1704 4 роки тому

    What if the user changed the value in the front end to 0.0$?

  • @Carlanga0
    @Carlanga0 7 місяців тому

    Were is the Server-Side version of this video?

  • @pascavlad351
    @pascavlad351 4 роки тому +1

    Do you think that I can get a job at FANG as a django developer?

    • @DennisIvy
      @DennisIvy  4 роки тому +1

      That's tricky to answer but in short ,yes. When learning django you are not just learning the framework but including python, maybe some front end framework or language like JS and other technologies.
      By becoming a full stack "Django" developer you are covering alot of topics therefore becoming a "Developer" and not just a "django developer". This can make you well rounded and ready for many types of positions.

    • @pascavlad351
      @pascavlad351 4 роки тому

      @@DennisIvy and do you think django is better for a beginner who only knows the basics in python than flask?

  • @mercy_oyoo
    @mercy_oyoo 4 роки тому

    Good tutorial, thank you

  • @devarakondaavinash10
    @devarakondaavinash10 4 роки тому +1

    Hi Dennis
    Kinly do Django industry based projects

  • @sachinmishra4614
    @sachinmishra4614 4 роки тому

    Thank you .
    Can you help me out ith making n level user based upon dynamic sidebar bootstrap menu in django

  • @narendrasaud1860
    @narendrasaud1860 4 роки тому

    its helpful thanku so mucha sr

  • @danielrosas2240
    @danielrosas2240 3 роки тому

    Una joya de vídeo! :)

  • @AliKHYAR
    @AliKHYAR 4 роки тому

    ma man life saver

  • @a2zlearninghub67
    @a2zlearninghub67 4 роки тому

    Thanks 😊 man!!

  • @nyamorawilliam6442
    @nyamorawilliam6442 Місяць тому

    the source code is not available

  • @adamhughes5527
    @adamhughes5527 4 роки тому

    thanks dude!

  •  4 роки тому

    thank you very much.

  • @lecturesoniesgatepreparati8554
    @lecturesoniesgatepreparati8554 4 роки тому

    Good bro

  • @abdurahmanyusuf5170
    @abdurahmanyusuf5170 4 роки тому

    thank you sir

  • @imiebaka
    @imiebaka 3 роки тому +1

    Let's hope the image URL does not change 🤭️
    Thank you for the information shared
    .
    Alternatively you can use the fetch() API without using getCookie function.
    "X-CSRFToken": "{{ csrf_token }}", //put this in the header tag

  • @thambora4078
    @thambora4078 4 роки тому

    Bro pls upload Django middleware tutorial series

  • @GiuseppeSerraonline
    @GiuseppeSerraonline 4 роки тому

    well done

  • @utku_yucel
    @utku_yucel 4 роки тому

    Thanks!

  • @theghate
    @theghate 4 роки тому +2

    You should make a django tutorial on udemy!

    • @DennisIvy
      @DennisIvy  4 роки тому

      I'm working on a few courses :)

    • @theghate
      @theghate 4 роки тому

      @@DennisIvy On udemy? I would like a project course with connecting to postgres etc. I feel that when I pay for a course on udemy I am more dedicated to learning it rather then just from youtube. Idk maybe thats just me wanting to spend money jaja

  • @okeyshourovroy2769
    @okeyshourovroy2769 3 роки тому

    Please make server side too. Client side can bieeasily manipulated

  • @havaranis
    @havaranis 4 роки тому

    At the product page you can go to the console and type total=0.01. Then you can buy the product for 0.01. What a security flaw.

    • @DennisIvy
      @DennisIvy  4 роки тому +1

      Nope. It’s up to you to add in something on the backend to ensure the user doesn’t manipulate the price.
      I always query the database for the product/price and ensure that the value matches. If not, just send back an error.

    • @kaibrown7214
      @kaibrown7214 4 роки тому

      @@DennisIvy This is a pretty big thing not to mention man... Still think you're a lifesaver tho. Keep up the good work!

  • @PixeLabor
    @PixeLabor 4 роки тому

    This is completely insecure you could just send use the completorder function

  • @sukalporoy8186
    @sukalporoy8186 4 роки тому +1

    Hello Dennis Ivy,
    Please upload a video how we can use/intregate a machine learning model with a django site
    Please upload it as soon as possible.

  • @rajkushwahar
    @rajkushwahar 4 роки тому

    it's not complete

  • @lecturesoniesgatepreparati8554
    @lecturesoniesgatepreparati8554 4 роки тому

    Gango

  • @lecturesoniesgatepreparati8554
    @lecturesoniesgatepreparati8554 4 роки тому

    Create one game bri

  • @sifadrifad4202
    @sifadrifad4202 4 роки тому

    Thank you so much

    • @DennisIvy
      @DennisIvy  4 роки тому

      You're most welcome Sifad :)