progress on stuff
This commit is contained in:
@@ -117,3 +117,33 @@ def repayment():
|
||||
}
|
||||
|
||||
return jsonify(response), 200
|
||||
|
||||
|
||||
@loan_bp.route("/rac-check", methods=["POST"])
|
||||
def rac_check():
|
||||
data = request.json
|
||||
api_url = f"{current_app.config['API_BASE_URL']}/RACCheck"
|
||||
|
||||
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||
# return jsonify(response.json()), response.status_code
|
||||
response = {
|
||||
"transactionId": "T001",
|
||||
"customerId": "CN621868",
|
||||
"accountId": "2017821799",
|
||||
"RACResponse": {
|
||||
"Salary account": "1",
|
||||
"BVN": "1",
|
||||
"BVNAttachedToAccount": "1",
|
||||
"CRMS": "1",
|
||||
"CRC": "1",
|
||||
"AccountStatus": "1",
|
||||
"Lien": "1",
|
||||
"NoBouncedCheck": "1",
|
||||
"Whitelist": "1",
|
||||
"NoPastDueSalaryLoan": "1",
|
||||
"NoPastDueOtherLoan": "1",
|
||||
},
|
||||
"resultDescription": "RAC Check Successful",
|
||||
}
|
||||
|
||||
return jsonify(response), 200
|
||||
|
||||
Reference in New Issue
Block a user