Finished responsive issues

This commit is contained in:
Levi 2016-12-19 09:33:15 -05:00
commit 3da05e8025
12 changed files with 89 additions and 32 deletions

View file

@ -58,6 +58,12 @@ class StripeUtils(object):
def __init__(self):
self.stripe = stripe
def update_customer_token(self, customer, token):
# customer = stripe.Customer.retrieve(id)
customer.source = token
customer.save()
def check_customer(self, id, user, token):
customers = self.stripe.Customer.all()
if not customers.get('data'):