At the bottom of models.py I have:
from paypal.standard.ipn.signals import payment_was_successful, payment_was_flagged
import pay
payment_was_successful.connect(pay.paypal_success)
payment_was_flagged.connect(pay.paypal_flagged)
I'm using the Paypal Developer IPN simulator and it returns "IPN sent successfully", but the code in pay.paypal_success
and pay.paypal_flagged
isn't being executed.
The paypal_ipn
table is being populated, however I noticed under flag_info
every row has:
Invalid form. (<ul class="errorlist"><li>payment_date<ul class="errorlist">
<li>Enter a valid date/time.</li></ul></li></ul>)
I don't know if this has anything to do with the signals not working.