connected to kafka #11

Merged
ameye merged 1 commits from oluyemi into master 2025-04-14 17:10:34 +00:00
2 changed files with 9 additions and 6 deletions
+5 -2
View File
@@ -75,7 +75,7 @@ class SimbrellaClient:
return 1
@staticmethod
def verify_transaction(data):
def verify_transaction():
# api_url = f"{SimbrellaClient.BANK_CALL_BASE_URL}/TransactionVerify"
# logger.info(f"BANK_CALL_BASE_URL = {SimbrellaClient.BANK_CALL_BASE_URL}")
# logger.info(f"Calling TransactionVerify endpoint with data: {data}")
@@ -85,7 +85,10 @@ class SimbrellaClient:
# response = requests.post(api_url, json=data, headers=get_headers())
# logger.info(f"TransactionVerify response: {response.json()}")
return data
return {
"status": "00",
"message": "Transaction verified"
}
except Exception as e:
logger.info(f"Failed to call TransactionVerify endpoint: {e}")
+4 -4
View File
@@ -9,19 +9,19 @@ autocall_bp = Blueprint("autocall", __name__)
@autocall_bp.route("/refresh-verify-disbursement", methods=["GET"])
def verify_transaction():
data = request.json()
# data = request.json()
logger.info(f"Calling VerifyTransaction Components")
response = SimbrellaClient.verify_transaction(data)
response = SimbrellaClient.verify_transaction()
return jsonify(response), 200
@autocall_bp.route("/refresh-disbursement", methods=["GET"])
def disbursement():
data = request.json()
# data = request.json()
logger.info(f"Calling Disbursement Components")
response = SimbrellaClient.verify_transaction(data)
response = SimbrellaClient.verify_transaction()
return jsonify(response), 200