Associate newly added card with customer from hosting
This commit is contained in:
		
					parent
					
						
							
								de5035d12e
							
						
					
				
			
			
				commit
				
					
						8d2c120b43
					
				
			
		
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -212,8 +212,8 @@ class StripeCustomer(models.Model): | |||
|                                                    stripe_customer.user, token) | ||||
|             if "deleted" in customer and customer["deleted"]: | ||||
|                 raise StripeCustomer.DoesNotExist() | ||||
|             if not customer.sources.data: | ||||
|                 stripe_utils.update_customer_token(customer, token) | ||||
|             #if not customer.sources.data: | ||||
|             #    stripe_utils.update_customer_token(customer, token) | ||||
|             return stripe_customer | ||||
|         except StripeCustomer.DoesNotExist: | ||||
|             user = CustomUser.objects.get(email=email) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue