add dummy values for verify_transaction
This commit was merged in pull request #11.
This commit is contained in:
@@ -75,7 +75,7 @@ class SimbrellaClient:
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def verify_transaction(data):
|
def verify_transaction():
|
||||||
# api_url = f"{SimbrellaClient.BANK_CALL_BASE_URL}/TransactionVerify"
|
# api_url = f"{SimbrellaClient.BANK_CALL_BASE_URL}/TransactionVerify"
|
||||||
# logger.info(f"BANK_CALL_BASE_URL = {SimbrellaClient.BANK_CALL_BASE_URL}")
|
# logger.info(f"BANK_CALL_BASE_URL = {SimbrellaClient.BANK_CALL_BASE_URL}")
|
||||||
# logger.info(f"Calling TransactionVerify endpoint with data: {data}")
|
# 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())
|
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||||
# logger.info(f"TransactionVerify response: {response.json()}")
|
# logger.info(f"TransactionVerify response: {response.json()}")
|
||||||
|
|
||||||
return data
|
return {
|
||||||
|
"status": "00",
|
||||||
|
"message": "Transaction verified"
|
||||||
|
}
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.info(f"Failed to call TransactionVerify endpoint: {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"])
|
@autocall_bp.route("/refresh-verify-disbursement", methods=["GET"])
|
||||||
def verify_transaction():
|
def verify_transaction():
|
||||||
data = request.json()
|
# data = request.json()
|
||||||
logger.info(f"Calling VerifyTransaction Components")
|
logger.info(f"Calling VerifyTransaction Components")
|
||||||
|
|
||||||
response = SimbrellaClient.verify_transaction(data)
|
response = SimbrellaClient.verify_transaction()
|
||||||
|
|
||||||
return jsonify(response), 200
|
return jsonify(response), 200
|
||||||
|
|
||||||
@autocall_bp.route("/refresh-disbursement", methods=["GET"])
|
@autocall_bp.route("/refresh-disbursement", methods=["GET"])
|
||||||
def disbursement():
|
def disbursement():
|
||||||
data = request.json()
|
# data = request.json()
|
||||||
logger.info(f"Calling Disbursement Components")
|
logger.info(f"Calling Disbursement Components")
|
||||||
|
|
||||||
response = SimbrellaClient.verify_transaction(data)
|
response = SimbrellaClient.verify_transaction()
|
||||||
|
|
||||||
return jsonify(response), 200
|
return jsonify(response), 200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user