NewsBlur/vendor/paypal/standard/ipn/signals.py

43 lines
1.1 KiB
Python
Raw Normal View History

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.
payment_was_successful = Signal()
2010-10-16 18:59:02 -04:00
# Sent when a payment is flagged.
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.
payment_was_refunded = Signal()
2014-11-07 16:22:19 -08:00
# Sent when a payment was reversed by the buyer.
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.
subscription_cancel = Signal()
2010-10-16 18:59:02 -04:00
# Sent when a subscription expires.
subscription_eot = Signal()
2010-10-16 18:59:02 -04:00
# Sent when a subscription was modified.
subscription_modify = Signal()
2010-10-16 18:59:02 -04:00
# Sent when a subscription is created.
subscription_signup = Signal()
2014-11-07 16:22:19 -08:00
# recurring_payment_profile_created
recurring_create = Signal()
2014-11-07 16:22:19 -08:00
# recurring_payment
recurring_payment = Signal()
2014-11-07 16:22:19 -08:00
recurring_cancel = Signal()
2014-11-07 16:22:19 -08:00
recurring_skipped = Signal()
2014-11-07 16:22:19 -08:00
recurring_failed = Signal()