(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:
2024-12-28 18:10:27 +05:30
parent 696af7a167
commit a0ea7c45d6
5 changed files with 78 additions and 7 deletions
@@ -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"]),