(20241228) Started making provisions for disabling payment gateway accounts when the gateway says that the credentials are invalid. Am stuck at one place, though.
This commit is contained in:
@@ -149,6 +149,7 @@ async def safaricom_m_pesa_express_callback(
|
||||
# ┛┗┗┻┗┻ ┗┛┗┛┗ ┛┗┗
|
||||
|
||||
client_response = await current_app.safaricom_mpesa_express_controller.handle_payment_callback(
|
||||
sql_conn = current_app.sql_writer,
|
||||
mongo_data_conn = current_app.data_mongo,
|
||||
inbound_data = inbound_data,
|
||||
inbound_headers = inbound_headers
|
||||
|
||||
@@ -180,6 +180,7 @@ async def request_payment(
|
||||
# For Safaricom's M-Pesa Express client:
|
||||
if auth_token.client == "safaricomMPesaExpress":
|
||||
response = await current_app.safaricom_mpesa_express_controller.request_payment(
|
||||
sql_conn = current_app.sql_writer,
|
||||
mongo_data_conn = current_app.data_mongo,
|
||||
auth_token = auth_token,
|
||||
user_info = CoreUserInfoModel(**kwargs["session_info"]),
|
||||
|
||||
Reference in New Issue
Block a user