Fix error in stripe get_customer_id_for
This commit is contained in:
		
					parent
					
						
							
								7e58a8ace2
							
						
					
				
			
			
				commit
				
					
						31507c0f1a
					
				
			
		
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -75,9 +75,7 @@ def get_customer_id_for(user):
 | 
			
		|||
        try:
 | 
			
		||||
            customer = create_customer(user.username, user.email)
 | 
			
		||||
            uncloud_stripe_mapping = uncloud_pay.models.StripeCustomer.objects.create(
 | 
			
		||||
                    owner=user,
 | 
			
		||||
                    stripe_id=customer_request['response_object']['id']
 | 
			
		||||
                    )
 | 
			
		||||
                    owner=user, stripe_id=customer.id)
 | 
			
		||||
            return uncloud_stripe_mapping.stripe_id
 | 
			
		||||
        except Exception as e:
 | 
			
		||||
            return None
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue