Fixed error creating stripe customer
This commit is contained in:
		
					parent
					
						
							
								1c5fc6a437
							
						
					
				
			
			
				commit
				
					
						3a12308e85
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -141,9 +141,10 @@ class StripeCustomer(models.Model): | |||
| 
 | ||||
|             stripe_utils = StripeUtils() | ||||
|             stripe_data = stripe_utils.create_customer(token, email) | ||||
|             stripe_cus_id = stripe_data.get('response_object').get('id') | ||||
| 
 | ||||
|             stripe_customer = StripeCustomer.objects.\ | ||||
|                 create(user=user, stripe_id=stripe_data.get('id')) | ||||
|                 create(user=user, stripe_id=stripe_cus_id) | ||||
| 
 | ||||
|             return stripe_customer | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue