Update provide_loan.py
This commit is contained in:
@@ -155,10 +155,14 @@ class ProvideLoanService(BaseService):
|
|||||||
else:
|
else:
|
||||||
return ResponseHelper.error(result_description="Invalid Customer or Account")
|
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 = {
|
response_data = {
|
||||||
"requestId": request_id,
|
"requestId": request_id,
|
||||||
"transactionId": transaction_id,
|
"transactionId": transaction_id,
|
||||||
|
"loanRef": loanref,
|
||||||
"customerId": customer_id,
|
"customerId": customer_id,
|
||||||
"accountId": account_id,
|
"accountId": account_id,
|
||||||
"msisdn": customer.msisdn
|
"msisdn": customer.msisdn
|
||||||
|
|||||||
Reference in New Issue
Block a user