5
I think you can use the Paypal Test Tools to send fake notifactions to your notify url. That might make it easier to debug.
http://www.friendly-stranger.com/pictures/paypal.jpg
What you can also do is run the tests that come with django-paypal. It should be something like
python manage.py test paypal
You can also take a look at the test code and create your own tests to debug your problem.
If you still can’t figure it out post your url configuration and the view that passes the IPN form to the template.
3
I had a similar problem. In my case, I could see from access logs that PayPal is accessing my payment notification URL, and the requests are 200 OK, but no signals triggered on Django side.
Turned out that payments had “Pending” status instead of “Completed” (and I wasn’t listening on paypal.standard.ipn.signals.payment_was_flagged
signal).
The reason my payments were flagged, was incorrect settings.PAYPAL_RECEIVER_EMAIL
and incorrect paypal_dict["business"]
email addresses. Exact same issue as for this guy.
0
In my case the reason was trivial – I’ve added the signal handler code to views.py
which is not loaded automatically so the handler was never really used and connected to the signal. The simplest but ugly solution is to move them to models.py
, recommended is to use Django’s ready() method.
- [Django]-My custom heroku python buildpack downloads requirements on every push
- [Django]-Django can't process non-ascii symbols
- [Django]-Python – Check if user is in team or not
- [Django]-How to redo makemigrations after getting an error?
- [Django]-From the django shell how do you list staff users