Seen responses
This commit is contained in:
@@ -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"}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user