On Tue, Apr 6, 2010 at 8:05 PM, Ramdas S <ram...@gmail.com> wrote: > Hi, > > I am trying to use using django-paypal. Everything works fine, expect that > the IPN doesn't reach the site. > > I followed the code a per instructions in the > http://github.com/johnboxall/django-paypal > > I am able to send and receive money. But without IPN the goods which is > primarily information sent over email cannot be delivered. > > Relevant portions of the code is included here. > > http://dpaste.com/180100/ > > When I try testing the notify_url it was giving an error 403 forbidden from > sandbox.paypal.com. I am not sure what is the problem. > > Can someone advise? >
Maybe the CSRF protection kicks in? django-paypal hasn't seen an update in months, and I suspect that the CSRF middleware does not let the IPN POST request from paypal through. Try decorating the paypal IPN view with the @csrf_exempt decorator: http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#exceptions Matthias -- FeinCMS Django CMS building toolkit: http://spinlock.ch/pub/feincms/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.