{% extends "base.html" %} {% block title %}Order {{ order.id[:8] }}... — litestar-getpaid Example{% endblock %} {% block content %}

Order Details

ID
{{ order.id }}
Description
{{ order.description }}
Amount
{{ order.amount }} {{ order.currency }}
Created
{{ order.created_at }}

Pay for this order

Click below to initiate a payment using the dummy backend. You will be redirected to the fake payment gateway where you can approve or reject the payment.

Payments

{% if payments %}
{% for payment in payments %}
{{ payment.id[:8] }}...
{{ payment.amount_required }} {{ payment.currency }}
Backend: {{ payment.backend }}
{% if payment.status == "paid" %} {{ payment.status }} {% elif payment.status == "failed" %} {{ payment.status }} {% elif payment.status == "prepared" %} {{ payment.status }} {% else %} {{ payment.status }} {% endif %}
{% endfor %}
{% else %}

No payments yet.

{% endif %}
Back to Orders
{% endblock %}