Cfeate transactions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user