add missing negation

This commit is contained in:
Lukas Bockstaller
2026-08-12 15:32:37 +02:00
parent 459014eaaa
commit e78a35a9f0
+1 -1
View File
@@ -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."
))