{% extends "base.html" %} {% import 'components/macros.html' as ui %} {% block title %}Payment Status - {{ brand_name }}{% endblock %} {% block head_extra %} {% endblock %} {% block content %}

{{ brand_name }}

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
{% if payment_status == 'pending' %}Waiting for Payment {% elif payment_status == 'initiated' %}Payment Initiated - Waiting for Confirmation {% elif payment_status == 'completed' %}Payment Confirmed {% elif payment_status == 'failed' %}Payment Failed {% else %}{{ payment_status|title }}{% endif %}

Receipt Code: {{ receipt_code }}

Amount: {{ currency_symbol }} {{ "%.2f"|format(total) }}

Method: {{ payment_method|title }}

Sale ID: {{ sale_id }}

{% if sale_items %} {% for item in sale_items %} {% endfor %}
{{ item[0] }} {{ item[1] }} x {{ "%.2f"|format(item[2]) }} {{ "%.2f"|format(item[3]) }}
{% endif %} {% if payment_status in ('pending', 'initiated') %}

Checking payment status...

Online provider confirmations update this page automatically. Manual confirmation is admin-only.

{% if can_admin_confirm %}
{% elif not manual_payment_verification_enabled %}

Manual payment confirmation is deactivated by the server admin. Use provider confirmation or activate it from Server Verification Controls.

{% else %}

Only an admin can manually confirm payment received. Cashiers must wait for provider confirmation or ask the admin.

{% endif %}
{% elif payment_status == 'completed' %}

Payment has been confirmed.

Open Receipt {% elif payment_status == 'failed' %}

Payment failed. Return to checkout and try another payment method.

Back to Checkout {% endif %}
{% if payment_status in ('pending', 'initiated') %} {% endif %} {% endblock %}