diff --git a/apps/profile/models.py b/apps/profile/models.py index 3cf727269..21b5d497f 100644 --- a/apps/profile/models.py +++ b/apps/profile/models.py @@ -226,12 +226,15 @@ class Profile(models.Model): # Record Paypal payments paypal_payments = PayPalIPN.objects.filter(custom=self.user.username, + payment_status='Completed', txn_type='subscr_payment') if not paypal_payments.count(): paypal_payments = PayPalIPN.objects.filter(payer_email=self.user.email, + payment_status='Completed', txn_type='subscr_payment') if alt_email and not paypal_payments.count(): paypal_payments = PayPalIPN.objects.filter(payer_email=alt_email, + payment_status='Completed', txn_type='subscr_payment') if paypal_payments.count(): # Make sure this doesn't happen again, so let's use Paypal's email.