add endpoint for penal charge

This commit is contained in:
2025-04-17 17:26:59 +01:00
parent d2e272e44b
commit 0bc71f8108
4 changed files with 68 additions and 6 deletions
+10 -1
View File
@@ -28,9 +28,18 @@ def disbursement():
@autocall_bp.route("/payment-callback", methods=["POST"])
def payment_callback():
data = request.json()
data = request.get_json()
logger.info(f"Calling Callback Components")
response = SimbrellaClient.payment_callback(data)
return jsonify(response), 200
@autocall_bp.route("/penal-charge", methods=["POST"])
def penal_charge():
data = request.get_json()
logger.info(f"Calling Penal Charge Endpoints")
response = SimbrellaClient.penal_charge(data)
return jsonify(response), 200