Signal does not run

10 views
Skip to first unread message

Ricardo Kamada

unread,
Nov 18, 2013, 12:38:54 PM11/18/13
to django...@googlegroups.com
Hi. I have a problem in the signal, because it fails to run.
The print "Hello word" is not displayed. Can anyone help me identify my mistake? Thanks

from djpg.signals import transaction_paid
def on_paid(sender, **kwargs):
transaction = kwargs.pop('transaction')
ref = transaction['reference']
print "HELLO WORD"
# ...

transaction_paid.connect(on_paid)

Ricardo

Ricardo

unread,
Nov 18, 2013, 2:49:39 PM11/18/13
to django...@googlegroups.com
resolved.
I was not recording the other signs, for this reason he was never called.
transaction_canceled.connect(on_canceled)
transaction_waiting.connect(on_waiting) 
...

Thanks
Reply all
Reply to author
Forward
0 new messages