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

Single Payment #{{ payment.id }}

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

Back to Payments
{% if payment.Refund == True %} {% elif payment.Refund_FollowUp == True %} {% elif payment.PI_FollowUp == 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.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.

{% 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 %}
{% if payment.Refund != True and payment.Refund_FollowUp != True and payment.Success == True %}
{% elif payment.Refund_FollowUp == True %}
{% endif %} {% if payment.PI_FollowUp %}
{% endif %}

Payment Information

Payment ID #{{ payment.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 {{ 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 '-' }}
{% 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 %} {% set error_alert = payment | error_alert %}

Payment Error Details

{% if error_alert %}
{{ error_alert.title }}

{{ error_alert.message }}

Suggested Action: {{ error_alert.suggestion }}

View Technical Details
{{ error_alert.raw_error }}
{% else %}
Payment Error

An error occurred during payment processing.

Technical Details
{{ payment.Error }}
{% endif %}
{% 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 %}