connected to kafka #11
@@ -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}")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user