Stripe API: Use list() instead of all() as the former is deprecated
This commit is contained in:
		
					parent
					
						
							
								fb2056bf95
							
						
					
				
			
			
				commit
				
					
						1e08ae5426
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -127,7 +127,7 @@ class StripeUtils(object): | ||||||
|         return card_details |         return card_details | ||||||
| 
 | 
 | ||||||
|     def check_customer(self, id, user, token): |     def check_customer(self, id, user, token): | ||||||
|         customers = self.stripe.Customer.all() |         customers = self.stripe.Customer.list() | ||||||
|         if not customers.get('data'): |         if not customers.get('data'): | ||||||
|             customer = self.create_customer(token, user.email, user.name) |             customer = self.create_customer(token, user.email, user.name) | ||||||
|             user.stripecustomer.stripe_id = customer.get( |             user.stripecustomer.stripe_id = customer.get( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue