Stripe API: Use list() instead of all() as the former is deprecated

This commit is contained in:
PCoder 2017-10-21 20:46:29 +02:00
parent fb2056bf95
commit 1e08ae5426

View file

@ -127,7 +127,7 @@ class StripeUtils(object):
return card_details
def check_customer(self, id, user, token):
customers = self.stripe.Customer.all()
customers = self.stripe.Customer.list()
if not customers.get('data'):
customer = self.create_customer(token, user.email, user.name)
user.stripecustomer.stripe_id = customer.get(