{% if invoice.bolt11 %}{% trans "in Lightning" %}{% endif %}{% if invoice.bolt11 and address %}, {% endif %}{% if address %}{% trans "on-chain" %}{% endif %}
{% if state == "paid" %}
{% trans "paid" %}
{% if method == "lightning" %}({% trans "in Lightning" %}){% elif method == "onchain" %}({% trans "on-chain" %}){% elif method == "mixed" %}({% trans "on-chain and in Lightning" %}){% endif %}
{% if invoice.error == "changed" %}
{% trans "Not confirmed: the order owed another amount when it was paid (see its history). Settle the difference with the customer, then confirm this payment by hand." %}
{% endif %}
{% elif state == "unconfirmed" %}
{% trans "received, being confirmed on-chain" %}
{% elif state == "expired" %}
{% if invoice.received %}{% trans "ended underpaid" %}{% else %}{% trans "expired unpaid" %}{% endif %}
{% if awaits_organizer %}
{% trans "Not confirmed: what came reached your wallet. Settle the difference with the customer, then confirm this payment by hand, or cancel it for the customer to pay again." %}
{% endif %}
{% elif state == "open" %}
{% if invoice.received %}{% trans "partly paid, waiting for the rest" %}{% else %}{% trans "waiting for the payment" %}{% endif %}
{% else %}
{% trans "not checked yet" %}
{% endif %}
{% if invoice.received %}
{% trans "Received" %}
{{ received_sats }} sats
{% endif %}
{% if confirmations is not None %}
{% trans "Confirmations" %}
{{ confirmations }}
{% endif %}
{% for txid in txids %}
{% if forloop.first %}{% trans "Transactions" %}{% endif %}