tags:

views:

213

answers:

2

I am trying to test IPN. Working with django-paypal. What could be wrong.

The URL is working. No errors otherwise...

But when I test this, it says IPN delivery failed and error code is 403,

+1  A: 

Do you have your website password protected? It sounds like paypal is getting a 403 response from your webserver. Make sure paypal can get to your website without requiring basic auth or something like that.

dar
Some portions of the site are. But not the page that's been pointed to
ramdaz
+1  A: 

Same problem on my site. Turns out that when telneting the server, I get the following details concerning the 403:

Forbidden (403)

CSRF verification failed. Request aborted.

Hooray, the csrf validation works ;D Now i gotta figure out how to turn it off for this particular form. Hope this hint helps anyone encountering the 403 when using django-paypal.

Niahouho
Dude! Thank you! I solved this problem before and then forgot about it... he really should update his git!! Just add the `@csrf_exempt` decorator.
Mark