From 066ced55b07010aceb4acc6ccda6568cdf81bab2 Mon Sep 17 00:00:00 2001 From: VivianDee <115420678+VivianDee@users.noreply.github.com> Date: Mon, 26 May 2025 12:56:49 +0100 Subject: [PATCH] Update provide_loan.py --- app/api/services/provide_loan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/api/services/provide_loan.py b/app/api/services/provide_loan.py index 9f8abfd..d8445fe 100644 --- a/app/api/services/provide_loan.py +++ b/app/api/services/provide_loan.py @@ -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