error in paypal.standard.ipn.models, signal never sent

205 views
Skip to first unread message

Josh Cartmell

unread,
Aug 31, 2011, 4:47:23 PM8/31/11
to django-paypal
There is an error in send_signals in paypal.standard.ipn.models such
that the recurring_payment signal is never sent. The first if is:

if self.is_transaction()

which includes recurring payments because recurring payments have a
txn_id.
Because recurring payments enter the if the following elif where the
recurring_payment signal would be sent is never entered. Because of
this the recurring_payment signal is never sent even when it should
be. An easy fix that is working for me is changing the first if to:

if self.is_transaction and not self.is_recurring()

Regards,
Josh
Reply all
Reply to author
Forward
0 new messages