DISQUS

Django Aware: PayPal IPN Python Code

  • sean · 1 year ago
    quite useful code!
    thanks for sharing.
  • Michael Warkentin · 1 year ago
    Thanks for this! Perfect timing for me! :)
  • Chris · 1 year ago
    We've implemented something pretty similar in Satchmo. You can see the view we use for paypal IPN support - http://www.satchmoproject.com/trac/browser/satc...

    Like you said, though, the API is really pretty simple but this might help people understand how to link into other parts of their app.
  • Adam Fisk · 9 months ago
    This is super handy for me -- thanks. Just wanted to let you know your RSS XML seems to be broken.
  • cprail · 8 months ago
    Thank you very much. Simple, but a little help is always welcomed!
  • Guest · 7 months ago
    I hope we all learn something new each and everyday. It is what helps to improve who we are.
  • Craigslist Proxy · 7 months ago
    Was a good read. I'll be back for more.
  • Guest · 7 months ago
    Was a good read. I'll be back for more.
  • Brian Neal · 6 months ago
    Thanks for posting this.

    I didn't think you could index a request object like you are doing in line 13?
  • presa canario · 6 months ago
    Sweet, I'm going to recommend this option for my office.
  • built in gas grills · 6 months ago
    That's awesome i wanted this code badly and i got here.

    Can you give me shopping cart script for my website i am doing online portal through that website i will sell my some products like books and some electrical products.

    Thanks
  • MMA Pound For Pound · 6 months ago
    Thank you for the code, I have been trying to learn about this. You have helped me a lot.
  • raniologi · 6 months ago
    Thank you very much, great post.
  • Jesper Taxbøl · 2 months ago
    First of all good work! :)

    I am just trying to integrate this snippet in a small django app, and I am having trouble making it work. This might be because im working through a shell, and only have passive means to detect how long the script succeeds. So debugging is sort of a pain.

    But it seems to me that something might have changed or there is an error in the code. Can anybody verify that it is still working?

    I suspect the same thing Brian Neal suspects, that the line 13 is wrong. I tried assuming that the payment_status is found in the POST data. This brings me down to the first urlencode, which then fails on me.

    This might be because I have nordic characters in my name, which pops up in the data. (http://stackoverflow.com/questions/787935/pytho...) But im not sure.

    Any ideas?

    Sorry for being such a noob :)