{% extends 'admin/base.html' %} {% block title %}Settlements{% endblock %} {% block page_title %}Paystack Settlements{% endblock %} {% block content %}
💰
₦{{ "{:,.2f}".format(total_gross) }}
Total Collected from Subscribers
💸
₦{{ "{:,.2f}".format(total_fees) }}
Paystack Fees Deducted
🏦
₦{{ "{:,.2f}".format(total_net) }}
Net Paid to Your Bank
📊
{{ settlements|length }}
Total Settlements
💳 Settlement History Live from Paystack API
📥 Export CSV 🔄 Refresh
{% for s in settlements %} {% set net = s.get('total_amount', 0) / 100 %} {% set fee = s.get('total_fees', 0) / 100 %} {% set gross = net + fee %} {% else %} {% endfor %}
Settlement ID Date Gross Amount Paystack Fee Net to Bank Status
#{{ s.get('id') }} {% set d = s.get('settlement_date', '') %} {{ d[:10] if d else '—' }} ₦{{ "{:,.2f}".format(gross) }} ₦{{ "{:,.2f}".format(fee) }} ₦{{ "{:,.2f}".format(net) }} {% if s.get('status') == 'success' %} Settled {% elif s.get('status') == 'pending' %} Pending {% else %} {{ s.get('status','—') }} {% endif %}
No settlements found
{% if settlements %}
💡 Settlement Summary
Total collected from subscribers: ₦{{ "{:,.2f}".format(total_gross) }}
Total deducted by Paystack: ₦{{ "{:,.2f}".format(total_fees) }}
Net paid to your bank: ₦{{ "{:,.2f}".format(total_net) }}
{% endif %}
{% endblock %}