{% extends "base.html" %} {% block title %}Batch #{{ batch.id }} - Plutus{% endblock %} {% block content %}

Payment Batch #{{ batch.id }}

Created: {{ batch.Created.strftime('%Y-%m-%d %H:%M:%S') if batch.Created else 'Unknown' }}

Back to Batches

Total Payments

{{ summary.payment_count or 0 }}

Payment Amount

{{ summary.total_amount | currency }}

Stripe Fees

{{ summary.total_fees | currency }}

Successful

{{ summary.successful_count or 0 }}

Failed

{{ summary.failed_count or 0 }}

Errors

{{ summary.error_count or 0 }}

Success Rate

{% if summary.payment_count and summary.payment_count > 0 %} {% set success_rate = (summary.successful_count or 0) / summary.payment_count * 100 %}

{{ "%.1f"|format(success_rate) }}%

{% else %}

0%

{% endif %}

Payment Details

{% if payments %}
{% for payment in payments %} {% set row_class = '' %} {% if payment.Success == True %} {% set row_class = 'has-background-success-light' %} {% elif payment.Success == False and payment.PI_FollowUp %} {% set row_class = 'has-background-warning-light' %} {% elif payment.Success == False and payment.Error %} {% set row_class = 'has-background-danger-light' %} {% elif payment.Success == None %} {% set row_class = 'has-background-info-light' %} {% endif %} {% endfor %}
Payment ID Splynx ID Stripe Customer Payment Intent Follow Up Last Check Payment Method Stripe Fee Amount Data Status
#{{ payment.id }} {% if payment.Splynx_ID %} {{ payment.Splynx_ID }} {% else %} - {% endif %} {% if payment.Success == True %} {{ payment.Stripe_Customer_ID or '-' }} {% elif payment.Success == False and payment.PI_FollowUp %} {{ payment.Stripe_Customer_ID or '-' }} {% elif payment.Success == False and payment.Error %} {{ payment.Stripe_Customer_ID or '-' }} {% elif payment.Success == None %} {{ payment.Stripe_Customer_ID or '-' }} {% else %} {{ payment.Stripe_Customer_ID or '-' }} {% endif %} {% if payment.Success == True %} {{ payment.Payment_Intent or '-' }} {% elif payment.Success == False and payment.PI_FollowUp %} {{ payment.Payment_Intent or '-' }} {% elif payment.Success == False and payment.Error %} {{ payment.Payment_Intent or '-' }} {% elif payment.Success == None %} {{ payment.Payment_Intent or '-' }} {% else %} {{ payment.Payment_Intent or '-' }} {% endif %} {% if payment.PI_FollowUp %} Follow Up {% else %} No {% endif %} {{ payment.PI_Last_Check.strftime('%Y-%m-%d %H:%M') if payment.PI_Last_Check else '-' }} {% if payment.Payment_Method %} {{ payment.Payment_Method }} {% else %} - {% endif %} {% if payment.Fee_Stripe %} {{ payment.Fee_Stripe | currency }} {% else %} - {% endif %} {% if payment.Payment_Amount %} {{ payment.Payment_Amount | currency }} {% else %} - {% endif %} {% if payment.Error %} {% set error_alert = payment | error_alert %} {% if error_alert %}
{{ error_alert.title }}
{% endif %} {% endif %}
{% if payment.PI_JSON %} {% endif %} {% if payment.PI_FollowUp_JSON %} {% endif %} {% if payment.Refund_JSON %} {% endif %} {% if payment.Error %} {% endif %}
{% if payment.Refund == True %} Refund {% elif payment.Success == True %} Success {% elif payment.Success == False and payment.PI_FollowUp %} Pending {% elif payment.Success == False %} Failed {% else %} Pending {% endif %}
{% else %}

No payments found in this batch.

{% endif %}
{% for payment in payments %} {% if payment.PI_JSON %} {% endif %} {% if payment.PI_FollowUp_JSON %} {% endif %} {% if payment.Refund_JSON %} {% endif %} {% if payment.Error %} {% set error_alert = payment | error_alert %} {% endif %} {% endfor %} {% endblock %}