update on disbursement
This commit is contained in:
Binary file not shown.
+2
-23
@@ -154,29 +154,8 @@ def disbursement():
|
|||||||
data = request.json
|
data = request.json
|
||||||
api_url = f"{current_app.config['API_BASE_URL']}/Disbursement"
|
api_url = f"{current_app.config['API_BASE_URL']}/Disbursement"
|
||||||
|
|
||||||
# response = requests.post(api_url, json=data, headers=get_headers())
|
response = requests.post(api_url, json=data, headers=get_headers())
|
||||||
# return jsonify(response.json()), response.status_code
|
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
|
|
||||||
|
|
||||||
|
|
||||||
@loan_bp.route("/collect-loan", methods=["POST"])
|
@loan_bp.route("/collect-loan", methods=["POST"])
|
||||||
|
|||||||
Reference in New Issue
Block a user