From e645a350f2a3de75213fb33c31ed67c3d766e647 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 11 Aug 2018 12:31:44 +0200 Subject: [PATCH] Stripe: Support for pretix.eu --- .../stripe/static/pretixplugins/stripe/pretix-stripe.js | 3 +++ 1 file changed, 3 insertions(+) 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 903359a499..cbd479ae5f 100644 --- a/src/pretix/plugins/stripe/static/pretixplugins/stripe/pretix-stripe.js +++ b/src/pretix/plugins/stripe/static/pretixplugins/stripe/pretix-stripe.js @@ -157,6 +157,9 @@ $(function () { $('.stripe-container').closest("form").submit( function () { + if ($("input[name=card_new]").length && !$("input[name=card_new]").prop('checked')) { + return null; + } if (($("input[name=payment][value=stripe]").prop('checked') || $("input[name=payment][type=radio]").length === 0) && $("#stripe_token").val() == "") { if ($("#stripe-checkout").length) {