{% extends "pretixpresale/event/base.html" %} {% load i18n %} {% load static %} {% load money %} {% block title %}{% trans "Pay with Bitcoin" %}{% endblock %} {% block custom_header %} {{ block.super }} {% endblock %} {% block content %}

{% blocktrans trimmed with code=order.code %} Pay order {{ code }} with Bitcoin {% endblocktrans %}

{% if phase == "open" or phase == "underpaid" %}
{% if uri %} {% if qr %} {{ qr }}

{% trans "Scan this QR code with your Bitcoin wallet." %}

{% endif %}

{% trans "Open in my wallet" %}

{% endif %}
{% if phase == "underpaid" %}
{% blocktrans trimmed with received=received_sats rest=to_pay_sats %} We received {{ received }} sats, less than the amount of this order. Please pay the remaining {{ rest }} sats. {% endblocktrans %}
{% if not uri %}

{% trans "An invoice for the remaining amount is being prepared: it appears here in a moment." %}

{% endif %} {% endif %}
{% if phase == "underpaid" %}{% trans "Remaining amount" %}{% else %}{% trans "Amount" %}{% endif %}
{{ to_pay_btc }} BTC ({{ to_pay_sats }} sats) {% if phase == "open" %}
{{ payment.amount|money:event.currency }} {% endif %}
{% trans "Time left to pay" %}
{{ time_left }} {% blocktrans trimmed with time=expires|date:"TIME_FORMAT" %} (until {{ time }}) {% endblocktrans %}
{% if lightning %}

{% trans "Lightning invoice" %}

{{ lightning }}

{% endif %} {% if address %}

{% trans "Bitcoin address" %}

{{ address }}

{% blocktrans trimmed with amount=to_pay_btc %} To pay on-chain, send exactly {{ amount }} BTC to this address. {% endblocktrans %}

{% endif %}

{% trans "This page updates on its own as soon as your payment arrives." %} {% if has_onchain %} {% trans "A payment on-chain is confirmed by the Bitcoin network in about 30 minutes: once it has arrived, you can close this page." %} {% endif %}

{% elif phase == "unconfirmed" %}
{% trans "Your payment has arrived: it is being confirmed." %}

{% blocktrans trimmed with count=confirmations %} It is being confirmed by the Bitcoin network: {{ count }} of 3 confirmations. This usually takes about 30 minutes, after which your order is marked as paid. {% endblocktrans %}

{% trans "You can close this page: your order's page shows its status." %}

{% elif phase == "ended" %}

{% trans "The time to pay this invoice is over." %}

{% trans "If you paid it in time, your payment is being checked: this page updates on its own." %}

{% elif phase == "expired" %} {% if invoice.received %}
{% blocktrans trimmed with received=received_sats sats=sats %} This invoice ended before it was fully paid: we received {{ received }} of {{ sats }} sats. Please contact the organizer to settle the difference. {% endblocktrans %}
{% else %}
{% trans "This invoice expired without being paid. You can pay again from your order's page." %}
{% endif %} {% elif phase == "canceled" %}
{% trans "This payment was canceled. Your order's page shows how to pay your order." %}
{% endif %}
{% trans "Back to your order" %}
{% if poll_interval %} {% endif %}
{% endblock %}