{% load i18n %} {% if payment_info %} {% if order.status == "p" %}

{% blocktrans trimmed with method=provider.verbose_name %} This order has been paid with {{ method }}. {% endblocktrans %}

{% elif order.status == "r" %}

{% blocktrans trimmed with method=provider.verbose_name %} This order has been planned to be paid with {{ method }} and has been marked as refunded. {% endblocktrans %}

{% else %}

{% blocktrans trimmed with method=provider.verbose_name %} This order has been planned to be paid with {{ method }}, but the payment has not yet been completed. {% endblocktrans %}

{% endif %} {% if "source" in payment_info %}
{% trans "Charge ID" %}
{{ payment_info.id }}
{% if payment_info.source.type == "card" or payment_info.source.type == "three_d_secure" %}
{% trans "Card type" %}
{{ payment_info.source.brand }}
{% trans "Card number" %}
**** **** **** {{ payment_info.source.last4 }}
{% trans "Payer name" %}
{{ payment_info.source.name }}
{% endif %} {% if payment_info.source.type == "giropay" %}
{% trans "Bank" %}
{{ payment_info.source.giropay.bank_name }} ({{ payment_info.source.giropay.bic }})
{% trans "Payer name" %}
{{ payment_info.source.owner.verified_name|default:payment_info.source.owner.name }}
{% endif %} {% if payment_info.source.type == "bancontact" %}
{% trans "Bank" %}
{{ payment_info.source.bancontact.bank_name }} ({{ payment_info.source.bancontact.bic }})
{% trans "Payer name" %}
{{ payment_info.source.owner.verified_name|default:payment_info.source.owner.name }}
{% endif %} {% if payment_info.source.type == "ideal" %}
{% trans "Bank" %}
{{ payment_info.source.ideal.bank }} ({{ payment_info.source.ideal.bic }})
{% trans "Payer name" %}
{{ payment_info.source.owner.verified_name|default:payment_info.source.owner.name }}
{% endif %}
{% trans "Total value" %}
{{ payment_info.amount|floatformat:2 }}
{% trans "Currency" %}
{{ payment_info.currency|upper }}
{% trans "Status" %}
{{ payment_info.status }}
{% endif %} {% if "message" in payment_info %}
{% trans "Error message" %}
{{ payment_info.message }}
{% endif %} {% else %}

{% blocktrans trimmed %} This order has been planned to be paid via Stripe, but the payment has not yet been completed. {% endblocktrans %}

{% endif %}