Django Paypal Payment Integration in 30 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • 👋 Welcome to today's tutorial on "Django & PayPal Integration: The Complete Guide!"
    🛠 What You'll Learn:
    How to set up your Django project for e-commerce functionality.
    Step-by-step instructions on integrating PayPal APIs.
    Managing transactions and creating a seamless checkout experience for your users.
    📌 Why PayPal?
    PayPal is one of the most trusted and widely-used online payment platforms. Integrate it with your Django web app to offer a smooth and secure checkout experience to your customers.
    🔧 Pre-Requisites:
    Basic understanding of Django and Python
    🔗 Links & Resources:
    Code on GitHub: github.com/The...
    Ssndbox account: sandbox.paypal...
    Test card: developer.payp...
    PayPal Developer Documentation: developer.payp...
    👍 If you found this tutorial helpful, please like, share, and subscribe for more in-depth coding tutorials!
    ******* Socials *******
    Discord: / discord
    Patreon: / theprotonguy
    Linkedin: / ayodeji-adesola-15392a22b
    Instagram: / the_proton_guy
    Telegram channel: t.me/sO6ZFOaia...
    Twitter: / ayodejiadesola_
    #Django #PayPal #WebDevelopment #Ecommerce #Python #djangopaypal

ความคิดเห็น • 42

  • @alejandrosantiago4700
    @alejandrosantiago4700 9 หลายเดือนก่อน +4

    You have the besto PayPal tutorial for integrating it into a Django application!!! Keep it up.

  • @code-with-vivek
    @code-with-vivek 5 หลายเดือนก่อน +1

    You are the best...I appreciate the detailed video on integrating Paypal with Django. Have been searching for this and gone through a lot of documentation, but everything seemed outdated or incomplete then I came across your video...

    • @the_proton_guy
      @the_proton_guy  5 หลายเดือนก่อน

      I am glad I could help 🎉🎉

  • @bapbap6682
    @bapbap6682 9 หลายเดือนก่อน +2

    Hey guys, I just want to let you know that you can just use the smart buttons option. You basically take a link and then use a anchor element in your HTML code so you don't really have to do the integration manually.

  • @Ash2Tutorial
    @Ash2Tutorial 4 หลายเดือนก่อน

    I found it very helpful. Your video was short and to the point.

    • @the_proton_guy
      @the_proton_guy  4 หลายเดือนก่อน

      I am glad I could help 🎉

  • @mashin4777
    @mashin4777 6 หลายเดือนก่อน +1

    It's look like anybody can go straight to payment success url and if you will do any additional logic (like it should be) , for example - marking order as paid at this view, anyone can get any product for free, am I missing something?

    • @the_proton_guy
      @the_proton_guy  6 หลายเดือนก่อน

      Yes you’re right extra validation can be done to prevent things like that like for example, generating unique payment id’s with uuid and the passing those into the url. The main idea of the video was to teach how to integrate PayPal with Django

    • @mashin4777
      @mashin4777 6 หลายเดือนก่อน

      Thank you, anyway, for your job, I just felt it's important to notice, since for many people youtube tutors is an copy/paste source :)@@the_proton_guy

  • @mvk576
    @mvk576 10 หลายเดือนก่อน +2

    I tried to change the receiver email in settings but it's not working can anyone help me please

    • @the_proton_guy
      @the_proton_guy  10 หลายเดือนก่อน +2

      Make sure the receiver email is a real email signed up with PayPal

  • @jjssam5165
    @jjssam5165 5 หลายเดือนก่อน +1

    How can I solve the issue that anyone can simply access the payment success url(where I will be adding important view logic to mark an order as paid)?
    What do you think about my method? I am thinking about creating an order instance with a unique uuid field when the user enters the checkout page. Then, I am going to make this order's uuid part of the return_url to the PaymentSuccessful view. That way, once the user is redirected to the PaymentSuccessful view after a successful paypal payment, I will be able to check in the backend whether the return_url's uuid matches one of the orders' uuid field. This way I would be able to identify the correct order (and thus product), and prevent the user from creating additional orders by simply reloading the PaymentSuccessful url. I would appreciate your opinon on whether this would work. Thank you.

    • @the_proton_guy
      @the_proton_guy  5 หลายเดือนก่อน

      Yeah that’s a good way of doing it. Once the use lands on the page, you check if the uuid in the url actually exists in the database and if it does, you can mark the order with that uuid as paid. If it is not valid, redirect the person to the checkout page maybe or any other page you want.

    • @jjssam5165
      @jjssam5165 5 หลายเดือนก่อน

      ​@@the_proton_guy Hey, thanks for the confirmation!
      Before I deploy the website to a live server, are there any other security gaps that I need to take care of if I following this video's instructions (other than the one I mentioned before regarding PaymentSuccessful view)? Also, I just need to change the settings to PAYPAL_TEST = False in order to make this production ready right?

    • @the_proton_guy
      @the_proton_guy  5 หลายเดือนก่อน +1

      Yes, make sure you set that to False! I think that should be all

  • @JuniorWog
    @JuniorWog 8 หลายเดือนก่อน +2

    what if a customer want to buy more than one artice at one time ?
    ( for the total price )

    • @the_proton_guy
      @the_proton_guy  8 หลายเดือนก่อน +2

      That’s where a carting system comes in. The customer can add all what they what to buy to a cart and then checkout (payment by PayPal) all the items in the cart at once and the total price for the items will be specified in the code alter summing the total prices. In the video, I did not build a carting system though because I wanted it to be as simple and short as possible

    • @JuniorWog
      @JuniorWog 8 หลายเดือนก่อน +1

      @@the_proton_guy thanks so much for the answer. did you have an exemple video for me ?

    • @the_proton_guy
      @the_proton_guy  8 หลายเดือนก่อน

      I don’t personally have a video but I can recommend another one here:
      th-cam.com/video/_IlXd2n0_mA/w-d-xo.htmlsi=kDo9l5SgEETIkHeD

  • @siyonshaji1013
    @siyonshaji1013 5 หลายเดือนก่อน +1

    When i try this paypal checkout page shows try again. "Things dont appear to be working at this moment", this message is displayed. What to do now

    • @the_proton_guy
      @the_proton_guy  5 หลายเดือนก่อน

      It could be from them. Maybe try later. I ran into this issue once

    • @siyonshaji1013
      @siyonshaji1013 5 หลายเดือนก่อน

      @@the_proton_guy ok

    • @siyonshaji1013
      @siyonshaji1013 5 หลายเดือนก่อน +1

      ​@@the_proton_guyit's not working till now can you make a new video doing the same

    • @the_proton_guy
      @the_proton_guy  5 หลายเดือนก่อน

      Ok

    • @mouadrguibi
      @mouadrguibi หลายเดือนก่อน

      i have the same probleme did you figured it out?

  • @codedjango
    @codedjango ปีที่แล้ว +1

    Can you demo with django razorpay?

    • @the_proton_guy
      @the_proton_guy  ปีที่แล้ว +1

      Yes, I can look into it

    • @samakeyacouba393
      @samakeyacouba393 10 หลายเดือนก่อน +1

      i can demo zith django razorpay

  • @adekunleblessing5518
    @adekunleblessing5518 26 วันที่ผ่านมา

    Can we have PayStack Integration?

  • @user-hy8eo5vx6m
    @user-hy8eo5vx6m ปีที่แล้ว +1

    Where is the link for the code

    • @the_proton_guy
      @the_proton_guy  ปีที่แล้ว

      Hi, i am sorry i forgot to put in in the description. Here it is:
      github.com/TheProtonGuy/Django-paypal-integration

  • @user-ju7dw9yc1b
    @user-ju7dw9yc1b 9 หลายเดือนก่อน

    After Paypal payment , I want to be redirected automatically to the PaymentSuccessful view instead of first click back to webstore and get the PaymentSuccessful view. Is that possible? If yes, how to change the code?

    • @the_proton_guy
      @the_proton_guy  9 หลายเดือนก่อน

      I don’t think so

    • @legendsanimexy8217
      @legendsanimexy8217 8 หลายเดือนก่อน

      Have you done it brother ?

    • @the_proton_guy
      @the_proton_guy  8 หลายเดือนก่อน

      Hello, what issue are you facing and how can I help you

    • @legendsanimexy8217
      @legendsanimexy8217 8 หลายเดือนก่อน

      @@the_proton_guy not about this topic it was a great video but I have some questions regarding django .
      Can you please make a video what are thoose concepts which should be learnt to become a junior level django developer to creat product level apps or to be able to apply for junior level jobs .
      I have been learning djnago for some time currently I am focusing on drf

    • @the_proton_guy
      @the_proton_guy  8 หลายเดือนก่อน

      Oh okay. I will work on those