Fix order retry issue

This commit is contained in:
Raphael Michel
2017-10-24 18:35:57 +02:00
parent 03dd0e530e
commit 4e6fb7799a
2 changed files with 2 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
<form method="post" class="form-horizontal" href="" data-total="{{ order.total|floatformat:2 }}">
{% csrf_token %}
<input type="hidden" name="payment" value="{{ provider.identifier }}">
<div class="form-horizontal payment-redo-form">
{{ form }}
</div>

View File

@@ -172,6 +172,7 @@ class OrderPaymentStart(EventViewMixin, OrderDetailMixin, TemplateView):
ctx = super().get_context_data(**kwargs)
ctx['order'] = self.order
ctx['form'] = self.form
ctx['provider'] = self.payment_provider
return ctx
@cached_property