diff --git a/handlers/keys/key_mode/key_create.py b/handlers/keys/key_mode/key_create.py index 9a7b739d..a42d45a7 100644 --- a/handlers/keys/key_mode/key_create.py +++ b/handlers/keys/key_mode/key_create.py @@ -27,6 +27,7 @@ from handlers.buttons import MAIN_MENU, PAYMENT from handlers.payments.robokassa_pay import handle_custom_amount_input from handlers.payments.stars_pay import process_custom_amount_input_stars from handlers.payments.yookassa_pay import process_custom_amount_input +from handlers.payments.yoomoney_pay import process_custom_amount_input_yoomoney from handlers.texts import ( CREATING_CONNECTION_MSG, INSUFFICIENT_FUNDS_MSG, @@ -165,6 +166,8 @@ async def select_tariff_plan( await handle_custom_amount_input(callback_query, session) elif USE_NEW_PAYMENT_FLOW == "STARS": await process_custom_amount_input_stars(callback_query, session) + elif USE_NEW_PAYMENT_FLOW == "YOOMONEY": + await process_custom_amount_input_yoomoney(callback_query, session) else: builder = InlineKeyboardBuilder() builder.row(InlineKeyboardButton(text=PAYMENT, callback_data="pay")) diff --git a/handlers/keys/key_renew.py b/handlers/keys/key_renew.py index b493a6db..9577b498 100644 --- a/handlers/keys/key_renew.py +++ b/handlers/keys/key_renew.py @@ -25,6 +25,7 @@ from handlers.keys.key_utils import renew_key_in_cluster from handlers.payments.robokassa_pay import handle_custom_amount_input from handlers.payments.stars_pay import process_custom_amount_input_stars from handlers.payments.yookassa_pay import process_custom_amount_input +from handlers.payments.yoomoney_pay import process_custom_amount_input_yoomoney from handlers.texts import ( INSUFFICIENT_FUNDS_RENEWAL_MSG, KEY_NOT_FOUND_MSG, @@ -191,6 +192,8 @@ async def process_callback_renew_plan(callback_query: CallbackQuery, session: An await handle_custom_amount_input(callback_query, session) elif USE_NEW_PAYMENT_FLOW == "STARS": await process_custom_amount_input_stars(callback_query, session) + elif USE_NEW_PAYMENT_FLOW == "YOOMONEY": + await process_custom_amount_input_yoomoney(callback_query, session) else: builder = InlineKeyboardBuilder() builder.row(InlineKeyboardButton(text=PAYMENT, callback_data="pay")) diff --git a/handlers/payments/utils.cpython-312-x86_64-linux-gnu.so b/handlers/payments/utils.cpython-312-x86_64-linux-gnu.so index bf93bcff..2dfd817c 100644 Binary files a/handlers/payments/utils.cpython-312-x86_64-linux-gnu.so and b/handlers/payments/utils.cpython-312-x86_64-linux-gnu.so differ diff --git a/handlers/payments/yoomoney_pay.cpython-312-x86_64-linux-gnu.so b/handlers/payments/yoomoney_pay.cpython-312-x86_64-linux-gnu.so index 6b4514fa..0a47da51 100644 Binary files a/handlers/payments/yoomoney_pay.cpython-312-x86_64-linux-gnu.so and b/handlers/payments/yoomoney_pay.cpython-312-x86_64-linux-gnu.so differ