forked from dcramer/django-paypal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
Note that sometimes you will get duplicate signals emitted, depending on configuration of your systems. | ||
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() | ||
|
||
# Sent when a payment is flagged. | ||
payment_was_flagged = Signal() | ||
|
||
# Sent when a subscription was cancelled. | ||
subscription_cancel = Signal() | ||
|
||
# Sent when a subscription expires. | ||
subscription_eot = Signal() | ||
|
||
# Sent when a subscription was modified. | ||
subscription_modify = Signal() | ||
|
||
# Sent when a subscription ends. | ||
subscription_signup = Signal() |