2015-01-15 12:40:17 -08:00
|
|
|
from django.dispatch import Signal
|
2010-10-16 18:59:02 -04:00
|
|
|
|
|
|
|
"""
|
|
|
|
These signals are different from IPN signals in that they are sent the second
|
|
|
|
the payment is failed or succeeds and come with the `item` object passed to
|
|
|
|
PayPalPro rather than an IPN object.
|
|
|
|
|
|
|
|
### SENDER is the item? is that right???
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
2014-11-07 16:22:19 -08:00
|
|
|
# Sent when a recurring payments profile is created.
|
2015-01-15 12:40:17 -08:00
|
|
|
payment_profile_created = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
2010-10-16 18:59:02 -04:00
|
|
|
# Sent when a payment is successfully processed.
|
2015-01-15 12:40:17 -08:00
|
|
|
payment_was_successful = Signal() #providing_args=["item"])
|
2010-10-16 18:59:02 -04:00
|
|
|
|
2015-01-15 12:40:17 -08:00
|
|
|
# Sent when a payment is flagged.
|
|
|
|
payment_was_flagged = Signal() #providing_args=["item"])
|
2014-11-07 16:22:19 -08:00
|
|
|
|
2015-01-15 12:40:17 -08:00
|
|
|
recurring_cancel = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
2015-01-15 12:40:17 -08:00
|
|
|
recurring_suspend = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
2015-01-15 12:40:17 -08:00
|
|
|
recurring_reactivate = Signal()
|