done with verify transaction service
This commit is contained in:
@@ -84,4 +84,22 @@ class SimbrellaClient:
|
||||
logger.info(f"Failed to call CollectLoan endpoint: {e}")
|
||||
return 0
|
||||
|
||||
return 1
|
||||
return 1
|
||||
|
||||
@staticmethod
|
||||
def verify_transaction(data):
|
||||
BANK_CALL_BASE_URL = "https://bank-emulator.dev.simbrellang.net"
|
||||
api_url = f"{BANK_CALL_BASE_URL}/TransactionVerify"
|
||||
logger.info(f"BANK_CALL_BASE_URL = {BANK_CALL_BASE_URL}")
|
||||
logger.info(f"Calling TransactionVerify endpoint with data: {data}")
|
||||
|
||||
try:
|
||||
logger.info(f"Here is your TransactionVerify Request data ***** : {data}")
|
||||
response = requests.post(api_url, json=data, headers=get_headers())
|
||||
logger.info(f"TransactionVerify response: {response.json()}")
|
||||
|
||||
return response.json()
|
||||
|
||||
except Exception as e:
|
||||
logger.info(f"Failed to call TransactionVerify endpoint: {e}")
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user