|
|
@ -155,7 +155,7 @@ class User :
|
|
|
|
# self.user_plan = []
|
|
|
|
# self.user_plan = []
|
|
|
|
# self.customer = {}
|
|
|
|
# self.customer = {}
|
|
|
|
customer = stripe.customer.Customer.list(email=email).to_dict_recursive()['data']
|
|
|
|
customer = stripe.customer.Customer.list(email=email).to_dict_recursive()['data']
|
|
|
|
free_plan = [item for item in self.plans if item['amount'] == 0]
|
|
|
|
free_plan = [item for item in self.plans if 'amount' in item and item['amount'] == 0]
|
|
|
|
if customer :
|
|
|
|
if customer :
|
|
|
|
customer = customer[0]
|
|
|
|
customer = customer[0]
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|