(20241230) Method correction.

This commit is contained in:
2024-12-30 10:53:31 +05:30
parent 4af9980249
commit e3d71965bb
6 changed files with 31 additions and 7 deletions
+9
View File
@@ -394,6 +394,15 @@ class CoreAuthTokenController(CoreBaseModel):
# Done here:
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.
"""
# 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
@@ -538,6 +538,11 @@ class PaymentsController(CoreAuthTokenController, ABC):
: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
@@ -269,6 +269,11 @@ class SafaricomMPesaExpressPaymentsController(PaymentsController):
: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:
result = PaymentCallbackResult()