2c3ffc8c8a
Full integration across bot, cabinet, admin panel and landing pages: - Config: 16 OVERPAY_* settings (API URL, credentials, P12 cert path, project ID, currency, amount limits, webhook path, payment methods) - Service: overpay_service.py with httpx mTLS (P12 cert) + Basic Auth, create_payment, get_payment, refund_payment methods - Payment mixin: OverpayPaymentMixin with create, webhook processing, finalize (balance credit + notifications), status check - Model: OverpayPayment table + OVERPAY enum value - CRUD: 9 standard operations (create, get_by_*, for_update, link) - Bot handler: start_overpay_topup + process_overpay_payment_amount - Handler registration: route_payment_by_method + callback registration - Webhook: POST /overpay-webhook with DB-based anti-spoofing validation - Cabinet: balance topup + guest payment dispatch - Keyboard: payment method button in bot - Admin: settings category + test payment button - Infrastructure: payment_method_config_service, system_settings_service, payment_verification_service, payment_search_service - Migration 0064: create overpay_payments table Overpay API specifics: amount as string "100.00" (not kopeks), success status "charged", HPP redirect via resultUrl
49 lines
1.6 KiB
Python
49 lines
1.6 KiB
Python
"""Пакет с mixin-классами, делающими платёжный сервис модульным.
|
|
|
|
Здесь собираем все вспомогательные части, чтобы основной `PaymentService`
|
|
оставался компактным и импортировал только нужные компоненты.
|
|
"""
|
|
|
|
from .aurapay import AuraPayPaymentMixin
|
|
from .cloudpayments import CloudPaymentsPaymentMixin
|
|
from .common import PaymentCommonMixin
|
|
from .cryptobot import CryptoBotPaymentMixin
|
|
from .freekassa import FreekassaPaymentMixin
|
|
from .heleket import HeleketPaymentMixin
|
|
from .kassa_ai import KassaAiPaymentMixin
|
|
from .mulenpay import MulenPayPaymentMixin
|
|
from .overpay import OverpayPaymentMixin
|
|
from .pal24 import Pal24PaymentMixin
|
|
from .paypear import PayPearPaymentMixin
|
|
from .platega import PlategaPaymentMixin
|
|
from .riopay import RioPayPaymentMixin
|
|
from .rollypay import RollyPayPaymentMixin
|
|
from .severpay import SeverPayPaymentMixin
|
|
from .stars import TelegramStarsMixin
|
|
from .tribute import TributePaymentMixin
|
|
from .wata import WataPaymentMixin
|
|
from .yookassa import YooKassaPaymentMixin
|
|
|
|
|
|
__all__ = [
|
|
'AuraPayPaymentMixin',
|
|
'CloudPaymentsPaymentMixin',
|
|
'CryptoBotPaymentMixin',
|
|
'FreekassaPaymentMixin',
|
|
'HeleketPaymentMixin',
|
|
'KassaAiPaymentMixin',
|
|
'MulenPayPaymentMixin',
|
|
'OverpayPaymentMixin',
|
|
'Pal24PaymentMixin',
|
|
'PayPearPaymentMixin',
|
|
'PaymentCommonMixin',
|
|
'PlategaPaymentMixin',
|
|
'RioPayPaymentMixin',
|
|
'RollyPayPaymentMixin',
|
|
'SeverPayPaymentMixin',
|
|
'TelegramStarsMixin',
|
|
'TributePaymentMixin',
|
|
'WataPaymentMixin',
|
|
'YooKassaPaymentMixin',
|
|
]
|