Send the same error message as forwarded by Stripe
This commit is contained in:
		
					parent
					
						
							
								12975565a5
							
						
					
				
			
			
				commit
				
					
						74921fcd4a
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -37,7 +37,7 @@ def handleStripeError(f): | |||
|             return response | ||||
|         except stripe.error.InvalidRequestError as e: | ||||
|             logger.error(str(e)) | ||||
|             response.update({'error': "Invalid parameters"}) | ||||
|             response.update({'error': str(e)}) | ||||
|             return response | ||||
|         except stripe.error.AuthenticationError as e: | ||||
|             # Authentication with Stripe's API failed | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue