{% extends 'oscar/checkout/preview.html' %} {% load currency_filters %} {% load i18n %} {% block payment_method %}

{% trans "Payment" %}

Bankcard

{% blocktrans with amount=order_total.incl_tax|currency %} {{ amount }} will be debited from your bankcard: {% endblocktrans %}

{% with bankcard=bankcard_form.bankcard %}

{% trans "Card type" %}: {{ bankcard.card_type }}
{% trans "Card number" %}: {{ bankcard.obfuscated_number }}
{% trans "Expiry month" %}: {{ bankcard.expiry_month }}

{% endwith %}

Billing address

{% for field in billing_address.active_address_fields %} {{ field }}
{% endfor %}

{% if billing_address.phone_number %}

{% trans "Contact number" %}: {{ billing_address.phone_number }}

{% endif %}
{% endblock %} {% block place_order %}
{% csrf_token %} {% comment %} When submitting sensitive data on the payment details page (eg a bankcard) we don't want to save the data and so we pass the bound form to the preview template and render it in a hidden div. Then the payment information will get re-submitted when the user confirms the order. {% endcomment %}
{% block hiddenforms %} {{ bankcard_form.as_p }} {{ billing_address_form.as_p }} {% endblock %}
{% endblock place_order %}