made loan data dynamic and populated result fields

This commit was merged in pull request #19.
This commit is contained in:
Chinenye Nmoh
2025-06-04 18:55:53 +01:00
parent 5bbcaefe7f
commit 680ec9e9e0
4 changed files with 88 additions and 42 deletions
+12 -13
View File
@@ -19,23 +19,22 @@ def verify_transaction():
def disbursement():
# data = request.json()
logger.info(f"Calling Disbursement Components")
data = {
"requestId": "TRX1747399791142408",
"transactionId": "TRX1747399791142408",
"FbnTransactionId":"TRX1747399791142408",
"debtId": "9451",
"customerId": "CUC1696296013",
"accountId": "ACC8112865094",
"productId": "AMPC",
"provideAmount": 6600.0,
"collectAmountInterest": 198.0,
""" data = {
"transactionId": "TRX1749033507722975",
"FbnTransactionId":"TRX1748643654575327",
"debtId": "94696900",
"customerId": "CID00000559140T",
"accountId": "ACC20267810160T",
"productId": "3MPC",
"provideAmount": 10000.0,
"collectAmountInterest": 19.0,
"collectAmountMgtFee": 66.0,
"collectAmountInsurance": 66.0,
"collectAmountVAT": 4.95,
"collectAmountVAT": 75.00,
"countryId": "01",
"comment": "Loan Disbursement"
}
response = SimbrellaClient.disburse_loan(data)
}"""
response = SimbrellaClient.disburse_loan()
return response