"""Payments module — isolated payment-provider integration.

Keeps the payment provider (Razorpay today) fully behind a service seam so the
Premium subscription system never imports a gateway SDK directly:

    Premium Service  →  Payment Service  →  Razorpay Service (SDK)

``services`` is provider-agnostic; ``razorpay_service`` is the only place the
Razorpay SDK is touched. Adding another provider (Stripe, Cashfree, …) means a
new adapter module and a dispatch branch — no change to Premium logic.
"""

from flask import Blueprint

payments_bp = Blueprint("payments", __name__)

# Import routes/webhook so their handlers register on the blueprint. Kept at the
# bottom to avoid a circular import (routes import ``payments_bp`` from here).
from app.payments import routes, webhook  # noqa: E402,F401
