{% extends "base.html" %} {% block title %}Payments — VPN Control Panel{% endblock %} {% block content %}

Payments

{% if error %}
{{ error }}
{% endif %}
{{ payments|length }} total
{% for p in payments %} {% endfor %}
ID User Tariff Amount Status Provider Created Paid At
{{ p.id }} #{{ p.user_id }} {{ tariffs_map.get(p.tariff_id, "—") }} {{ "%.2f"|format(p.amount) }} {{ p.currency }} {% if p.status.value == "confirmed" %} Confirmed {% elif p.status.value == "pending" %} Pending {% elif p.status.value == "failed" %} Failed {% elif p.status.value == "refunded" %} Refunded {% else %} {{ p.status.value }} {% endif %} {{ p.provider }} {{ p.created_at.strftime("%Y-%m-%d %H:%M") }} {{ p.paid_at.strftime("%Y-%m-%d %H:%M") if p.paid_at else "—" }}
{% endblock %}