From 62352ed740fb5d0cb31ce7138c6687f961e2f4da Mon Sep 17 00:00:00 2001 From: "oluyemi.a.simbrellang.com" Date: Mon, 14 Apr 2025 18:05:14 +0100 Subject: [PATCH] add dummy values for verify_transaction --- app/integrations/simbrella.py | 7 +++++-- app/routes/autocall.py | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/integrations/simbrella.py b/app/integrations/simbrella.py index f125d52..b279368 100644 --- a/app/integrations/simbrella.py +++ b/app/integrations/simbrella.py @@ -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}") diff --git a/app/routes/autocall.py b/app/routes/autocall.py index 75eddf3..cc3036e 100644 --- a/app/routes/autocall.py +++ b/app/routes/autocall.py @@ -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 -- 2.34.1