auth=auth

This commit is contained in:
CHIEFSOFT\ameye
2025-04-05 20:59:15 -04:00
parent 0e8bc63b4d
commit d3b9708216
+3 -2
View File
@@ -1,4 +1,5 @@
import requests
from requests.auth import HTTPBasicAuth
from app.utils.logger import logger
from app.config import settings
@@ -23,7 +24,6 @@ class SimbrellaIntegration:
"crc": False,
"crms": True,
"accountStatus": "active",
"lienAmount": 0,
"lien": False,
"noBouncedCheck": True,
"existingLoan": False,
@@ -35,9 +35,10 @@ class SimbrellaIntegration:
}
logger.error(f"This is PayLoad: {str(payload)}",exc_info=True)
auth = HTTPBasicAuth(settings.VALID_APP_ID, settings.VALID_APP_SECRET)
try:
response = requests.post(url, json=payload, timeout=10)
response = requests.post(url, json=payload, timeout=10, auth=auth)
logger.error(f"This is Response: {str(response)}", exc_info=True)
# Raise an error for non-200 responses
response.raise_for_status()