diff --git a/bot/keyboards/inline/user_keyboards.py b/bot/keyboards/inline/user_keyboards.py index 68b6383..36f7427 100644 --- a/bot/keyboards/inline/user_keyboards.py +++ b/bot/keyboards/inline/user_keyboards.py @@ -195,6 +195,14 @@ def get_payment_method_keyboard(months: int, price: float, return str(int(val)) if float(val).is_integer() else f"{val:g}" value_str = _format_value(months) mode_suffix = f":{sale_mode}" + import logging as _kbd_logging + _kbd_logging.info( + "payment_method_keyboard build: order=%s | platega_enabled=%s sbp=%s crypto=%s", + settings.payment_methods_order, + settings.PLATEGA_ENABLED, + settings.PLATEGA_SBP_ENABLED, + settings.PLATEGA_CRYPTO_ENABLED, + ) for method in settings.payment_methods_order: if method == "severpay" and getattr(settings, "SEVERPAY_ENABLED", False): builder.button( diff --git a/bot/services/platega_service.py b/bot/services/platega_service.py index 10ae691..fb055f2 100644 --- a/bot/services/platega_service.py +++ b/bot/services/platega_service.py @@ -59,6 +59,14 @@ class PlategaService: ) if not self.configured: logging.warning("PlategaService initialized but not fully configured. Payments disabled.") + else: + logging.info( + "PlategaService configured. SBP button: %s (method=%s), Crypto button: %s (method=%s)", + "ON" if settings.PLATEGA_SBP_ENABLED else "OFF", + self.sbp_method, + "ON" if settings.PLATEGA_CRYPTO_ENABLED else "OFF", + self.crypto_method, + ) async def _get_session(self) -> ClientSession: if self._session is None or self._session.closed: