Permalink
Browse files

Merge branch 'master' of http://github.com/chrischambers/django-paypal

…into chrischambers-master
  • Loading branch information...
2 parents 6225b40 + 3066b39 commit b459c91e5a8f08cebc7b1099df7e5452b96a4497 @dcramer committed Oct 29, 2010
Showing with 5 additions and 1 deletion.
  1. +1 −0 paypal/pro/helpers.py
  2. +1 −1 paypal/pro/models.py
  3. +3 −0 paypal/pro/signals.py
View
@@ -126,6 +126,7 @@ def createRecurringPaymentsProfile(self, params, direct=False):
# Flag if profile_type != ActiveProfile
if nvp_obj.flag:
raise PayPalFailure(nvp_obj.flag_info)
+ payment_profile_created.send(params)
return nvp_obj
def getExpressCheckoutDetails(self, params):
View
@@ -59,7 +59,7 @@ class Meta:
def init(self, request, paypal_request, paypal_response):
"""Initialize a PayPalNVP instance from a HttpRequest."""
- self.ipaddress = request.META.get('REMOTE_ADDR', '')
+ self.ipaddress = request.META.get('REMOTE_ADDR', '').split(':')[0]
if hasattr(request, "user") and request.user.is_authenticated():
self.user = request.user
View
@@ -9,6 +9,9 @@
"""
+# Sent when a recurring payments profile is created.
+payment_profile_created = Signal()
+
# Sent when a payment is successfully processed.
payment_was_successful = Signal() #providing_args=["item"])

0 comments on commit b459c91

Please sign in to comment.