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

Batch Payment #{{ payment.id }}

Batch #{{ payment.PaymentBatch_ID }} • Processed: {{ payment.Created.strftime('%Y-%m-%d %H:%M:%S') if payment.Created else 'Unknown' }}

{% if payment.Refund != True and payment.Success == True %}
{% endif %} {% if payment.PI_FollowUp %}
{% endif %}
{% if payment.Refund == True %} {% elif payment.Success == True %} {% elif payment.Success == False %} {% else %} {% endif %}
{% if payment.Refund == True %}

Payment Refunded

This payment has been refunded to the customer.

{% if payment.Stripe_Refund_Created %}

Refunded: {{ payment.Stripe_Refund_Created.strftime('%Y-%m-%d %H:%M:%S') }}

{% endif %} {% elif payment.Success == True %}

Payment Successful

This payment has been completed successfully.

{% elif payment.Success == False %}

Payment Failed

This payment could not be completed.

{% else %}

Payment Pending

This payment is still being processed.

{% endif %}

Payment Information

{% if payment.Stripe_Charge_ID %} {% endif %} {% if payment.Stripe_Refund_ID %} {% endif %} {% if payment.PaymentPlan_ID %} {% endif %}
Payment ID #{{ payment.id }}
Batch ID #{{ payment.PaymentBatch_ID }}
Splynx Customer ID {% if payment.Splynx_ID %} {{ payment.Splynx_ID }} {% else %} - {% endif %}
Stripe Customer ID {{ payment.Stripe_Customer_ID or '-' }}
Payment Intent {{ payment.Payment_Intent or '-' }}
Stripe Charge ID {{ payment.Stripe_Charge_ID }}
Stripe Refund ID {{ payment.Stripe_Refund_ID }}
Payment Method {% if payment.Payment_Method %} {{ payment.Payment_Method }} {% else %} - {% endif %}
Created {{ payment.Created.strftime('%Y-%m-%d %H:%M:%S') if payment.Created else '-' }}
Payment Plan Plan #{{ payment.PaymentPlan_ID }}

Financial Details

{% if payment.Fee_Total and payment.Payment_Amount %} {% endif %}
Payment Amount {{ payment.Payment_Amount | currency }}
Stripe Fee {{ payment.Fee_Stripe | currency if payment.Fee_Stripe else '-' }}
Tax Fee {{ payment.Fee_Tax | currency if payment.Fee_Tax else '-' }}
Total Fees {{ payment.Fee_Total | currency if payment.Fee_Total else '-' }}
Net Amount {{ (payment.Payment_Amount - payment.Fee_Total) | currency }}
{% if payment.PI_FollowUp %}
Follow-up Required: This payment requires additional processing. {% if payment.PI_Last_Check %}
Last checked: {{ payment.PI_Last_Check.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %}
{% endif %} {% if payment.Refund == True %}
Refund Processed: This payment has been refunded. {% if payment.Stripe_Refund_Created %}
Refunded: {{ payment.Stripe_Refund_Created.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %}
{% endif %}
{% if payment.Error %}

Error Information

{{ payment.Error }}
{% endif %}
{% if payment.PI_JSON %}

Payment Intent JSON

{{ payment.PI_JSON | format_json }}
{% endif %} {% if payment.PI_FollowUp_JSON %}

Follow-up JSON

{{ payment.PI_FollowUp_JSON | format_json }}
{% endif %} {% if payment.Refund_JSON %}

Refund JSON

{{ payment.Refund_JSON | format_json }}
{% endif %}
{% endblock %}