Update provide_loan.py

This commit is contained in:
VivianDee
2025-05-26 12:56:49 +01:00
parent f6c98d9bfd
commit 066ced55b0
+4
View File
@@ -155,10 +155,14 @@ class ProvideLoanService(BaseService):
else:
return ResponseHelper.error(result_description="Invalid Customer or Account")
padded_id = str(transaction_id).zfill(12)
loanref = f"{padded_id}{channel}{product_id}"
response_data = {
"requestId": request_id,
"transactionId": transaction_id,
"loanRef": loanref,
"customerId": customer_id,
"accountId": account_id,
"msisdn": customer.msisdn