Cfeate transactions

This commit is contained in:
CHIEFSOFT\ameye
2025-11-02 17:42:56 -05:00
parent a6198a782c
commit 3602599f4a
3 changed files with 41 additions and 1 deletions
+8
View File
@@ -233,7 +233,15 @@ class SimbrellaClient:
"text": f"Transaction {loan_data.get('transactionId')} verified successfully",
"unicode": True
}
try:
TransactionService.create_transaction(loan_data['transactionId'], loan_data['accountId'], loan_data['customerId'], "send_sms", "USSD")
except Exception as e:
logger.info(f"Failed to LOG SMS Transaction Record: {e}")
try:
sms_response = requests.post(sms_url, json=sms_data, timeout=10, headers=get_headers())
sms_response.raise_for_status() # Raise an exception for 4xx or 5xx status codes