diff --git a/membership/models.py b/membership/models.py index 7ebf00ca..ac4dc1ad 100644 --- a/membership/models.py +++ b/membership/models.py @@ -212,8 +212,6 @@ class StripeCustomer(models.Model): stripe_customer.user, token) if "deleted" in customer and customer["deleted"]: raise StripeCustomer.DoesNotExist() - #if not customer.sources.data: - # stripe_utils.update_customer_token(customer, token) return stripe_customer except StripeCustomer.DoesNotExist: user = CustomUser.objects.get(email=email) diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index 74b6fa4a..2742045a 100644 --- a/utils/stripe_utils.py +++ b/utils/stripe_utils.py @@ -315,4 +315,4 @@ class StripeUtils(object): """ subscription = stripe.Subscription.retrieve(subscription_id) subscription.metadata = meta_data - subscription.save() \ No newline at end of file + subscription.save()