{% extends "base.html" %}
{% block title %}Payment Investigation #{{ payment.id }} - Admin Dashboard - {{ project_name }}{% endblock %}
{% block content %}
Detailed payment analysis and support tools Last 10 payments for {{ payment.user.email }}Payment Investigation
Investigation Warnings
{% for warning in warnings %}
Payment #{{ payment.id }}
User
{{ payment.user.email }}
Payment Type
{{ payment.get_payment_type_display }}
Amount
${{ payment.amount }} {{ payment.currency|upper }}
Created
{{ payment.created_at|date:"M d, Y H:i:s" }}
Updated
{{ payment.updated_at|date:"M d, Y H:i:s" }}
Description
{{ payment.description|default:"—" }}
Stripe Payment Intent
{% if payment.stripe_payment_intent_id %}
{{ payment.stripe_payment_intent_id }}
{% else %}
None
{% endif %}
Stripe Subscription
{% if payment.stripe_subscription_id %}
{{ payment.stripe_subscription_id }}
{% else %}
None
{% endif %}
Stripe Invoice
{% if payment.stripe_invoice_id %}
{{ payment.stripe_invoice_id }}
{% else %}
None
{% endif %}
Receipt Number
{% if payment.receipt_number %}
{{ payment.receipt_number }}
{% else %}
None
{% endif %}
Stripe Payment Intent Data
Stripe ID
{{ stripe_data.id }}
Amount
${{ stripe_data.amount|floatformat:2 }} {{ stripe_data.currency|upper }}
Status
{{ stripe_data.status|title }}
Payment Method
{{ stripe_data.payment_method_types.0|default:"Unknown"|title }}
Customer
{% if stripe_data.customer %}
{{ stripe_data.customer }}
{% else %}
None
{% endif %}
Created
{{ stripe_data.created|date:"M d, Y H:i:s" }}
Confirmation Method
{{ stripe_data.confirmation_method|default:"automatic"|title }}
Client Secret
{% if stripe_data.client_secret %}
{{ stripe_data.client_secret|slice:":20" }}...
{% else %}
None
{% endif %}
Related Credit Transactions
{% for transaction in related_transactions %}
Date
Amount
Type
Description
Expiration
{% endfor %}
{{ transaction.created_at|date:"M d, Y H:i" }}
{{ transaction.amount }} credits
{{ transaction.get_credit_type_display }}
{{ transaction.description }}
{% if transaction.expiration_date %}
{{ transaction.expiration_date|date:"M d, Y" }}
{% else %}
Never
{% endif %}
Refund History
{% for refund in refund_history %}
Date
Amount
Status
Description
{% endfor %}
{{ refund.created_at|date:"M d, Y H:i" }}
${{ refund.amount|floatformat:2 }} {{ refund.currency|upper }}
{{ refund.get_status_display }}
{{ refund.description }}
Recent User Payment History