From 1e08ae54268d70efe298dffebc36257458d5fdbf Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 21 Oct 2017 20:46:29 +0200 Subject: [PATCH] Stripe API: Use list() instead of all() as the former is deprecated --- utils/stripe_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index 304f060e..ac01b9d5 100644 --- a/utils/stripe_utils.py +++ b/utils/stripe_utils.py @@ -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(