From 74921fcd4ab207e4f6959bcbf5d2a401ecc39d43 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 26 Dec 2019 20:21:01 +0530 Subject: [PATCH] Send the same error message as forwarded by Stripe --- utils/stripe_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index 20b5c19a..4030317e 100644 --- a/utils/stripe_utils.py +++ b/utils/stripe_utils.py @@ -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