Enable stripe when retrying payments

This commit is contained in:
Raphael Michel
2016-04-10 17:56:11 +02:00
parent 63687d93cc
commit b653915a35
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ $(function () {
if (!$("#stripe_number").length) // Not on the checkout page
return;
if ($("input[name=payment][value=stripe]").is(':checked')) {
if ($("input[name=payment][value=stripe]").is(':checked') || $(".payment-redo-form").length) {
pretixstripe.load();
} else {
$("input[name=payment]").change(function() {

View File

@@ -11,7 +11,7 @@
<form method="post" class="form-horizontal" href="">
{% csrf_token %}
<div class="form-horizontal">
<div class="form-horizontal payment-redo-form">
{{ form }}
</div>
<div class="row checkout-button-row">