[add]: penal charge

This commit is contained in:
VivianDee
2026-03-18 14:52:46 +01:00
parent bb5237797d
commit ca32bfda1c
4 changed files with 43 additions and 30 deletions
+3 -4
View File
@@ -124,17 +124,16 @@ def transaction_verify():
logger.exception("Unhandled exception in /TransactionVerify route")
return jsonify({"message": "Unhandled server error"}), 500
# PenalCharge Endpoint
@api.route('/CollectPenalFee', methods=['POST'])
# CollectPenalCharge Endpoint
@api.route('/CollectPenalCharge', methods=['POST'])
@jwt_required()
def penal_charge():
try:
data = request.get_json()
# logger.info(f"PenalCharge request received: {data}")
response = PenalChargeService.process_request(data)
return response
except Exception as e:
logger.exception("Unhandled exception in /PenalCharge route")
logger.exception("Unhandled exception in /CollectPenalCharge route")
return jsonify({"message": "Unhandled server error"}), 500