{% extends "plans/base.html" %} {% load i18n %} {% block head %} {% endblock %} {% block body %}

{% blocktrans with object.id as order_id and object.get_status_display as order_status %}Order #{{ order_id }} (status: {{ order_status }}){% endblocktrans %}

{# You should provide displaying django messages in this template #} {% with object as order %} {% include "plans/order_detail_table.html" %} {% endwith %} {% if object.get_all_invoices.count %}

{% trans "Printable documents" %}

{% endif %}

{% trans "Payment" %}

{% if object.completed %}

{% blocktrans with object.completed as completed %} Payment completed on: {{ completed }} {% endblocktrans %}

{% else %} {% if object.is_ready_for_payment %} {% block payment_method %}

Here should go bindings to your payment. We recommend using django-getpaid for payment processing. Use a fake payment below to simulate paying for an order:

Pay using FakePayments™ ;) {# An example code snippet for accepting payments using django-getpaid #} {#
#} {# {% csrf_token %}#} {# #} {#

#} {#

#} {#
#} {% endblock %} {% else %}

{% blocktrans %} This order is expired. It will accept an incoming payment made earlier, but new payment cannot be initialized. Please make a new order if necessary. {% endblocktrans %}

{% endif %} {% endif %} {% if object.status == object.STATUS.NOT_VALID %}

{% blocktrans %} This order could not be processed as it is not valid. Please contact with customer service. {% endblocktrans %}

{% endif %} {% endblock %}