diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index 4030317e..d4b71f8c 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': str(e)}) + response.update({'error': str(e._message)}) return response except stripe.error.AuthenticationError as e: # Authentication with Stripe's API failed