diff --git a/app/api/integrations/simbrella.py b/app/api/integrations/simbrella.py index 0a64fdb..1bfae3e 100644 --- a/app/api/integrations/simbrella.py +++ b/app/api/integrations/simbrella.py @@ -49,12 +49,7 @@ class SimbrellaIntegration: if response.status_code != 200: response.raise_for_status() - result = { - 'response': response, - 'status': response.status_code - } - return json.dumps(result) - #return result.json() + return response.json() except requests.exceptions.RequestException as err: logger.error(f"RACCheck API call failed: {str(err)}", exc_info=True) return {"error": "RACCheck API error"} diff --git a/app/api/services/eligibility_check.py b/app/api/services/eligibility_check.py index f15a50e..e87147f 100644 --- a/app/api/services/eligibility_check.py +++ b/app/api/services/eligibility_check.py @@ -47,6 +47,7 @@ class EligibilityCheckService(BaseService): account_id = account_id, transaction_id = transaction.id, ) + logger.error(f"This is Response Returned ****** : {str(response)}") if "error" in response or response.get("status") != 200: return jsonify({"message": "RACCheck failed"}), 400