From b8704f980f19974fedc4729d4f4aa98ae39156f5 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 9 Aug 2017 13:56:08 +0200 Subject: [PATCH] Only validate form of the selected payment --- src/pretix/base/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/payment.py b/src/pretix/base/payment.py index b27858f16..87e2b9890 100644 --- a/src/pretix/base/payment.py +++ b/src/pretix/base/payment.py @@ -215,7 +215,7 @@ class BasePaymentProvider: required fields for you. """ form = PaymentProviderForm( - data=(request.POST if request.method == 'POST' else None), + data=(request.POST if request.method == 'POST' and request.POST.get("payment") == self.identifier else None), prefix='payment_%s' % self.identifier, initial={ k.replace('payment_%s_' % self.identifier, ''): v