Add add_card_to_stripe_customer function
This commit is contained in:
		
					parent
					
						
							
								83363f4701
							
						
					
				
			
			
				commit
				
					
						a3ce43fd53
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -78,6 +78,10 @@ class StripeUtils(object): | |||
|         customer.source = token | ||||
|         customer.save() | ||||
| 
 | ||||
|     def add_card_to_stripe_customer(self, stripe_customer_id, token): | ||||
|         customer = stripe.Customer.retrieve(stripe_customer_id) | ||||
|         self.update_customer_token(customer, token) | ||||
| 
 | ||||
|     @handleStripeError | ||||
|     def update_customer_card(self, customer_id, token): | ||||
|         customer = stripe.Customer.retrieve(customer_id) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue