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
				
			
		|  | @ -626,6 +626,10 @@ class SettingsView(LoginRequiredMixin, FormView): | |||
|                         exp_year=card_details_response['exp_year'], | ||||
|                         card_id=card_details_response['card_id'] | ||||
|                     ) | ||||
|                     stripe_utils.associate_customer_card( | ||||
|                         request.user.stripecustomer.stripe_id, | ||||
|                         token | ||||
|                     ) | ||||
|                     msg = _( | ||||
|                         "Successfully associated the card with your account" | ||||
|                     ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue