From e78a35a9f021b2e8ea4c73e74ad6c52cf2401a4b Mon Sep 17 00:00:00 2001 From: Lukas Bockstaller Date: Wed, 12 Aug 2026 15:32:37 +0200 Subject: [PATCH] add missing negation --- 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 6412833aa7..135216aa46 100644 --- a/src/pretix/base/payment.py +++ b/src/pretix/base/payment.py @@ -1030,7 +1030,7 @@ class BasePaymentProvider: """ if payment.state == OrderPayment.PAYMENT_STATE_PENDING: - if self.abort_pending_allowed and self.abort_pending_payment_allowed(payment): + if not (self.abort_pending_allowed and self.abort_pending_payment_allowed(payment)): raise PaymentException(_( "This payment is already being processed and can not be canceled any more." ))