From b653915a35083325f473bb24c116d988439dd560 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 10 Apr 2016 17:56:11 +0200 Subject: [PATCH] Enable stripe when retrying payments --- .../plugins/stripe/static/pretixplugins/stripe/pretix-stripe.js | 2 +- src/pretix/presale/templates/pretixpresale/event/order_pay.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/plugins/stripe/static/pretixplugins/stripe/pretix-stripe.js b/src/pretix/plugins/stripe/static/pretixplugins/stripe/pretix-stripe.js index 6ba13535a4..2074899389 100644 --- a/src/pretix/plugins/stripe/static/pretixplugins/stripe/pretix-stripe.js +++ b/src/pretix/plugins/stripe/static/pretixplugins/stripe/pretix-stripe.js @@ -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() { diff --git a/src/pretix/presale/templates/pretixpresale/event/order_pay.html b/src/pretix/presale/templates/pretixpresale/event/order_pay.html index a6e80fdbbe..9abc608ff7 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order_pay.html +++ b/src/pretix/presale/templates/pretixpresale/event/order_pay.html @@ -11,7 +11,7 @@
{% csrf_token %} -
+
{{ form }}