2010-10-16 18:59:02 -04:00
|
|
|
"""
|
2014-11-07 16:22:19 -08:00
|
|
|
Note that sometimes you will get duplicate signals emitted, depending on configuration of your systems.
|
2010-10-16 18:59:02 -04:00
|
|
|
If you do encounter this, you will need to add the "dispatch_uid" to your connect handlers:
|
|
|
|
http://code.djangoproject.com/wiki/Signals#Helppost_saveseemstobeemittedtwiceforeachsave
|
|
|
|
|
|
|
|
"""
|
|
|
|
from django.dispatch import Signal
|
|
|
|
|
|
|
|
# Sent when a payment is successfully processed.
|
2015-01-15 12:40:17 -08:00
|
|
|
payment_was_successful = Signal()
|
2010-10-16 18:59:02 -04:00
|
|
|
|
|
|
|
# Sent when a payment is flagged.
|
2015-01-15 12:40:17 -08:00
|
|
|
payment_was_flagged = Signal()
|
2010-10-16 18:59:02 -04:00
|
|
|
|
2014-11-07 16:22:19 -08:00
|
|
|
# Sent when a payment was refunded by the seller.
|
2015-01-15 12:40:17 -08:00
|
|
|
payment_was_refunded = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
|
|
|
# Sent when a payment was reversed by the buyer.
|
2015-01-15 12:40:17 -08:00
|
|
|
payment_was_reversed = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
2010-10-16 18:59:02 -04:00
|
|
|
# Sent when a subscription was cancelled.
|
2015-01-15 12:40:17 -08:00
|
|
|
subscription_cancel = Signal()
|
2010-10-16 18:59:02 -04:00
|
|
|
|
|
|
|
# Sent when a subscription expires.
|
2015-01-15 12:40:17 -08:00
|
|
|
subscription_eot = Signal()
|
2010-10-16 18:59:02 -04:00
|
|
|
|
|
|
|
# Sent when a subscription was modified.
|
2015-01-15 12:40:17 -08:00
|
|
|
subscription_modify = Signal()
|
2010-10-16 18:59:02 -04:00
|
|
|
|
|
|
|
# Sent when a subscription is created.
|
2015-01-15 12:40:17 -08:00
|
|
|
subscription_signup = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
|
|
|
# recurring_payment_profile_created
|
2015-01-15 12:40:17 -08:00
|
|
|
recurring_create = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
|
|
|
# recurring_payment
|
2015-01-15 12:40:17 -08:00
|
|
|
recurring_payment = Signal()
|
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_skipped = Signal()
|
2014-11-07 16:22:19 -08:00
|
|
|
|
2015-01-15 12:40:17 -08:00
|
|
|
recurring_failed = Signal()
|