{% load static %} Payment Inspector

Payment Inspector

Enter a VP order_id or a Razorpay razorpay_order_id (e.g. starts with order_).

{% csrf_token %}
{% if error %}
{{ error }}
{% endif %} {% if result %}
Local PaymentTransaction
{% if result.local_tx %}
order_id
{{ result.local_tx.order_id }}
service
{{ result.local_tx.service }}
amount
{{ result.local_tx.amount }}
status
{{ result.local_tx.status }}
razorpay_order_id
{{ result.local_tx.razorpay_order_id }}
razorpay_payment_id
{{ result.local_tx.razorpay_payment_id }}
created_at
{{ result.local_tx.created_at }}
{% else %}
No local transaction found.
{% endif %}
Razorpay Order {% if result.rzp_order_id %} {{ result.rzp_order_id }} {% endif %}
{% if result.rzp_error %}
{{ result.rzp_error }}
{% endif %} {% if result.rzp_order %}
id
{{ result.rzp_order.id }}
status
{{ result.rzp_order.status }}
amount
{{ result.rzp_order.amount }} (paise)
amount_paid
{{ result.rzp_order.amount_paid }} (paise)
currency
{{ result.rzp_order.currency }}
created_at
{{ result.rzp_order.created_at }}
{% else %}
No Razorpay order found.
{% endif %}
Razorpay Payments for this Order
{% if result.rzp_payments and result.rzp_payments|length > 0 %}
{% for p in result.rzp_payments %} {% endfor %}
payment_id status amount (paise) currency method email / contact created_at
{{ p.id }} {% if p.status == "captured" %} captured {% elif p.status == "authorized" %} authorized {% else %} {{ p.status }} {% endif %} {{ p.amount }} {{ p.currency }} {{ p.method }} {{ p.email }}{% if p.email and p.contact %} / {% endif %}{{ p.contact }} {{ p.created_at }}
{% else %}
No payments found for this order.
{% endif %}
{% if result.local_tx and result.local_tx.razorpay_order_id %}
If you already have razorpay_payment_id and razorpay_signature from the frontend, call POST /api/payments/verify/ with:
{"order_id": "{{ result.local_tx.order_id }}",
 "razorpay_order_id": "{{ result.local_tx.razorpay_order_id }}",
 "razorpay_payment_id": "<from frontend>",
 "razorpay_signature": "<from frontend>"}
{% endif %}
{% endif %}