Stripe checkout: Fixed retry order

This commit is contained in:
Raphael Michel
2016-09-09 10:38:58 +02:00
parent 84d264d626
commit e0ece9c18a
4 changed files with 15 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
{% endblocktrans %}
</h2>
<form method="post" class="form-horizontal" href="">
<form method="post" class="form-horizontal" href="" data-total="{{ order.total|floatformat:2 }}">
{% csrf_token %}
<div class="form-horizontal payment-redo-form">
{{ form }}

View File

@@ -18,7 +18,7 @@
{% csrf_token %}
<div class="panel-group" id="payment_accordion">
{% for p in providers %}
<div class="panel panel-default">
<div class="panel panel-default" data-total="{{ p.total|floatformat:2 }}">
<div class="panel-heading">
<h4 class="panel-title">
<label class="radio">

View File

@@ -273,6 +273,7 @@ class OrderPayChangeMethod(EventViewMixin, OrderDetailMixin, TemplateView):
'fee': fee,
'fee_diff': fee - self.order.payment_fee,
'fee_diff_abs': abs(fee - self.order.payment_fee),
'total': abs(self._total_order_value + fee),
'form': provider.payment_form_render(self.request)
})
return providers