diff --git a/app/routes/__pycache__/authentication.cpython-310.pyc b/app/routes/__pycache__/authentication.cpython-310.pyc index a0bed10..84c1669 100644 Binary files a/app/routes/__pycache__/authentication.cpython-310.pyc and b/app/routes/__pycache__/authentication.cpython-310.pyc differ diff --git a/app/routes/loan.py b/app/routes/loan.py index 639d6ea..f13a5fa 100644 --- a/app/routes/loan.py +++ b/app/routes/loan.py @@ -154,29 +154,8 @@ def disbursement(): data = request.json api_url = f"{current_app.config['API_BASE_URL']}/Disbursement" - # response = requests.post(api_url, json=data, headers=get_headers()) - # return jsonify(response.json()), response.status_code - response = { - "requestId": "R02802", - "countryCode": "NGR", - "transactionId": "Tr201712RK9232P115", - "debtId": "273194670", - "customerId": "CN621868", - "accountId": "2017821799", - "productId": "101", - "provideAmount": 100000, - "totalFees": 7075, - "feesDetails": { - "collectAmountInterest": 5000, - "collectAmountMgtFee": 1000, - "collectAmountInsurance": 1000, - "collectAmountVAT": 75, - }, - "resultCode": "00", - "resultDescription": "Loan Request Completed Successfully!", - } - - return jsonify(response), 200 + response = requests.post(api_url, json=data, headers=get_headers()) + return jsonify(response.json()), response.status_code @loan_bp.route("/collect-loan", methods=["POST"])