fix: add missing _PROVIDER_LABELS to PaymentContextMixin

This commit is contained in:
3252a8
2026-05-17 09:46:48 +03:00
parent 1e8ffa15d0
commit 071b9f2b25
@@ -3,6 +3,19 @@ from ._runtime import * # noqa: F403,F405
class PaymentContextMixin:
# Human-readable provider names rendered in payment-success emails.
# Keys are the lowercased value persisted in ``subscriptions.provider``
# (see the call sites in lifecycle.py / traffic.py); missing keys produce
# no row in the email rather than raising.
_PROVIDER_LABELS = {
"yookassa": "YooKassa",
"freekassa": "FreeKassa",
"platega": "Platega",
"severpay": "SeverPay",
"cryptopay": "Crypto Pay",
"telegram_stars": "Telegram Stars",
}
async def _record_payment_context(
self,
session: AsyncSession,