fix: fix menus and modal views after payment providers refactor

This commit is contained in:
3252a8
2026-05-18 11:01:32 +03:00
parent 51c9c8b4f0
commit 960754c54e
13 changed files with 482 additions and 62 deletions
@@ -22,7 +22,10 @@ class TariffMixin:
if separator in mode:
base, suffix = mode.split(separator, 1)
mode = base or mode
tariff_key = tariff_key or suffix or None
suffix_key = suffix.split("|", 1)[0]
if separator == "|" and suffix_key in {"bot"}:
suffix_key = ""
tariff_key = tariff_key or suffix_key or None
break
return mode, tariff_key