(20241230) Method correction.
This commit is contained in:
@@ -112,7 +112,7 @@ def init(blueprint_setup_state):
|
|||||||
# ---------------------------------------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
@trading_oauth_request_bp.route("", methods = ["GET"])
|
@trading_oauth_request_bp.route("", methods = ["GET", "POST"])
|
||||||
@set_api_version(api_version = "1.0.0")
|
@set_api_version(api_version = "1.0.0")
|
||||||
@read_input(sanitize_headers = False, sanitize_data = False)
|
@read_input(sanitize_headers = False, sanitize_data = False)
|
||||||
@get_session_info(key = "X-Session-Token", session_coro = "get_session")
|
@get_session_info(key = "X-Session-Token", session_coro = "get_session")
|
||||||
|
|||||||
@@ -394,6 +394,15 @@ class CoreAuthTokenController(CoreBaseModel):
|
|||||||
# Done here:
|
# Done here:
|
||||||
return success
|
return success
|
||||||
|
|
||||||
|
async def modify_status(
|
||||||
|
self,
|
||||||
|
sql_conn: AsyncMySQL,
|
||||||
|
mongo_data_conn: AsyncMongo,
|
||||||
|
auth_token: CoreAuthTokenModel,
|
||||||
|
):
|
||||||
|
|
||||||
|
pass
|
||||||
|
|
||||||
# ┏┓┳┓┳┳┳┓ ┳┓ •
|
# ┏┓┳┓┳┳┳┓ ┳┓ •
|
||||||
# ┃ ┣┫┃┃┃┃ ━━ ┣┫┏┓╋┏┓┓┏┓┓┏┏┓
|
# ┃ ┣┫┃┃┃┃ ━━ ┣┫┏┓╋┏┓┓┏┓┓┏┏┓
|
||||||
# ┗┛┛┗┗┛┻┛ ┛┗┗ ┗┛ ┗┗ ┗┛┗
|
# ┗┛┛┗┗┛┻┛ ┛┗┗ ┗┛ ┗┗ ┗┛┗
|
||||||
|
|||||||
@@ -178,6 +178,11 @@ class AllPaymentsController(PaymentsController):
|
|||||||
:return: A structured response about the process of updating the payment event.
|
:return: A structured response about the process of updating the payment event.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# There are 3 main steps here:
|
||||||
|
# 01. Add the payment's update event to the main record,
|
||||||
|
# 02. Add the receipt (if payment successful),
|
||||||
|
# 03. Disable the payment auth-token if the gateway says that the credentials are invalid.
|
||||||
|
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -538,6 +538,11 @@ class PaymentsController(CoreAuthTokenController, ABC):
|
|||||||
:return: A structured response about the process of updating the payment event.
|
:return: A structured response about the process of updating the payment event.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# There are 3 main steps here:
|
||||||
|
# 01. Add the payment's update event to the main record,
|
||||||
|
# 02. Add the receipt (if payment successful),
|
||||||
|
# 03. Disable the payment auth-token if the gateway says that the credentials are invalid.
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -269,6 +269,11 @@ class SafaricomMPesaExpressPaymentsController(PaymentsController):
|
|||||||
:return: A structured response about the process of updating the payment event.
|
:return: A structured response about the process of updating the payment event.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# There are 3 main steps here:
|
||||||
|
# 01. Add the payment's update event to the main record,
|
||||||
|
# 02. Add the receipt (if payment successful),
|
||||||
|
# 03. Disable the payment auth-token if the gateway says that the credentials are invalid.
|
||||||
|
|
||||||
# Start by assuming failure:
|
# Start by assuming failure:
|
||||||
result = PaymentCallbackResult()
|
result = PaymentCallbackResult()
|
||||||
|
|
||||||
|
|||||||
@@ -331,12 +331,12 @@ async def init():
|
|||||||
cwd = files.get_cwd()
|
cwd = files.get_cwd()
|
||||||
parent_dir = cwd
|
parent_dir = cwd
|
||||||
ssl_context = get_ssl_context(
|
ssl_context = get_ssl_context(
|
||||||
ca_file = "/etc/ssl/dbu/ca.pem",
|
# ca_file = "/etc/ssl/dbu/ca.pem",
|
||||||
cert_file = "/etc/ssl/dbu/fullchain.pem",
|
# cert_file = "/etc/ssl/dbu/fullchain.pem",
|
||||||
key_file = "/etc/ssl/dbu/privkey.pem"
|
# key_file = "/etc/ssl/dbu/privkey.pem"
|
||||||
# ca_file = os.path.join(parent_dir, "creds", "kafka", "cert_authority.pem"),
|
ca_file = os.path.join(parent_dir, "creds", "kafka", "cert_authority.pem"),
|
||||||
# cert_file = os.path.join(parent_dir, "creds", "kafka", "fullchain.pem"),
|
cert_file = os.path.join(parent_dir, "creds", "kafka", "fullchain.pem"),
|
||||||
# key_file = os.path.join(parent_dir, "creds", "kafka", "privkey.pem")
|
key_file = os.path.join(parent_dir, "creds", "kafka", "privkey.pem")
|
||||||
)
|
)
|
||||||
sio.start_background_task(
|
sio.start_background_task(
|
||||||
ticks_from_kafka,
|
ticks_from_kafka,
|
||||||
|
|||||||
Reference in New Issue
Block a user