(20241216) Re-organizing code to MVC-style structuring.
This commit is contained in:
+4
-4
@@ -44,8 +44,8 @@ from utils_v2.string import json
|
||||
from utils_v2.date_time import date_time
|
||||
|
||||
# Data models:
|
||||
from utils_v2.payments.safaricom.models.data.auth import MPesaExpressAuthorization
|
||||
from utils_v2.payments.safaricom.models.data.api_call import MPesaExpressApiResponse
|
||||
from utils_v2.payments.safaricom.models.auth import MPesaExpressAuthorization
|
||||
from utils_v2.payments.safaricom.models.api_call import MPesaExpressApiResponse
|
||||
|
||||
# To make REST-ful requests:
|
||||
import httpx
|
||||
@@ -101,7 +101,7 @@ import inspect
|
||||
# *****************************************************************************************************************
|
||||
|
||||
|
||||
class MPesaExpress:
|
||||
class SafaricomMPesaExpress:
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -380,7 +380,7 @@ if __name__ == "__main__":
|
||||
callbackUrl = None
|
||||
)
|
||||
|
||||
my_m_pesa = MPesaExpress(
|
||||
my_m_pesa = SafaricomMPesaExpress(
|
||||
auth = m_pesa_auth
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user