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

Batch Payment #{{ payment.id }}

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

Back to Batch #{{ payment.PaymentBatch_ID }}
{% 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 %}
{% if payment.Refund_FollowUp != True %} Completed {% endif %}
{% elif payment.Refund_FollowUp == True %}

Refund Processing

A refund is being processed for this payment.

BECS Direct Debit refunds can take several business days to complete.

{% if payment.Stripe_Refund_Created %}

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

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

Payment Pending

This payment is still being processed by the bank.

BECS Direct Debit payments can take several business days to complete.

{% if payment.PI_Last_Check %}

Last checked: {{ payment.PI_Last_Check.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
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 '-' }}
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 '-' }}
Processed By {{ payment.processed_by or 'Unknown' }}
Financial Details
Payment Amount ${{ "%.2f"|format(payment.Payment_Amount|abs) if payment.Payment_Amount else '0.00' }} AUD
Stripe Fee ${{ "%.2f"|format(payment.Fee_Stripe|abs) if payment.Fee_Stripe else '0.00' }}
Tax Fee ${{ "%.2f"|format(payment.Fee_Tax|abs) if payment.Fee_Tax else '0.00' }}
Total Fees ${{ "%.2f"|format(payment.Fee_Total|abs) if payment.Fee_Total else '0.00' }}
{% 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 Completed: This payment has been successfully refunded. {% if payment.Stripe_Refund_Created %}
Refunded: {{ payment.Stripe_Refund_Created.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %} {% if payment.Stripe_Refund_ID %}
Refund ID: {{ payment.Stripe_Refund_ID }} {% endif %}
{% elif payment.Refund_FollowUp == True %}
Refund Processing: A refund for this payment is currently being processed by the bank. {% if payment.Stripe_Refund_Created %}
Initiated: {{ payment.Stripe_Refund_Created.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %} {% if payment.Stripe_Refund_ID %}
Refund ID: {{ payment.Stripe_Refund_ID }} {% endif %}
BECS Direct Debit refunds typically take 3-5 business days to complete.
{% endif %}
{% if payment.Error %}
Payment Error Details
Payment Error

An error occurred during payment processing.

Technical Details
{{ 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 %}