Payment (One-off) with Stripe and Django - Part 2

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

КОМЕНТАРІ • 12

  • @oscarr2789
    @oscarr2789 Місяць тому +1

    request.build_absolute_uri instead of settings.BASE_URL
    also consider using the handy @login_required decorator instead of the if request.user...
    Cool video, I have seen many others (including Chat GPT) overcomplicate this process with JS.

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

      Oh thanks for request.build_absolute_uri, thats handy to know.
      Thanks for the feedback.

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

      IMO, checking if the user is logged in only for POST requests is better UX since not all guest users will buy

    • @ajudmeister
      @ajudmeister  Місяць тому +1

      @@casualengineerzombie yes, that was my thinking too, instead of not giving access to the site straight up .

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

      @@casualengineerzombie right!!!

  • @OManreporter
    @OManreporter 2 місяці тому +1

    your videos are quite helpful for me in my career, please keep uploading new videos

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

    So clean, beautiful and readable code👌

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

    Great Video Andreas. This is super helpful. I implemented a webhook few days back and this looks nice.
    I will like to see a video on multi-user authorization like patient, admin and doctor. Also PWA in Django

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

    that's a very well done guide, your channel will grow very fast if you keep it up!

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

      Also recently stripe changed webhooks into event destinations, for some reason it passed for me lol

    • @ajudmeister
      @ajudmeister  4 дні тому

      Strange, it still says webhooks for me, but they moved a few things around. It should not interfere with existing configurations. Thanks for the feedback.